mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+librttopo
This commit is contained in:
parent
1fa873b336
commit
581dd709d9
45
projects/git.osgeo.org/gitea/rttopo/librttopo/package.yml
Normal file
45
projects/git.osgeo.org/gitea/rttopo/librttopo/package.yml
Normal file
|
@ -0,0 +1,45 @@
|
|||
distributable:
|
||||
url: https://git.osgeo.org/gitea/rttopo/librttopo/archive/librttopo-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
url: https://git.osgeo.org/gitea/rttopo/librttopo/tags/
|
||||
match: /librttopo-\d+\.\d+\.\d+.tar.gz/
|
||||
strip:
|
||||
- /^librttopo-/
|
||||
- /\.tar\.gz$/
|
||||
|
||||
dependencies:
|
||||
libgeos.org: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
gnu.org/autoconf: '*'
|
||||
gnu.org/automake: '*'
|
||||
gnu.org/libtool: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
|
||||
script: |
|
||||
./autogen.sh
|
||||
./configure --disable-debug \
|
||||
--disable-dependency-tracking \
|
||||
--disable-silent-rules \
|
||||
--prefix={{prefix}}
|
||||
make install
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
fixture: |
|
||||
#include <librttopo.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
printf("%s", rtgeom_version());
|
||||
return 0;
|
||||
}
|
||||
script: |
|
||||
mv $FIXTURE test.c
|
||||
cc test.c -lrttopo -o test
|
||||
test $(./test) = {{version}}
|
Loading…
Reference in a new issue