summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS├ębastien Fabbro <bicatali@gentoo.org>2017-07-30 00:41:43 +0000
committerS├ębastien Fabbro <bicatali@gentoo.org>2017-07-31 18:12:22 +0000
commit54a4656a8680ceec8131b16f339942ed3aa10701 (patch)
tree67b8a23fd23e565c8f6cca312ff41efe946b5559 /sci-libs
parentsci-libs/cddlib: version bump (diff)
downloadgentoo-54a4656a8680ceec8131b16f339942ed3aa10701.tar.gz
gentoo-54a4656a8680ceec8131b16f339942ed3aa10701.tar.bz2
gentoo-54a4656a8680ceec8131b16f339942ed3aa10701.zip
sci-libs/lrslib: version bump
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/lrslib/Manifest1
-rw-r--r--sci-libs/lrslib/lrslib-062.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/sci-libs/lrslib/Manifest b/sci-libs/lrslib/Manifest
index ac64bbeb173..4e603582478 100644
--- a/sci-libs/lrslib/Manifest
+++ b/sci-libs/lrslib/Manifest
@@ -1,2 +1,3 @@
DIST lrslib-042c.tar.gz 168765 SHA256 53f99b5271397bb5f317c96fa365edc1ac71fa7cba0295c8bd79e0882f5c3a4a SHA512 a5fdd65b2c4e4cadd5fb9679e0e94ddc6b3564cdb9bdfcb7304351fec943527d2dccf117148d8d418ad8bd4577c9f69dabd6ca07107c1c1555c8c6d17f38fa60 WHIRLPOOL 4c3c1d5a72f8ac91e3d6698a8409578f5c0a940562704adea6631e5f9fb738a24414806a4d4b3aedf4e32de49a8c09ec74058baef61e121ce54db7ef5d2f5c01
DIST lrslib-051.tar.gz 179396 SHA256 500893df61631944bac14a76c6e13fc08e6e729727443fa5480b2510de0db635 SHA512 65e4752ae75f06bccb74b0e12e0b03943654cba048d54dbcf93a36bea7f73b32826babe066d5fe20d3c6609548dc957063558633affe64d795c240c1fe748927 WHIRLPOOL 54877f0432fef43989b5d7591cef6692dbb555fb0ccb8a634b82eefb06a20d478bbb1a62b2ef241c8cda74328da29bcbcdcf8031640d1e0455a1e57bf839125e
+DIST lrslib-062.tar.gz 292745 SHA256 adf92f9c7e70c001340b9c28f414208d49c581df46b550f56ab9a360348e4f09 SHA512 1d644a7798580457ff266730f42f6fac317ec8cdf2509ad6028e7a838e5c4c948bd0f9499b840c227bad4269f7144ff72b87fe3a19bdb9ad0925ebe4a7bc4f9f WHIRLPOOL b1deb2df5f0dc73112e94c85789ef68056c6f62de2a6681f28efde65b4cec1c3d20fa93943fbdb70d458d706872ef04744ba8a1f322a33cd14c7ac570b259037
diff --git a/sci-libs/lrslib/lrslib-062.ebuild b/sci-libs/lrslib/lrslib-062.ebuild
new file mode 100644
index 00000000000..05e16755b17
--- /dev/null
+++ b/sci-libs/lrslib/lrslib-062.ebuild
@@ -0,0 +1,51 @@
+# 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}" install-common
+ if use gmp; then
+ emake DESTDIR="${D}" install-shared prefix="${EPREFIX}"
+ use mpi && dobin mplrs
+ fi
+ dodoc README
+}