[64888] trunk/dports/science/geomview/Portfile

raphael at macports.org raphael at macports.org
Tue Mar 16 10:33:20 PDT 2010


Revision: 64888
          http://trac.macports.org/changeset/64888
Author:   raphael at macports.org
Date:     2010-03-16 10:33:19 -0700 (Tue, 16 Mar 2010)
Log Message:
-----------
geomview:

* bump revision for jpeg 8
* indicate license
* make direct dependencies explicit
* use xcodeversion portgroup
* install additional documentation files
* capitalize variant descriptions

Modified Paths:
--------------
    trunk/dports/science/geomview/Portfile

Modified: trunk/dports/science/geomview/Portfile
===================================================================
--- trunk/dports/science/geomview/Portfile	2010-03-16 17:17:07 UTC (rev 64887)
+++ trunk/dports/science/geomview/Portfile	2010-03-16 17:33:19 UTC (rev 64888)
@@ -1,11 +1,13 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           xcodeversion 1.0
 
 name                geomview
 version             1.9.4
-revision            2
+revision            3
 categories          science graphics x11
+license             LGPL-2.1
 maintainers         raphael openmaintainer
 description         interactive 3D viewing program
 long_description    Geomview is an interactive 3D viewing program for Unix. \
@@ -38,28 +40,45 @@
 depends_lib         port:openmotif \
                     port:zlib \
                     port:xorg-libXt \
-		    port:mesa
+		    port:mesa \
+                    port:libpng \
+                    port:jpeg \
+                    port:xorg-libXp \
+                    port:Xft2 \
+                    port:xrender \
+                    port:fontconfig \
+                    port:libiconv \
+                    port:expat \
+                    port:freetype \
+                    port:xorg-libXmu \
+                    port:xorg-libsm \
+                    port:xorg-libXext \
+                    port:xorg-libX11 \
+                    port:xorg-libXau \
+                    port:xorg-libXdmcp
 
 depends_build       path:bin/tex:texlive \
                     port:texinfo
 
-pre-extract {
-    if {"darwin" == ${os.platform} && 9 == ${os.major}} {
-        set minimum_xcodeversion 3.1
-        set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
-        if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
-            ui_msg "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
-            return -code error "incompatible Xcode version"
-        }
-    }
+minimum_xcodeversions   {9 3.1}
+
+post-destroot {
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath} \
+        AUTHORS \
+        COPYING \
+        ChangeLog \
+        NEWS \
+        README \
+        ${destroot}${prefix}/share/doc/${name}
 }
 
-variant no_zlib description {do not use zlib} {
+variant no_zlib description {Do not use zlib} {
     configure.args-append       --without-zlib
     depends_lib-delete          port:zlib
 }
 
-variant no_opengl description {do not use OpenGL} {
+variant no_opengl description {Do not use OpenGL} {
     configure.args-append       --without-opengl
     configure.args-delete       --with-opengl=${prefix}
     depends_lib-delete          port:mesa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100316/a141d094/attachment.html>


More information about the macports-changes mailing list