[123616] trunk/dports/python
petr at macports.org
petr at macports.org
Mon Aug 11 11:25:45 PDT 2014
Revision: 123616
https://trac.macports.org/changeset/123616
Author: petr at macports.org
Date: 2014-08-11 11:25:45 -0700 (Mon, 11 Aug 2014)
Log Message:
-----------
{py-}impressive: rename port, cleanup, provide python variants and default to python27
Modified Paths:
--------------
trunk/dports/python/impressive/Portfile
trunk/dports/python/py-impressive/Portfile
Added Paths:
-----------
trunk/dports/python/impressive/
Modified: trunk/dports/python/impressive/Portfile
===================================================================
--- trunk/dports/python/py-impressive/Portfile 2014-08-11 06:15:55 UTC (rev 123586)
+++ trunk/dports/python/impressive/Portfile 2014-08-11 18:25:45 UTC (rev 123616)
@@ -4,7 +4,7 @@
PortSystem 1.0
PortGroup python 1.0
-name py-impressive
+name impressive
version 0.10.5
categories-append graphics
license GPL-2
@@ -29,37 +29,62 @@
sha1 63163745e6b2a648f156c5de6ff8235d5c5c90b4 \
rmd160 9d7ab85aa0dafad387170e44c06d42aad4e6a395
-python.versions 26
+python.versions 26 27
-if {${name} ne ${subport}} {
- depends_lib port:py${python.version}-opengl \
+# create python variants
+foreach ver ${python.versions} {
+ set variant_line {variant python${ver} description "Use python${ver} and packages from MacPorts"}
+
+ foreach over ${python.versions} {
+ if {${ver} == ${over}} {
+ continue
+ }
+ append variant_line " conflicts python${over}"
+ }
+ append variant_line { {}}
+ eval $variant_line
+}
+
+# set default python variant
+set variant_none true
+foreach ver ${python.versions} {
+ if {[variant_isset python${ver}]} {
+ set variant_none [expr $variant_none && ![variant_isset python${ver}]]
+ }
+}
+if {${variant_none}} {
+ default_variants-append "+python${python.default_version}"
+}
+
+# python variant settings
+foreach ver ${python.versions} {
+ if {[variant_isset python${ver}]} {python.version ${ver}}
+}
+
+depends_lib-append port:python${python.version} \
+ port:py${python.version}-opengl \
port:py${python.version}-game \
path:${python.pkgd}/PIL:py${python.version}-Pillow \
port:xpdf \
port:ghostscript \
port:pdftk
- post-patch {
- reinplace "s|/usr/bin/env python|${python.bin}|" ${worksrcpath}/impressive.py
- }
- build {}
+post-patch {
+ reinplace "s|/usr/bin/env python|${python.bin}|" \
+ ${worksrcpath}/impressive.py
+}
+build {}
- python.link_binaries no
- # this is bad, a py27-impressive would conflict with py26-impressive
- # make non-conflicting or change name to just 'impressive'
- destroot {
- xinstall -d ${destroot}${prefix}/bin
- xinstall -d ${destroot}${prefix}/share/impressive
- xinstall -d ${destroot}${prefix}/share/doc/impressive
- xinstall -m 775 ${worksrcpath}/impressive.py \
- ${worksrcpath}/demo.pdf \
- ${destroot}${prefix}/share/impressive
- xinstall -m 644 ${worksrcpath}/impressive.1 \
- ${destroot}${prefix}/share/man/man1
- xinstall -m 664 ${worksrcpath}/license.txt \
- ${worksrcpath}/changelog.txt \
- ${worksrcpath}/impressive.html \
- ${destroot}${prefix}/share/doc/impressive
- ln -s ${prefix}/share/impressive/impressive.py ${destroot}${prefix}/bin/impressive
- }
+destroot {
+ xinstall -m 775 ${worksrcpath}/impressive.py \
+ ${destroot}${prefix}/bin/impressive
+ xinstall -m 644 ${worksrcpath}/impressive.1 \
+ ${destroot}${prefix}/share/man/man1
+ xinstall -m 664 -W ${worksrcpath} \
+ license.txt \
+ changelog.txt \
+ impressive.html \
+ ${destroot}${prefix}/share/doc/impressive
+ xinstall -m 664 ${worksrcpath}/demo.pdf \
+ ${destroot}${prefix}/share/doc/impressive/examples
}
Modified: trunk/dports/python/py-impressive/Portfile
===================================================================
--- trunk/dports/python/py-impressive/Portfile 2014-08-11 18:22:27 UTC (rev 123615)
+++ trunk/dports/python/py-impressive/Portfile 2014-08-11 18:25:45 UTC (rev 123616)
@@ -2,64 +2,19 @@
# $Id$
PortSystem 1.0
-PortGroup python 1.0
+# This port can be removed on 2015-08-11
+replaced_by impressive
+PortGroup obsolete 1.0
+
name py-impressive
version 0.10.5
-categories-append graphics
+revision 1
+categories python graphics
license GPL-2
-maintainers nomaintainer
-platforms darwin
-supported_archs noarch
-description Slide presentation tool
-long_description \
- Impressive is a program that displays presentation slides. \
- But unlike OpenOffice.org Impress or other similar applications, \
- it does so with style. Smooth alpha-blended slide transitions \
- are provided for the sake of eye candy, but in addition to this, \
- Impressive offers some unique tools that are really useful \
- for presentations.
-
+description Stub for renamed port for Python app Impressive
+long_description ${description}
homepage http://impressive.sourceforge.net/
-master_sites sourceforge:impressive
-distname Impressive-${version}
-checksums md5 1c902d584b489c5fbf2c6d3aed0b3407 \
- sha1 63163745e6b2a648f156c5de6ff8235d5c5c90b4 \
- rmd160 9d7ab85aa0dafad387170e44c06d42aad4e6a395
-
-python.versions 26
-
-if {${name} ne ${subport}} {
- depends_lib port:py${python.version}-opengl \
- port:py${python.version}-game \
- path:${python.pkgd}/PIL:py${python.version}-Pillow \
- port:xpdf \
- port:ghostscript \
- port:pdftk
-
- post-patch {
- reinplace "s|/usr/bin/env python|${python.bin}|" ${worksrcpath}/impressive.py
- }
- build {}
-
- python.link_binaries no
- # this is bad, a py27-impressive would conflict with py26-impressive
- # make non-conflicting or change name to just 'impressive'
- destroot {
- xinstall -d ${destroot}${prefix}/bin
- xinstall -d ${destroot}${prefix}/share/impressive
- xinstall -d ${destroot}${prefix}/share/doc/impressive
- xinstall -m 775 ${worksrcpath}/impressive.py \
- ${worksrcpath}/demo.pdf \
- ${destroot}${prefix}/share/impressive
- xinstall -m 644 ${worksrcpath}/impressive.1 \
- ${destroot}${prefix}/share/man/man1
- xinstall -m 664 ${worksrcpath}/license.txt \
- ${worksrcpath}/changelog.txt \
- ${worksrcpath}/impressive.html \
- ${destroot}${prefix}/share/doc/impressive
- ln -s ${prefix}/share/impressive/impressive.py ${destroot}${prefix}/bin/impressive
- }
-}
+subport {py26-impressive} {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140811/2a86a929/attachment.html>
More information about the macports-changes
mailing list