[129920] trunk/dports/lang/pyobfuscate/Portfile

larryv at macports.org larryv at macports.org
Mon Dec 22 21:11:19 PST 2014


Revision: 129920
          https://trac.macports.org/changeset/129920
Author:   larryv at macports.org
Date:     2014-12-22 21:11:19 -0800 (Mon, 22 Dec 2014)
Log Message:
-----------
pyobfuscate: Use python-1.0 portgroup

Modified Paths:
--------------
    trunk/dports/lang/pyobfuscate/Portfile

Modified: trunk/dports/lang/pyobfuscate/Portfile
===================================================================
--- trunk/dports/lang/pyobfuscate/Portfile	2014-12-23 05:11:17 UTC (rev 129919)
+++ trunk/dports/lang/pyobfuscate/Portfile	2014-12-23 05:11:19 UTC (rev 129920)
@@ -3,13 +3,15 @@
 
 PortSystem          1.0
 PortGroup           github 1.0
+PortGroup           python 1.0
 
 # Couldn't figure how to fetch the project's releases.
 github.setup        astrand pyobfuscate 79cd76aa6526a34b5f0dbf39c904ae8393188034
 version             0.3
-revision            1
+revision            2
 categories          lang python
 platforms           darwin
+supported_archs     noarch
 license             GPL-2
 maintainers         nomaintainer
 
@@ -18,20 +20,18 @@
                     Python source code hard to read for humans, while \
                     still being executable for the Python interpreter.
 
-depends_run         bin:python:python27
-supported_archs     noarch
+python.default_version  27
 
-
 checksums           rmd160  2dffbe40b64a5fcbb0374a8ff34074b24a0d8c50 \
                     sha256  191091b082a6a04245fc606187036ab36d9f95557137149879abac9780fa3de4
 
-use_configure       no
+patchfiles          use-macports-python-prefix.patch
+post-patch {
+    reinplace s|__PYTHON_PREFIX__|${python.prefix}| ${worksrcpath}/setup.py
+}
 
-build {}
-
-destroot {
+post-destroot {
     set docdir ${destroot}${prefix}/share/doc/${name}
     xinstall -m 755 -d ${docdir}
-    xinstall -m 755 ${worksrcpath}/pyobfuscate ${destroot}${prefix}/bin/
-    xinstall -W ${worksrcpath} -m 644 LICENSE PKG-INFO README TODO ${docdir}
+    xinstall -W ${worksrcpath} -m 644 LICENSE README TODO ${docdir}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141222/1e669d75/attachment-0001.html>


More information about the macports-changes mailing list