diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-10-03 09:21:03 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-10-03 09:21:03 +0000 |
commit | 7c901c95cb8965a96c33489cd8e1ba6a7032a67d (patch) | |
tree | 87adbc772de5d5f4b8011efef6889d4464d6f77d /dev-libs | |
parent | remove trailing whitespace (Manifest recommit) (diff) | |
download | gentoo-2-7c901c95cb8965a96c33489cd8e1ba6a7032a67d.tar.gz gentoo-2-7c901c95cb8965a96c33489cd8e1ba6a7032a67d.tar.bz2 gentoo-2-7c901c95cb8965a96c33489cd8e1ba6a7032a67d.zip |
ppc-macos fix
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 |