An ebuild for the linear program (LP) solver SoPlex. Reproducible: Always
Created attachment 386140 [details] soplex-2.0.0.ebuild
Created attachment 386142 [details, diff] files/2.0.0-sharedlib.patch
Comment on attachment 386140 [details] soplex-2.0.0.ebuild >EAPI=4 Why not 5? >DESCRIPTION="SoPlex is a Linear Programming (LP) solver based on the revised >simplex algorithm." That should be a single line. >HOMEPAGE="http://soplex.zib.de/" >SRC_URI="http://soplex.zib.de/download/release/soplex-2.0.0.tgz" http://soplex.zib.de/download/release/${P}.tgz or indeed ${HOMEPAGE}/download/release/${P}.tgz >LICENSE="ZIB-ACADEMIC-LICENSE" That's a new license. It should be attached to this bug report, and possibly reviewed on the gentoo-dev@ mailing list. >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="gmp static test zlib" If you have to have USE=static, then: >RDEPEND="gmp? ( dev-libs/gmp ) > zlib? ( sys-libs/zlib )" these should be dev-libs/gmp[static-libs] and sys-libs/zlib[static-libs]. >DEPEND="${RDEPEND} > test? ( <dev-lang/python-3 )" You should use python-r1.eclass for that and make sure the test suite uses the correct executable. At the very least dev-lang/python:2.7 - use a SLOT instead of specifying the version. >src_prepare() { > epatch ${FILESDIR}/2.0.0-sharedlib.patch ${FILESDIR} should be quoted. >src_compile() { > local myopts > if ! use gmp; then > myopts="${myopts} GMP=false" > fi > if ! use zlib; then > myopts="${myopts} ZLIB=false" > fi > make ${myopts} > > if use static; then > myopts="${myopts} SHARED=false" > make ${myopts} > fi make -> emake, and also emake \ $(usex gmp '' GMP=false) \ $(usex zlib '' ZLIB=false) \ $(usex static '' SHARED=false) is a lot neater and saves you from defining a variable. >src_install() { > newbin bin/soplex-${PV} soplex > > make INSTALLDIR="${D}/usr" installheader make -> emake > dolib.so lib/libsoplex-${PV}.so > dolib.so lib/libsoplex.so > > if use static; then > dolib.a lib/libsoplex-${PV}.a > dolib.a lib/libsoplex.a Oh, so now USE=static turns out to be equal to USE=static-libs? It shouldn't be called USE=static, then.
Would you like to send us a pull request for the science overlay via github?
Created attachment 386148 [details] ZIB-ACADEMIC-LICENSE The ZIB ACADEMIC LICENSE from http://scip.zib.de/academic.txt
Created attachment 386158 [details] soplex-2.0.0.ebuild Updated ebuild that addresses all of the comments above.
Created attachment 386168 [details, diff] files/2.0.0-sharedlib.patch