[59863] trunk/dports

ryandesign at macports.org ryandesign at macports.org
Sat Oct 24 18:57:06 PDT 2009


Revision: 59863
          http://trac.macports.org/changeset/59863
Author:   ryandesign at macports.org
Date:     2009-10-24 18:57:04 -0700 (Sat, 24 Oct 2009)
Log Message:
-----------
pure module ports: move commonalities into new pure portgroup

Modified Paths:
--------------
    trunk/dports/databases/pure-odbc/Portfile
    trunk/dports/devel/pure-csv/Portfile
    trunk/dports/devel/pure-ffi/Portfile
    trunk/dports/devel/pure-gen/Portfile
    trunk/dports/graphics/pure-gl/Portfile
    trunk/dports/math/pure-gsl/Portfile
    trunk/dports/textproc/pure-doc/Portfile
    trunk/dports/textproc/pure-xml/Portfile
    trunk/dports/x11/pure-gtk/Portfile

Added Paths:
-----------
    trunk/dports/_resources/port1.0/group/pure-1.0.tcl

Added: trunk/dports/_resources/port1.0/group/pure-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/pure-1.0.tcl	                        (rev 0)
+++ trunk/dports/_resources/port1.0/group/pure-1.0.tcl	2009-10-25 01:57:04 UTC (rev 59863)
@@ -0,0 +1,81 @@
+# $Id$
+# 
+# Copyright (c) 2009 The MacPorts Project
+# All rights reserved.
+# 
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+# 
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+# 3. Neither the name of The MacPorts Project nor the names of its
+#    contributors may be used to endorse or promote products derived from
+#    this software without specific prior written permission.
+# 
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 
+# 
+# This PortGroup automatically sets up the standard environment for building
+# a module for the Pure language.
+# 
+# Usage:
+# 
+#   PortGroup               pure 1.0
+#   pure.setup              module version
+# 
+# where module is the name of the module (e.g. gsl) and version is its
+# version.
+
+
+proc pure.setup {module version} {
+    global name homepage
+    
+    name                        pure-${module}
+    version                     ${version}
+    homepage                    http://pure-lang.googlecode.com/
+    master_sites                ${homepage}files/
+    
+    depends_lib                 path:lib/libpure.dylib:pure
+    
+    use_configure               no
+    
+    use_parallel_build          yes
+    pre-build {
+        build.args-append       CC=${configure.cc} \
+                                CFLAGS="${configure.cflags}" \
+                                CPPFLAGS="${configure.cppflags}" \
+                                CXX=${configure.cxx} \
+                                CXXFLAGS="${configure.cxxflags}" \
+                                LDFLAGS="${configure.ldflags}"
+    }
+    
+    post-destroot {
+        xinstall -d ${destroot}${prefix}/share/doc/${name}
+        xinstall -m 644 -W ${worksrcpath} \
+            COPYING \
+            README \
+            ${destroot}${prefix}/share/doc/${name}
+        if {[file exists ${worksrcpath}/examples]} {
+            xinstall -d ${destroot}${prefix}/share/examples
+            copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
+        }
+    }
+    
+    livecheck.type              regex
+    livecheck.url               http://code.google.com/p/pure-lang/downloads/list
+    livecheck.regex             ${name}-(\[0-9.\]+)\\.tar
+}

Modified: trunk/dports/databases/pure-odbc/Portfile
===================================================================
--- trunk/dports/databases/pure-odbc/Portfile	2009-10-25 01:32:20 UTC (rev 59862)
+++ trunk/dports/databases/pure-odbc/Portfile	2009-10-25 01:57:04 UTC (rev 59863)
@@ -1,17 +1,14 @@
 # $Id$
 
 PortSystem                      1.0
+PortGroup                       pure 1.0
 
-name                            pure-odbc
-version                         0.4
+pure.setup                      odbc 0.4
 revision                        2
 categories                      databases
 platforms                       darwin
 maintainers                     ryandesign
 license                         GPLv3
-use_parallel_build              yes
-homepage                        http://pure-lang.googlecode.com/
-master_sites                    ${homepage}files/
 
 description                     a simple ODBC interface for the Pure \
                                 programming language
