From 45392c898b8ba163e95028bd98896e77f0c73806 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 15 Oct 2024 04:04:09 +0100 Subject: gentoo auto-resync : 15:10:2024 - 04:04:09 --- sci-libs/ipopt/Manifest | 4 +- sci-libs/ipopt/ipopt-3.14.4-r1.ebuild | 71 ++++++++++++++++++++++++++++++++ sci-libs/ipopt/ipopt-3.14.4.ebuild | 76 ----------------------------------- sci-libs/ipopt/metadata.xml | 2 +- 4 files changed, 74 insertions(+), 79 deletions(-) create mode 100644 sci-libs/ipopt/ipopt-3.14.4-r1.ebuild delete mode 100644 sci-libs/ipopt/ipopt-3.14.4.ebuild (limited to 'sci-libs/ipopt') diff --git a/sci-libs/ipopt/Manifest b/sci-libs/ipopt/Manifest index 33108d3f8679..2b0f691831e9 100644 --- a/sci-libs/ipopt/Manifest +++ b/sci-libs/ipopt/Manifest @@ -1,3 +1,3 @@ DIST ipopt-3.14.4.tar.gz 1843885 BLAKE2B 83f6a983db282ced6e52237ff326c860a92df2c92dbd53db7581110d3003fd7b557a68453c74e48d780832d2c9c55d9eb4ea54e68f504c161952fce6bb81caaf SHA512 a27a08ae24c94da96efcfa236034cec79d79111d7dc9c028d808b412d5abb21495a0011f075a87db65b91ba69e191653552e7f99fe8da88c3b580d971eac3652 -EBUILD ipopt-3.14.4.ebuild 1739 BLAKE2B 34423fb9e7f814e03ddbefc5b4a69008f6de833e6826d98c21e8dd3ca89d018707f1cbf6d8eeb290a645cd6fcfc695990879e41f05eb4d563ab50075e627e4cb SHA512 defe9e435be58fd9b266bed01938dcfe54c8737b3e7a041b58eca30ca43a90638b014e4e3400a37434a7f4a4742dc5c140e62b7006b19a11bc24d50626e5735d -MISC metadata.xml 967 BLAKE2B 8a3fc8addf0130148ddca1bcfb4732e1bf60b52d5de28e2ee6ce9b8e4352358424b39aa585ba177592b4a5744bf2f52e16ab393e2a80617333a48e385eb55a2d SHA512 aa538e824ce3cc926f28554dc268f6d109bebd382b35bb2db8aee75fa82cc81bf9171ace022aaf441602bf8b150fa7bf80ad04e4563d2c3b83e25d80d8780574 +EBUILD ipopt-3.14.4-r1.ebuild 1577 BLAKE2B bbac5ba69f715d051dd7ae8b5b970987a50cf65d83d54f884655683c600f4d85d539e21b3ada83447af3cdb203059584f2105a66b225234250d42eeda8afa224 SHA512 6605cf7c761c90447e257c39cb8bd66e732fa2342cbb99a9dbeb1f5f8b3a52ccd34bc89ddea3801087521030ca6550e144de4c1254a88ef3d5e520f05c448911 +MISC metadata.xml 1020 BLAKE2B f94f5ef3a89f359995a3299c9efff9cafe619f890f14933a963d451ac49aa7e841c466a38164950cb32651aae1a9ae492b3839698c2268272366b75d0979cb03 SHA512 1b180545de0a0156fd65f8fcb23f521a85cbfe8f03cc447dfcafd5cad1ffec3722c50760e7726b44e6c8a7f3caf2879b38bf42b63ee8a662dc482f878c4e7cdb diff --git a/sci-libs/ipopt/ipopt-3.14.4-r1.ebuild b/sci-libs/ipopt/ipopt-3.14.4-r1.ebuild new file mode 100644 index 000000000000..9005696f3cee --- /dev/null +++ b/sci-libs/ipopt/ipopt-3.14.4-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED="mumps" +DOCS_BUILDER="doxygen" +DOCS_DIR="doc" +DOCS_DEPEND="media-gfx/graphviz" + +inherit docs fortran-2 toolchain-funcs + +DESCRIPTION="Interior-Point Optimizer for large-scale nonlinear optimization" +HOMEPAGE="https://github.com/coin-or/Ipopt" +SRC_URI="https://github.com/coin-or/Ipopt/archive/refs/tags/releases/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/Ipopt-releases-${PV}" + +LICENSE="EPL-1.0" +SLOT="0/1" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+asl +lapack mpi mumps static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND=" + virtual/blas + asl? ( sci-libs/coinasl:0= ) + lapack? ( virtual/lapack ) + mpi? ( virtual/mpi ) + mumps? ( sci-libs/mumps:0=[mpi=] )" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( sci-libs/coinor-sample sci-libs/mumps )" + +src_prepare() { + if use mpi ; then + export CXX=mpicxx FC=mpif77 F77=mpif77 CC=mpicc + fi + default +} + +src_configure() { + local myeconfargs=( + $(use_with doc dot) + $(use_with asl) + --without-hsl + ) + + if use lapack; then + myeconfargs+=( --with-lapack="$($(tc-getPKG_CONFIG) --libs blas lapack)" ) + else + myeconfargs+=( --without-lapack ) + fi + if use mumps; then + myeconfargs+=( + --with-mumps-incdir="${EPREFIX}"/usr/include$(usex mpi '' '/mpiseq') + --with-mumps-lib="-lmumps_common -ldmumps -lzmumps -lsmumps -lcmumps" ) + else + myeconfargs+=( --without-mumps ) + fi + econf "${myeconfargs[@]}" +} + +src_compile() { + default + docs_compile +} + +src_install() { + default + dodoc -r examples +} diff --git a/sci-libs/ipopt/ipopt-3.14.4.ebuild b/sci-libs/ipopt/ipopt-3.14.4.ebuild deleted file mode 100644 index 44a78114fdfa..000000000000 --- a/sci-libs/ipopt/ipopt-3.14.4.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED="mumps" -DOCS_BUILDER="doxygen" -DOCS_DIR="doc" -DOCS_DEPEND="media-gfx/graphviz" - -inherit docs fortran-2 toolchain-funcs - -DESCRIPTION="Interior-Point Optimizer for large-scale nonlinear optimization" -HOMEPAGE="https://github.com/coin-or/Ipopt" -SRC_URI="https://github.com/coin-or/Ipopt/archive/refs/tags/releases/${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/Ipopt-releases-${PV}" - -LICENSE="EPL-1.0 hsl? ( HSL )" -SLOT="0/1" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="hsl +lapack mpi mumps static-libs test" -RESTRICT="!test? ( test )" - -RDEPEND=" - virtual/blas - hsl? ( sci-libs/coinhsl:0= ) - lapack? ( virtual/lapack ) - mpi? ( virtual/mpi ) - mumps? ( sci-libs/mumps:0=[mpi=] )" -DEPEND="${RDEPEND} - virtual/pkgconfig - test? ( sci-libs/coinor-sample sci-libs/mumps )" - -src_prepare() { - if use mpi ; then - export CXX=mpicxx FC=mpif77 F77=mpif77 CC=mpicc - fi - default -} - -src_configure() { - local myeconfargs=( - $(use_with doc dot) - ) - - if use lapack; then - myeconfargs+=( --with-lapack="$($(tc-getPKG_CONFIG) --libs blas lapack)" ) - else - myeconfargs+=( --without-lapack ) - fi - if use mumps; then - myeconfargs+=( - --with-mumps-incdir="${EPREFIX}"/usr/include$(usex mpi '' '/mpiseq') - --with-mumps-lib="-lmumps_common -ldmumps -lzmumps -lsmumps -lcmumps" ) - else - myeconfargs+=( --without-mumps ) - fi - if use hsl; then - myeconfargs+=( - --with-hsl-incdir="${EPREFIX}"/usr/include - --with-hsl-lib="$($(tc-getPKG_CONFIG) --libs coinhsl)" ) - else - myeconfargs+=( --without-hsl ) - fi - econf "${myeconfargs[@]}" -} - -src_compile() { - default - docs_compile -} - -src_install() { - default - dodoc -r examples -} diff --git a/sci-libs/ipopt/metadata.xml b/sci-libs/ipopt/metadata.xml index f5b474167afc..1b9661483cd4 100644 --- a/sci-libs/ipopt/metadata.xml +++ b/sci-libs/ipopt/metadata.xml @@ -15,7 +15,7 @@ for Operations Research). - hsl + AMPL Solver Library support and build the 'ipopt' binary Enable sci-libs/mumps support -- cgit v1.2.3