+gnu.org/plotutils (#4795)

* new file:   projects/gnu.org/plotutils/package.yml
	new file:   projects/gnu.org/plotutils/test.dat

* --build=aarch64-unknown-linux-gnu

* clang for linux?

* let's try to remove `register`

* gnu sed will do null backup suffix

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
Andrew 2024-01-10 18:21:14 +02:00 committed by GitHub
parent b7c913d08b
commit 38128e4716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,47 @@
distributable:
url: https://ftp.gnu.org/gnu/plotutils/plotutils-{{version.raw}}.tar.gz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/plotutils/
match: /plotutils-\d+\.\d+(\.\d+)?\.tar\.gz/
strip:
- /plotutils-/
- /.tar.gz/
dependencies:
libpng.org: ^1.6
libraw.org: ^0.21
build:
script:
# warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
- run: sed -i "s|register ||g" pic2plot/gram.cc
if: linux
- run: sed -i "s|png_ptr->jmpbuf|png_jmpbuf (png_ptr)|g" z_write.c
working-directory: libplot
- ./configure $ARGS
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --disable-debug
- --disable-dependency-tracking
- --disable-silent-rules
- --prefix={{prefix}}
- --enable-libplotter
darwin:
ARGS:
- --without-x
linux/aarch64:
ARGS:
- --build=aarch64-unknown-linux-gnu
provides:
- bin/double
- bin/graph
- bin/ode
- bin/pic2plot
- bin/plot
- bin/plotfont
- bin/spline
- bin/tek2plot
test:
- plot --version | grep {{version.marketing}}
- graph -T png test.dat > test.png

View file

@ -0,0 +1,2 @@
0.0 0.0
1.0 0.2