[22211] trunk/dports/databases/postgis
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 21 15:24:28 PST 2007
Revision: 22211
http://trac.macosforge.org/projects/macports/changeset/22211
Author: mww at macports.org
Date: 2007-02-21 15:24:27 -0800 (Wed, 21 Feb 2007)
Log Message:
-----------
correctly depend on postgresql82 now, do not put files in /etc (use $prefix/etc instead)
Modified Paths:
--------------
trunk/dports/databases/postgis/Portfile
Added Paths:
-----------
trunk/dports/databases/postgis/files/
trunk/dports/databases/postgis/files/patch-extras-template_gis-postgis_env.sh.in
Modified: trunk/dports/databases/postgis/Portfile
===================================================================
--- trunk/dports/databases/postgis/Portfile 2007-02-21 22:11:42 UTC (rev 22210)
+++ trunk/dports/databases/postgis/Portfile 2007-02-21 23:24:27 UTC (rev 22211)
@@ -4,6 +4,7 @@
name postgis
version 1.2.1
+revision 1
categories databases
platforms darwin
maintainers nomaintainer at macports.org
@@ -18,11 +19,12 @@
homepage http://postgis.refractions.net/
master_sites http://postgis.refractions.net/download/
-checksums md5 95430ee371c64a992ebcd8ddf2801acf
+checksums sha1 0a47bde414bf691fb624ead37cc119687aba14df
+patchfiles patch-extras-template_gis-postgis_env.sh.in
depends_lib port:postgresql82 port:geos port:proj
-configure.args --libdir=${prefix}/lib/pgsql8/ \
+configure.args --libdir=${prefix}/lib/postgresql82/ \
--datadir=${prefix}/share/${name} \
--with-pgsql=${prefix}/lib/postgresql82/bin/pg_config \
--with-geos=${prefix}/bin/geos-config \
@@ -32,3 +34,8 @@
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}
+post-destroot {
+ file rename ${destroot}/etc/default/postgis \
+ ${destroot}${prefix}/etc/postgis.default
+}
+
Added: trunk/dports/databases/postgis/files/patch-extras-template_gis-postgis_env.sh.in
===================================================================
--- trunk/dports/databases/postgis/files/patch-extras-template_gis-postgis_env.sh.in (rev 0)
+++ trunk/dports/databases/postgis/files/patch-extras-template_gis-postgis_env.sh.in 2007-02-21 23:24:27 UTC (rev 22211)
@@ -0,0 +1,11 @@
+--- extras/template_gis/postgis_env.sh.in 2006-05-31 08:43:12.000000000 +0200
++++ extras/template_gis/postgis_env.sh.in 2007-02-22 00:19:47.000000000 +0100
+@@ -3,7 +3,7 @@
+ # environment variables for postgis
+
+ #read optional configuration files. last prevails
+-for file in "/etc/default/postgis" "$HOME/.postgis/profile" ; do
++for file in "@prefix@/etc/postgis.default" "$HOME/.postgis/profile" ; do
+ if [ -f "$file" ]; then
+ tmpval=`grep "^TEMPLATEDB=" $file | cut -d= -f2`
+ if [ -n "$tmpval" ]; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070221/a4798bda/attachment.html
More information about the macports-changes
mailing list