diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
commit | d99093fb4bb5652015c06274d64083daa2439e4f (patch) | |
tree | cf61513204d97974179580065e85df5c8009087c /sci-libs/coinor-symphony/coinor-symphony-5.6.17.ebuild | |
parent | 463397cf1e064185110fe57c568d73f99a06f5d1 (diff) |
gentoo resync : 03.03.2021
Diffstat (limited to 'sci-libs/coinor-symphony/coinor-symphony-5.6.17.ebuild')
-rw-r--r-- | sci-libs/coinor-symphony/coinor-symphony-5.6.17.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/sci-libs/coinor-symphony/coinor-symphony-5.6.17.ebuild b/sci-libs/coinor-symphony/coinor-symphony-5.6.17.ebuild new file mode 100644 index 000000000000..2d7ceecd23b2 --- /dev/null +++ b/sci-libs/coinor-symphony/coinor-symphony-5.6.17.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="COIN-OR solver for mixed-integer linear programs" +HOMEPAGE="https://projects.coin-or.org/SYMPHONY/" +SRC_URI="https://github.com/coin-or/SYMPHONY/archive/releases/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/SYMPHONY-releases-${PV}/SYMPHONY" + +LICENSE="EPL-1.0" +SLOT="0/3" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc glpk test" +RESTRICT="!test? ( test )" + +RDEPEND=" + sci-libs/coinor-cgl:= + sci-libs/coinor-clp:= + sci-libs/coinor-dylp:= + sci-libs/coinor-osi:= + sci-libs/coinor-utils:= + sci-libs/coinor-vol:= + glpk? ( sci-mathematics/glpk:= )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( + dev-tex/latex2html + dev-texlive/texlive-latexextra + virtual/latex-base + ) + test? ( + sci-libs/coinor-netlib + sci-libs/coinor-sample + )" + +src_prepare() { + default + # Prevent unneeded call to pkg-config that needs ${ED}'s in path. + sed -i '/--libs.*addlibs.txt/d' Makefile.in || die + + # Fix manual color errors. + sed -i 's/usenames/usenames,dvipsnames/' Doc/man.tex || die +} + +src_configure() { + econf $(usex glpk --with-glpk-lib=-lglpk --without-glpk) +} + +src_compile() { + default + + if use doc; then + pushd Doc >/dev/null || die + pdflatex Walkthrough || die + pdflatex man || die + popd >/dev/null || die + fi +} + +src_test() { + # Needed given "make check" is a noop and it skips the working one. + emake test +} + +src_install() { + default + use doc && dodoc Doc/*.pdf + + # Other coinor-* use lowercase e, stay in-line with them. + docinto examples + dodoc -r Examples/. + + # Duplicate or irrelevant files. + rm -r "${ED}"/usr/share/coin/doc || die + find "${ED}" -name '*.la' -delete || die +} |