[58482] trunk/dports/python/py25-sip/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Tue Sep 29 07:55:43 PDT 2009


Revision: 58482
          http://trac.macports.org/changeset/58482
Author:   macsforever2000 at macports.org
Date:     2009-09-29 07:55:42 -0700 (Tue, 29 Sep 2009)
Log Message:
-----------
Changes to make this portfile more like py26-sip.

Modified Paths:
--------------
    trunk/dports/python/py25-sip/Portfile

Modified: trunk/dports/python/py25-sip/Portfile
===================================================================
--- trunk/dports/python/py25-sip/Portfile	2009-09-29 12:54:34 UTC (rev 58481)
+++ trunk/dports/python/py25-sip/Portfile	2009-09-29 14:55:42 UTC (rev 58482)
@@ -1,49 +1,61 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem      1.0
 
-name			py25-sip
-version			4.9
-platforms               macosx
-categories		python devel
-maintainers		saispo openmaintainer
-description		create Python bindings for C and C++ libraries
-long_description	SIP is a tool that makes it very easy to create \
-				Python bindings for C and C++ libraries. \
-				It was originally developed to create PyQt, \
-				the Python bindings for the Qt toolkit, \
-				but can be used to create bindings for any \
-				C or C++ library.
+name            py25-sip
+version         4.9
+categories      python devel
+maintainers     saispo openmaintainer
+platforms       macosx
 
-homepage	http://www.riverbankcomputing.co.uk/software/sip/intro
-master_sites	http://www.riverbankcomputing.com/static/Downloads/sip4/ \
-                http://gentoo.mirrors.easynews.com/linux/gentoo/distfiles/ \
-                http://gentoo.osuosl.org/distfiles/ \
-                http://www.gtlib.gatech.edu/pub/gentoo/distfiles/
+description     create Python bindings for C and C++ libraries
+long_description \
+    SIP is a tool that makes it very easy to create \
+    Python bindings for C and C++ libraries. \
+    It was originally developed to create PyQt, \
+    the Python bindings for the Qt toolkit, \
+    but can be used to create bindings for any \
+    C or C++ library.
 
-distname	sip-${version}
+homepage        http://www.riverbankcomputing.co.uk/software/sip/intro
+master_sites \
+    http://www.riverbankcomputing.com/static/Downloads/sip4/ \
+    http://gentoo.mirrors.easynews.com/linux/gentoo/distfiles/ \
+    http://gentoo.osuosl.org/distfiles/ \
+    http://www.gtlib.gatech.edu/pub/gentoo/distfiles/
+
+distname        sip-${version}
 checksums           md5     caf83cde684dbf7aeeb9c4447d54b98d \
                     sha1    5c9e0aa55d664e2a35295b031df950d0a4fe9529 \
                     rmd160  71b181093d9410a282de73f3c8235e2f330442e7
-dist_subdir	python
+dist_subdir python
 
-depends_lib	port:python25
+set pyversion 2.5
+depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
+set pybin ${prefix}/bin/python${pyversion}
 
-configure.cmd	${prefix}/bin/python2.5 configure.py
+configure.cmd   ${prefix}/bin/python2.5 configure.py
 configure.pre_args  -d ${prefix}/lib/python2.5/site-packages \
-				-e ${prefix}/include/python2.5 \
-				-v ${prefix}/share/sip \
-				-p macx-g++
-configure.post_args	LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
+                -e ${prefix}/include/python2.5 \
+                -v ${prefix}/share/sip \
+                -p macx-g++
+configure.post_args LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
 
-test.run	yes
-test.cmd	cd siplib && ${prefix}/bin/python2.5 -c 'import sip'
+test.run    yes
+test.cmd    cd siplib && ${pybin} -c 'import sip'
 
 post-destroot {
-	xinstall -m 755 -d ${destroot}${prefix}/share/doc
-	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} LICENSE NEWS README \
-		${destroot}${prefix}/share/doc/${name}
-	system "${prefix}/bin/python2.5 ${prefix}/lib/python2.5/compileall.py ${destroot}${prefix}"
-	system "${prefix}/bin/python2.5 -O ${prefix}/lib/python2.5/compileall.py ${destroot}${prefix}"
+    # Install documentation
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc
+    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE LICENSE-GPL2.txt LICENSE-GPL3.txt NEWS README \
+        ${destroot}${prefix}/share/doc/${name}
+
+    system "${prefix}/bin/python2.5 ${prefix}/lib/python2.5/compileall.py ${destroot}${prefix}"
+    system "${prefix}/bin/python2.5 -O ${prefix}/lib/python2.5/compileall.py ${destroot}${prefix}"
 }
+
+livecheck.type   regex
+livecheck.url    http://www.riverbankcomputing.co.uk/news
+livecheck.regex  "SIP v(\\d+(?:\\.\\d+)*) Released"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090929/cb88e8ea/attachment.html>


More information about the macports-changes mailing list