[100424] trunk/dports/python
macsforever2000 at macports.org
macsforever2000 at macports.org
Tue Dec 11 09:52:58 PST 2012
Revision: 100424
https://trac.macports.org/changeset/100424
Author: macsforever2000 at macports.org
Date: 2012-12-11 09:52:58 -0800 (Tue, 11 Dec 2012)
Log Message:
-----------
py-pyqwt: Unify
Modified Paths:
--------------
trunk/dports/python/py-pyqwt/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-pyqwt/
trunk/dports/python/py26-pyqwt/
trunk/dports/python/py27-pyqwt/
Modified: trunk/dports/python/py-pyqwt/Portfile
===================================================================
--- trunk/dports/python/py-pyqwt/Portfile 2012-12-11 17:35:51 UTC (rev 100423)
+++ trunk/dports/python/py-pyqwt/Portfile 2012-12-11 17:52:58 UTC (rev 100424)
@@ -1,43 +1,74 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
+PortGroup python 1.0
-name py-pyqwt
-version 5.1.0
-platforms macosx
-categories python devel
-maintainers erickt openmaintainer
-description PyQwt is a set of Python bindings for the Qwt toolkit
-long_description ${description}
-homepage http://pyqwt.sourceforge.net
-master_sites sourceforge:pyqwt
-distname PyQwt-${version}
+name py-pyqwt
+version 5.2.0
+revision 3
-checksums md5 c9d662a0d4fc95cec75d3c526e4e748a \
- sha1 d1b55e4a7400889e1d0831f8d6f3b692fc37aecb \
- rmd160 e8bbf154a9e30894977494829bf379a807fdf1e9
+platforms macosx
+categories python devel
+maintainers macsforever2000 michaelld erickt openmaintainer
+license GPL
-depends_lib port:py24-pyqt4
+description PyQwt is a set of Python bindings for the Qwt toolkit
+long_description PyQwt is a set of Python bindings for the Qwt C++ class library which extends \
+ the Qt framework with widgets for scientific and engineering applications. It \
+ provides a widget to plot 2-dimensional data and various widgets to display \
+ and control bounded or unbounded floating point values.
-worksrcdir ${worksrcdir}/configure
+homepage http://pyqwt.sourceforge.net
+master_sites sourceforge:pyqwt
+distname PyQwt-${version}
+dist_subdir python
-configure.cmd ${prefix}/bin/python2.4 configure.py
-configure.pre_args -I ${prefix}/include -I ${prefix}/include/python2.4 -L ${prefix}/lib
+checksums md5 fcd6c6029090d473dcc9df497516eae7 \
+ sha1 797f37c63dec660272f6a8ccfd16a017df0ad640 \
+ rmd160 e4c8a63d623d974cd500e29fbc62255746ca7feb
-build.target
+python.versions 24 25 26 27
-variant numpy description "Use numpy as array-object" {
- depends_lib-append port:py24-numpy
-}
+if {$subport != $name} {
-variant qwt conflicts qwt52 description {Use qwt} {
- depends_lib-append port:qwt
-}
+ use_configure yes
-variant qwt52 conflicts qwt description {Use qwt52} {
- depends_lib-append port:qwt52
-}
+ depends_lib port:py${python.version}-pyqt4 \
+ port:py${python.version}-numpy
+
+ worksrcdir ${worksrcdir}/configure
+
+ configure.cmd ${prefix}/bin/python${python.branch} configure.py
+ configure.pre_args -I ${prefix}/include -I ${prefix}/include/qwt -I ${prefix}/include/python${python.branch} -L ${prefix}/lib --disable-numarray --disable-numeric
+ configure.universal_args-delete --disable-dependency-tracking
-if {![variant_isset qwt] && ![variant_isset qwt52]} {
- default_variants +qwt
+ build.target
+ build.cmd make
+ destroot.cmd make install
+ destroot.destdir DESTDIR=${destroot}
+
+ variant qwt conflicts qwt52 description {Use QWT 5.1} {
+ configure.args-append -Q ${prefix}/include/qwt
+ depends_lib-append port:qwt
+ }
+
+ variant qwt52 conflicts qwt description {Use QWT 5.2} {
+ configure.pre_args-append -Q ${prefix}/include/qwt
+ depends_lib-append port:qwt52
+ }
+
+ variant qwt60 conflicts qwt, qwt52 description {Use QWT 6.0} {
+ configure.args-append -Q ${prefix}/lib/qwt.framework/Versions/6/Headers
+ depends_lib-append port:qwt-60
+ }
+
+ if {![variant_isset qwt] && ![variant_isset qwt60]} {
+ default_variants +qwt52
+ }
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url ${homepage}
+ livecheck.regex {PyQwt-([0-9\.]+)\.tar\.gz}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121211/328c4a5e/attachment-0001.html>
More information about the macports-changes
mailing list