[128230] trunk/dports/python/py-appscript/Portfile
khindenburg at macports.org
khindenburg at macports.org
Sun Nov 16 16:06:32 PST 2014
Revision: 128230
https://trac.macports.org/changeset/128230
Author: khindenburg at macports.org
Date: 2014-11-16 16:06:32 -0800 (Sun, 16 Nov 2014)
Log Message:
-----------
py-appscript: update to 1.0.1; change setuptools to depends_build #39555; use python 27 34; only install samples/docs for python version installed; fix livecheck; add license; maintainer timeout
Modified Paths:
--------------
trunk/dports/python/py-appscript/Portfile
Modified: trunk/dports/python/py-appscript/Portfile
===================================================================
--- trunk/dports/python/py-appscript/Portfile 2014-11-17 00:00:05 UTC (rev 128229)
+++ trunk/dports/python/py-appscript/Portfile 2014-11-17 00:06:32 UTC (rev 128230)
@@ -5,9 +5,11 @@
PortGroup python 1.0
name py-appscript
-version 1.0.0
+set real_name appscript
+version 1.0.1
categories python
platforms darwin
+license public-domain
maintainers internode.on.net:arsptr
description High-level application scripting package for Python
long_description Appscript is a high-level, user-friendly MacPython to \
@@ -17,23 +19,28 @@
own AppleScript language for automating your Mac.
homepage http://appscript.sourceforge.net/
-master_sites http://pypi.python.org/packages/source/a/appscript/
-distname appscript-${version}
+master_sites http://pypi.python.org/packages/source/a/${real_name}
+distname ${real_name}-${version}
-checksums md5 6619b637037ea0f391f45870c13ae38a \
- sha256 ed15d00ef41f8705da7e60833c7e4a56633135d903aeaba0231f8b4ca9c91843
+checksums rmd160 d5bc7581a0149500b6bed18c47711ddc31024658 \
+ sha256 24eae98bb50bd6788be9e7ce03cea1187788d63e70712eedcf186dc1b9fb6578
-python.versions 24 25 26 27 31 32
+python.versions 27 34
if {${name} ne ${subport}} {
- depends_lib-append port:py${python.version}-setuptools
+ depends_build-append port:py${python.version}-setuptools
post-destroot {
- foreach subdir {appscript_2x appscript_3x} {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/${subdir}
- file copy ${worksrcpath}/${subdir}/sample \
- ${destroot}${prefix}/share/doc/${subport}/${subdir}/sample
- file copy ${worksrcpath}/${subdir}/doc \
- ${destroot}${prefix}/share/doc/${subport}/${subdir}/doc
- }
+ set subdir appscript_[string index ${python.version} 0]x
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/${subdir}
+ file copy ${worksrcpath}/${subdir}/sample \
+ ${destroot}${prefix}/share/doc/${subport}/${subdir}/sample
+ file copy ${worksrcpath}/${subdir}/doc \
+ ${destroot}${prefix}/share/doc/${subport}/${subdir}/doc
}
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex ${real_name}-(\[0-9.\]+)${extract.suffix}
}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141116/8b81a52b/attachment.html>
More information about the macports-changes
mailing list