diff options
Diffstat (limited to 'sci-libs/galib/galib-2.4.5.ebuild')
-rw-r--r-- | sci-libs/galib/galib-2.4.5.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sci-libs/galib/galib-2.4.5.ebuild b/sci-libs/galib/galib-2.4.5.ebuild new file mode 100644 index 000000000000..d1a74d3b70ef --- /dev/null +++ b/sci-libs/galib/galib-2.4.5.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/galib/galib-2.4.5.ebuild,v 1.1 2004/12/28 20:22:26 ribosome Exp $ + +inherit eutils + +DESCRIPTION="library for using genetic algorithms in C++ programs" + +HOMEPAGE="http://lancet.mit.edu/ga/" +SRC_URI="ftp://lancet.mit.edu/pub/ga/galib245.tar.gz" +LICENSE="GAlib" +SLOT="0" +KEYWORDS="x86" +IUSE="" +DEPEND=">=sys-apps/sed-4" + +S=${WORKDIR}/galib245 + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-gcc3.3.patch + for file in examples/*.C ga/gaconfig.h; do + for thing in iostream fstream; do + sed -e "s:${thing}.h:${thing}:" -i ${file}; + done + done +} + +src_compile() { + make CXXFLAGS="${CXXFLAGS}" || die "make failed" +} + +src_install() { + dodir /usr/lib /usr/include + make LIB_DEST_DIR=${D}/usr/lib/ HDR_DEST_DIR=${D}/usr/include/ install || die + dohtml -r doc/* + dodoc RELEASE-NOTES README + cp -r examples ${D}/usr/share/doc/${PF}/ +} |