[22100] trunk/dports/python
source_changes at macosforge.org
source_changes at macosforge.org
Sat Feb 17 12:08:54 PST 2007
Revision: 22100
http://trac.macosforge.org/projects/macports/changeset/22100
Author: mww at macports.org
Date: 2007-02-17 12:08:53 -0800 (Sat, 17 Feb 2007)
Log Message:
-----------
new port py25-curses - Python v2.5 bindings for ncursesw
Added Paths:
-----------
trunk/dports/python/py25-curses/
trunk/dports/python/py25-curses/Portfile
trunk/dports/python/py25-curses/files/
trunk/dports/python/py25-curses/files/setup.py
Added: trunk/dports/python/py25-curses/Portfile
===================================================================
--- trunk/dports/python/py25-curses/Portfile (rev 0)
+++ trunk/dports/python/py25-curses/Portfile 2007-02-17 20:08:53 UTC (rev 22100)
@@ -0,0 +1,44 @@
+# $Id: Portfile 21460 2007-01-25 20:57:54Z mww at macports.org $
+
+PortSystem 1.0
+#PortGroup python25 1.0
+
+name py25-curses
+version 2.5
+categories python
+platforms darwin
+maintainers mww at macports.org
+description Python bindings to ncurses
+long_description Python modules curses and curses-panel
+
+homepage http://www.python.org/doc/current/lib/module-curses.html
+master_sites http://www.python.org/ftp/python/${version}/
+distname Python-${version}
+dist_subdir python25
+checksums sha1 98ce9346cc4a7ef4621ecdcfc3957d595d97a078
+use_bzip2 yes
+
+worksrcdir ${worksrcdir}/Modules
+
+extract.post_args "| tar -xf - ${distname}/Modules/_cursesmodule.c \
+ ${distname}/Modules/_curses_panel.c"
+post-extract {
+ file copy ${filespath}/setup.py ${worksrcpath}
+}
+
+#depends_lib-append port:ncursesw
+depends_lib port:python25 port:ncursesw
+
+configure {
+ cd ${worksrcpath}
+ reinplace "s|__VERSION__|${version}|g" setup.py
+ reinplace "s|__LIBDIR__|${prefix}/lib|g" setup.py
+ reinplace "s|__INCDIR__|${prefix}/include|g" setup.py
+}
+
+# remove these lines when python25 port group is available
+build.cmd ${prefix}/bin/python2.5 setup.py
+build.target build
+destroot.cmd ${build.cmd}
+destroot.destdir --prefix=${prefix} --root=${destroot}
+
Added: trunk/dports/python/py25-curses/files/setup.py
===================================================================
--- trunk/dports/python/py25-curses/files/setup.py (rev 0)
+++ trunk/dports/python/py25-curses/files/setup.py 2007-02-17 20:08:53 UTC (rev 22100)
@@ -0,0 +1,30 @@
+try:
+ import distutils
+ from distutils import sysconfig
+ from distutils.command.install import install
+ from distutils.core import setup, Extension
+except:
+ raise SystemExit, "Distutils problem"
+
+inc_dirs = ["__INCDIR__"]
+lib_dirs = ["__LIBDIR__"]
+libs = ["ncursesw"]
+
+setup(name = "_curses",
+ version = "__VERSION__",
+ description = "curses Extension to Python",
+
+ ext_modules = [Extension('_curses', ['_cursesmodule.c'],
+ include_dirs = inc_dirs,
+ libraries = libs,
+ library_dirs = lib_dirs)]
+ )
+setup(name = "_curses_panel",
+ version = "__VERSION__",
+ description = "curses panel Extension to Python",
+
+ ext_modules = [Extension('_curses_panel', ['_curses_panel.c'],
+ include_dirs = inc_dirs,
+ libraries = libs,
+ library_dirs = lib_dirs)]
+ )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070217/2e07d0e1/attachment.html
More information about the macports-changes
mailing list