diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/galib/galib-2.4.7-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/galib/galib-2.4.7-r1.ebuild')
-rw-r--r-- | sci-libs/galib/galib-2.4.7-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sci-libs/galib/galib-2.4.7-r1.ebuild b/sci-libs/galib/galib-2.4.7-r1.ebuild new file mode 100644 index 000000000000..5209af1c4c9d --- /dev/null +++ b/sci-libs/galib/galib-2.4.7-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +MY_PV="${PV//\./}" + +DESCRIPTION="Library for genetic algorithms in C++ programs" +HOMEPAGE="http://lancet.mit.edu/ga/" +SRC_URI="http://lancet.mit.edu/ga/dist/galib${MY_PV}.tgz" + +LICENSE="BSD examples? ( GPL-2 )" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +S="${WORKDIR}/${PN}${MY_PV}" + +PATCHES=( + "${FILESDIR}/${PN}-2.4.7-fix-buildsystem.patch" + "${FILESDIR}/${PN}-2.4.7-fix-c++14.patch" + "${FILESDIR}/${PN}-2.4.7-Wformat-security.patch" +) + +src_prepare() { + default + sed -e "s:/include:${EPREFIX}/usr/include:" \ + -e "s:/lib:${EPREFIX}/usr/$(get_libdir):" \ + -i makevars || die +} + +src_compile() { + emake \ + CXX="$(tc-getCXX)" \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" \ + lib + emake -C examples clean +} + +src_install() { + dodir /usr/$(get_libdir) + + use doc && HTML_DOCS+=( doc/. ) + if use examples; then + dodoc -r examples + find "${ED%/}/usr/share/doc/${PF}/examples" -iname 'makefile*' -delete || die + docompress -x /usr/share/doc/${PF}/examples + fi + + default +} |