[87500] trunk/dports/graphics/ipe-tools

devans at macports.org devans at macports.org
Wed Nov 23 13:39:52 PST 2011


Revision: 87500
          http://trac.macports.org/changeset/87500
Author:   devans at macports.org
Date:     2011-11-23 13:39:48 -0800 (Wed, 23 Nov 2011)
Log Message:
-----------
ipe-tools: fix python configuration in variants, add livecheck, #32058, maintainer timeout.

Modified Paths:
--------------
    trunk/dports/graphics/ipe-tools/Portfile

Added Paths:
-----------
    trunk/dports/graphics/ipe-tools/files/patch-svgtoipe-python_path.diff

Modified: trunk/dports/graphics/ipe-tools/Portfile
===================================================================
--- trunk/dports/graphics/ipe-tools/Portfile	2011-11-23 18:43:26 UTC (rev 87499)
+++ trunk/dports/graphics/ipe-tools/Portfile	2011-11-23 21:39:48 UTC (rev 87500)
@@ -5,6 +5,7 @@
 
 name                    ipe-tools
 version                 20110916
+revision                1
 categories              graphics
 maintainers             jacobs-university.de:m.thon
 description             Tools for the Ipe extensible drawing editor
@@ -43,7 +44,8 @@
                             rmd160  44c22367e3ef3cb4607310d15af51f527b006be0
 
 worksrcdir              .
-patchfiles              patch-pdftoipe-${pdftoipe-vers}-src-xmloutputdev.cpp.diff
+patchfiles              patch-pdftoipe-${pdftoipe-vers}-src-xmloutputdev.cpp.diff \
+                        patch-svgtoipe-python_path.diff
 
 depends_build           port:pkgconfig
 depends_lib             port:poppler
@@ -72,22 +74,38 @@
         xinstall -m 755 ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe ${destroot}${prefix}/bin
 }
 
-variant python24 conflicts python25 python26 python27 description {Use PIL from Python 2.4} {
+variant python24 conflicts python25 python26 python27 description {Use PIL from MacPorts Python 2.4} {
     depends_lib-append port:py24-pil
+    post-patch {
+        reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.4|" ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe
+    }
 }
 
-variant python25 conflicts python24 python26 python27 description {Use PIL from Python 2.5} {
+variant python25 conflicts python24 python26 python27 description {Use PIL from MacPorts Python 2.5} {
     depends_lib-append port:py25-pil
+    post-patch {
+        reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.5|" ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe
+    }
 }
 
-variant python26 conflicts python24 python25 python27 description {Use PIL from Python 2.6} {
+variant python26 conflicts python24 python25 python27 description {Use PIL from MacPorts Python 2.6} {
     depends_lib-append port:py26-pil
+    post-patch {
+        reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.6|" ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe
+    }
 }
 
-variant python27 conflicts python24 python25 python26 description {Use PIL from Python 2.7} {
+variant python27 conflicts python24 python25 python26 description {Use PIL from MacPorts Python 2.7} {
     depends_lib-append port:py27-pil
+    post-patch {
+        reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.7|" ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe
+    }
 }
 
 if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} {
     default_variants +python27
 }
+
+livecheck.type  regex
+livecheck.url   http://sourceforge.net/projects/ipe7/files/tools/
+livecheck.regex "to(?:ipe|xml)-(\[0-9\]*)"

Added: trunk/dports/graphics/ipe-tools/files/patch-svgtoipe-python_path.diff
===================================================================
--- trunk/dports/graphics/ipe-tools/files/patch-svgtoipe-python_path.diff	                        (rev 0)
+++ trunk/dports/graphics/ipe-tools/files/patch-svgtoipe-python_path.diff	2011-11-23 21:39:48 UTC (rev 87500)
@@ -0,0 +1,8 @@
+--- svgtoipe-20100608/svgtoipe.orig	2011-11-13 14:46:03.000000000 -0800
++++ svgtoipe-20100608/svgtoipe	2011-11-13 14:47:59.000000000 -0800
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!__MP_PYTHON_BIN__
+ # --------------------------------------------------------------------
+ # convert SVG to Ipe format
+ # --------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111123/d7dd09ee/attachment.html>


More information about the macports-changes mailing list