[102146] trunk/dports/python
jmr at macports.org
jmr at macports.org
Mon Jan 28 08:10:15 PST 2013
Revision: 102146
https://trac.macports.org/changeset/102146
Author: jmr at macports.org
Date: 2013-01-28 08:10:15 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
py*-construct: unify
Modified Paths:
--------------
trunk/dports/python/py-construct/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-construct/
Modified: trunk/dports/python/py-construct/Portfile
===================================================================
--- trunk/dports/python/py-construct/Portfile 2013-01-28 15:41:22 UTC (rev 102145)
+++ trunk/dports/python/py-construct/Portfile 2013-01-28 16:10:15 UTC (rev 102146)
@@ -1,13 +1,13 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-construct
version 2.00
-categories python
platforms darwin
-maintainers macfreek.nl:software openmaintainer
+supported_archs noarch
+maintainers macfreek.nl:software dckd.nl:macports openmaintainer
description python module for parsing and building binary or textual data structures
long_description Construct is a python library for parsing and building of data structures \
(binary or textual). It is based on the concept of defining data \
@@ -16,18 +16,29 @@
homepage http://construct.wikispaces.com/
master_sites sourceforge:pyconstruct
-# we download the 2.00-py24 "backport" version, since that is backward compatible in
-# Python 2.4 (and it works fine with Python 2.5 too)
-distname construct-${version}-distro-py24b
-checksums md5 783c5584a8ea2b7fb7eeada564687aaa
-use_zip yes
+distname construct-${version}-distro
+checksums md5 ac374c2fdf6a9351468ad8c149584cf3 \
+ sha1 ff1e2f7b90f994f037ac22e490a881bc96e47d30
-worksrcdir construct
+python.versions 24 25
-# nothing to build
-build {}
+subport py24-construct {
+ # we download the 2.00-py24 "backport" version, since that is backward compatible in
+ # Python 2.4 (and it works fine with Python 2.5 too)
+ distname construct-${version}-distro-py24b
+ checksums md5 783c5584a8ea2b7fb7eeada564687aaa
+}
-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/lib/python2.4/site-packages
- file copy ${workpath}/construct ${destroot}${prefix}/lib/python2.4/site-packages
+if {$subport != $name} {
+ use_zip yes
+
+ worksrcdir construct
+
+ # nothing to build
+ build {}
+
+ destroot {
+ xinstall -d ${destroot}${python.pkgd}
+ file copy ${workpath}/construct ${destroot}${python.pkgd}
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130128/352743d7/attachment.html>
More information about the macports-changes
mailing list