mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
parent
30f93c02e5
commit
85e3748c01
3 changed files with 67 additions and 0 deletions
4
projects/proj.org/match.txt
Normal file
4
projects/proj.org/match.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
-4887590.49 7317961.48 Boston, United States
|
||||
-5542524.55 6982689.05 New York, United States
|
||||
171224.94 5415352.81 Paris, France
|
||||
-8101.66 5707500.23 London, England
|
59
projects/proj.org/package.yml
Normal file
59
projects/proj.org/package.yml
Normal file
|
@ -0,0 +1,59 @@
|
|||
distributable:
|
||||
url: https://github.com/OSGeo/PROJ/releases/download/{{version}}/proj-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: OSGeo/PROJ
|
||||
|
||||
provides:
|
||||
- bin/proj
|
||||
|
||||
dependencies:
|
||||
simplesystems.org/libtiff: '*'
|
||||
sqlite.org: '*'
|
||||
curl.se: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
cmake.org: '*'
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
gnu.org/libtool: '*'
|
||||
gnu.org/wget: '*'
|
||||
gnu.org/coreutils: '*'
|
||||
sqlite.org: '*'
|
||||
script: |
|
||||
cmake -S . -B build $ARGS $SHARED_LIB_ARGS
|
||||
cmake --build build
|
||||
cmake --install build
|
||||
|
||||
cmake -S . -B static $ARGS $STATIC_LIB_ARGS
|
||||
cmake --build static
|
||||
mv static/lib/libproj.a "{{prefix}}/lib/"
|
||||
|
||||
# The datum grid files are required to support datum shifting
|
||||
wget https://download.osgeo.org/proj/proj-data-1.13.tar.gz
|
||||
|
||||
expected_checksum='f1e5e42ba15426d01d1970be727af77ac9b88c472215497a5a433d0a16dd105b proj-data-1.13.tar.gz'
|
||||
actual_checksum="$(sha256sum proj-data-1.13.tar.gz)"
|
||||
test "$expected_checksum" = "$actual_checksum"
|
||||
mkdir proj-data
|
||||
tar -xzf proj-data-1.13.tar.gz -C proj-data
|
||||
mkdir -p "{{prefix}}/share/proj"
|
||||
mv proj-data/* "{{prefix}}/share/proj/"
|
||||
env:
|
||||
ARGS:
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
||||
SHARED_LIB_ARGS:
|
||||
- -DCMAKE_INSTALL_RPATH={{prefix}}
|
||||
STATIC_LIB_ARGS:
|
||||
- -DBUILD_SHARED_LIBS=OFF
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script: |
|
||||
output="$(proj +proj=poly +ellps=clrk66 -r test.txt)"
|
||||
test "$(cat match.txt)" = "$output"
|
4
projects/proj.org/test.txt
Normal file
4
projects/proj.org/test.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
45d15n 71d07w Boston, United States
|
||||
40d40n 73d58w New York, United States
|
||||
48d51n 2d20e Paris, France
|
||||
51d30n 7'w London, England
|
Loading…
Reference in a new issue