diff options
author | Cédric Krier <cedk@gentoo.org> | 2007-07-14 13:25:47 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2007-07-14 13:25:47 +0000 |
commit | feae183f566cc8b56187cab5ba6626d2af526c10 (patch) | |
tree | a849996c95659457f152aced00d074017e070b44 /app-misc/hachoir-metadata/hachoir-metadata-1.0.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-feae183f566cc8b56187cab5ba6626d2af526c10.tar.gz gentoo-2-feae183f566cc8b56187cab5ba6626d2af526c10.tar.bz2 gentoo-2-feae183f566cc8b56187cab5ba6626d2af526c10.zip |
New ebuild for bug
(Portage version: 2.1.2.9)
Diffstat (limited to 'app-misc/hachoir-metadata/hachoir-metadata-1.0.ebuild')
-rw-r--r-- | app-misc/hachoir-metadata/hachoir-metadata-1.0.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-misc/hachoir-metadata/hachoir-metadata-1.0.ebuild b/app-misc/hachoir-metadata/hachoir-metadata-1.0.ebuild new file mode 100644 index 000000000000..d9ae9cbe4cba --- /dev/null +++ b/app-misc/hachoir-metadata/hachoir-metadata-1.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2007 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.0.ebuild,v 1.1 2007/07/14 13:25:47 cedk Exp $ + +NEED_PYTHON=2.4 + +inherit distutils + +DESCRIPTION="tool to extract metadata from multimedia files" +HOMEPAGE="http://hachoir.org/wiki/hachoir-metadata" +SRC_URI="http://cheeseshop.python.org/packages/source/h/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="gnome kde" + +DEPEND="" +RDEPEND=">=dev-python/hachoir-core-1.0.1 + >=dev-python/hachoir-parser-1.0 + gnome? ( gnome-base/nautilus gnome-extra/zenity ) + kde? ( kde-base/konqueror )" + +PYTHON_MODNAME="hachoir_metadata" + +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 +} + +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 +} |