Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 645588 Details for
Bug 724640
sci-libs/nlopt-2.6.2-r1 stabilisation (was: sci-libs/nlopt-2.6.2 version bump)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Corrected ebuild proposal
nlopt-2.6.2-r2.ebuild (text/plain), 1.86 KB, created by
François Bissey
on 2020-06-21 23:29:26 UTC
(
hide
)
Description:
Corrected ebuild proposal
Filename:
MIME Type:
Creator:
François Bissey
Created:
2020-06-21 23:29:26 UTC
Size:
1.86 KB
patch
obsolete
># Copyright 1999-2020 Gentoo Authors ># Distributed under the terms of the GNU General Public License v2 > >EAPI=7 > >PYTHON_COMPAT=( python3_{6..9} ) >FORTRAN_NEEDED="test" > >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 -> ${P}.tar.gz" > >LICENSE="LGPL-2.1 MIT" >KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" >SLOT="0" >IUSE="cxx guile octave python test" >REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" >RESTRICT="!test? ( test )" > >RDEPEND=" > guile? ( dev-scheme/guile:* ) > octave? ( sci-mathematics/octave ) > python? ( > ${PYTHON_DEPS} > dev-python/numpy[${PYTHON_USEDEP}] > ) > " >DEPEND=" > ${RDEPEND} > python? ( dev-lang/swig ) > " > >src_prepare() { > cmake_src_prepare > use python && python_copy_sources >} > >src_configure() { > local mycmakeargs=( > -DNLOPT_CXX=$(usex cxx) > -DNLOPT_FORTRAN=$(usex test) > -DNLOPT_GUILE=$(usex guile) > -DNLOPT_OCTAVE=$(usex octave) > -DNLOPT_PYTHON=$(usex python) > -DNLOPT_SWIG=$(usex python) > -DNLOPT_TESTS=$(usex test) > ) > > if use python; then > python_foreach_impl run_in_build_dir cmake_src_configure > else > cmake_src_configure > fi >} > >src_compile() { > if use python; then > python_foreach_impl run_in_build_dir cmake_src_compile > else > cmake_src_compile > fi >} > >src_test() { > do_test() { > local a f > cd "${BUILD_DIR}"/test > for a in {1..$(usex cxx 9 7)}; do > for f in {5..9}; do > ./testopt -a $a -o $f || die "algorithm $a function $f failed" > done > done > } > if use python; then > python_foreach_impl run_in_build_dir do_test > else > run_in_build_dir do_test > fi >} > >nlopt_install() { > cmake_src_install > python_optimize >} > >src_install() { > if use python; then > python_foreach_impl run_in_build_dir nlopt_install > else > cmake_src_install > fi > local r > for r in */README; do newdoc ${r} README.$(dirname ${r}); done >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 724640
:
642380
| 645588