Files
chromebrew/packages/nlopt.rb
chromebrew-actions[bot] e33ca36d44 updater-nlopt-2.10.0 — nlopt → 2.10.0 (#12986)
* Add unbuilt nlopt to updater-nlopt-2.10.0

* updater-nlopt-2.10.0: Package File Update Run on linux/amd64 container.

* updater-nlopt-2.10.0: Package File Update Run on linux/arm/v7 container.

---------

Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2025-09-28 04:23:05 +00:00

30 lines
968 B
Ruby

# Adapted from Arch Linux nlopt PKGBUILD at:
# https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=nlopt
require 'buildsystems/cmake'
class Nlopt < CMake
description 'nonlinear optimization library'
homepage 'http://ab-initio.mit.edu/wiki/index.php/NLopt'
version '2.10.0'
license 'LGPL'
compatibility 'aarch64 armv7l x86_64'
source_url 'https://github.com/stevengj/nlopt.git'
git_hashtag "v#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'a5d63cb98c4bdc8d602d12afa67ce13361bdcf139cb1dcc07df3e7078981aa48',
armv7l: 'a5d63cb98c4bdc8d602d12afa67ce13361bdcf139cb1dcc07df3e7078981aa48',
x86_64: 'c7d368c94742dc911fe359c2a960b89f81e12b77982bab19bb2b3486bd619a85'
})
depends_on 'gcc_lib' # R
depends_on 'guile' => :build
depends_on 'octave' # R
depends_on 'py3_numpy' => :build
depends_on 'swig' => :build
cmake_options '-DNLOPT_MATLAB=OFF -DNLOPT_CXX=ON -DNLOPT_SWIG=OFF -DNLOPT_LINK_PYTHON=OFF'
end