1 |
commit: 47783e4f76eb8a0e0e71908df3fc976730452e4b |
2 |
Author: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 20:06:39 2016 +0000 |
4 |
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 20:06:39 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=47783e4f |
7 |
|
8 |
app-misc/hachoir-metadata: fix bug #557464 |
9 |
|
10 |
app-misc/hachoir-metadata/Manifest | 1 + |
11 |
.../hachoir-metadata-1.3.3-r1.ebuild | 69 ++++++++++++++++++++++ |
12 |
app-misc/hachoir-metadata/metadata.xml | 11 ++++ |
13 |
3 files changed, 81 insertions(+) |
14 |
|
15 |
diff --git a/app-misc/hachoir-metadata/Manifest b/app-misc/hachoir-metadata/Manifest |
16 |
new file mode 100644 |
17 |
index 0000000..701b028 |
18 |
--- /dev/null |
19 |
+++ b/app-misc/hachoir-metadata/Manifest |
20 |
@@ -0,0 +1 @@ |
21 |
+DIST hachoir-metadata-1.3.3.tar.gz 52304 SHA256 ec403f13a44e2cf3d26001f8f440cdc4329a316a4c971035944bfadacc90eb3c SHA512 f0958e1bb6fbeca56caa31a8574da2f64df969cdb9de80e733b36dfae0e07c8f0fbecc53f801a359f7d16ac1a3b3e0605b7c6a3bd6da3c09a3cf2c971bf8750a WHIRLPOOL 8ce755703c74005e7d355ca7a60e22a69f8d19b9bb66e540191b7b4d547fb6b54ce9db723fefc3f79941870b6621b9e9c7b5ace29f3995c68381da42ace1feff |
22 |
|
23 |
diff --git a/app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild b/app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild |
24 |
new file mode 100644 |
25 |
index 0000000..8bb1ec7 |
26 |
--- /dev/null |
27 |
+++ b/app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild |
28 |
@@ -0,0 +1,69 @@ |
29 |
+# Copyright 1999-2015 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+# $Id$ |
32 |
+ |
33 |
+EAPI=5 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python2_7 ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Program to extract metadata using Hachoir library" |
40 |
+HOMEPAGE="https://bitbucket.org/haypo/hachoir/wiki/hachoir-metadata https://pypi.python.org/pypi/hachoir-metadata" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~ppc ~x86" |
46 |
+IUSE="gnome gtk kde qt4" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-python/hachoir-core-1.3[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/hachoir-parser-1.3[${PYTHON_USEDEP}] |
51 |
+ gtk? ( >=dev-python/pygtk-2.0[${PYTHON_USEDEP}] ) |
52 |
+ gnome? ( gnome-base/nautilus gnome-extra/zenity ) |
53 |
+ kde? ( kde-apps/konqueror ) |
54 |
+ qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] )" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
57 |
+ |
58 |
+python_prepare_all() { |
59 |
+ if ! use gtk; then |
60 |
+ sed -i -e '/SCRIPTS/s:, "hachoir-metadata-gtk"::' setup.py || die |
61 |
+ fi |
62 |
+ |
63 |
+ distutils-r1_python_prepare_all |
64 |
+} |
65 |
+ |
66 |
+python_configure_all() { |
67 |
+ mydistutilsargs=( --setuptools ) |
68 |
+ |
69 |
+ use qt4 || mydistutilsargs+=( --disable-qt ) |
70 |
+} |
71 |
+ |
72 |
+python_test() { |
73 |
+ "${PYTHON}" test_doc.py || die "Tests fail with ${EPYTHON}" |
74 |
+} |
75 |
+ |
76 |
+python_install_all() { |
77 |
+ distutils-r1_python_install_all |
78 |
+ |
79 |
+ if use gnome; then |
80 |
+ exeinto /usr/share/nautilus-scripts |
81 |
+ doexe gnome/hachoir |
82 |
+ fi |
83 |
+ |
84 |
+ if use kde; then |
85 |
+ dobin kde/hachoir-metadata-kde |
86 |
+ insinto /usr/share/apps/konqueror/servicemenus |
87 |
+ doins kde/hachoir.desktop |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ if use gnome; then |
93 |
+ elog "To enable the nautilus script, symlink it with:" |
94 |
+ elog " $ mkdir -p ~/.gnome2/nautilus-scripts" |
95 |
+ elog " $ ln -s /usr/share/nautilus-scripts/hachoir ~/.gnome2/nautilus-script" |
96 |
+ fi |
97 |
+} |
98 |
|
99 |
diff --git a/app-misc/hachoir-metadata/metadata.xml b/app-misc/hachoir-metadata/metadata.xml |
100 |
new file mode 100644 |
101 |
index 0000000..21dca81 |
102 |
--- /dev/null |
103 |
+++ b/app-misc/hachoir-metadata/metadata.xml |
104 |
@@ -0,0 +1,11 @@ |
105 |
+<?xml version="1.0" encoding="UTF-8"?> |
106 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
107 |
+<pkgmetadata> |
108 |
+ <!-- maintainer-needed --> |
109 |
+ <longdescription lang="en">tool to extract metadata from multimedia files (sound, video, archives, |
110 |
+ etc.)</longdescription> |
111 |
+ <upstream> |
112 |
+ <remote-id type="pypi">hachoir-metadata</remote-id> |
113 |
+ <remote-id type="bitbucket">haypo/hachoir</remote-id> |
114 |
+ </upstream> |
115 |
+</pkgmetadata> |