summaryrefslogtreecommitdiff
path: root/devel/py-curses
diff options
context:
space:
mode:
authortsarna <tsarna@pkgsrc.org>1998-08-12 01:46:38 +0000
committertsarna <tsarna@pkgsrc.org>1998-08-12 01:46:38 +0000
commitbfa1a5e846345441e8feea3cf12081746c9f2f3a (patch)
treee030be1acabe03f8472e30d990b2c6e9de6a5bef /devel/py-curses
parent1cba567f7ec3f76c06fca2c510f1feb6488bf47c (diff)
downloadpkgsrc-bfa1a5e846345441e8feea3cf12081746c9f2f3a.tar.gz
py-curses, an enchanced curses module for Python.
Diffstat (limited to 'devel/py-curses')
-rw-r--r--devel/py-curses/Makefile33
-rw-r--r--devel/py-curses/files/Setup.in4
-rw-r--r--devel/py-curses/files/md53
-rw-r--r--devel/py-curses/patches/patch-aa15
-rw-r--r--devel/py-curses/pkg/COMMENT1
-rw-r--r--devel/py-curses/pkg/DESCR1
-rw-r--r--devel/py-curses/pkg/PLIST2
7 files changed, 59 insertions, 0 deletions
diff --git a/devel/py-curses/Makefile b/devel/py-curses/Makefile
new file mode 100644
index 00000000000..932d201bfeb
--- /dev/null
+++ b/devel/py-curses/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 1998/08/12 01:46:38 tsarna Exp $
+#
+
+DISTNAME= cursesmodule-1.5b1
+PKGNAME= py-curses-1.5b1
+CATEGORIES= devel
+MASTER_SITES= ftp://starship.skyport.net/pub/crew/andrich/Unsupported/
+
+MAINTAINER= tsarna@netbsd.org
+
+DEPENDS+= python-1.5.1:../../lang/python
+DEPENDS+= ncurses-1.9.9g:../../devel/ncurses
+
+WRKSRC= ${WRKDIR}/cursesmodule
+ALL_TARGET= default
+
+PYTHON_CONFIGDIR= ${LOCALBASE}/lib/python1.5/config/
+
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "alpha"
+IGNORE="Needs dynamic loading"
+.endif
+
+do-configure:
+ ${SED} -e 's%@LOCALBASE@%${LOCALBASE}%g' \
+ ${FILESDIR}/Setup.in \
+ >${WRKSRC}/Setup.in
+ ( cd ${WRKSRC} ;\
+ ${MAKE} -f Makefile.pre.in boot)
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/cursesmodule.so ${LOCALBASE}/lib/python1.5/lib-dynload
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-curses/files/Setup.in b/devel/py-curses/files/Setup.in
new file mode 100644
index 00000000000..dec2951cf91
--- /dev/null
+++ b/devel/py-curses/files/Setup.in
@@ -0,0 +1,4 @@
+# $NetBSD: Setup.in,v 1.1 1998/08/12 01:50:01 tsarna Exp $
+#
+*shared*
+cursesmodule cursesmodule.c -I@LOCALBASE@/include -L@LOCALBASE@/lib -lncurses
diff --git a/devel/py-curses/files/md5 b/devel/py-curses/files/md5
new file mode 100644
index 00000000000..1d75520c07f
--- /dev/null
+++ b/devel/py-curses/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/08/12 01:50:02 tsarna Exp $
+
+MD5 (cursesmodule-1.5b1.tar.gz) = 8d200bc921d31f0a4710b725fb0627e6
diff --git a/devel/py-curses/patches/patch-aa b/devel/py-curses/patches/patch-aa
new file mode 100644
index 00000000000..c920ae94a2f
--- /dev/null
+++ b/devel/py-curses/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1 1998/08/12 01:50:02 tsarna Exp $
+
+Remove this patch when/if ncurses becomes standard
+
+--- cursesmodule.c.orig Tue Aug 11 19:47:48 1998
++++ cursesmodule.c Tue Aug 11 19:48:01 1998
+@@ -40,7 +40,7 @@
+ /* Includes */
+
+ #include "Python.h"
+-#include <curses.h>
++#include <ncurses.h>
+
+ #ifdef __sgi__
+ /* No attr_t type is available */
diff --git a/devel/py-curses/pkg/COMMENT b/devel/py-curses/pkg/COMMENT
new file mode 100644
index 00000000000..090fa4d55c3
--- /dev/null
+++ b/devel/py-curses/pkg/COMMENT
@@ -0,0 +1 @@
+Enhanced curses module for Python
diff --git a/devel/py-curses/pkg/DESCR b/devel/py-curses/pkg/DESCR
new file mode 100644
index 00000000000..85cb32e62e5
--- /dev/null
+++ b/devel/py-curses/pkg/DESCR
@@ -0,0 +1 @@
+cursesmodule 1.5b1 is an enchanced curses module for Python.
diff --git a/devel/py-curses/pkg/PLIST b/devel/py-curses/pkg/PLIST
new file mode 100644
index 00000000000..aad3ad6c853
--- /dev/null
+++ b/devel/py-curses/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 1998/08/12 01:50:02 tsarna Exp $
+lib/python1.5/lib-dynload/cursesmodule.so