mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+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:
parent
b7c913d08b
commit
38128e4716
2 changed files with 49 additions and 0 deletions
47
projects/gnu.org/plotutils/package.yml
Normal file
47
projects/gnu.org/plotutils/package.yml
Normal 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
|
2
projects/gnu.org/plotutils/test.dat
Normal file
2
projects/gnu.org/plotutils/test.dat
Normal file
|
@ -0,0 +1,2 @@
|
|||
0.0 0.0
|
||||
1.0 0.2
|
Loading…
Reference in a new issue