[115861] trunk/dports/math/ufc/Portfile
sean at macports.org
sean at macports.org
Sun Jan 12 22:10:27 PST 2014
Revision: 115861
https://trac.macports.org/changeset/115861
Author: sean at macports.org
Date: 2014-01-12 22:10:27 -0800 (Sun, 12 Jan 2014)
Log Message:
-----------
ufc: update to 1.3.0
This also enforces installation with python27 instead of providing
variants. The reason for this is that I didn't realize the fenics project had
such interdependencies with C/C++ and python and they really target only one
python at a time. So, instead of making this a burden for me to maintain, I'll
just force one python version at a time.
We can come back to the decision later, if need be.
Modified Paths:
--------------
trunk/dports/math/ufc/Portfile
Modified: trunk/dports/math/ufc/Portfile
===================================================================
--- trunk/dports/math/ufc/Portfile 2014-01-13 06:10:24 UTC (rev 115860)
+++ trunk/dports/math/ufc/Portfile 2014-01-13 06:10:27 UTC (rev 115861)
@@ -5,8 +5,7 @@
PortGroup cmake 1.0
PortGroup bitbucket 1.0
-bitbucket.setup fenics-project ufc ef9f4f7d08d7
-version 2.2.0
+bitbucket.setup fenics-project ufc 2.3.0 ufc-
categories math science python
platforms darwin
maintainers sean openmaintainer
@@ -19,55 +18,16 @@
header file ufc.h that specifies a C++ interface that must \
be implemented by code that complies with the UFC specification.
-checksums rmd160 b2a6a60eafef58cf0db95031169296d295c7ef7a \
- sha256 b04928148c01d7f76a76c63c68659b12732db932342ef4e8e3edc253119646ed
+checksums rmd160 f2357707a5b4eec2f50abbc957234d972603ab97 \
+ sha256 75565ec0268d7f4c916ced7fe1ca2cc98e62c0c724efb94083580275098f0dd0
-depends_lib port:swig-python port:boost
+depends_lib port:python27 \
+ port:swig-python \
+ port:boost
-set pythons_suffixes {25 26 27 31 32}
-
-set pythons_ports {}
-set python_isset 0
-foreach s ${pythons_suffixes} {
- lappend pythons_ports python${s}
- if {[variant_isset python${s}]} {
- set python_isset 1
- }
+post-destroot {
+ xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7
+ move ${destroot}${prefix}/lib ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib
+ xinstall -d ${destroot}${prefix}/lib
+ move ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/pkgconfig ${destroot}${prefix}/lib/pkgconfig
}
-
-proc python_dir {} {
- global pythons_suffixes
- foreach s ${pythons_suffixes} {
- if {[variant_isset python${s}]} {
- set p python[string index ${s} 0].[string index ${s} 1]
- return [file normalize [exec ${p} -c "import sys; print(sys.prefix)"]/lib/${p}/site-packages]
- }
- }
- error "Python support not enabled."
-}
-
-foreach s ${pythons_suffixes} {
- set p python${s}
- set v [string index ${s} 0].[string index ${s} 1]
- set i [lsearch -exact ${pythons_ports} ${p}]
- set c [lreplace ${pythons_ports} ${i} ${i}]
- eval [subst {
- variant ${p} description "Build UFC for Python ${v}" conflicts ${c} {
-
- post-destroot {
- xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/${v}
- move ${destroot}${prefix}/lib ${destroot}${frameworks_dir}/Python.framework/Versions/${v}/lib
- xinstall -d ${destroot}${prefix}/lib
- move ${destroot}${frameworks_dir}/Python.framework/Versions/${v}/lib/pkgconfig ${destroot}${prefix}/lib/pkgconfig
- }
-
- }
- }]
-}
-
-if {!$python_isset} {
- default_variants +python27
-}
-
-# project doesn't use tag or branches for releases
-livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140112/83466b3d/attachment-0001.html>
More information about the macports-changes
mailing list