@@ -24,30 +21,5 @@
                                 sha1    bc4097eab3ec227c8500429ed3312fb17badacd7 \
                                 rmd160  865006f880ef3f698244059f9758b89fcbc4c9b3
 
-depends_lib-append              path:lib/libpure.dylib:pure \
-                                path:lib/libgmp.dylib:gmp \
+depends_lib-append              path:lib/libgmp.dylib:gmp \
                                 path:lib/libodbc.dylib:unixODBC
-
-use_configure                   no
-
-pre-build {
-    build.args-append           CC=${configure.cc} \
-                                CFLAGS="${configure.cflags}" \
-                                CPPFLAGS="${configure.cppflags}" \
-                                LDFLAGS="${configure.ldflags}"
-}
-
-post-destroot {
-    xinstall -d \
-        ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${prefix}/share/examples
-    xinstall -m 644 -W ${worksrcpath} \
-        COPYING \
-        README \
-        ${destroot}${prefix}/share/doc/${name}
-    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
-}
-
-livecheck.type                  regex
-livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
-livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar

Modified: trunk/dports/devel/pure-csv/Portfile
===================================================================
--- trunk/dports/devel/pure-csv/Portfile	2009-10-25 01:32:20 UTC (rev 59862)
+++ trunk/dports/devel/pure-csv/Portfile	2009-10-25 01:57:04 UTC (rev 59863)
@@ -1,17 +1,14 @@
 # $Id$
 
 PortSystem                      1.0
+PortGroup                       pure 1.0
 
-name                            pure-csv
-version                         0.6
+pure.setup                      csv 0.6
 revision                        3
 categories                      devel
 platforms                       darwin
 maintainers                     ryandesign
 license                         GPLv2
-use_parallel_build              yes
-homepage                        http://pure-lang.googlecode.com/
-master_sites                    ${homepage}files/
 
 description                     an interface to read and write comma \
                                 separated value files in Pure
@@ -23,29 +20,3 @@
 checksums                       md5     cf45f4b5f517b6e79798db0993f23422 \
                                 sha1    c32e20beee17aa1036ce94b80da3b160d1cfcc57 \
                                 rmd160  38287e5a1dd312b6d69de33e2a27ff9c8819443d
-
-depends_lib-append              path:lib/libpure.dylib:pure
-
-use_configure                   no
-
-pre-build {
-    build.args-append           CC=${configure.cc} \
-                                CFLAGS="${configure.cflags}" \
-                                CPPFLAGS="${configure.cppflags}" \
-                                LDFLAGS="${configure.ldflags}"
-}
-
-post-destroot {
-    xinstall -d \
-        ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${prefix}/share/examples
-    xinstall -m 644 -W ${worksrcpath} \
-        COPYING \
-        README \
-        ${destroot}${prefix}/share/doc/${name}
-    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
-}
-
-livecheck.type                  regex
-livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
-livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar

Modified: trunk/dports/devel/pure-ffi/Portfile
===================================================================
--- trunk/dports/devel/pure-ffi/Portfile	2009-10-25 01:32:20 UTC (rev 59862)
+++ trunk/dports/devel/pure-ffi/Portfile	2009-10-25 01:57:04 UTC (rev 59863)
@@ -1,17 +1,14 @@
 # $Id$
 
 PortSystem                      1.0
+PortGroup                       pure 1.0
 
-name                            pure-ffi
-version                         0.7
+pure.setup                      ffi 0.7
 revision                        2
 categories                      devel
 platforms                       darwin
 maintainers                     ryandesign
 license                         GPLv3
-use_parallel_build              yes
-homepage                        http://pure-lang.googlecode.com/
-master_sites                    ${homepage}files/
 
 description                     an interface to libffi which enables you to \
                                 call C functions from Pure and vice versa
@@ -28,33 +25,8 @@
                                 sha1    d55533f67253228fa42d28dd737d6cf52d9a55fd \
                                 rmd160  09fabb234bc94dcff84db171dd769027160087c3
 
-depends_lib-append              path:lib/libpure.dylib:pure \
-                                port:libffi
+depends_lib-append              port:libffi
 
