diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-03-26 21:04:56 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-03-26 21:04:56 +0000 |
commit | 32bac1ce7db67ebd4bf6805bd1abdac3194053b5 (patch) | |
tree | 7960f151aec54e35b5d2e30dec061032380a119d /app-misc | |
parent | Delete older ebuild. (diff) | |
download | gentoo-2-32bac1ce7db67ebd4bf6805bd1abdac3194053b5.tar.gz gentoo-2-32bac1ce7db67ebd4bf6805bd1abdac3194053b5.tar.bz2 gentoo-2-32bac1ce7db67ebd4bf6805bd1abdac3194053b5.zip |
Version bump. Set SUPPORT_PYTHON_ABIS.
(Portage version: 15841-svn/cvs/Linux x86_64)
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/hachoir-metadata/ChangeLog | 10 | ||||
-rw-r--r-- | app-misc/hachoir-metadata/hachoir-metadata-1.3.2.ebuild | 72 |
2 files changed, 80 insertions, 2 deletions
diff --git a/app-misc/hachoir-metadata/ChangeLog b/app-misc/hachoir-metadata/ChangeLog index 1cebdc5fd1b4..1d7cdb1d733f 100644 --- a/app-misc/hachoir-metadata/ChangeLog +++ b/app-misc/hachoir-metadata/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-misc/hachoir-metadata -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/hachoir-metadata/ChangeLog,v 1.5 2008/08/12 08:09:08 cedk Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/hachoir-metadata/ChangeLog,v 1.6 2010/03/26 21:04:56 arfrever Exp $ + +*hachoir-metadata-1.3.2 (26 Mar 2010) + + 26 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -hachoir-metadata-1.0.ebuild, +hachoir-metadata-1.3.2.ebuild: + Version bump. Set SUPPORT_PYTHON_ABIS. 12 Aug 2008; Cédric Krier <cedk@gentoo.org> hachoir-metadata-1.0.ebuild, hachoir-metadata-1.1.ebuild: diff --git a/app-misc/hachoir-metadata/hachoir-metadata-1.3.2.ebuild b/app-misc/hachoir-metadata/hachoir-metadata-1.3.2.ebuild new file mode 100644 index 000000000000..2385755fedcc --- /dev/null +++ b/app-misc/hachoir-metadata/hachoir-metadata-1.3.2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/hachoir-metadata/hachoir-metadata-1.3.2.ebuild,v 1.1 2010/03/26 21:04:56 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +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="http://pypi.python.org/packages/source/${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 + >=dev-python/hachoir-parser-1.3 + gtk? ( >=dev-python/pygtk-2.0 ) + gnome? ( gnome-base/nautilus gnome-extra/zenity ) + kde? ( kde-base/konqueror ) + qt4? ( dev-python/PyQt4 )" +DEPEND="${RDEPEND} + dev-python/setuptools" +RESTRICT_PYTHON_ABIS="3.*" + +DISTUTILS_GLOBAL_OPTIONS=("--setuptools") +PYTHON_MODNAME="${PN/-/_}" + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test_doc.py + } + python_execute_function testing +} + +src_install() { + distutils_src_install + + if use gnome; then + exeinto /usr/share/nautilus-scripts + doexe gnome/hachoir + fi + + if use kde; then + exeinto /usr/bin + doexe 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"* + fi + + if ! use qt4; then + rm "${ED}usr/bin/hachoir-metadata-qt"* + fi +} + +pkg_postinst() { + distutils_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 +} |