eject dep
authorJoe McCann <joem@gentoo.org>
Tue, 29 Nov 2005 04:58:11 +0000 (04:58 +0000)
committerJoe McCann <joem@gentoo.org>
Tue, 29 Nov 2005 04:58:11 +0000 (04:58 +0000)
Package-Manager: portage-2.0.53_rc7

media-libs/libgpod/ChangeLog
media-libs/libgpod/Manifest
media-libs/libgpod/libgpod-0.2.0.ebuild

index 6065906b8c99cc4276c70c7766e218333e86979e..8e4d137dfe9c777fe9e392f9431405a46d8e1f86 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for media-libs/libgpod
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libgpod/ChangeLog,v 1.1 2005/11/29 03:10:22 joem Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libgpod/ChangeLog,v 1.2 2005/11/29 04:58:11 joem Exp $
+
+  29 Nov 2005; Joe McCann <joem@gentoo.org> libgpod-0.2.0.ebuild:
+  Add sys-apps/eject app thanks to Spider
 
 *libgpod-0.2.0 (29 Nov 2005)
 
index 09774844e66f9d01bf8f7a0a9cbeff93de03d46b..c15f32cabcb4ebb2d4e28514b8f92d801b35c2a6 100644 (file)
@@ -1,4 +1,4 @@
-MD5 784d018e09a5cbe7bafc1249a21f7380 ChangeLog 381
+MD5 54ff1cef0e50c4f287c9b0df26e65058 ChangeLog 490
 MD5 f263da0a6f7b7b2e32a4031f225b0931 files/digest-libgpod-0.2.0 65
-MD5 3d64bd5b8380ad50efcdf1f3c6476897 libgpod-0.2.0.ebuild 883
+MD5 02a8ec4013aeb130d80de858dfa895b9 libgpod-0.2.0.ebuild 1324
 MD5 263e238ad2d029ebbee2e5ac213942fe metadata.xml 417
index 5273b9d73e699065cf354af6dada176ec0b11c04..792b23e217ef41d52c4218c3af7cc7680403f938 100644 (file)
@@ -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"
 }