-use_configure                   no
-
-pre-build {
-    build.args-append           CC=${configure.cc} \
-                                CFLAGS="${configure.cflags}" \
-                                CPPFLAGS="${configure.cppflags}" \
-                                LDFLAGS="${configure.ldflags}"
-}
-
-post-destroot {
-    xinstall -d \
-        ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${prefix}/share/examples
-    xinstall -m 644 -W ${worksrcpath} \
-        COPYING \
-        README \
-        ${destroot}${prefix}/share/doc/${name}
-    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
-}
-
 platform darwin {
     configure.cflags-append     -fno-common
 }
-
-livecheck.type                  regex
-livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
-livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar

Modified: trunk/dports/devel/pure-gen/Portfile
===================================================================
--- trunk/dports/devel/pure-gen/Portfile	2009-10-25 01:32:20 UTC (rev 59862)
+++ trunk/dports/devel/pure-gen/Portfile	2009-10-25 01:57:04 UTC (rev 59863)
@@ -1,17 +1,14 @@
 # $Id$
 
 PortSystem                      1.0
+PortGroup                       pure 1.0
 
-name                            pure-gen
-version                         0.4
+pure.setup                      gen 0.4
 revision                        3
 categories                      devel
 platforms                       darwin
 maintainers                     ryandesign
 license                         GPLv3
-use_parallel_build              yes
-homepage                        http://pure-lang.googlecode.com/
-master_sites                    ${homepage}files/
 
 description                     a Pure C bindings generator
 
@@ -24,34 +21,8 @@
 depends_build-append            path:bin/ghc:ghc \
                                 port:hs-language-c
 
-depends_lib-append              path:lib/libpure.dylib:pure
-
 # pure-gen uses gcc at runtime to parse C headers but the
 # -fdirectives-only option it needs is only available in gcc 4.3 and up.
 depends_run-append              path:bin/gcc-mp-4.3:gcc43
 
 patchfiles-append               patch-pure-gen.pure.diff
-
-use_configure                   no
-
-pre-build {
-    build.args-append           CC=${configure.cc} \
-                                CFLAGS="${configure.cflags}" \
-                                CPPFLAGS="${configure.cppflags}" \
-                                LDFLAGS="${configure.ldflags}"
-}
-
-post-destroot {
-    xinstall -d \
-        ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${prefix}/share/examples
-    xinstall -m 644 -W ${worksrcpath} \
-        COPYING \
-        README \
-        ${destroot}${prefix}/share/doc/${name}
-    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
-}
-
-livecheck.type                  regex
-livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
-livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar

Modified: trunk/dports/graphics/pure-gl/Portfile
===================================================================
--- trunk/dports/graphics/pure-gl/Portfile	2009-10-25 01:32:20 UTC (rev 59862)
+++ trunk/dports/graphics/pure-gl/Portfile	2009-10-25 01:57:04 UTC (rev 59863)
@@ -1,17 +1,14 @@
 # $Id$
 
 PortSystem                      1.0
+PortGroup                       pure 1.0
 
-name                            pure-gl
-version                         0.6
+pure.setup                      gl 0.6
 revision                        3
 categories                      graphics
 platforms                       macosx
 maintainers                     ryandesign
 license                         GPLv3
-use_parallel_build              yes
-homepage                        http://pure-lang.googlecode.com/
-master_sites                    ${homepage}files/
 
 description                     an interface to access OpenGL functions from \
                                 Pure
@@ -22,8 +19,7 @@
                                 sha1    47dbbf42926d9937bdc6aad3b73abf4c8617c12c \
                                 rmd160  689886326ffcedf5548fd242f7a57a9a4f721654
 
-depends_lib-append              path:lib/libpure.dylib:pure \
-                                path:lib/libGL.dylib:mesa
+depends_lib-append              path:lib/libGL.dylib:mesa
 
 patchfiles                      patch-Makefile.diff
 
@@ -37,27 +33,3 @@
         ${worksrcpath}/GLU.c \
         ${worksrcpath}/GLUT.c
 }
