diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-07-07 10:36:21 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-07-07 10:36:21 +0000 |
commit | ada9154a1bfc49549cdcb9bcd6602d1b06303de0 (patch) | |
tree | e97c825c8cc93404b29dbc447b9d1bc503efcd97 /sci-libs | |
parent | alpha/ia64 stable wrt #230643 (diff) | |
download | gentoo-2-ada9154a1bfc49549cdcb9bcd6602d1b06303de0.tar.gz gentoo-2-ada9154a1bfc49549cdcb9bcd6602d1b06303de0.tar.bz2 gentoo-2-ada9154a1bfc49549cdcb9bcd6602d1b06303de0.zip |
Version bumped and added doc, examples flags. Closing bug #230978
(Portage version: 2.1.4.4)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/galib/ChangeLog | 9 | ||||
-rw-r--r-- | sci-libs/galib/galib-2.4.7.ebuild | 56 |
2 files changed, 63 insertions, 2 deletions
diff --git a/sci-libs/galib/ChangeLog b/sci-libs/galib/ChangeLog index 666ee461bd2e..8078b710b089 100644 --- a/sci-libs/galib/ChangeLog +++ b/sci-libs/galib/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-libs/galib -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/galib/ChangeLog,v 1.7 2007/06/02 13:04:50 angelos Exp $ +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/galib/ChangeLog,v 1.8 2008/07/07 10:36:21 bicatali Exp $ + +*galib-2.4.7 (07 Jul 2008) + + 07 Jul 2008; Sébastien Fabbro <bicatali@gentoo.org> +galib-2.4.7.ebuild: + Version bumped and added doc, examples flags. Closing bug #230978 02 Jun 2007; Christoph Mende <angelos@gentoo.org> galib-2.4.6.ebuild: Added ~amd64 for bug 178262 diff --git a/sci-libs/galib/galib-2.4.7.ebuild b/sci-libs/galib/galib-2.4.7.ebuild new file mode 100644 index 000000000000..de284b823d1f --- /dev/null +++ b/sci-libs/galib/galib-2.4.7.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/galib/galib-2.4.7.ebuild,v 1.1 2008/07/07 10:36:21 bicatali Exp $ + +inherit multilib + +DESCRIPTION="C++ genetic algorithms library " + +MYPV="${PV//\./}" + +HOMEPAGE="http://lancet.mit.edu/ga/" +SRC_URI="http://lancet.mit.edu/ga/dist/galib${MYPV}.tgz" +LICENSE="GAlib" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" +DEPEND="" + +S="${WORKDIR}/galib${MYPV}" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i \ + -e 's:/include:/usr/include:' \ + -e "s:/lib:/usr/$(get_libdir):" \ + -e '/^CXX/d' \ + -e '/^CXXFLAGS/d' \ + -e '/^LD/d' \ + makevars || die "sed makevars failed" +} + +src_compile() { + emake lib || die "emake failed" +} + +src_install() { + dodir /usr/$(get_libdir) + emake DESTDIR="${D}" install || die "emake install failed" + dodoc RELEASE-NOTES README + if use doc; then + insinto /usr/share/doc/${PF} + doins -r doc || die "doc install failed" + fi + if use examples; then + insinto /usr/share/doc/${PF}/examples + cd examples + make clean + sed -i \ + -e '/^include/d' \ + -e '/^INC_DIRS/d' \ + -e '/^LIB_DIRS/d' \ + makefile || die "sed makefile failed" + doins -r * || die "examples install failed" + fi +} |