Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/coinor-symphony/
Date: Sat, 27 Feb 2021 03:08:23
Message-Id: 1614395195.f1a3595a143380ff2ef6f9c54f4b5f4a161b138d.sam@gentoo
1 commit: f1a3595a143380ff2ef6f9c54f4b5f4a161b138d
2 Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 26 12:20:17 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 03:06:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1a3595a
7
8 sci-libs/coinor-symphony: bump to 5.6.17, ported to EAPI 7
9
10 Has reworked old workarounds and added doc deps.
11
12 USE=examples removed, now installed unconditionally (small files).
13 USE=doc now generates the pdf manual.
14 USE=static-libs removed.
15
16 Fixed directory change for USE=doc (bug #608114).
17
18 Closes: https://bugs.gentoo.org/608114
19 Package-Manager: Portage-3.0.15, Repoman-3.0.2
20 Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
21 Signed-off-by: Sam James <sam <AT> gentoo.org>
22
23 sci-libs/coinor-symphony/Manifest | 1 +
24 .../coinor-symphony/coinor-symphony-5.6.17.ebuild | 71 ++++++++++++++++++++++
25 2 files changed, 72 insertions(+)
26
27 diff --git a/sci-libs/coinor-symphony/Manifest b/sci-libs/coinor-symphony/Manifest
28 index 9213d2becad..0dbf8ac5248 100644
29 --- a/sci-libs/coinor-symphony/Manifest
30 +++ b/sci-libs/coinor-symphony/Manifest
31 @@ -1 +1,2 @@
32 DIST SYMPHONY-5.5.7.tgz 7628863 BLAKE2B 8578cc341a2114642911bff68cf260dd6c5974b70ef3deebf9f7ea51f580be809dd1224a18dbd0744e9acf3b1ce9d5bdf90a1e97b53bcd01529978a816e26c6c SHA512 a3ce66b0b1373c58024ce6840277423a1a3684af8e3179a777fbb33a8d266849ae1cde694a527c3776ff67ce0a5ae3c2bfe0dc29f4e0b3ca51ddc2b299eefb24
33 +DIST coinor-symphony-5.6.17.tar.gz 1848015 BLAKE2B 0e1222f51809fb836530000348351d0e2a0928ec898a11ec21d2b0cad88a2ee4a635bc91a6d92607af67cf7d44a7187683528dd2a37b288fee1b2d947058d7b1 SHA512 eb0022184b1d0325729bb8f5390093ff1cfdfc87edf1dfdf20e62f07830c69604ec373b69c6de13755611a8e96f79ee8d1009efde0a35c9e7c0fab6652375ff7
34
35 diff --git a/sci-libs/coinor-symphony/coinor-symphony-5.6.17.ebuild b/sci-libs/coinor-symphony/coinor-symphony-5.6.17.ebuild
36 new file mode 100644
37 index 00000000000..afda01465ac
38 --- /dev/null
39 +++ b/sci-libs/coinor-symphony/coinor-symphony-5.6.17.ebuild
40 @@ -0,0 +1,71 @@
41 +# Copyright 1999-2021 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=7
45 +
46 +DESCRIPTION="COIN-OR solver for mixed-integer linear programs"
47 +HOMEPAGE="https://projects.coin-or.org/SYMPHONY/"
48 +SRC_URI="https://github.com/coin-or/SYMPHONY/archive/releases/${PV}.tar.gz -> ${P}.tar.gz"
49 +S="${WORKDIR}/SYMPHONY-releases-${PV}/SYMPHONY"
50 +
51 +LICENSE="EPL-1.0"
52 +SLOT="0/3"
53 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
54 +IUSE="doc glpk test"
55 +RESTRICT="!test? ( test )"
56 +
57 +RDEPEND="
58 + sci-libs/coinor-cgl:=
59 + sci-libs/coinor-clp:=
60 + sci-libs/coinor-dylp:=
61 + sci-libs/coinor-osi:=
62 + sci-libs/coinor-utils:=
63 + sci-libs/coinor-vol:=
64 + glpk? ( sci-mathematics/glpk:= )"
65 +DEPEND="${RDEPEND}"
66 +BDEPEND="
67 + virtual/pkgconfig
68 + doc? (
69 + dev-tex/latex2html
70 + dev-texlive/texlive-latexextra
71 + virtual/latex-base
72 + )
73 + test? ( sci-libs/coinor-sample )"
74 +
75 +src_prepare() {
76 + default
77 + # Prevent unneeded call to pkg-config that needs ${ED}'s in path.
78 + sed -i '/--libs.*addlibs.txt/d' Makefile.in || die
79 +
80 + # Fix manual color errors.
81 + sed -i 's/usenames/usenames,dvipsnames/' Doc/man.tex || die
82 +}
83 +
84 +src_configure() {
85 + econf $(usex glpk --with-glpk-lib=-lglpk --without-glpk)
86 +}
87 +
88 +src_compile() {
89 + default
90 + if use doc; then
91 + pushd Doc && pdflatex Walkthrough && pdflatex man && popd || die
92 + fi
93 +}
94 +
95 +src_test() {
96 + # Needed given "make check" is a noop and it skips the working one.
97 + emake test
98 +}
99 +
100 +src_install() {
101 + default
102 + use doc && dodoc Doc/*.pdf
103 +
104 + # Other coinor-* use lowercase e, stay in-line with them.
105 + docinto examples
106 + dodoc -r Examples/*
107 +
108 + # Duplicate or irrelevant files.
109 + rm -r "${ED}"/usr/share/coin/doc || die
110 + find "${ED}" -name '*.la' -delete || die
111 +}