-
-use_configure                   no
-
-pre-build {
-    build.args-append           CC=${configure.cc} \
-                                CFLAGS="${configure.cflags}" \
-                                CPPFLAGS="${configure.cppflags}" \
-                                LDFLAGS="${configure.ldflags}"
-}
-
-post-destroot {
-    xinstall -d \
-        ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${prefix}/share/examples
-    xinstall -m 644 -W ${worksrcpath} \
-        COPYING \
-        README \
-        ${destroot}${prefix}/share/doc/${name}
-    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
-}
-
-livecheck.type                  regex
-livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
-livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar

Modified: trunk/dports/math/pure-gsl/Portfile
===================================================================
--- trunk/dports/math/pure-gsl/Portfile	2009-10-25 01:32:20 UTC (rev 59862)
+++ trunk/dports/math/pure-gsl/Portfile	2009-10-25 01:57:04 UTC (rev 59863)
@@ -1,17 +1,14 @@
 # $Id$
 
 PortSystem                      1.0
+PortGroup                       pure 1.0
 
-name                            pure-gsl
-version                         0.6
+pure.setup                      gsl 0.6
 revision                        2
 categories                      math science
 platforms                       darwin
 maintainers                     ryandesign
 license                         GPLv3
-use_parallel_build              yes
-homepage                        http://pure-lang.googlecode.com/
-master_sites                    ${homepage}files/
 
 description                     a wrapper to call GNU Scientific Library \
                                 functions from Pure
@@ -26,29 +23,4 @@
                                 sha1    81a521b300ec83154f440d78fd14d3c0e6f8fe85 \
                                 rmd160  da1181fca5445116025e1327beeed6f69fa37ca6
 
-depends_lib-append              path:lib/libpure.dylib:pure \
-                                port:gsl
-
-use_configure                   no
-
-pre-build {
-    build.args-append           CC=${configure.cc} \
-                                CFLAGS="${configure.cflags}" \
-                                CPPFLAGS="${configure.cppflags}" \
-                                LDFLAGS="${configure.ldflags}"
-}
-
-post-destroot {
-    xinstall -d \
-        ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${prefix}/share/examples
-    xinstall -m 644 -W ${worksrcpath} \
-        COPYING \
-        README \
-        ${destroot}${prefix}/share/doc/${name}
-    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
-}
-
-livecheck.type                  regex
-livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
-livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar
+depends_lib-append              port:gsl

Modified: trunk/dports/textproc/pure-doc/Portfile
===================================================================
--- trunk/dports/textproc/pure-doc/Portfile	2009-10-25 01:32:20 UTC (rev 59862)
+++ trunk/dports/textproc/pure-doc/Portfile	2009-10-25 01:57:04 UTC (rev 59863)
@@ -1,17 +1,14 @@
 # $Id$
 
 PortSystem                      1.0
+PortGroup                       pure 1.0
 
-name                            pure-doc
-version                         0.5
+pure.setup                      doc 0.5
 revision                        2
 categories                      textproc
 platforms                       darwin
 maintainers                     ryandesign
 license                         GPLv3
-use_parallel_build              yes
-homepage                        http://pure-lang.googlecode.com/
-master_sites                    ${homepage}files/
 
 description                     a utility for literate programming and \
                                 documenting source code in Pure
@@ -25,28 +22,3 @@
                                 rmd160  dba12a859ae892dd2fc470579d096e7ad757fc81
 
 depends_build-append            path:bin/flex:flex
-
-depends_lib-append              path:lib/libpure.dylib:pure
-
-use_configure                   no
-
-pre-build {
-    build.args-append           CC=${configure.cc} \
-                                CFLAGS="${configure.cflags}" \
-                                CPPFLAGS="${configure.cppflags}" \
-                                CXX=${configure.cxx} \
-                                LDFLAGS="${configure.ldflags}"
-}
-
-post-destroot {
-    xinstall -d \
-        ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 -W ${worksrcpath} \
-        COPYING \
-        README \
-        ${destroot}${prefix}/share/doc/${name}
-}
-
-livecheck.type                  regex
-livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
-livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar

