Few fixes and masking for move to stable
authorMarinus Schraal <foser@gentoo.org>
Fri, 8 Nov 2002 17:56:38 +0000 (17:56 +0000)
committerMarinus Schraal <foser@gentoo.org>
Fri, 8 Nov 2002 17:56:38 +0000 (17:56 +0000)
dev-libs/libxml2/ChangeLog
dev-libs/libxml2/libxml2-2.4.26.ebuild

index b5c6f9bf9becb5a8d51dca814241920206dfb1fa..9989660ffc6c83e7dd0f4236b44771347fe7b0d8 100644 (file)
@@ -1,11 +1,13 @@
 # ChangeLog for dev-libs/libxml2
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v 1.16 2002/10/27 14:06:53 foser Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v 1.17 2002/11/08 17:56:38 foser Exp $
 
 *libxml2-2.4.27 (27 Oct 2002)
 
-  27 Oct 2002; foser <foser@gentoo.org> libxml2-2.4.26.ebuild :
+  07 Nov 2002; foser <foser@gentoo.org> libxml2-2.4.26.ebuild :
+  Fixed the ebuild a bit. Now USE flags for deps.
 
+  27 Oct 2002; foser <foser@gentoo.org> libxml2-2.4.26.ebuild :
   Gnome 2.1 commit
 
 *libxml2-2.4.24 (06 Sep 2002)
index 58dd65d6a7dfcbad0932e6f1cf93b7ec4148e776..753bde7fedaccfb502428bab8938dccc477142d6 100644 (file)
@@ -1,28 +1,36 @@
 # Copyright 1999-2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.4.26.ebuild,v 1.1 2002/10/27 14:06:53 foser Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.4.26.ebuild,v 1.2 2002/11/08 17:56:38 foser Exp $
 
-inherit libtool gnome2 debug
+inherit libtool gnome2
 
+IUSE="zlib python readline"
 S=${WORKDIR}/${P}
 DESCRIPTION="Version 2 of the library to manipulate XML files"
 HOMEPAGE="http://www.gnome.org/"
 
-DEPEND=">=sys-libs/ncurses-5.2
-       >=sys-libs/readline-4.1
-       >=sys-libs/zlib-1.1.4" 
-
+DEPEND="zlib? ( sys-libs/zlib )
+       python? ( dev-lang/python )
+       readline? ( sys-libs/readline )"
+ 
 SLOT="2"
 LICENSE="MIT"
-KEYWORDS="x86 sparc sparc64 ppc alpha"
+KEYWORDS="~x86 ~sparc ~sparc64 ~ppc ~alpha"
 
 src_compile() {
        # Fix .la files of python site packages
        elibtoolize
 
-       econf --with-zlib  || die
-#      patch -p0 < ${FILESDIR}/Makefile-py.patch || die "no, patch failed"
-       make || die
+       local myconf
+
+       use zlib && myconf="--with-zlib" || myconf="--without-zlib"
+       use python && myconf="${myconf} --with-python" \
+               || myconf="${myconf} --without-python" 
+       use readline && myconf="${myconf} --with-readline" \
+               || myconf="${myconf} --without-readline"
+
+       econf ${myconf}  || die
+       emake || die
 }
 
 src_install() {