[101553] trunk/dports/python/py-plex/Portfile
jmr at macports.org
jmr at macports.org
Sun Jan 13 14:27:18 PST 2013
Revision: 101553
https://trac.macports.org/changeset/101553
Author: jmr at macports.org
Date: 2013-01-13 14:27:18 -0800 (Sun, 13 Jan 2013)
Log Message:
-----------
py-plex: use unified portgroup, license, noarch
Modified Paths:
--------------
trunk/dports/python/py-plex/Portfile
Modified: trunk/dports/python/py-plex/Portfile
===================================================================
--- trunk/dports/python/py-plex/Portfile 2013-01-13 22:22:36 UTC (rev 101552)
+++ trunk/dports/python/py-plex/Portfile 2013-01-13 22:27:18 UTC (rev 101553)
@@ -1,14 +1,16 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-plex
version 1.1.4.1
revision 1
categories python devel
+license Permissive
maintainers nomaintainer
platforms darwin freebsd
+supported_archs noarch
description lexical analysis module for python
long_description Plex is a Python module for constructing lexical \
analysers, or scanners. Plex scanners have almost all the \
@@ -23,15 +25,19 @@
distname Plex-${version}
checksums md5 e6ec70ab691c465910a8c010586c7500
-patch {
- file copy ${portpath}/files/setup.py ${worksrcpath}
- reinplace "s|PORTVERSION|${version}|g" ${worksrcpath}/setup.py
-}
+python.versions 24
-post-destroot {
- xinstall -m 644 -W ${worksrcpath} doc/Reference.html doc/Tutorial.html \
- doc/index.html README TODO \
- ${destroot}${prefix}/share/doc/${name}
- file delete ${destroot}${prefix}/share/doc/${name}/examples
- file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+ patch {
+ file copy ${portpath}/files/setup.py ${worksrcpath}
+ reinplace "s|PORTVERSION|${version}|g" ${worksrcpath}/setup.py
+ }
+
+ post-destroot {
+ xinstall -m 644 -W ${worksrcpath} doc/Reference.html doc/Tutorial.html \
+ doc/index.html README TODO \
+ ${destroot}${prefix}/share/doc/${subport}
+ file delete ${destroot}${prefix}/share/doc/${subport}/examples
+ file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130113/dffd41a1/attachment.html>
More information about the macports-changes
mailing list