diff options
author | Mark Wright <gienah@gentoo.org> | 2020-06-22 11:41:27 +1000 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2020-06-22 11:41:27 +1000 |
commit | 81c90b0e2306772099620a6c0a56d7f991506ad1 (patch) | |
tree | 612a045c45c9e517fd8320c82d039f0f1c917289 /sci-libs/nlopt/nlopt-2.6.2-r1.ebuild | |
parent | www-apps/drupal: Security bump - bug 728660. (diff) | |
download | gentoo-81c90b0e2306772099620a6c0a56d7f991506ad1.tar.gz gentoo-81c90b0e2306772099620a6c0a56d7f991506ad1.tar.bz2 gentoo-81c90b0e2306772099620a6c0a56d7f991506ad1.zip |
sci-libs/nlopt: Inherit fortran, fix static-libs logic.
Fix QA bad filename: [ v2.6.2.tar.gz ], thanks to
Michelangelo Scopelliti for reporting.
inherit fortran-2, thanks to Michelangelo Scopelliti and
François Bissey for reporting.
Put back the logic I incorrectly removed when adding support
for USE=static-libs for building stuff when USE=-python.
Thanks to Michelangelo Scopelliti, François Bissey and
Andreas Sturmlechner for helping.
Co-Authored-By: François Bissey <frp.bissey@gmail.com>
Bug: https://bugs.gentoo.org/724640
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Mark Wright <gienah@gentoo.org>
Diffstat (limited to 'sci-libs/nlopt/nlopt-2.6.2-r1.ebuild')
-rw-r--r-- | sci-libs/nlopt/nlopt-2.6.2-r1.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sci-libs/nlopt/nlopt-2.6.2-r1.ebuild b/sci-libs/nlopt/nlopt-2.6.2-r1.ebuild index e99f07d1cdfa..416022d0dc54 100644 --- a/sci-libs/nlopt/nlopt-2.6.2-r1.ebuild +++ b/sci-libs/nlopt/nlopt-2.6.2-r1.ebuild @@ -5,11 +5,11 @@ EAPI=7 PYTHON_COMPAT=( python3_{6..9} ) -inherit python-r1 cmake +inherit python-r1 cmake fortran-2 DESCRIPTION="Non-linear optimization library" HOMEPAGE="https://ab-initio.mit.edu/nlopt/" -SRC_URI="https://github.com/stevengj/nlopt/archive/v${PV}.tar.gz" +SRC_URI="https://github.com/stevengj/nlopt/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-2.1 MIT" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" @@ -48,6 +48,8 @@ src_configure() { ) if use python; then python_foreach_impl run_in_build_dir cmake_src_configure + else + cmake_src_configure fi if use static-libs; then mycmakeargs+=( @@ -60,6 +62,8 @@ src_configure() { src_compile() { if use python; then python_foreach_impl run_in_build_dir cmake_src_compile + else + cmake_src_compile fi if use static-libs; then BUILD_DIR="${S}_static-libs" run_in_build_dir cmake_src_compile @@ -78,6 +82,8 @@ src_test() { } if use python; then python_foreach_impl run_in_build_dir do_test + else + do_test fi if use static-libs; then BUILD_DIR="${S}_static-libs" run_in_build_dir do_test @@ -92,6 +98,8 @@ nlopt_install() { src_install() { if use python; then python_foreach_impl run_in_build_dir nlopt_install + else + cmake_src_install fi if use static-libs; then BUILD_DIR="${S}_static-libs" run_in_build_dir dolib.a libnlopt.a |