[111115] trunk/dports/python
stromnov at macports.org
stromnov at macports.org
Sun Sep 15 08:48:20 PDT 2013
Revision: 111115
https://trac.macports.org/changeset/111115
Author: stromnov at macports.org
Date: 2013-09-15 08:48:19 -0700 (Sun, 15 Sep 2013)
Log Message:
-----------
py-freeling: new port
Added Paths:
-----------
trunk/dports/python/py-freeling/
trunk/dports/python/py-freeling/Portfile
trunk/dports/python/py-freeling/files/
trunk/dports/python/py-freeling/files/patch-APIs_python_setup.py.diff
trunk/dports/python/py-freeling/files/patch-py3-APIs_python_setup.py.diff
Added: trunk/dports/python/py-freeling/Portfile
===================================================================
--- trunk/dports/python/py-freeling/Portfile (rev 0)
+++ trunk/dports/python/py-freeling/Portfile 2013-09-15 15:48:19 UTC (rev 111115)
@@ -0,0 +1,47 @@
+# -*- 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-freeling
+version 3.1
+revision 0
+categories-append devel textproc
+platforms darwin
+license GPL-3+
+
+python.versions 27 33
+
+maintainers stromnov openmaintainer
+
+description Python API for FreeLing
+long_description ${description}
+
+homepage http://nlp.lsi.upc.edu/freeling/
+master_sites http://devel.cpl.upc.edu/freeling/downloads/32?dummy=
+
+distname freeling-${version}
+dist_subdir freeling
+
+checksums rmd160 85be3adcf20690040d2d3e5927c9ea02b896a652 \
+ sha256 e98471ceb3f58afbe70369584d8d316323d13fcc51d09b2fd7f431a3220982ba
+
+if {$subport != $name} {
+ depends_build-append \
+ port:freeling \
+ port:swig-python
+
+ worksrcdir ${distname}/APIs/python
+ patchfiles-append patch-APIs_python_setup.py.diff
+
+ if {${python.version} >= 30} {
+ patchfiles-append patch-py3-APIs_python_setup.py.diff
+ }
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url http://devel.cpl.upc.edu/freeling/downloads/
+ livecheck.regex {freeling-(\d+(?:\.\d+)*)\.[tz]}
+}
Property changes on: trunk/dports/python/py-freeling/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py-freeling/files/patch-APIs_python_setup.py.diff
===================================================================
--- trunk/dports/python/py-freeling/files/patch-APIs_python_setup.py.diff (rev 0)
+++ trunk/dports/python/py-freeling/files/patch-APIs_python_setup.py.diff 2013-09-15 15:48:19 UTC (rev 111115)
@@ -0,0 +1,18 @@
+--- /dev/null 2013-09-15 18:09:11.000000000 +0400
++++ setup.py 2013-09-15 18:10:23.000000000 +0400
+@@ -0,0 +1,15 @@
++from distutils.core import setup, Extension
++
++setup(
++ name='freeling',
++ version='3.1',
++ ext_modules=[
++ Extension(
++ '_freeling',
++ ['freeling_pythonAPI.i'],
++ swig_opts=['-c++'],
++ libraries=['freeling'],
++ )
++ ],
++ py_modules=['freeling'],
++)
Added: trunk/dports/python/py-freeling/files/patch-py3-APIs_python_setup.py.diff
===================================================================
--- trunk/dports/python/py-freeling/files/patch-py3-APIs_python_setup.py.diff (rev 0)
+++ trunk/dports/python/py-freeling/files/patch-py3-APIs_python_setup.py.diff 2013-09-15 15:48:19 UTC (rev 111115)
@@ -0,0 +1,11 @@
+--- setup.py.orig 2013-09-15 18:43:31.000000000 +0400
++++ setup.py 2013-09-15 18:43:41.000000000 +0400
+@@ -7,7 +7,7 @@
+ Extension(
+ '_freeling',
+ ['freeling_pythonAPI.i'],
+- swig_opts=['-c++'],
++ swig_opts=['-c++', '-py3'],
+ libraries=['freeling'],
+ )
+ ],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130915/e65c5a22/attachment.html>
More information about the macports-changes
mailing list