wok annotate pgrouting/receipt @ rev 20420

Fix wanted versions
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 06 23:15:23 2018 +0200 (2018-08-06)
parents b5be5be4609a
children 4242092353ba
rev   line source
pascal@16725 1 # SliTaz package receipt.
pascal@16725 2
pascal@16725 3 PACKAGE="pgrouting"
pascal@20242 4 VERSION="2.5.2"
pascal@16725 5 CATEGORY="misc"
pascal@16725 6 SHORT_DESC="provide geospatial routing for PostGIS / PostgreSQL."
pascal@16725 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16725 8 LICENSE="GPL2"
pascal@16725 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@16725 10 WEB_SITE="http://pgrouting.org/"
pascal@16725 11 WGET_URL="https://codeload.github.com/pgRouting/pgrouting/tar.gz/v$VERSION"
pascal@16725 12
pascal@20229 13 DEPENDS="gcc-lib-base cgal gmp libboost-thread libboost-system \
pascal@20420 14 libboost-chrono libboost-date-time"
pascal@16725 15 BUILD_DEPENDS="wget cmake postgresql-dev libboost-dev cgal-dev gmp-dev \
pascal@19802 16 mpfr-dev libboost-graph-dev libboost-thread-dev libboost-tr1-dev"
pascal@16725 17
pascal@16725 18 # Rules to configure and make the package.
pascal@16725 19 compile_rules()
pascal@16725 20 {
pascal@20242 21 sed -i 's/INT2ARRAYOID/1005/' src/common/src/get_check_data.c
pascal@16725 22 mkdir build
pascal@16725 23 cd build
pascal@16725 24 cmake -DWITH_DD=ON ..
pascal@16725 25 make
pascal@16725 26 make install
pascal@16725 27 }
pascal@16725 28
pascal@16725 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16725 30 genpkg_rules()
pascal@16725 31 {
pascal@16725 32 mkdir -p $fs/usr
pascal@16725 33 cp -a $install/usr/* $fs/usr
pascal@20237 34 sed -i 's|\$libdir|/usr/lib/postgresql|' \
pascal@20237 35 $fs/usr/share/postgresql/extension/*.sql
pascal@16725 36 }
pascal@20237 37
pascal@20237 38 post_install_example()
pascal@20237 39 {
pascal@20237 40 database=test
pascal@20237 41 chroot "$1/" createdb -U postgres -h localhost $database
pascal@20237 42 chroot "$1/" psql -U postgres -U postgres $database <<EOT
pascal@20237 43 create extension pgrouting;
pascal@20237 44 \q
pascal@20237 45 EOT
pascal@20237 46 sed 1d $1/usr/share/postgresql/extension/pgrouting--$VERSION.sql |
pascal@20237 47 chroot "$1/" psql -U postgres $database
pascal@20237 48 }