Modified: trunk/dports/textproc/pure-xml/Portfile
===================================================================
--- trunk/dports/textproc/pure-xml/Portfile	2009-10-25 01:32:20 UTC (rev 59862)
+++ trunk/dports/textproc/pure-xml/Portfile	2009-10-25 01:57:04 UTC (rev 59863)
@@ -1,17 +1,14 @@
 # $Id$
 
 PortSystem                      1.0
+PortGroup                       pure 1.0
 
-name                            pure-xml
-version                         0.2
+pure.setup                      xml 0.2
 revision                        2
 categories                      textproc
 platforms                       darwin
 maintainers                     ryandesign
 license                         GPLv3
-use_parallel_build              yes
-homepage                        http://pure-lang.googlecode.com/
-master_sites                    ${homepage}files/
 
 description                     an interface to libxml2 and libxslt for Pure
 
@@ -22,30 +19,5 @@
                                 sha1    7df20fba4c0ea4c09728a9e915c367f0181bf0c5 \
                                 rmd160  bf3be5e145be897300858a03799ef101b5763780
 
-depends_lib-append              path:lib/libpure.dylib:pure \
-                                path:lib/pkgconfig/libxml-2.0.pc:libxml2 \
+depends_lib-append              path:lib/pkgconfig/libxml-2.0.pc:libxml2 \
                                 path:lib/pkgconfig/libxslt.pc:libxslt
-
-use_configure                   no
-
-pre-build {
-    build.args-append           CC=${configure.cc} \
-                                CFLAGS="${configure.cflags}" \
-                                CPPFLAGS="${configure.cppflags}" \
-                                LDFLAGS="${configure.ldflags}"
-}
-
-post-destroot {
-    xinstall -d \
-        ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${prefix}/share/examples
-    xinstall -m 644 -W ${worksrcpath} \
-        COPYING \
-        README \
-        ${destroot}${prefix}/share/doc/${name}
-    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
-}
-
-livecheck.type                  regex
-livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
-livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar

Modified: trunk/dports/x11/pure-gtk/Portfile
===================================================================
--- trunk/dports/x11/pure-gtk/Portfile	2009-10-25 01:32:20 UTC (rev 59862)
+++ trunk/dports/x11/pure-gtk/Portfile	2009-10-25 01:57:04 UTC (rev 59863)
@@ -1,17 +1,14 @@
 # $Id$
 
 PortSystem                      1.0
+PortGroup                       pure 1.0
 
-name                            pure-gtk
-version                         0.4
+pure.setup                      gtk 0.4
 revision                        2
 categories                      x11
 platforms                       darwin
 maintainers                     ryandesign
 license                         GPLv3
-use_parallel_build              yes
-homepage                        http://pure-lang.googlecode.com/
-master_sites                    ${homepage}files/
 
 description                     a collection of bindings to use the GTK+ \
                                 GUI toolkit version 2.x with Pure
@@ -24,34 +21,9 @@
                                 sha1    40e4e313948822dcaaab27121c93e4337ea7e599 \
                                 rmd160  513a605fd0b7f441b938df7c8a4085ed7f049820
 
-depends_lib-append              path:lib/libpure.dylib:pure \
-                                path:lib/pure/ffi.dylib:pure-ffi \
+depends_lib-append              path:lib/pure/ffi.dylib:pure-ffi \
                                 path:lib/pkgconfig/atk.pc:atk \
                                 path:lib/pkgconfig/cairo.pc:cairo \
                                 path:lib/pkgconfig/glib-2.0.pc:glib2 \
                                 path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                                 path:lib/pkgconfig/pango.pc:pango
-
-use_configure                   no
-
-pre-build {
-    build.args-append           CC=${configure.cc} \
-                                CFLAGS="${configure.cflags}" \
-                                CPPFLAGS="${configure.cppflags}" \
-                                LDFLAGS="${configure.ldflags}"
-}
-
-post-destroot {
-    xinstall -d \
-        ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${prefix}/share/examples
-    xinstall -m 644 -W ${worksrcpath} \
-        COPYING \
-        README \
-        ${destroot}${prefix}/share/doc/${name}
-    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
-}
-
-livecheck.type                  regex
-livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
-livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091024/89f5f217/attachment-0001.html>


More information about the macports-changes mailing list