[142608] trunk/dports/python

ryandesign at macports.org ryandesign at macports.org
Sat Dec 12 06:28:40 PST 2015


Revision: 142608
          https://trac.macports.org/changeset/142608
Author:   ryandesign at macports.org
Date:     2015-11-16 16:32:24 -0800 (Mon, 16 Nov 2015)
Log Message:
-----------
py-swiginac: new port, version 1.5.1.1 (#49706)

Added Paths:
-----------
    trunk/dports/python/py-swiginac/
    trunk/dports/python/py-swiginac/Portfile
    trunk/dports/python/py-swiginac/files/
    trunk/dports/python/py-swiginac/files/patch-setup.py.diff

Added: trunk/dports/python/py-swiginac/Portfile
===================================================================
--- trunk/dports/python/py-swiginac/Portfile	                        (rev 0)
+++ trunk/dports/python/py-swiginac/Portfile	2015-11-17 00:32:24 UTC (rev 142608)
@@ -0,0 +1,57 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python 1.0
+
+name                py-swiginac
+version             1.5.1.1
+platforms           darwin
+license             GPL-2
+maintainers         gmail.com:mark.brethen
+
+description         interface to GiNaC providing Python with symbolic mathematics
+long_description    ${description}
+
+homepage            \
+    https://web.archive.org/web/20140429044739/http://swiginac.berlios.de/
+master_sites        sourceforge:swiginac.berlios
+distname            swiginac-${version}
+extract.suffix      .tgz
+checksums           \
+    sha256  e019b40cac29b070e72432b97cc857682da416e55c26bde412bfaa7513893eb5 \
+    rmd160  9b473942a8a4b010ddd4d51ec19b84d3f83a2c5c
+
+python.versions     27
+
+if {${name} ne ${subport}} {
+    patchfiles          patch-setup.py.diff
+
+    depends_build-append \
+                        port:pkgconfig \
+                        port:py${python.version}-setuptools
+
+    depends_lib-append  port:GiNaC \
+                        port:swig
+
+    post-destroot {
+        set docswiginacdir \
+            ${destroot}${prefix}/share/doc/py${python.version}-swiginac
+        set docdir      ${docswiginacdir}/doc
+        set examplesdir ${docdir}/examples
+
+        xinstall -d ${docswiginacdir} ${docdir} ${examplesdir}
+
+        xinstall -m 644 ${worksrcpath}/ChangeLog ${docswiginacdir}
+        xinstall -m 644 ${worksrcpath}/README.txt ${docswiginacdir}
+        xinstall -m 644 {*}[glob ${worksrcpath}/doc/swiginac*.*] ${docdir}
+        xinstall -m 644 ${worksrcpath}/doc/html4css1.css ${docdir}
+        xinstall -m 644 {*}[glob ${worksrcpath}/doc/examples/*.py] \
+            ${examplesdir}
+    }
+
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       ${master_sites}
+}


Property changes on: trunk/dports/python/py-swiginac/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py-swiginac/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-swiginac/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py-swiginac/files/patch-setup.py.diff	2015-11-17 00:32:24 UTC (rev 142608)
@@ -0,0 +1,22 @@
+--- setup.py.orig	2015-11-14 15:33:14.000000000 -0600
++++ setup.py	2015-11-14 15:37:20.000000000 -0600
+@@ -42,18 +42,12 @@
+ 
+ os.chdir(pjoin("src", "swiginac"))
+ 
+-# The command line argument for running swig in c++ mode has changed from
+-# Python 2.3 to 2.4. We support both.
+-swig_opt = '--swig-cpp'
+-if distutils.__version__ >= '2.4': swig_opt = '--swig-opts=-c++'
+-
+ if argv[1] == 'build':
+     argv[1] = 'build_ext'
+-if argv[1] == 'build_ext':
+-    argv.insert(2, swig_opt)
+     
+ e = Extension(name='_swiginac',
+               sources=['swiginac.i'],
++              swig_opts=['-c++'],
+               **pkgconfig("ginac")
+              )
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/d6ff04e5/attachment.html>


More information about the macports-changes mailing list