From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- app-misc/hachoir-metadata/Manifest | 1 + .../hachoir-metadata-1.3.3-r1.ebuild | 73 ++++++++++++++++++++++ app-misc/hachoir-metadata/metadata.xml | 13 ++++ 3 files changed, 87 insertions(+) create mode 100644 app-misc/hachoir-metadata/Manifest create mode 100644 app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild create mode 100644 app-misc/hachoir-metadata/metadata.xml (limited to 'app-misc/hachoir-metadata') diff --git a/app-misc/hachoir-metadata/Manifest b/app-misc/hachoir-metadata/Manifest new file mode 100644 index 000000000000..701b028cb438 --- /dev/null +++ b/app-misc/hachoir-metadata/Manifest @@ -0,0 +1 @@ +DIST hachoir-metadata-1.3.3.tar.gz 52304 SHA256 ec403f13a44e2cf3d26001f8f440cdc4329a316a4c971035944bfadacc90eb3c SHA512 f0958e1bb6fbeca56caa31a8574da2f64df969cdb9de80e733b36dfae0e07c8f0fbecc53f801a359f7d16ac1a3b3e0605b7c6a3bd6da3c09a3cf2c971bf8750a WHIRLPOOL 8ce755703c74005e7d355ca7a60e22a69f8d19b9bb66e540191b7b4d547fb6b54ce9db723fefc3f79941870b6621b9e9c7b5ace29f3995c68381da42ace1feff 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..f5f6ff8b871b --- /dev/null +++ b/app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Program to extract metadata using Hachoir library" +HOMEPAGE="http://bitbucket.org/haypo/hachoir/wiki/hachoir-metadata http://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 kde 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 ) + kde? ( kde-apps/konqueror ) + 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 + + if use kde; then + dobin kde/hachoir-metadata-kde + insinto /usr/share/apps/konqueror/servicemenus + doins kde/hachoir.desktop + fi + + if ! use gtk; then + rm "${ED}usr/bin/hachoir-metadata-gtk"* || die + 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..aedfa7dcf95e --- /dev/null +++ b/app-misc/hachoir-metadata/metadata.xml @@ -0,0 +1,13 @@ + + + + + maintainer-needed@gentoo.org + + tool to extract metadata from multimedia files (sound, video, archives, + etc.) + + hachoir-metadata + haypo/hachoir + + -- cgit v1.2.3-65-gdbad