diff options
Diffstat (limited to 'media-libs/libgpod/libgpod-0.2.0.ebuild')
-rw-r--r-- | media-libs/libgpod/libgpod-0.2.0.ebuild | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/media-libs/libgpod/libgpod-0.2.0.ebuild b/media-libs/libgpod/libgpod-0.2.0.ebuild index 5273b9d73e69..792b23e217ef 100644 --- a/media-libs/libgpod/libgpod-0.2.0.ebuild +++ b/media-libs/libgpod/libgpod-0.2.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libgpod/libgpod-0.2.0.ebuild,v 1.1 2005/11/29 03:10:22 joem Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libgpod/libgpod-0.2.0.ebuild,v 1.2 2005/11/29 04:58:11 joem Exp $ DESCRIPTION="Shared library to access the contents of an iPod" HOMEPAGE="http://www.gtkpod.org/libgpod.html" @@ -15,14 +15,36 @@ RDEPEND=">=dev-libs/glib-2.4 gtk? ( >=x11-libs/gtk+-2 ) hal? ( >=sys-apps/dbus-0.5.2 >=sys-apps/hal-0.5 - >=sys-apps/pmount-0.9.6 )" + >=sys-apps/pmount-0.9.6 ) + sys-apps/eject" DEPEND="${RDEPEND} >=dev-util/intltool-0.2.9" +pkg_setup() { + local myconf="" + if use hal ; then + myconf="${myconf} --with-eject-comand=/usr/bin/eject \ + --with-unmount-command=/usr/bin/pmount" + else + myconf="${myconf} --with-eject-command=/usr/bin/eject \ + --with-unmount-command=/bin/umount" + fi + +} src_compile() { + + local myconf="" + if use hal ; then + myconf="${myconf} --with-eject-comand=/usr/bin/eject \ + --with-unmount-command=/usr/bin/pumount" + else + myconf="${myconf} + --with-eject-command=/usr/bin/eject \ + --with-unmount-command=/bin/umount" + fi + econf \ - $(use_with hal eject-command /usr/bin/eject) \ - $(use_with hal unmount-command /usr/bin/pumount) \ + ${myconf} \ || die "configure failed" emake || die "make failed" } |