[80938] trunk/dports/sysutils/MacPorts/Portfile

jmr at macports.org jmr at macports.org
Thu Jul 21 13:50:09 PDT 2011


Revision: 80938
          http://trac.macports.org/changeset/80938
Author:   jmr at macports.org
Date:     2011-07-21 13:50:09 -0700 (Thu, 21 Jul 2011)
Log Message:
-----------
MacPorts port: update to 2.0.0

Modified Paths:
--------------
    trunk/dports/sysutils/MacPorts/Portfile

Modified: trunk/dports/sysutils/MacPorts/Portfile
===================================================================
--- trunk/dports/sysutils/MacPorts/Portfile	2011-07-21 20:43:19 UTC (rev 80937)
+++ trunk/dports/sysutils/MacPorts/Portfile	2011-07-21 20:50:09 UTC (rev 80938)
@@ -3,7 +3,7 @@
 PortSystem          1.0
 
 name                MacPorts
-version             1.9.2
+version             2.0.0
 
 categories          sysutils
 platforms           darwin freebsd
@@ -14,15 +14,18 @@
    MacPorts provides the infrastructure that allows easy installation and \
    management of freely available software on Mac OS X 10.4 or newer systems.
 
+notes "This port cannot directly be used to upgrade MacPorts; use 'port\
+selfupdate' for that."
+
 homepage            http://www.macports.org/
-master_sites        macports_distfiles
+master_sites
 # testing subdir is for non-final releases only
 #dist_subdir         ${name}/testing
 use_bzip2           yes
 
-checksums           md5     a8da5dfaffe03d6f9369572f14ff085a \
-                    sha1    553b2a55e970d3ed92caa634c1345054ff87cd1f \
-                    rmd160  511599576cff3a0c3aa200e9af96aa69fa54c17a
+checksums           md5     7506e08151d5c919da39c03ac2be0b18 \
+                    sha1    5899f39fd277613720a99ea32c9c6aea0031c882 \
+                    rmd160  0abf2ee0b04744f5d89572a143bd1e596fd248b6
 
 variant keep_prefix description "Use configured prefix instead of enforcing /opt/local" {}
 if {![variant_isset keep_prefix]} {
@@ -41,19 +44,12 @@
 # itself; nuke them.
 configure.cppflags
 configure.ldflags
+configure.cc_archflags
+configure.objc_archflags
+configure.ld_archflags
+compiler.cpath
+compiler.library_path
 
-if {[info exists configure.cc_archflags]} {
-    configure.cc_archflags
-    configure.objc_archflags
-}
-if {[info exists configure.ld_archflags]} {
-    configure.ld_archflags
-}
-if {[info exists compiler.cpath]} {
-    compiler.cpath
-    compiler.library_path
-}
-
 # MacPorts' configure removes ${prefix}/bin from $PATH,
 # so better do not use ccache, to avoid problems.
 configure.ccache no
@@ -61,6 +57,7 @@
 post-destroot {
     # Only install .default versions of config files.
     delete ${destroot}${prefix}/etc/macports/macports.conf
+    delete ${destroot}${prefix}/etc/macports/pubkeys.conf
     delete ${destroot}${prefix}/etc/macports/sources.conf
     delete ${destroot}${prefix}/etc/macports/variants.conf
 }
@@ -78,9 +75,9 @@
     file copy -force -- ${worksrcpath}/portmgr/dmg/postflight ${resources_scripts}
     file copy -force -- ${worksrcpath}/portmgr/dmg/InstallationCheck ${resources_scripts}
     file copy -force -- ${worksrcpath}/portmgr/dmg/InstallationCheck.strings ${resources_lang}
-    file copy -force -- ${worksrcpath}/src/dep_map_clean.tcl ${resources_scripts}
     file copy -force -- ${worksrcpath}/src/upgrade_sources_conf_default.tcl ${resources_scripts}
-    
+    file copy -force -- ${worksrcpath}/src/images_to_archives.tcl ${resources_scripts}
+
     reinplace "s|__PREFIX__|${prefix}|g" \
               ${resources_scripts}/InstallationCheck \
               ${resources_scripts}/postflight \
@@ -171,6 +168,21 @@
     }
 }
 
+platform darwin 11 {
+    # Supply architecture flags to build MacPorts universal.
+    configure.cflags-append -arch x86_64 -arch i386
+    configure.args-append SHLIB_LDFLAGS='-arch x86_64 -arch i386'
+    post-pkg {
+        global resources_scripts resources_lang
+        reinplace "s|is built|contains a Universal installer|" ${resources_lang}/ReadMe.rtf
+        reinplace "s|__XVERS__|10.7|" ${resources_lang}/ReadMe.rtf \
+            ${resources_lang}/InstallationCheck.strings
+        reinplace "s|10.4|10.7|" ${resources_lang}/Welcome.html
+        reinplace "s|or newer ||" ${resources_lang}/Welcome.html
+        reinplace "s|__DARWINVERS__|11|" ${resources_scripts}/InstallationCheck
+    }
+}
+
 destroot.violate_mtree yes
 destroot.keepdirs    ${destroot}${prefix}/include \
                      ${destroot}${prefix}/lib \
@@ -284,6 +296,4 @@
                      ${destroot}${prefix}/share/nls/zh_TW.Big5 \
                      ${destroot}${prefix}/var/macports/build \
                      ${destroot}${prefix}/var/macports/distfiles \
-                     ${destroot}${prefix}/var/macports/receipts \
-                     ${destroot}${prefix}/var/macports/registry \
-                     ${destroot}${prefix}/var/macports/packages
+                     ${destroot}${prefix}/var/macports/registry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110721/8c2c7603/attachment-0001.html>


More information about the macports-changes mailing list