[74992] trunk/dports/gis/grass/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Jan 11 01:28:07 PST 2011


Revision: 74992
          http://trac.macports.org/changeset/74992
Author:   ryandesign at macports.org
Date:     2011-01-11 01:27:58 -0800 (Tue, 11 Jan 2011)
Log Message:
-----------
grass: update to 6.4.0; re-add mesa dependency (see #26355); add postgresql84 and postgresql90 variants; improve variant descriptions; fix livecheck

Modified Paths:
--------------
    trunk/dports/gis/grass/Portfile

Modified: trunk/dports/gis/grass/Portfile
===================================================================
--- trunk/dports/gis/grass/Portfile	2011-01-11 08:14:47 UTC (rev 74991)
+++ trunk/dports/gis/grass/Portfile	2011-01-11 09:27:58 UTC (rev 74992)
@@ -3,7 +3,8 @@
 PortSystem 1.0
 
 name              grass
-version           6.4.0RC6
+epoch             1
+version           6.4.0
 maintainers       nomaintainer
 categories        gis
 platforms         darwin
@@ -12,12 +13,11 @@
 long_description  GRASS is a Geographic Information System (GIS) used for \
                   geospatial data management and analysis.
 
-homepage          http://grass.osgeo.org
-master_sites      http://grass.osgeo.org/grass64/source/
+homepage          http://grass.osgeo.org/
+master_sites      ${homepage}grass[join [lrange [split ${version} .] 0 1] {}]/source/
 
-checksums         md5     cbb98b579155f8e9864b4e98e4423568 \
-                  sha1    4e82d7211ac85dbefa15ff27397d896d1955db64 \
-                  rmd160  6c8a0cd56b72b11395cf97953bc74672939225f3
+checksums         sha1    c91e8501c7a756a94d2be47729f640d33b2a7468 \
+                  rmd160  b0bd2d2ce048a5f10f345786bc81fa4bd22df019
 
 depends_lib       port:fftw-3 \
                   port:freetype \
@@ -25,6 +25,7 @@
                   port:geos \
                   port:jpeg \
                   port:libpng \
+                  port:mesa \
                   port:openmotif \
                   port:proj \
                   port:tk \
@@ -80,10 +81,7 @@
 
 build.target    default
 
-# installs into /opt/local/grass-6.3.0
-#destroot.violate_mtree  yes
-
-variant mysql5 description "Install grass with mysql 5 support" {
+variant mysql5 description {Add MySQL 5 support} {
     depends_lib-append    path:bin/mysql_config5:mysql5
     configure.args-append --with-mysql
     configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql
@@ -91,7 +89,7 @@
     configure.env-append MYSQLD_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
 }
 
-variant postgresql83 description "Install grass with postgresql 8.3 support" {
+variant postgresql83 conflicts postgresql84 postgresql90 description {Add PostgreSQL 8.3 support} {
     depends_lib-append    port:postgresql83
     configure.args-delete --without-postgres
     configure.args-append --with-postgres
@@ -99,14 +97,30 @@
     configure.args-append --with-postgres-libs=${prefix}/lib/postgresql83
 }
 
-variant sqlite3 description "Install grass with sqlite 3 support" {
+variant postgresql84 conflicts postgresql83 postgresql90 description {Add PostgreSQL 8.4 support} {
+    depends_lib-append    port:postgresql84
+    configure.args-delete --without-postgres
+    configure.args-append --with-postgres
+    configure.args-append --with-postgres-includes=${prefix}/include/postgresql84
+    configure.args-append --with-postgres-libs=${prefix}/lib/postgresql84
+}
+
+variant postgresql90 conflicts postgresql83 postgresql84 description {Add PostgreSQL 9.0 support} {
+    depends_lib-append    port:postgresql90
+    configure.args-delete --without-postgres
+    configure.args-append --with-postgres
+    configure.args-append --with-postgres-includes=${prefix}/include/postgresql90
+    configure.args-append --with-postgres-libs=${prefix}/lib/postgresql90
+}
+
+variant sqlite3 description {Add SQLite 3 support} {
     depends_lib-append    port:sqlite3
     configure.args-append --with-sqlite
     configure.args-append --with-sqlite-includes=${prefix}/include
     configure.args-append --with-sqlite-libs=${prefix}/lib
 }
 
-variant ffmpeg description {Install grass with ffmpeg suport} {
+variant ffmpeg description {Add ffmpeg support} {
     depends_lib-append    port:ffmpeg
     configure.args-append --with-ffmpeg \
                           --with-ffmpeg-includes=\"${prefix}/include/libavcodec  \
@@ -114,3 +128,7 @@
                                                    ${prefix}/include/libswscale\" \
                           --with-ffmpeglibs=${prefix}/lib
 }
+
+livecheck.type      regex
+livecheck.url       http://grass.osgeo.org/devel/svntags.php
+livecheck.regex     {GRASS ([0-9.]+):}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110111/8c52b9b9/attachment.html>


More information about the macports-changes mailing list