# Copyright 2015 Alexander Scheuermann # Distributed under the terms of the GNU General Public License v2 require github [ user=stevengj tag=v${PV} ] cmake require python [ blacklist=2 has_lib=true multibuild=false with_opt=true ] SUMMARY="NLopt is a free/open-source library for nonlinear optimization" DESCRIPTION="Providing a common interface for a number of different free optimization routines available online as well as original implementations of various other algorithms." LICENCES="LGPL-2" UPSTREAM_DOCUMENTATION="https://nlopt.readthedocs.io/en/latest/" SLOT="0" PLATFORMS="~amd64" MYOPTIONS="guile octave" DEPENDENCIES=" build+run: guile? ( dev-lang/guile:= dev-lang/swig[>=3] ) octave? ( sci-apps/octave ) python? ( dev-lang/swig[>=3] dev-python/numpy[python_abis:*(-)?] ) " CMAKE_SRC_CONFIGURE_PARAMS=( -DBUILD_SHARED_LIBS:BOOL=TRUE -DNLOPT_CXX:BOOL=FALSE -DNLOPT_FORTRAN:BOOL=FALSE -DNLOPT_LUKSAN:BOOL=TRUE -DNLOPT_MATLAB:BOOL=FALSE -DPython_EXECUTABLE=${PYTHON} ) CMAKE_SRC_CONFIGURE_OPTIONS=( 'guile NLOPT_GUILE' 'octave NLOPT_OCTAVE' 'python NLOPT_PYTHON' ) CMAKE_SRC_CONFIGURE_TESTS=( '-DNLOPT_TESTS:BOOL=TRUE -DNLOPT_TESTS:BOOL=FALSE' )