Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/lrslib/
Date: Sat, 06 Nov 2021 01:01:32
Message-Id: 1636160410.ebbc960f2696ed482e68f1839192af91bba65d22.mjo@gentoo
1 commit: ebbc960f2696ed482e68f1839192af91bba65d22
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 6 00:56:27 2021 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 6 01:00:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebbc960f
7
8 sci-libs/lrslib: drop to ~x86 and remove old lrslib-062.ebuild.
9
10 The current "stable" version of lrslib on x86, v062, doesn't actually
11 build because it's incompatible with newer GCCs. But its replacement
12 has some issues (bug 771675) on some 32-bit systems. This commit
13 removes the existing x86 stable version 062 (usually a no-no), and
14 closes the x86 stabilization request for v071.
15
16 The end result is that this package is now ~x86 only, but we've
17 replaced a version that will never build on x86 with one that might
18 build sometimes. Running a `git grep lrslib` shows that this should
19 not affect any consumers.
20
21 Bug: https://bugs.gentoo.org/771675
22 Closes: https://bugs.gentoo.org/819555
23 Package-Manager: Portage-3.0.28, Repoman-3.0.3
24 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
25
26 sci-libs/lrslib/Manifest | 1 -
27 sci-libs/lrslib/lrslib-062.ebuild | 50 ---------------------------------------
28 2 files changed, 51 deletions(-)
29
30 diff --git a/sci-libs/lrslib/Manifest b/sci-libs/lrslib/Manifest
31 index 187a96f0c72..65ee490c903 100644
32 --- a/sci-libs/lrslib/Manifest
33 +++ b/sci-libs/lrslib/Manifest
34 @@ -1,2 +1 @@
35 -DIST lrslib-062.tar.gz 292745 BLAKE2B 1a2c0e264d590c38d83ee35616b1ec36d8a093b5c7f08179019261d8b321d5b95d8889ca6555ae69853f919d6d66358a865a8a2002516dfd560bec6658f3913d SHA512 1d644a7798580457ff266730f42f6fac317ec8cdf2509ad6028e7a838e5c4c948bd0f9499b840c227bad4269f7144ff72b87fe3a19bdb9ad0925ebe4a7bc4f9f
36 DIST lrslib-071b.tar.gz 466789 BLAKE2B 57a8abd9d203b1cdc62d6848afa77aa6912d9d720a0dedfbe72ca602ad8ba36d13160f7da7d719e3fa140ba2cb6432d20590ae9ea9b1f66bc2e24c393d9fe1bd SHA512 feafc5726e66c977e917f0b59ae950cdb98dbd84639885b487930aab2a89a7f067a3f39c381acc3eae7206b91255e1befa5551488d8816afc0f8054d801eb539
37
38 diff --git a/sci-libs/lrslib/lrslib-062.ebuild b/sci-libs/lrslib/lrslib-062.ebuild
39 deleted file mode 100644
40 index d3ae098fd11..00000000000
41 --- a/sci-libs/lrslib/lrslib-062.ebuild
42 +++ /dev/null
43 @@ -1,50 +0,0 @@
44 -# Copyright 1999-2021 Gentoo Authors
45 -# Distributed under the terms of the GNU General Public License v2
46 -
47 -EAPI=6
48 -
49 -inherit toolchain-funcs
50 -
51 -DESCRIPTION="Self-contained C implementation of the reverse search algorithm"
52 -HOMEPAGE="http://cgm.cs.mcgill.ca/~avis/C/lrs.html"
53 -SRC_URI="http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/${P}.tar.gz"
54 -
55 -LICENSE="GPL-2"
56 -SLOT="0"
57 -KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
58 -IUSE="gmp mpi"
59 -
60 -RDEPEND="gmp? ( dev-libs/gmp:0=
61 - mpi? ( virtual/mpi ) )"
62 -DEPEND="${RDEPEND}"
63 -
64 -src_prepare() {
65 - default
66 - tc-export CC
67 - sed -e "s/gcc/$(tc-getCC)/g" \
68 - -e "s/g++/$(tc-getCXX)/g" \
69 - -e "s/-O3/${CFLAGS}/g" \
70 - -e 's/$(CC) -shared/$(CC) $(LDFLAGS) -shared/' \
71 - -e "s,/usr/local,${EPREFIX}/usr,g" \
72 - -e "s,/lib,/$(get_libdir),g" \
73 - -i makefile || die
74 -}
75 -
76 -src_compile() {
77 - if use gmp ; then
78 - emake
79 - emake all-shared
80 - use mpi && emake mplrs
81 - else
82 - emake allmp
83 - fi
84 -}
85 -
86 -src_install() {
87 - emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install-common
88 - if use gmp; then
89 - emake DESTDIR="${D}" install-shared prefix="${EPREFIX}/usr"
90 - use mpi && dobin mplrs
91 - fi
92 - dodoc README
93 -}