summaryrefslogtreecommitdiff
path: root/app-misc/hachoir-metadata
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/hachoir-metadata
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/hachoir-metadata')
-rw-r--r--app-misc/hachoir-metadata/Manifest5
-rw-r--r--app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild61
-rw-r--r--app-misc/hachoir-metadata/metadata.xml11
3 files changed, 77 insertions, 0 deletions
diff --git a/app-misc/hachoir-metadata/Manifest b/app-misc/hachoir-metadata/Manifest
new file mode 100644
index 000000000000..8978763ababc
--- /dev/null
+++ b/app-misc/hachoir-metadata/Manifest
@@ -0,0 +1,5 @@
+DIST hachoir-metadata-1.3.3.tar.gz 52304 SHA256 ec403f13a44e2cf3d26001f8f440cdc4329a316a4c971035944bfadacc90eb3c SHA512 f0958e1bb6fbeca56caa31a8574da2f64df969cdb9de80e733b36dfae0e07c8f0fbecc53f801a359f7d16ac1a3b3e0605b7c6a3bd6da3c09a3cf2c971bf8750a WHIRLPOOL 8ce755703c74005e7d355ca7a60e22a69f8d19b9bb66e540191b7b4d547fb6b54ce9db723fefc3f79941870b6621b9e9c7b5ace29f3995c68381da42ace1feff
+EBUILD hachoir-metadata-1.3.3-r1.ebuild 1505 SHA256 cabc50ef0bd921abde7fe9fe9bf68cab959ee3c1b94378747cfe77526d1095c8 SHA512 a5ec6af0f65fb43962b7862439e571ff98978a9720c0c9be9240a229726b5f276a954d0a576aa2536518a359727da75ac71d7c079eb9772ae77f477156412079 WHIRLPOOL d8f7b671315da0af728d1dcd92ccedc31250849eb38e8fa3f2ea3e2cf1f428ddab090e15b87604657b1964f255143103be453af9132943cda144d4be0fbfd6b2
+MISC ChangeLog 3110 SHA256 5a30bc292e65cdd2bb498ddb296b40564b5bd2ccee97cee0daf6d6801b355985 SHA512 1f230d6fe0ee26ec5178deced3f8cdde2a5a2c9e579ae91792aa058907b43ab2db7ed976a1005b93828ee56679f5fead269de4345d06284e45f7a98c03800673 WHIRLPOOL 159cdba90c6d464ca2519318c41dd1b1328c712dc6df372c8fb132683366ad6ca97e7c5ce01fc3e1be886b03587fdb0055141986faa9be05b73834ae11b64d8b
+MISC ChangeLog-2015 2089 SHA256 f95c46efc582f5ef58aadd6e183273e92906fa26bfa773f89ad50dfb56162dde SHA512 458bc08726e25cf5cd517894df52762a2c069744da9d1805446e783b6652d019ba631e6dc010c283516fe7e1d40be5ddb0c7397dff5b6c0b918f75f0423b90d9 WHIRLPOOL c3584331112c09ec8d667df8992d7bf0c6ebf7f5ca4e2c129095e385c8e65f873c74c0f58f963306ecf45da2f8e6ad0e60470c2f5152decd903287f5bdde8b26
+MISC metadata.xml 428 SHA256 32dbbe45e5c978c5cfed1a8c998a86fc5372455691fa20d2b5f82b9d2de71648 SHA512 c76d6bc6b172d7329562c87557d9695e5629a3ceafcc126f663b5af51af7f728a6f64dd875832af4acb2057ac63d23dc71526724a61395c3e34303da4177acd7 WHIRLPOOL 01c719322be150a84d747bd7856c54f108ff1f26b1d1e144b13467bc345138d166b5f9cec044ccc0bf775cfa173acfc470a1d27ae116df36c95cb97673edf14c
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
new file mode 100644
index 000000000000..7d83e7bd7178
--- /dev/null
+++ b/app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Program to extract metadata using Hachoir library"
+HOMEPAGE="https://bitbucket.org/haypo/hachoir/wiki/hachoir-metadata https://pypi.python.org/pypi/hachoir-metadata"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="gnome gtk qt4"
+
+RDEPEND="
+ >=dev-python/hachoir-core-1.3[${PYTHON_USEDEP}]
+ >=dev-python/hachoir-parser-1.3[${PYTHON_USEDEP}]
+ gtk? ( >=dev-python/pygtk-2.0[${PYTHON_USEDEP}] )
+ gnome? ( gnome-base/nautilus gnome-extra/zenity )
+ qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+ if ! use gtk; then
+ sed -i -e '/SCRIPTS/s:, "hachoir-metadata-gtk"::' setup.py || die
+ fi
+
+ distutils-r1_python_prepare_all
+}
+
+python_configure_all() {
+ mydistutilsargs=( --setuptools )
+
+ use qt4 || mydistutilsargs+=( --disable-qt )
+}
+
+python_test() {
+ "${PYTHON}" test_doc.py || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ if use gnome; then
+ exeinto /usr/share/nautilus-scripts
+ doexe gnome/hachoir
+ fi
+}
+
+pkg_postinst() {
+ if use gnome; then
+ elog "To enable the nautilus script, symlink it with:"
+ elog " $ mkdir -p ~/.gnome2/nautilus-scripts"
+ elog " $ ln -s /usr/share/nautilus-scripts/hachoir ~/.gnome2/nautilus-script"
+ fi
+}
diff --git a/app-misc/hachoir-metadata/metadata.xml b/app-misc/hachoir-metadata/metadata.xml
new file mode 100644
index 000000000000..21dca811f4cb
--- /dev/null
+++ b/app-misc/hachoir-metadata/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">tool to extract metadata from multimedia files (sound, video, archives,
+ etc.)</longdescription>
+ <upstream>
+ <remote-id type="pypi">hachoir-metadata</remote-id>
+ <remote-id type="bitbucket">haypo/hachoir</remote-id>
+ </upstream>
+</pkgmetadata>