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/lrslib/lrslib-062.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/lrslib/lrslib-062.ebuild')
-rw-r--r-- | sci-libs/lrslib/lrslib-062.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sci-libs/lrslib/lrslib-062.ebuild b/sci-libs/lrslib/lrslib-062.ebuild new file mode 100644 index 000000000000..1df9b43c7019 --- /dev/null +++ b/sci-libs/lrslib/lrslib-062.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs eutils + +DESCRIPTION="Self-contained C implementation of the reverse search algorithm" +HOMEPAGE="http://cgm.cs.mcgill.ca/~avis/C/lrs.html" +SRC_URI="http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="gmp mpi" + +RDEPEND="gmp? ( dev-libs/gmp:0= + mpi? ( virtual/mpi ) )" +DEPEND="${RDEPEND}" + +src_prepare(){ + default + tc-export CC + sed -e "s/gcc/$(tc-getCC)/g" \ + -e "s/g++/$(tc-getCXX)/g" \ + -e "s/-O3/${CFLAGS}/g" \ + -e 's/$(CC) -shared/$(CC) $(LDFLAGS) -shared/' \ + -e "s,/usr/local,${EPREFIX}/usr,g" \ + -e "s,/lib,/$(get_libdir),g" \ + -i makefile || die +} + +src_compile () { + if use gmp ; then + emake + emake all-shared + use mpi && emake mplrs + else + emake allmp + fi +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install-common + if use gmp; then + emake DESTDIR="${D}" install-shared prefix="${EPREFIX}/usr" + use mpi && dobin mplrs + fi + dodoc README +} |