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/coinor-cgl/
Date: Fri, 08 May 2020 12:21:52
Message-Id: 1588940438.8a5725be549e222fa1ebf14b9e0624a6ddf87b30.mjo@gentoo
1 commit: 8a5725be549e222fa1ebf14b9e0624a6ddf87b30
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 7 17:13:39 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Fri May 8 12:20:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a5725be
7
8 sci-libs/coinor-cgl: new EAPI=7 version 0.60.3.
9
10 Standardish EAPI/version bump, documenting all of the coinor-*
11 weirdness that I'm now familiar with. I added a subslot 0/1
12 corresponding to the major soname component in, for example,
13 libCgl.so.1.10.3.
14
15 Package-Manager: Portage-2.3.89, Repoman-2.3.20
16 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
17
18 sci-libs/coinor-cgl/Manifest | 2 +-
19 sci-libs/coinor-cgl/coinor-cgl-0.58.6.ebuild | 68 -----------------------
20 sci-libs/coinor-cgl/coinor-cgl-0.60.3.ebuild | 81 ++++++++++++++++++++++++++++
21 3 files changed, 82 insertions(+), 69 deletions(-)
22
23 diff --git a/sci-libs/coinor-cgl/Manifest b/sci-libs/coinor-cgl/Manifest
24 index cadc72470a7..d3c44518e2e 100644
25 --- a/sci-libs/coinor-cgl/Manifest
26 +++ b/sci-libs/coinor-cgl/Manifest
27 @@ -1 +1 @@
28 -DIST Cgl-0.58.6.tgz 5331274 BLAKE2B 6bd7218b7e87a700b74be322ab0b74dbab81590b0b77361d48247fc1d113db9ab9b878af987e22885ed3c2fde2e7d8641cd4e3977d5c4787fe1dcec3e2e3ef37 SHA512 28fe2e570cb2ebfa3109ca53e5ebb7dd3a38e2ddcfda4d7a9a1d78d4784abe1b6ab79734e6cbcee48e21791fe8353658df47d11253b04366ccb66c3e566db585
29 +DIST coinor-cgl-0.60.3.tar.gz 1267590 BLAKE2B 54a215c98bc05c65d46b6c7a469e28f06d04372e257825122693f0953582c8f1be2ede91efccdd21635dc365671653f0321d314ac41d1da01b561c2173a42da4 SHA512 e34080b893cfe46f99ffee093235618679ed47b6bed9798ea2d0dc0678716d9b8d947a66f6a6b283fe41807eb323dfcb512ba39d8d73fda1efafad92c408be9d
30
31 diff --git a/sci-libs/coinor-cgl/coinor-cgl-0.58.6.ebuild b/sci-libs/coinor-cgl/coinor-cgl-0.58.6.ebuild
32 deleted file mode 100644
33 index 8b038be15c7..00000000000
34 --- a/sci-libs/coinor-cgl/coinor-cgl-0.58.6.ebuild
35 +++ /dev/null
36 @@ -1,68 +0,0 @@
37 -# Copyright 1999-2019 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=5
41 -
42 -inherit autotools-utils multilib
43 -
44 -MYPN=Cgl
45 -
46 -DESCRIPTION="COIN-OR cutting-plane generators library"
47 -HOMEPAGE="https://projects.coin-or.org/Cgl/"
48 -SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
49 -
50 -LICENSE="EPL-1.0"
51 -SLOT="0"
52 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
53 -IUSE="doc examples static-libs test"
54 -RESTRICT="!test? ( test )"
55 -
56 -RDEPEND="
57 - sci-libs/coinor-clp:=
58 - sci-libs/coinor-dylp:=
59 - sci-libs/coinor-osi:=
60 - sci-libs/coinor-utils:=
61 - sci-libs/coinor-vol:="
62 -DEPEND="${RDEPEND}
63 - virtual/pkgconfig
64 - doc? ( app-doc/doxygen[dot] )
65 - test? ( sci-libs/coinor-sample )"
66 -
67 -S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
68 -
69 -src_prepare() {
70 - # needed for the --with-coin-instdir
71 - dodir /usr
72 - sed -i \
73 - -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
74 - configure || die
75 - autotools-utils_src_prepare
76 -}
77 -
78 -src_configure() {
79 - local myeconfargs=(
80 - --enable-dependency-linking
81 - --with-coin-instdir="${ED}"/usr
82 - $(use_with doc dot)
83 - )
84 - autotools-utils_src_configure
85 -}
86 -
87 -src_compile() {
88 - autotools-utils_src_compile all $(usex doc doxydoc "")
89 -}
90 -
91 -src_test() {
92 - autotools-utils_src_test test
93 -}
94 -
95 -src_install() {
96 - use doc && HTML_DOC=("${BUILD_DIR}/doxydocs/html/")
97 - autotools-utils_src_install
98 - # already installed
99 - rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
100 - if use examples; then
101 - insinto /usr/share/doc/${PF}
102 - doins -r examples
103 - fi
104 -}
105
106 diff --git a/sci-libs/coinor-cgl/coinor-cgl-0.60.3.ebuild b/sci-libs/coinor-cgl/coinor-cgl-0.60.3.ebuild
107 new file mode 100644
108 index 00000000000..eba0819dcc2
109 --- /dev/null
110 +++ b/sci-libs/coinor-cgl/coinor-cgl-0.60.3.ebuild
111 @@ -0,0 +1,81 @@
112 +# Copyright 1999-2020 Gentoo Authors
113 +# Distributed under the terms of the GNU General Public License v2
114 +
115 +EAPI=7
116 +
117 +MY_PN=Cgl
118 +
119 +DESCRIPTION="COIN-OR cut-generation library"
120 +HOMEPAGE="https://projects.coin-or.org/Cgl/"
121 +SRC_URI="https://github.com/coin-or/${MY_PN}/archive/releases/${PV}.tar.gz
122 + -> ${P}.tar.gz"
123 +LICENSE="EPL-1.0"
124 +
125 +# major soname component
126 +SLOT="0/1"
127 +
128 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
129 +IUSE="doc examples static-libs test"
130 +RESTRICT="!test? ( test )"
131 +
132 +# Fortran is NOT needed, but the ./configure scripts for all of the CoinOR
133 +# packages contain a check for it. Gentoo bug 601648 and upstream issue,
134 +#
135 +# https://github.com/coin-or/CoinUtils/issues/132
136 +#
137 +BDEPEND="virtual/fortran
138 + virtual/pkgconfig
139 + doc? ( app-doc/doxygen[dot] )
140 + test? ( sci-libs/coinor-sample )"
141 +
142 +DEPEND="sci-libs/coinor-clp:=
143 + sci-libs/coinor-dylp:=
144 + sci-libs/coinor-osi:=
145 + sci-libs/coinor-utils:=
146 + sci-libs/coinor-vol:="
147 +RDEPEND="${DEPEND}"
148 +
149 +S="${WORKDIR}/${MY_PN}-releases-${PV}/${MY_PN}"
150 +
151 +src_prepare() {
152 + # Needed to make the --with-coin-instdir in src_configure happy.
153 + dodir /usr
154 +
155 + # They don't need to guess at this, but they do, and get it wrong...
156 + sed -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
157 + -i configure \
158 + || die "failed to fix the pkgconfig path in ${S}/configure"
159 +
160 + default
161 +}
162 +
163 +src_configure() {
164 + local myeconfargs=(
165 + --enable-dependency-linking
166 + --with-coin-instdir="${ED}/usr"
167 + $(use_with doc dot)
168 + )
169 +
170 + econf "${myeconfargs[@]}"
171 +}
172 +
173 +src_compile() {
174 + emake all $(usex doc doxydoc "")
175 +}
176 +
177 +src_test() {
178 + # NOT redundant! The build system has a "make check" target that does
179 + # nothing, so if you don't specify "test" here, you'll get a no-op.
180 + emake test
181 +}
182 +
183 +src_install() {
184 + use doc && HTML_DOC=("${BUILD_DIR}/doxydocs/html/")
185 +
186 + emake DESTDIR="${D}" install
187 +
188 + # Duplicate junk, and in the wrong location.
189 + rm -r "${ED}/usr/share/coin/doc/${MY_PN}" || die
190 +
191 + use examples && dodoc -r examples
192 +}