[101724] trunk/dports/python/py-mailbox-reader
jmr at macports.org
jmr at macports.org
Thu Jan 17 16:09:14 PST 2013
Revision: 101724
https://trac.macports.org/changeset/101724
Author: jmr at macports.org
Date: 2013-01-17 16:09:14 -0800 (Thu, 17 Jan 2013)
Log Message:
-----------
py-mailbox-reader: use unified portgroup, license, noarch
Modified Paths:
--------------
trunk/dports/python/py-mailbox-reader/Portfile
trunk/dports/python/py-mailbox-reader/files/patch-setup.py.diff
Modified: trunk/dports/python/py-mailbox-reader/Portfile
===================================================================
--- trunk/dports/python/py-mailbox-reader/Portfile 2013-01-18 00:03:06 UTC (rev 101723)
+++ trunk/dports/python/py-mailbox-reader/Portfile 2013-01-18 00:09:14 UTC (rev 101724)
@@ -1,13 +1,14 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-mailbox-reader
version 1.0.4
revision 1
-categories python
+license GPL-2+
platforms darwin freebsd
+supported_archs noarch
maintainers nomaintainer
description python module for reading Unix mailboxes
long_description small Python module which allows sequential message \
@@ -17,4 +18,12 @@
master_sites http://gradha.sdf-eu.org/program/mailbox_reader/
distname mailbox_reader-${version}
checksums md5 67d70b5da53314212a39b34731e05d3d
-patchfiles patch-setup.py.diff
+
+python.versions 24
+
+if {$subport != $name} {
+ patchfiles patch-setup.py.diff
+ post-patch {
+ reinplace "s|__SUBPORT__|${subport}|" ${worksrcpath}/setup.py
+ }
+}
Modified: trunk/dports/python/py-mailbox-reader/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-mailbox-reader/files/patch-setup.py.diff 2013-01-18 00:03:06 UTC (rev 101723)
+++ trunk/dports/python/py-mailbox-reader/files/patch-setup.py.diff 2013-01-18 00:09:14 UTC (rev 101724)
@@ -5,6 +5,6 @@
py_modules = py_modules,
license = "GPL",
- data_files = [ ("doc/mailbox_reader", doc_files),
-+ data_files = [ ("shre/doc/py-mailbox-reader", doc_files),
++ data_files = [ ("share/doc/__SUBPORT__", doc_files),
]
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130117/64af61d6/attachment.html>
More information about the macports-changes
mailing list