[144966] trunk/dports/python
eborisch at macports.org
eborisch at macports.org
Fri Jan 22 09:58:08 PST 2016
Revision: 144966
https://trac.macports.org/changeset/144966
Author: eborisch at macports.org
Date: 2016-01-22 09:58:08 -0800 (Fri, 22 Jan 2016)
Log Message:
-----------
py-qtpy: New port; abstraction layer for PyQt4/PyQt5
Added Paths:
-----------
trunk/dports/python/py-qtpy/
trunk/dports/python/py-qtpy/Portfile
Added: trunk/dports/python/py-qtpy/Portfile
===================================================================
--- trunk/dports/python/py-qtpy/Portfile (rev 0)
+++ trunk/dports/python/py-qtpy/Portfile 2016-01-22 17:58:08 UTC (rev 144966)
@@ -0,0 +1,50 @@
+# -*- 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
+PortGroup python 1.0
+PortGroup github 1.0
+
+github.setup spyder-ide qtpy 1.0b1
+name py-qtpy
+
+categories-append devel
+license MIT
+platforms darwin
+supported_archs noarch
+maintainers eborisch openmaintainer
+
+description Abtraction layer for PySide/PyQt4/PyQt5
+long_description QtPy (pronounced 'cutie pie') is a small abstraction layer \
+ that lets you write applications using a single api call \
+ to either PyQt or PySide. QtPy also provides a set of \
+ additional QWidgets. \
+ It provides support for PyQt5, PyQt4 and PySide using the \
+ PyQt5 layout (where the QtGui module has been split into \
+ QtGui and QtWidgets).
+
+checksums \
+ rmd160 4ee64916d40a1ed81c948f64c1e818f4cae90f50 \
+ sha256 c96f7e991787a2af1030af5c14b2e1f06017da06ae7d93335ec2f3791026a567
+
+python.versions 27 34 35
+
+if {${name} ne ${subport}} {
+ livecheck.type none
+ depends_build-append port:py${python.version}-setuptools
+ depends_lib-append port:py${python.version}-pyqt4
+
+ # Will *work* with either/both under the hood, but provide variants to
+ # determine what we label as depends_lib. (We need at least one installed,
+ # and we don't want to force installing both.)
+ variant qt5 description {Depend on pyqt5. (Else pyqt4)} {
+ depends_lib-append port:py${python.version}-pyqt5
+ depends_lib-delete port:py${python.version}-pyqt4
+ }
+
+ post-destroot {
+ file mkdir ${destroot}${prefix}/share/doc/${subport}
+ copy ${worksrcpath}/LICENSE.txt \
+ ${destroot}${prefix}/share/doc/${subport}
+ }
+}
Property changes on: trunk/dports/python/py-qtpy/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160122/3be649d3/attachment.html>
More information about the macports-changes
mailing list