Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 642380 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]
nlopt-2.6.2.ebuild
nlopt-2.6.2.ebuild (text/plain), 2.33 KB, created by
Marian Kyral
on 2020-05-28 19:39:31 UTC
(
hide
)
Description:
nlopt-2.6.2.ebuild
Filename:
MIME Type:
Creator:
Marian Kyral
Created:
2020-05-28 19:39:31 UTC
Size:
2.33 KB
patch
obsolete
># Copyright 1999-2020 Gentoo Authors ># Distributed under the terms of the GNU General Public License v2 > >EAPI=6 > >PYTHON_COMPAT=( python2_7 python3_6 python3_7) > >inherit python-r1 cmake-utils > >DESCRIPTION="Non-linear optimization library" >HOMEPAGE="https://ab-initio.mit.edu/nlopt/" >SRC_URI="https://github.com/stevengj/nlopt/archive/v${PV}.tar.gz" > >LICENSE="LGPL-2.1 MIT" >KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" >SLOT="0" >IUSE="cxx guile octave python static-libs" >REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" > >DEPEND=" > guile? ( dev-scheme/guile:* ) > octave? ( sci-mathematics/octave ) > python? ( > ${PYTHON_DEPS} > || ( > dev-python/numpy-python2[${PYTHON_USEDEP}] > dev-python/numpy[${PYTHON_USEDEP}] > ) > )" >RDEPEND="${DEPEND}" > >src_prepare() { > cmake-utils_src_prepare > use cxx && BUILD_CXX="${S}_cxx" > use python && python_copy_sources >} > >src_configure() { > local myeconfargs=( > $(use_with octave) > ) > if use octave; then > export OCT_INSTALL_DIR="$(octave-config -p LOCALOCTFILEDIR)" > export M_INSTALL_DIR="$(octave-config -p LOCALFCNFILEDIR)" > else > export MKOCTFILE=None > fi > > myeconfargs+=( > $(use_with guile) > ) > > if use python; then > python_foreach_impl run_in_build_dir cmake-utils_src_configure > else > cmake-utils_src_configure > fi > > if use cxx; then > myeconfargs+=( --with-cxx --without-octave --without-python ) > BUILD_DIR="${BUILD_CXX}" cmake-utils_src_configure > fi >} > >src_compile() { > if use python; then > python_foreach_impl run_in_build_dir cmake-utils_src_compile > else > cmake-utils_src_compile > fi > use cxx && BUILD_DIR="${BUILD_CXX}" cmake-utils_src_compile > #-C "${BUILD_DIR}_cxx" >} > >src_test() { > do_test() { > local a f > cd "${BUILD_DIR}"/test > for a in {1..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 > do_test > fi > cd "${BUILD_CXX}"/test > for a in {1..9}; do > for f in {5..9}; do > ./testopt -a $a -o $f || die "algorithm $a function $f failed" > done > done >} > >src_install() { > # build cxx first so the c lib overwrites the pc file > use cxx && BUILD_DIR="${BUILD_CXX}" cmake-utils_src_install > if use python; then > python_foreach_impl run_in_build_dir cmake-utils_src_install > else > cmake-utils_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