diff options
author | gdt <gdt@pkgsrc.org> | 2018-05-30 17:03:56 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2018-05-30 17:03:56 +0000 |
commit | 0bf064dc124ceef10b4364153a187ccbfd8a4a56 (patch) | |
tree | 09251a9eb94cdf30c69579282c5360ad61e2c92d /databases | |
parent | 6ad565a7184d3ab30e4e21776d8e883290e496b0 (diff) | |
download | pkgsrc-0bf064dc124ceef10b4364153a187ccbfd8a4a56.tar.gz |
postresql-postgis2: Substitute major version in PLIST
Add a variable MAJOR, currently 2.4, and instead of open-coding 2.4 in
PLIST, use ${MAJOR}, and teach print-PLIST how to invert that in only
the right places.
No functional change; this just reduces work on updating.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgresql-postgis2/Makefile | 9 | ||||
-rw-r--r-- | databases/postgresql-postgis2/PLIST | 60 |
2 files changed, 37 insertions, 32 deletions
diff --git a/databases/postgresql-postgis2/Makefile b/databases/postgresql-postgis2/Makefile index 37990423930..d82e13f0e5c 100644 --- a/databases/postgresql-postgis2/Makefile +++ b/databases/postgresql-postgis2/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.44 2018/05/30 12:03:46 gdt Exp $ +# $NetBSD: Makefile,v 1.45 2018/05/30 17:03:56 gdt Exp $ -DISTNAME= postgis-2.4.4 +MAJOR= 2.4 +DISTNAME= postgis-${MAJOR}.4 PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME} CATEGORIES= databases geography MASTER_SITES= https://download.osgeo.org/postgis/source/ @@ -48,6 +49,10 @@ INSTALL_TARGET= install docs-install DOCDIR= ${PREFIX}/share/doc/postgis +PLIST_SUBST+= MAJOR=${MAJOR} +PRINT_PLIST_AWK+= { gsub(/postgis-${MAJOR:S|/|\\/|g}/, "postgis-$${MAJOR}") } +PRINT_PLIST_AWK+= { gsub(/topology-${MAJOR:S|/|\\/|g}/, "topology-$${MAJOR}") } + SUBST_CLASSES+= paths SUBST_FILES.paths= extras/template_gis/profile \ extras/template_gis/createdb.postgis.1 \ diff --git a/databases/postgresql-postgis2/PLIST b/databases/postgresql-postgis2/PLIST index af185b01f43..fa01799678f 100644 --- a/databases/postgresql-postgis2/PLIST +++ b/databases/postgresql-postgis2/PLIST @@ -1,39 +1,39 @@ -@comment $NetBSD: PLIST,v 1.13 2018/05/30 12:03:46 gdt Exp $ +@comment $NetBSD: PLIST,v 1.14 2018/05/30 17:03:56 gdt Exp $ bin/pgsql2shp bin/raster2pgsql bin/shp2pgsql include/liblwgeom.h include/liblwgeom_topo.h lib/liblwgeom.la -lib/postgresql/postgis-2.4.so -lib/postgresql/postgis_topology-2.4.so -lib/postgresql/rtpostgis-2.4.so -share/postgresql/contrib/postgis-2.4/legacy.sql -share/postgresql/contrib/postgis-2.4/legacy_gist.sql -share/postgresql/contrib/postgis-2.4/legacy_minimal.sql -share/postgresql/contrib/postgis-2.4/postgis.sql -share/postgresql/contrib/postgis-2.4/postgis_comments.sql -share/postgresql/contrib/postgis-2.4/postgis_for_extension.sql -share/postgresql/contrib/postgis-2.4/postgis_proc_set_search_path.sql -share/postgresql/contrib/postgis-2.4/postgis_restore.pl -share/postgresql/contrib/postgis-2.4/postgis_upgrade.sql -share/postgresql/contrib/postgis-2.4/postgis_upgrade_for_extension.sql -share/postgresql/contrib/postgis-2.4/raster_comments.sql -share/postgresql/contrib/postgis-2.4/rtpostgis.sql -share/postgresql/contrib/postgis-2.4/rtpostgis_for_extension.sql -share/postgresql/contrib/postgis-2.4/rtpostgis_legacy.sql -share/postgresql/contrib/postgis-2.4/rtpostgis_proc_set_search_path.sql -share/postgresql/contrib/postgis-2.4/rtpostgis_upgrade.sql -share/postgresql/contrib/postgis-2.4/rtpostgis_upgrade_for_extension.sql -share/postgresql/contrib/postgis-2.4/sfcgal_comments.sql -share/postgresql/contrib/postgis-2.4/spatial_ref_sys.sql -share/postgresql/contrib/postgis-2.4/topology.sql -share/postgresql/contrib/postgis-2.4/topology_comments.sql -share/postgresql/contrib/postgis-2.4/topology_upgrade.sql -share/postgresql/contrib/postgis-2.4/uninstall_legacy.sql -share/postgresql/contrib/postgis-2.4/uninstall_postgis.sql -share/postgresql/contrib/postgis-2.4/uninstall_rtpostgis.sql -share/postgresql/contrib/postgis-2.4/uninstall_topology.sql +lib/postgresql/postgis-${MAJOR}.so +lib/postgresql/postgis_topology-${MAJOR}.so +lib/postgresql/rtpostgis-${MAJOR}.so +share/postgresql/contrib/postgis-${MAJOR}/legacy.sql +share/postgresql/contrib/postgis-${MAJOR}/legacy_gist.sql +share/postgresql/contrib/postgis-${MAJOR}/legacy_minimal.sql +share/postgresql/contrib/postgis-${MAJOR}/postgis.sql +share/postgresql/contrib/postgis-${MAJOR}/postgis_comments.sql +share/postgresql/contrib/postgis-${MAJOR}/postgis_for_extension.sql +share/postgresql/contrib/postgis-${MAJOR}/postgis_proc_set_search_path.sql +share/postgresql/contrib/postgis-${MAJOR}/postgis_restore.pl +share/postgresql/contrib/postgis-${MAJOR}/postgis_upgrade.sql +share/postgresql/contrib/postgis-${MAJOR}/postgis_upgrade_for_extension.sql +share/postgresql/contrib/postgis-${MAJOR}/raster_comments.sql +share/postgresql/contrib/postgis-${MAJOR}/rtpostgis.sql +share/postgresql/contrib/postgis-${MAJOR}/rtpostgis_for_extension.sql +share/postgresql/contrib/postgis-${MAJOR}/rtpostgis_legacy.sql +share/postgresql/contrib/postgis-${MAJOR}/rtpostgis_proc_set_search_path.sql +share/postgresql/contrib/postgis-${MAJOR}/rtpostgis_upgrade.sql +share/postgresql/contrib/postgis-${MAJOR}/rtpostgis_upgrade_for_extension.sql +share/postgresql/contrib/postgis-${MAJOR}/sfcgal_comments.sql +share/postgresql/contrib/postgis-${MAJOR}/spatial_ref_sys.sql +share/postgresql/contrib/postgis-${MAJOR}/topology.sql +share/postgresql/contrib/postgis-${MAJOR}/topology_comments.sql +share/postgresql/contrib/postgis-${MAJOR}/topology_upgrade.sql +share/postgresql/contrib/postgis-${MAJOR}/uninstall_legacy.sql +share/postgresql/contrib/postgis-${MAJOR}/uninstall_postgis.sql +share/postgresql/contrib/postgis-${MAJOR}/uninstall_rtpostgis.sql +share/postgresql/contrib/postgis-${MAJOR}/uninstall_topology.sql share/postgresql/extension/postgis--2.0.0--${PKGVERSION}.sql share/postgresql/extension/postgis--2.0.1--${PKGVERSION}.sql share/postgresql/extension/postgis--2.0.2--${PKGVERSION}.sql |