diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-04 21:14:48 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-04 21:14:48 +0000 |
commit | 2997df5d95cb64694ec91d50c93407e92c68e2a8 (patch) | |
tree | 4cc7277d0f8e23337b953de5f5b0a374ca2366e5 /sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild | |
parent | 0a18aff6704a42e6affa21ec92064d29fc7f8646 (diff) |
gentoo auto-resync : 04:02:2023 - 21:14:48
Diffstat (limited to 'sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild')
-rw-r--r-- | sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild b/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild new file mode 100644 index 000000000000..adb1c37d72e4 --- /dev/null +++ b/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Mixed Integer Linear Programming (MILP) solver" +HOMEPAGE="https://sourceforge.net/projects/lpsolve/" +SRC_URI="mirror://sourceforge/${PN}/lp_solve_${PV}_source.tar.gz" +S="${WORKDIR}"/lp_solve_$(ver_cut 1-2) + +LICENSE="LGPL-2.1" +SLOT="0/55" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +DEPEND="sci-libs/colamd" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-5.5.2.11-misc.patch +) + +src_prepare() { + default + + local actual_soname=$(grep -iEo -- "-soname,liblpsolve([A-z0-9]+)" lpsolve*/ccc | sed -e 's:-soname,liblpsolve::') + if [[ ${actual_soname} != ${SLOT##*/} ]] ; then + eerror "Actual SONAME: ${actual_soname}" + eerror "Expected SONAME: ${SLOT##*/}" + die "Expected SONAME not found! Please update the subslot in the ebuild!" + fi +} + +src_compile() { + tc-export AR CC RANLIB LD + + cd lpsolve55 || die + sh -x ccc || die + + rm bin/ux*/liblpsolve55.a || die + + cd ../lp_solve || die + sh -x ccc || die +} + +src_install() { + einstalldocs + + dobin lp_solve/bin/ux*/lp_solve + dolib.so lpsolve55/bin/ux*/liblpsolve55.so + + insinto /usr/include/lpsolve + doins *.h +} |