mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
d7adf09a43
* update(slirp) * update(poppler-data) * update(doxygen) * update(xcb) * update(sm) * update(xdmcp) * update(ice) * update(util-macros) * update(xtrans) * update(xmu) * update(xt) * update(xau) * update(xrender) * update(x11) * update(xcb-proto) * update(xpm) * update(xaw) * update(xorg-protocol) * update(exts) * update(lame) * update(nmap) * update(cairo) * update(unicode) * update(gts) * update(vim) * update(libtiff) * update(lua) * comment(bpb) * update(giflib) * update(gdk-pixbuf) * update(gobj-intro) * update(libcap2) * update(gnuplot) * update(dav1d) * update(wumpus) * update(librist) * update(subversion) * comment(jbig2dec) * update(moreutils) * update(eigen) * update(ogg) * update(musl) * update(libtool) * update(isl) * update(coreutils) * update(wget) * update(gmp) * update(libiconv) * update(stow) * update(sed) * update(gperf) * update(libunistring) * update(grep) * update(patch) * update(tar) * update(autoconf) * update(libgpg-error) * update(automake) * update(libksba) * update(npth) * update(libgcrypt) * update(libidn) * update(libassuan) * update(gnupg) * update(libtasn1) * update(ncdu) * update(freexl) * update(nasm) * update(ffmpeg) * update(libsodium) * update(mpg123) * update(freetype) * update(dnsmasq) * update(postgres) * update(xz) * update(docutils) * update(aom) * update(libssh) * update(gitlab-cli) * update(watch) * update(tree) * update(c-ares) * update(mpdecimal) * update(lzo) * update(graphviz) * update(nano) * update(yasm) * update(expect) * update(pcre) * update(file) * update(shared-mime-info) * use `gitlab:` builtin
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
distributable:
|
|
url: https://gitlab.com/libeigen/eigen/-/archive/{{version}}/eigen-{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
gitlab: libeigen/eigen/tags
|
|
|
|
build:
|
|
working-directory: build
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
cmake.org: '^3'
|
|
script: |
|
|
cmake .. -DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
make install
|
|
|
|
# stuff expects `Eigen` to be in `include` rather than namespaced
|
|
cd "{{prefix}}"
|
|
mv include/eigen3/* include
|
|
cd include
|
|
rmdir eigen3
|
|
# but work for stuff that expects the namespace too
|
|
ln -s eigen3 .
|
|
test:
|
|
make test
|
|
|
|
test:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
freedesktop.org/pkg-config: ^0.29
|
|
env:
|
|
cxxflags: $(pkg-config --cflags eigen3)
|
|
fixture: |
|
|
#include <iostream>
|
|
#include <Eigen/Dense>
|
|
using Eigen::MatrixXd;
|
|
int main()
|
|
{
|
|
MatrixXd m(2,2);
|
|
m(0,0) = 3;
|
|
m(1,0) = 2.5;
|
|
m(0,1) = -1;
|
|
m(1,1) = m(1,0) + m(0,1);
|
|
std::cout << m << std::endl;
|
|
}
|
|
script: |
|
|
mv $FIXTURE test.cpp
|
|
g++ test.cpp ${cxxflags} -o test
|
|
./test > output.txt
|
|
out=$(./test)
|
|
if test "$out" = $' 3 -1\n2.5 1.5'; then
|
|
echo "PASS"
|
|
else
|
|
echo "FAIL"
|
|
fi
|