[104645] trunk/dports/devel/bootstrap_cmds/Portfile

mfeiri at macports.org mfeiri at macports.org
Sat Mar 30 09:21:56 PDT 2013


Revision: 104645
          https://trac.macports.org/changeset/104645
Author:   mfeiri at macports.org
Date:     2013-03-30 09:21:56 -0700 (Sat, 30 Mar 2013)
Log Message:
-----------
bootstrap_cmds: need v80 on darwin < 12 for the relpath and decomment tools to build xnu-headers

Modified Paths:
--------------
    trunk/dports/devel/bootstrap_cmds/Portfile

Modified: trunk/dports/devel/bootstrap_cmds/Portfile
===================================================================
--- trunk/dports/devel/bootstrap_cmds/Portfile	2013-03-30 15:59:10 UTC (rev 104644)
+++ trunk/dports/devel/bootstrap_cmds/Portfile	2013-03-30 16:21:56 UTC (rev 104645)
@@ -6,7 +6,8 @@
 
 name                    bootstrap_cmds
 version                 85
-revision                2
+revision                1
+epoch                   1
 categories              devel
 maintainers             mfeiri openmaintainer
 homepage                http://opensource.apple.com/source/${name}/
@@ -19,21 +20,49 @@
 checksums               rmd160  1ad5a860fb3f907d86ae31b1bf0c2ab2b7e95fca \
                         sha256  0603f6c73db38130742fe9742cff9d47cc5bc60d02d16e21d18239cfbf1c9f4f
 
-xcode.project           mig.xcodeproj
+xcode.target            migcom
 xcode.destroot.path     ${prefix}/bin
 
-post-extract {
-    reinplace "s|\$(DT_TOOLCHAIN_DIR)/usr|${prefix}|g" \
-        ${worksrcpath}/mig.xcodeproj/project.pbxproj
-    foreach f [glob ${worksrcpath}/xcodescripts/*.sh] {
-        reinplace "s|\$DSTROOT/\$DT_TOOLCHAIN_DIR/usr|${destroot}${prefix}|g" $f
+
+# for replath and decomment
+if {${os.major} < 12} {
+    version         80
+    checksums       rmd160  072e399562eb021e4fa0cd66132153afcc02f417 \
+                    sha256  2ae65cd2ca6f0f684b25aad46a649aeb95a774d06a8287c59962fba42900a2fc
+
+    depends_build-append    port:coreosmakefiles
+    xcode.project           migcom.tproj/migcom.xcodeproj
+
+    pre-build {
+        file delete ${worksrcpath}/Makefile
+        system "make -C ${worksrcpath} decomment.tproj/decomment relpath.tproj/relpath"
+        reinplace "s|\$(MAKEFILEPATH)|${prefix}/share/Makefiles|g" ${worksrcpath}/migcom.tproj/Makefile
     }
-}
 
-patchfiles cc_fallback.patch
+    post-destroot {
+        file rename ${worksrcpath}/migcom.tproj/build/UninstalledProducts/migcom ${destroot}${prefix}/libexec/
+        file rename ${worksrcpath}/decomment.tproj/decomment ${destroot}${prefix}/bin/
+        file rename ${worksrcpath}/relpath.tproj/relpath ${destroot}${prefix}/bin/
+        file rename ${worksrcpath}/migcom.tproj/mig.sh ${destroot}${prefix}/bin/mig
+        file rename ${worksrcpath}/migcom.tproj/mig.1 ${worksrcpath}/migcom.tproj/migcom.1 \
+            ${destroot}${prefix}/share/man/man1/
+    }
 
-post-destroot {
-    file rename ${destroot}${prefix}/bin/migcom ${destroot}${prefix}/libexec/migcom
+} else {
+    xcode.project   mig.xcodeproj
+
+    post-extract {
+        reinplace "s|\$(DT_TOOLCHAIN_DIR)/usr|${prefix}|g" \
+            ${worksrcpath}/mig.xcodeproj/project.pbxproj
+        foreach f [glob ${worksrcpath}/xcodescripts/*.sh] {
+            reinplace "s|\$DSTROOT/\$DT_TOOLCHAIN_DIR/usr|${destroot}${prefix}|g" $f
+        }
+    }
+
+    post-destroot {
+        file rename ${destroot}${prefix}/bin/migcom ${destroot}${prefix}/libexec/migcom
+    }
+
 }
 
 livecheck.type          regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130330/dd6b589f/attachment.html>


More information about the macports-changes mailing list