]> Pileus Git - ~andy/sunrise/commitdiff
media-video/qnapi: New ebuild for qnapi (bug #219706). Thanks to all Bugzilla thread...
authorMichał Górny <mgorny@gentoo.org>
Sun, 9 Aug 2009 12:27:41 +0000 (12:27 +0000)
committerMichał Górny <mgorny@gentoo.org>
Sun, 9 Aug 2009 12:27:41 +0000 (12:27 +0000)
svn path=/sunrise/; revision=8973

media-video/qnapi/ChangeLog [new file with mode: 0644]
media-video/qnapi/Manifest [new file with mode: 0644]
media-video/qnapi/files/qnapi-0.1.6_rc2-gentoo.diff [new file with mode: 0644]
media-video/qnapi/metadata.xml [new file with mode: 0644]
media-video/qnapi/qnapi-0.1.6_rc2.ebuild [new file with mode: 0644]

diff --git a/media-video/qnapi/ChangeLog b/media-video/qnapi/ChangeLog
new file mode 100644 (file)
index 0000000..a992e6b
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for media-video/qnapi
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  09 Aug 2009; Michał Górny (sedzimir) <gentoo@mgorny.alt.pl>
+  +qnapi-0.1.6_rc2.ebuild, +files/qnapi-0.1.6_rc2-gentoo.diff,
+  +metadata.xml:
+  New ebuild for qnapi (bug #219706). Thanks to all Bugzilla thread
+  contributors and scarabeus.
+
diff --git a/media-video/qnapi/Manifest b/media-video/qnapi/Manifest
new file mode 100644 (file)
index 0000000..8ae575a
--- /dev/null
@@ -0,0 +1,5 @@
+AUX qnapi-0.1.6_rc2-gentoo.diff 4271 RMD160 4846137f5023e30dc72f94a8b0bfffc7f551f087 SHA1 04459eea0d105fc51372fb7f978c269903fa748c SHA256 7e1d18cb2482f7c5749baf46c0359d5732f2f44a3bc2feb9ac62e2e5dda058e0
+DIST qnapi-0.1.6-rc2.tar.gz 211567 RMD160 2696c22f2db7cf9e0e546ad8c08b46070a4186c0 SHA1 884e7b7d9643f8f0d82ece2720f9d3c251fd8d44 SHA256 a2ae2d0b5d800565493c8840f5f584d480daaee1f01742689d927fdf68c5150a
+EBUILD qnapi-0.1.6_rc2.ebuild 1565 RMD160 07ef383e8ee02319fc000a7970ca92091c84f4d6 SHA1 17a2d0fcea416543f68de51ee5b26ee55baaa9d8 SHA256 9538d63af38fde473cd06ca2072fbebbb3ea45395ee08b5843e57ca189342fef
+MISC ChangeLog 361 RMD160 0206fa583ba8b0b3e6765a2a7dcb86aa615fbab4 SHA1 fec62ee39aaa192f3d844e58760be0077818a328 SHA256 57c7ce0cb8f0d1864067272e7f8a1b3aa4cc02c74ea2fcabbd74844c94e19f32
+MISC metadata.xml 368 RMD160 0366e6b013a6e53c0bf0d8491bddceac70fc6bb0 SHA1 063b035727fc758750280ae90001027f1e7e9b36 SHA256 3ddeb504da41a09a71ba9c7daaac033331f0476d6fbc644fccbadf41e217a3cc
diff --git a/media-video/qnapi/files/qnapi-0.1.6_rc2-gentoo.diff b/media-video/qnapi/files/qnapi-0.1.6_rc2-gentoo.diff
new file mode 100644 (file)
index 0000000..9928be9
--- /dev/null
@@ -0,0 +1,97 @@
+diff -dupr qnapi-0.1.6-rc2.orig/doc/qnapi.desktop qnapi-0.1.6-rc2/doc/qnapi.desktop
+--- qnapi-0.1.6-rc2.orig/doc/qnapi.desktop     2009-08-07 11:12:56.029409132 +0200
++++ qnapi-0.1.6-rc2/doc/qnapi.desktop  2009-08-07 11:13:33.989532257 +0200
+@@ -1,7 +1,7 @@
+ [Desktop Entry]
+ Exec=qnapi
+ Name=QNapi
+-Icon=/usr/share/icons/qnapi-48.png
++Icon=qnapi
+ Type=Application
+ Categories=AudioVideo
+ Comment=Program do pobierania napisów do filmów
+diff -dupr qnapi-0.1.6-rc2.orig/doc/qnapi-download.desktop qnapi-0.1.6-rc2/doc/qnapi-download.desktop
+--- qnapi-0.1.6-rc2.orig/doc/qnapi-download.desktop    2009-08-07 11:12:56.029409132 +0200
++++ qnapi-0.1.6-rc2/doc/qnapi-download.desktop 2009-08-07 11:13:33.990532256 +0200
+@@ -3,7 +3,7 @@ Version=1.0
+ Actions=QNapiDownload;
+ Name=Pobierz napisy do filmu z QNapi
+ GenericName=Pobierz napisy do filmu z QNapi
+-Icon=/usr/share/icons/qnapi-48.png
++Icon=qnapi
+ ServiceTypes=video/x-msvideo,video/x-ms-asf,video/mpeg,video/x-ms-wmv,video/mp4,video/quicktime,video/x-theora,video/x-matroska,video/3gpp,application/vnd.rn-realmedia,application/vnd.rn-realmedia-vbr
+ X-KDE-ServiceTypes=KonqPopupMenu/Plugin
+ Type=Service
+@@ -11,4 +11,4 @@ Type=Service
+ [Desktop Action QNapiDownload]
+ Name=Pobierz napisy do filmu z QNapi
+ Exec=qnapi %F
+-Icon=/usr/share/icons/qnapi-48.png
++Icon=qnapi
+diff -dupr qnapi-0.1.6-rc2.orig/doc/qnapi-download.schemas qnapi-0.1.6-rc2/doc/qnapi-download.schemas
+--- qnapi-0.1.6-rc2.orig/doc/qnapi-download.schemas    2009-08-07 11:12:56.029409132 +0200
++++ qnapi-0.1.6-rc2/doc/qnapi-download.schemas 2009-08-07 11:13:33.991532214 +0200
+@@ -32,7 +32,7 @@
+         <short>The icon of the menu item</short>
+         <long>The icon of the menu item that will appear next to the label in the Nautilus popup menu when the selection matches the appearance conditions settings</long>
+       </locale>
+-      <default>/usr/share/icons/qnapi.png</default>
++      <default>/usr/share/pixmaps/qnapi.png</default>
+     </schema>
+     <schema>
+       <key>/schemas/apps/nautilus-actions/configurations/12e76756-c203-4a27-830f-af5a1527869e/path</key>
+diff -dupr qnapi-0.1.6-rc2.orig/qnapi.pro qnapi-0.1.6-rc2/qnapi.pro
+--- qnapi-0.1.6-rc2.orig/qnapi.pro     2009-08-07 11:12:56.017406961 +0200
++++ qnapi-0.1.6-rc2/qnapi.pro  2009-08-07 11:21:04.772421790 +0200
+@@ -104,39 +104,32 @@ macx {
+ unix {
+  INSTALL_PREFIX =  /usr
+  target.path =  $${INSTALL_PREFIX}/bin
+- doc.path =  $${INSTALL_PREFIX}/share/doc/$${TARGET}
++ doc.path =  $${INSTALL_PREFIX}/share/doc/$(PF)
+  doc.files =  doc/ChangeLog \
+-  doc/changelog.gz \
+   doc/README \
+-  doc/README.pl \
+-  doc/LICENSE \
+-  doc/LICENSE.pl \
+-  doc/COPYRIGHT \
+-  doc/qnapi-download.desktop \
+-  doc/qnapi-download.schemas
++  doc/README.pl
+  man.path =  $${INSTALL_PREFIX}/share/man/man1
+- man.files =  doc/$${TARGET}.1.gz
+- icons.path =  /usr/share/icons
+- icons.files =  res/qnapi.png  res/qnapi-48.png  res/qnapi-128.png  res/qnapi-512.png
++ man.files =  doc/$${TARGET}.1
++ icons.path =  /usr/share/pixmaps
++ icons.files =  res/qnapi.png
+  desktop.path =  /usr/share/applications
+  desktop.files =  doc/$${TARGET}.desktop
+- dolphin_integration.path =  /usr/share/apps/dolphin/servicemenus
++ dolphin_integration.path =  /usr/kde/3.5/share/apps/dolphin/servicemenus
+  dolphin_integration.files =  doc/$${TARGET}-download.desktop
+- d3lphin_integration.path =  /usr/share/apps/d3lphin/servicemenus
++ d3lphin_integration.path =  /usr/kde/3.5/share/apps/d3lphin/servicemenus
+  d3lphin_integration.files =  doc/$${TARGET}-download.desktop
+- konqueror_integration.path =  /usr/share/apps/konqueror/servicemenus
++ konqueror_integration.path =  /usr/kde/3.5/share/apps/konqueror/servicemenus
+  konqueror_integration.files =  doc/$${TARGET}-download.desktop
+- kde4_integration.path =  /usr/lib/kde4/share/kde4/services/ServiceMenus
++ kde4_integration.path =  $$(KDE4DIR)/share/kde4/services/ServiceMenus
+  kde4_integration.files =  doc/$${TARGET}-download.desktop
++ gnome_integration.path =  /etc/gconf/schemas/
++ gnome_integration.files =  doc/$${TARGET}-download.schemas
+  INSTALLS =  target \
+   doc \
+   man \
+   icons \
+   desktop \
+-  dolphin_integration \
+-  d3lphin_integration \
+-  konqueror_integration \
+-  kde4_integration
++  $$(INTEGRATION_TARGETS)
+ }
+ win32 {
+  RC_FILE =  win32/qnapi.rc
diff --git a/media-video/qnapi/metadata.xml b/media-video/qnapi/metadata.xml
new file mode 100644 (file)
index 0000000..1c3fb19
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>maintainer-wanted</herd>
+       <use>
+               <flag name='kde'>Enable KDE4 menu integration.</flag>
+               <flag name='kde3'>Enable KDE3 Konqueror menu integration.</flag>
+               <flag name='gnome'>Enable GNOME menu integration.</flag>
+       </use>
+</pkgmetadata>
diff --git a/media-video/qnapi/qnapi-0.1.6_rc2.ebuild b/media-video/qnapi/qnapi-0.1.6_rc2.ebuild
new file mode 100644 (file)
index 0000000..f46b77f
--- /dev/null
@@ -0,0 +1,72 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+KDE_REQUIRED="optional"
+WANT_CMAKE="no"
+
+inherit eutils gnome2-utils kde4-base qt4
+
+MY_P="${P/_rc/-rc}"
+
+DESCRIPTION="Automatic subtitle downloader using Napiprojekt database"
+HOMEPAGE="http://krzemin.iglu.cz/qnapi"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome kde3"
+
+S="${WORKDIR}/${MY_P}"
+
+DEPEND="x11-libs/qt-core
+       x11-libs/qt-gui
+       gnome? ( gnome-base/gconf )
+       kde3? ( <kde-base/kdelibs-4 )"
+RDEPEND="${DEPEND}
+       app-arch/p7zip"
+
+# fix install paths, remove unneeded files, general cleanup
+PATCHES=("${FILESDIR}/${P}-gentoo.diff")
+
+pkg_setup() {
+       use kde && kde4-base_pkg_setup # get KDEDIR for KDE4
+       qt4_pkg_setup
+}
+
+src_configure() {
+       local integr
+
+       use gnome && integr="gnome_integration"
+       use kde && integr="${integr} kde4_integration"
+       use kde3 && integr="${integr} konqueror_integration"
+       # Dolphin for KDE3 is being dropped (bug #280633),
+       # d3lphin isn't yet in portage.
+
+       KDE4DIR="${KDEDIR}" INTEGRATION_TARGETS="${integr}" eqmake4 || die "eqmake4 failed."
+}
+
+src_compile() {
+       emake || die "emake failed."
+}
+
+src_install() {
+       emake INSTALL_ROOT="${D}" install || die "emake install failed."
+
+       prepalldocs || die "prepalldocs failed."
+}
+
+pkg_preinst() {
+       use gnome && gnome2_gconf_savelist
+}
+
+pkg_postinst() {
+       use gnome && gnome2_gconf_install
+       use kde || use kde3 && kde4-base_pkg_postinst
+}
+
+pkg_postrm() {
+       use kde || use kde3 && kde4-base_pkg_postrm
+}