diff options
author | Sam James <sam@gentoo.org> | 2023-02-04 17:19:00 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-04 17:22:57 +0000 |
commit | 0ebebe508b9dffbd7bbc10155c2ddcee593960aa (patch) | |
tree | e7abf2b479c8fc370e66411dc4add8c09823b48a /sci-mathematics | |
parent | dev-python/ipython: Remove old (diff) | |
download | gentoo-0ebebe508b9dffbd7bbc10155c2ddcee593960aa.tar.gz gentoo-0ebebe508b9dffbd7bbc10155c2ddcee593960aa.tar.bz2 gentoo-0ebebe508b9dffbd7bbc10155c2ddcee593960aa.zip |
sci-mathematics/lpsolve: add subslot for new version
It broke ABI and I didn't realise, sorry!
Closes: https://bugs.gentoo.org/614866
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild (renamed from sci-mathematics/lpsolve/lpsolve-5.5.2.11-r1.ebuild) | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r1.ebuild b/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild index 3e8f059ed599..adb1c37d72e4 100644 --- a/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r1.ebuild +++ b/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild @@ -11,7 +11,7 @@ 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" +SLOT="0/55" KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" DEPEND="sci-libs/colamd" @@ -21,6 +21,17 @@ 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 |