-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 W dniu 06.11.2010 18:33, Thomas Kahle pisze: > Hi, > > I'm planning to move cddlib to the main tree. It is a dep of various > math things that I plan to move step by step. > > Any objections or anyone who can reproduce > http://bugs.gentoo.org/show_bug.cgi?id=230423 > > Cheers, > Thomas I would remove .la files and make static-libs optional. Ah, and remove that pkg_postinst msg ;) Cheers, Kacper -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iJwEAQECAAYFAkzVnwAACgkQIiMqcbOVdxQDyAQAjZR5Bm14pq9Wrl0spa4yyfFa 4HJeQkjQD3mtEkKgjfFSJu461qFmV9E7JO7IfrAjH14Qvha/xwDk4afW5I05AAXu Ta7SagtqjVE4Gd4zzoc185d3oINdGV61e2LhF6Yh7SO8mOLY2gHbBpHcwoqrj95r OXs6E2qjjHuB6ZE4ezU= =TU/z -----END PGP SIGNATURE-----
--- cddlib-094f.ebuild
+++ cddlib-094f.ebuild
@@ -2,6 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI=2
+
inherit eutils autotools
DESCRIPTION="C implementation of the Double Description Method of Motzkin et
al. "
@@ -12,22 +14,24 @@
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE=""
+IUSE="static-libs"
DEPEND=">=dev-libs/gmp-4.2.2"
RDEPEND="${DEPEND}"
-src_unpack(){
- unpack ${A}
- cd "${S}"
-
+src_prepare(){
epatch "${FILESDIR}/${P}-libtool.patch"
eautoreconf
}
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
src_install() {
- emake DESTDIR="${D}" install || die "Install failed"
- dodoc README
+ emake DESTDIR="${D}" install || die
+ find "${D}" -name '*.la' -exec rm -f '{}' +
+ dodoc AUTHORS ChangeLog README || die
}
pkg_postinst() {
cddlib-094f.patch.sig
Description: PGP signature
