[101881] trunk/dports/science/root/Portfile

g5pw at macports.org g5pw at macports.org
Sun Jan 20 13:33:06 PST 2013


Revision: 101881
          https://trac.macports.org/changeset/101881
Author:   g5pw at macports.org
Date:     2013-01-20 13:33:05 -0800 (Sun, 20 Jan 2013)
Log Message:
-----------
science/root:
  fixes genreflex script
  use PyRoot without setting PYTHONPATH
  remove the --clang option
  maintainer update (#37687)

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

Modified: trunk/dports/science/root/Portfile
===================================================================
--- trunk/dports/science/root/Portfile	2013-01-20 21:20:16 UTC (rev 101880)
+++ trunk/dports/science/root/Portfile	2013-01-20 21:33:05 UTC (rev 101881)
@@ -5,7 +5,7 @@
 
 name                root
 version             5.34.04
-revision            0
+revision            1
 categories          science
 maintainers         gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc
 license             LGPL-2.1+
@@ -53,9 +53,6 @@
         --with-cc=${configure.cc} \
         --with-cxx=${configure.cxx} \
         --with-ld=${configure.cxx}
-    if { [string match "*clang*" ${configure.compiler}] } {
-        configure.args-append --with-clang
-    }
     if { ${configure.f77} != "" } {
         configure.args-append --with-f77=${configure.f77}
     }
@@ -206,10 +203,14 @@
     configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     depends_lib-append      port:python26
     post-destroot {
-        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
-        file mkdir ${mypysitedir}
-        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
-        move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
+        set mypylibdir  ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
+        set mypysitedir ${mypylibdir}/site-packages/
+        file mkdir ${destroot}${mypysitedir}
+        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} }
+        move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${mypysitedir}
+        reinplace "s|/opt/local/lib/root|${mypysitedir}|g" ${destroot}${prefix}/bin/genreflex
+        reinplace "s|python/genreflex/genreflex.py|genreflex/genreflex.py|g" ${destroot}${prefix}/bin/genreflex
+        ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
     }
 }
 
@@ -221,10 +222,14 @@
                             --with-python-libdir="${mypydir}"
     depends_lib-append      port:python27
     post-destroot {
-        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
-        file mkdir ${mypysitedir}
-        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
-        move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
+        set mypylibdir  ${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
+        set mypysitedir ${mypylibdir}/site-packages/
+        file mkdir ${destroot}${mypysitedir}
+        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} }
+        move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${mypysitedir}
+        reinplace "s|/opt/local/lib/root|${mypysitedir}|g" ${destroot}${prefix}/bin/genreflex
+        reinplace "s|python/genreflex/genreflex.py|genreflex/genreflex.py|g" ${destroot}${prefix}/bin/genreflex
+        ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
     }
 }
 
@@ -234,10 +239,14 @@
     configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     depends_lib-append      port:python31
     post-destroot {
-        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/
-        file mkdir ${mypysitedir}
-        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
-        move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
+        set mypylibdir  ${prefix}/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1
+        set mypysitedir ${mypylibdir}/site-packages/
+        file mkdir ${destroot}${mypysitedir}
+        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} }
+        move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${mypysitedir}
+        reinplace "s|/opt/local/lib/root|${mypysitedir}|g" ${destroot}${prefix}/bin/genreflex
+        reinplace "s|python/genreflex/genreflex.py|genreflex/genreflex.py|g" ${destroot}${prefix}/bin/genreflex
+        ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
     }
 }
 
@@ -249,10 +258,14 @@
                             --with-python-libdir="${mypydir}"
     depends_lib-append      port:python32
     post-destroot {
-        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
-        file mkdir ${mypysitedir}
-        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
-        move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
+        set mypylibdir  ${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2
+        set mypysitedir ${mypylibdir}/site-packages/
+        file mkdir ${destroot}${mypysitedir}
+        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} }
+        move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${mypysitedir}
+        reinplace "s|/opt/local/lib/root|${mypysitedir}|g" ${destroot}${prefix}/bin/genreflex
+        reinplace "s|python/genreflex/genreflex.py|genreflex/genreflex.py|g" ${destroot}${prefix}/bin/genreflex
+        ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
     }
 }
 
@@ -438,10 +451,6 @@
 #                    F77=${configure.f77}
 #}
 
-# variant cling requires clang31 description {EXPERIMENTAL - Enable cling interpreter backend} {
-#       configure.args-append --enable-cling
-# }
-
 # variant kerberos5 description {Build with kerberos5 support} {
 #     configure.args-delete   --disable-krb5
 #     configure.args-append   --enable-krb5 \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130120/249f07af/attachment.html>


More information about the macports-changes mailing list