[125278] trunk/dports/python
jmr at macports.org
jmr at macports.org
Fri Sep 12 10:13:33 PDT 2014
Revision: 125278
https://trac.macports.org/changeset/125278
Author: jmr at macports.org
Date: 2014-09-12 10:13:33 -0700 (Fri, 12 Sep 2014)
Log Message:
-----------
py26-logilab-hmm: use unified python portgroup
Modified Paths:
--------------
trunk/dports/python/py-logilab-hmm/Portfile
Added Paths:
-----------
trunk/dports/python/py-logilab-hmm/
Removed Paths:
-------------
trunk/dports/python/py26-logilab-hmm/
Modified: trunk/dports/python/py-logilab-hmm/Portfile
===================================================================
--- trunk/dports/python/py26-logilab-hmm/Portfile 2014-09-12 07:51:08 UTC (rev 125271)
+++ trunk/dports/python/py-logilab-hmm/Portfile 2014-09-12 17:13:33 UTC (rev 125278)
@@ -2,9 +2,9 @@
# $Id$
PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
-name py26-logilab-hmm
+name py-logilab-hmm
version 0.5.0
revision 1
maintainers minimoog.org:sb
@@ -26,53 +26,67 @@
sha1 6be2012ab3b7ed6ceac42b48a821f6e194c71f6f \
rmd160 b62f3ac49e4d2681138e55490430c4bdfdf418f6
-depends_lib port:py26-logilab-common port:py26-numpy
+python.versions 26
-universal_variant no
-python.add_archflags no
+if {$subport ne $name} {
+ depends_lib port:py${python.version}-logilab-common port:py${python.version}-numpy
+ universal_variant no
+ python.add_archflags no
+
+ post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath} README \
+ ${destroot}${prefix}/share/doc/${subport}
+ file delete ${destroot}${python.pkgd}/logilab/__init__.py
+ }
+}
+
variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description "Use gfortran-mp-4.3 as fortran compiler" {
- configure.compiler macports-gcc-4.3
- set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
- build.cmd-append ${fc_options}
- destroot.cmd-append ${fc_options}
+ if {$subport ne $name} {
+ configure.compiler macports-gcc-4.3
+ set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
+ build.cmd-append ${fc_options}
+ destroot.cmd-append ${fc_options}
+ }
}
variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description "Use gfortran-mp-4.4 as fortran compiler" {
- configure.compiler macports-gcc-4.4
- set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4"
- build.cmd-append ${fc_options}
- destroot.cmd-append ${fc_options}
+ if {$subport ne $name} {
+ configure.compiler macports-gcc-4.4
+ set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4"
+ build.cmd-append ${fc_options}
+ destroot.cmd-append ${fc_options}
+ }
}
variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description "Use gfortran-mp-4.5 as fortran compiler" {
- configure.compiler macports-gcc-4.5
- set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5"
- build.cmd-append ${fc_options}
- destroot.cmd-append ${fc_options}
+ if {$subport ne $name} {
+ configure.compiler macports-gcc-4.5
+ set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5"
+ build.cmd-append ${fc_options}
+ destroot.cmd-append ${fc_options}
+ }
}
variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description "Use gfortran-mp-4.6 as fortran compiler" {
- configure.compiler macports-gcc-4.6
- set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.6 --f90exec ${prefix}/bin/gfortran-mp-4.6"
- build.cmd-append ${fc_options}
- destroot.cmd-append ${fc_options}
+ if {$subport ne $name} {
+ configure.compiler macports-gcc-4.6
+ set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.6 --f90exec ${prefix}/bin/gfortran-mp-4.6"
+ build.cmd-append ${fc_options}
+ destroot.cmd-append ${fc_options}
+ }
}
variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description "Use gfortran-mp-4.7 as fortran compiler" {
- configure.compiler macports-gcc-4.7
- set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.7 --f90exec ${prefix}/bin/gfortran-mp-4.7"
- build.cmd-append ${fc_options}
- destroot.cmd-append ${fc_options}
+ if {$subport ne $name} {
+ configure.compiler macports-gcc-4.7
+ set fc_options "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.7 --f90exec ${prefix}/bin/gfortran-mp-4.7"
+ build.cmd-append ${fc_options}
+ destroot.cmd-append ${fc_options}
+ }
}
if { ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] } {
default_variants +gcc47
}
-
-post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath} README \
- ${destroot}${prefix}/share/doc/${name}
- file delete ${destroot}/${python.prefix}/lib/python2.6/site-packages/logilab/__init__.py
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140912/3d815ab0/attachment.html>
More information about the macports-changes
mailing list