From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-libs/ipopt/Manifest | 7 +++ sci-libs/ipopt/ipopt-3.11.7.ebuild | 96 +++++++++++++++++++++++++++++++++++++ sci-libs/ipopt/ipopt-3.11.8.ebuild | 97 ++++++++++++++++++++++++++++++++++++++ sci-libs/ipopt/metadata.xml | 21 +++++++++ 4 files changed, 221 insertions(+) create mode 100644 sci-libs/ipopt/Manifest create mode 100644 sci-libs/ipopt/ipopt-3.11.7.ebuild create mode 100644 sci-libs/ipopt/ipopt-3.11.8.ebuild create mode 100644 sci-libs/ipopt/metadata.xml (limited to 'sci-libs/ipopt') diff --git a/sci-libs/ipopt/Manifest b/sci-libs/ipopt/Manifest new file mode 100644 index 000000000000..27cbc108af2d --- /dev/null +++ b/sci-libs/ipopt/Manifest @@ -0,0 +1,7 @@ +DIST Ipopt-3.11.7.tgz 4749511 SHA256 c276555cf913cf9cb32d9b0e4faabc2a21d34b52baf8da132d29f3541323739a SHA512 a9edd33b59c9744dc4e09d709519be1fc3d014cc4f50254402784aa8035d21617323f2879c430245886f2a13165cc81d26779331dc1601f0edfc406953dca56f WHIRLPOOL 709eefc5fd6ec43bbb343bc91ba4f0289e9963b931a3d70d36b3b3cadcb41b5ee01da6e6d743d781fb91bb789fcf45a424d5109291074695019027ff76bba9b1 +DIST Ipopt-3.11.8.tgz 4749758 SHA256 9f9b76075fbd9315286ea4d7c159c94cab4a4fb16122fb172b24910af5b5b75b SHA512 1f60ea769dd7305348af3a5d4ed56938f04e59c36fb7a3fa0b808e4788dccee4711f82c3767e2aae87d21618d2a840d0bb22491c21c40bc2f9ebdf4b3a01aeec WHIRLPOOL a8022439d3509a2d1c7cf7c9c1c97d2ddda6baae948c3628c14a1eae622069ca090647c2e4051ca330d767bc09da7d908005bfb5b021e3277ee4bc1294f33019 +EBUILD ipopt-3.11.7.ebuild 2396 SHA256 63de62e5eec9b0680d2e488c69fa6dc0821a242fd185509260969d2e82192ff5 SHA512 6a56ea64340b458b928e6024388b9df26ce8ee881d2dff77e5db4840d16391e1239768b4e18be35bdd911b227615df85b372161a45adc63c14c4ceac8344e593 WHIRLPOOL 10b558c84290f39f90b0e1b6781cade0610d03e29b6d92815bb0396b42fcb419b54c1cc50df299d693fe463054bfd16e356b5be57b9ac77e257af4a940614dd8 +EBUILD ipopt-3.11.8.ebuild 2403 SHA256 7a4e92b6ef023244bf586dfd28c054decd41e87fce8f02bfdb7726e024ec3f20 SHA512 19515a32ac7745199237f185a7bb84155e538be4e9effbd6b01a7571e289d09290215c43b56a12fda9cb43ed69d5a67a8c38815ab66b571be9b99392eadaa5e7 WHIRLPOOL 3cab1525787fdf52f3dbfa99b213a29aeb8a0a0562d998a95c929a9ad5f1274410b61bdd1b3d1a5e8a01e768671ae20dfd7545804442a1987f7ed87fe2d69fce +MISC ChangeLog 2473 SHA256 dafcbef9cac565e3a28bff0f148ab876c0ef6253c6b8a34ca52ffcc8438f5080 SHA512 4bac4fe3e0a47b951e1183a04535672fea0dbafbae46e12b06e5fc1a158999ef38c9874c2119ca0caa056ba45a50cdea2b2b0be65fc02aa9e5d4609a66220b6e WHIRLPOOL 9130597051cff6a22e482508a43fbbe76034154abae7471034173e43dff38227377a5475614d5abfc82800b1a30115b4192881e3655f460157aba536e344ca18 +MISC ChangeLog-2015 673 SHA256 99b2a78c95b29dbc4fe00bf79b73a0ac95fef4733cdabbb5e44d7ee13d32fe1a SHA512 60c51eb5f12ca144c84a8726e1a895a3078ef4047deda460c468771808386af2656fbe3e9b21f6ee447fee2851ee3e1814f25ec66b0b5c33197eca333cd35c29 WHIRLPOOL cd10e7c2f9940b8f1be0e44878e8ab5a7358b27762fa074a8966d384110c2aafd6c2396bc8fcbf14242eae5781098a73639f7826fcac91b850565f2234a1476e +MISC metadata.xml 842 SHA256 8075edf169ffe4558aa305703976888f9a320212fc8922b178c84a1f366e4e5d SHA512 6e18c52fa233ba8c19d3493ceda613b39e310fc32976f289a5f1c9709dac860a0e482390ad601019ea1d9818e5e3499887974466803d8c5800e96e9b0d6c0a72 WHIRLPOOL e50c246305548daa1ffaca7b4c7ed0e698737c0d6ccd074822194a669fac4c61717352efcca5ed44a1512acf52b4f193f2ee2a0082318ac62315cd538528ec37 diff --git a/sci-libs/ipopt/ipopt-3.11.7.ebuild b/sci-libs/ipopt/ipopt-3.11.7.ebuild new file mode 100644 index 000000000000..cf3bf34adda8 --- /dev/null +++ b/sci-libs/ipopt/ipopt-3.11.7.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_IN_SOURCE_BUILD=yes +FORTRAN_NEEDED="mumps" +inherit eutils autotools-utils multilib toolchain-funcs fortran-2 + +MYPN=Ipopt +MYP=${MYPN}-${PV} + +DESCRIPTION="Interior-Point Optimizer for large-scale nonlinear optimization" +HOMEPAGE="https://projects.coin-or.org/Ipopt/" +SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYP}.tgz" + +LICENSE="EPL-1.0 hsl? ( HSL )" +SLOT="0/1" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples hsl lapack mpi mumps static-libs test" + +RDEPEND=" + virtual/blas + hsl? ( sci-libs/coinhsl ) + lapack? ( virtual/lapack ) + mumps? ( sci-libs/mumps[mpi=] )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen[dot] ) + test? ( sci-libs/coinor-sample sci-libs/mumps )" + +S="${WORKDIR}/${MYPN}-${PV}/${MYPN}" + +src_prepare() { + if use mumps && ! use mpi; then + ln -s "${EPREFIX}"/usr/include/mpiseq/mpi.h \ + src/Algorithm/LinearSolvers/ + elif use mpi; then + export CXX=mpicxx FC=mpif77 F77=mpif77 CC=mpicc + fi + sed -i \ + -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \ + configure || die + autotools-utils_src_prepare +} + +src_configure() { + # needed for the --with-coin-instdir + dodir /usr + local myeconfargs=( + --enable-dependency-linking + --with-blas-lib="$($(tc-getPKG_CONFIG) --libs blas)" + --with-coin-instdir="${ED}"/usr + $(use_with doc dot) + ) + + if use lapack; then + myeconfargs+=( --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" ) + else + myeconfargs+=( --without-lapack ) + fi + if use mumps; then + myeconfargs+=( + --with-mumps-incdir="${EPREFIX}"/usr/include + --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 + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile all $(use doc && echo doxydoc) +} + +src_test() { + autotools-utils_src_test test +} + +src_install() { + use doc && HTML_DOC=("${AUTOTOOLS_BUILD_DIR}/doxydocs/html/") + autotools-utils_src_install + # already installed + rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} diff --git a/sci-libs/ipopt/ipopt-3.11.8.ebuild b/sci-libs/ipopt/ipopt-3.11.8.ebuild new file mode 100644 index 000000000000..bb3c71daaa61 --- /dev/null +++ b/sci-libs/ipopt/ipopt-3.11.8.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_IN_SOURCE_BUILD=yes +FORTRAN_NEEDED="mumps" + +inherit eutils autotools-utils multilib toolchain-funcs fortran-2 + +MYPN=Ipopt +MYP=${MYPN}-${PV} + +DESCRIPTION="Interior-Point Optimizer for large-scale nonlinear optimization" +HOMEPAGE="https://projects.coin-or.org/Ipopt/" +SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYP}.tgz" + +LICENSE="EPL-1.0 hsl? ( HSL )" +SLOT="0/1" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples hsl lapack mpi mumps static-libs test" + +RDEPEND=" + virtual/blas + hsl? ( sci-libs/coinhsl:0= ) + lapack? ( virtual/lapack ) + mumps? ( sci-libs/mumps:0=[mpi=] )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen[dot] ) + test? ( sci-libs/coinor-sample sci-libs/mumps )" + +S="${WORKDIR}/${MYPN}-${PV}/${MYPN}" + +src_prepare() { + if use mumps && ! use mpi; then + ln -s "${EPREFIX}"/usr/include/mpiseq/mpi.h \ + src/Algorithm/LinearSolvers/ + elif use mpi; then + export CXX=mpicxx FC=mpif77 F77=mpif77 CC=mpicc + fi + sed -i \ + -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \ + configure || die + autotools-utils_src_prepare +} + +src_configure() { + # needed for the --with-coin-instdir + dodir /usr + local myeconfargs=( + --enable-dependency-linking + --with-blas-lib="$($(tc-getPKG_CONFIG) --libs blas)" + --with-coin-instdir="${ED}"/usr + $(use_with doc dot) + ) + + if use lapack; then + myeconfargs+=( --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" ) + else + myeconfargs+=( --without-lapack ) + fi + if use mumps; then + myeconfargs+=( + --with-mumps-incdir="${EPREFIX}"/usr/include + --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 + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile all $(use doc && echo doxydoc) +} + +src_test() { + autotools-utils_src_test test +} + +src_install() { + use doc && HTML_DOC=("${AUTOTOOLS_BUILD_DIR}/doxydocs/html/") + autotools-utils_src_install + # already installed + rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} diff --git a/sci-libs/ipopt/metadata.xml b/sci-libs/ipopt/metadata.xml new file mode 100644 index 000000000000..fa265c7e52e5 --- /dev/null +++ b/sci-libs/ipopt/metadata.xml @@ -0,0 +1,21 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + Ipopt is a solver for large-scale nonlinear continuous + optimization. It can be used from modeling environments, such as + AMPL, GAMS, or Matlab, and it is also available as a callable library with + interfaces to C++, C, and Fortran. Ipopt uses an interior point + method, together with a filter linear search procedure. Ipopt is + part of the larger COIN-OR initiative (Computational Infrastructure + for Operations Research). + + + hsl + Enable sci-libs/mumps support + + -- cgit v1.2.3