diff options
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libusb/libusb-0.1.8.ebuild | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/dev-libs/libusb/libusb-0.1.8.ebuild b/dev-libs/libusb/libusb-0.1.8.ebuild index d1f3f30a5b84..1a5cbc13a6a1 100644 --- a/dev-libs/libusb/libusb-0.1.8.ebuild +++ b/dev-libs/libusb/libusb-0.1.8.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusb/libusb-0.1.8.ebuild,v 1.10 2004/09/27 09:08:29 liquidx Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusb/libusb-0.1.8.ebuild,v 1.11 2004/10/03 09:21:03 usata Exp $ inherit eutils @@ -14,23 +14,26 @@ KEYWORDS="x86 ~sparc ~ppc ~alpha ~amd64 ~ia64 ppc64 macos ppc-macos" IUSE="debug doc" DEPEND="sys-devel/libtool - !macos? ( !ppc-macos? ( doc? ( app-text/openjade - =app-text/docbook-sgml-dtd-3.1-r1 ) ) )" + doc? ( app-text/openjade + =app-text/docbook-sgml-dtd-3.1-r1 )" src_unpack(){ unpack ${A} # needed by libgphoto2, see bug #45889 cd ${S}; epatch ${FILESDIR}/libusb-0.1.8-amd64-fPIC.patch - # BUG on macos ARCH is ppc - [ "${ARCH}x" = "macosx" ] && \ - ( aclocal && autoconf && automake --add-missing ) + + if use ppc || use ppc-macos ; then + aclocal || die + autoconf || die + automake --add-missing || die + fi } src_compile() { local myconf # keep this otherwise libraries will not have .so extensions - [ "${ARCH}x" = "macosx" ] \ + ( use macos || use ppc-macos ) \ && glibtoolize --force \ || libtoolize --force |