mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add pyncurses 0.3, a ncurses binding for Python.
PR: 18633 Submitted by: adsharma@sharams.dhs.org
This commit is contained in:
parent
b3a1c707bf
commit
f4a0cc757a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39774
8 changed files with 145 additions and 0 deletions
|
@ -351,6 +351,7 @@
|
||||||
SUBDIR += py-mxStack
|
SUBDIR += py-mxStack
|
||||||
SUBDIR += py-mxTools
|
SUBDIR += py-mxTools
|
||||||
SUBDIR += qtarch
|
SUBDIR += qtarch
|
||||||
|
SUBDIR += pyncurses
|
||||||
SUBDIR += qt-designer
|
SUBDIR += qt-designer
|
||||||
SUBDIR += qtez
|
SUBDIR += qtez
|
||||||
SUBDIR += qtk
|
SUBDIR += qtk
|
||||||
|
|
29
devel/pyncurses/Makefile
Normal file
29
devel/pyncurses/Makefile
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# New ports collection makefile for: pyncurses
|
||||||
|
# Date created: Tue May 16 22:15:11 PDT 2000
|
||||||
|
# Whom: adsharma@sharams.dhs.org
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= py-ncurses
|
||||||
|
PORTVERSION= 0.3
|
||||||
|
CATEGORIES= devel python
|
||||||
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||||
|
MASTER_SITE_SUBDIR= ${PORTNAME:S/-//}
|
||||||
|
DISTNAME= ${PORTNAME:S/-//}-${PORTVERSION}
|
||||||
|
|
||||||
|
MAINTAINER= adsharma@sharmas.dhs.org
|
||||||
|
|
||||||
|
BUILD_DEPENDS= ${PYDISTUTILS}
|
||||||
|
|
||||||
|
USE_PYTHON= yes
|
||||||
|
|
||||||
|
SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py
|
||||||
|
|
||||||
|
do-build:
|
||||||
|
@${SETUP_CMD} build
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
@${SETUP_CMD} install
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
1
devel/pyncurses/distinfo
Normal file
1
devel/pyncurses/distinfo
Normal file
|
@ -0,0 +1 @@
|
||||||
|
MD5 (pyncurses-0.3.tar.gz) = f29dc9704afd9a27ff21c6ad076e2eaa
|
78
devel/pyncurses/files/patch-ncurses::_curses_wrap.c
Normal file
78
devel/pyncurses/files/patch-ncurses::_curses_wrap.c
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- ncurses/_curses_wrap.c.orig Sat Apr 22 23:52:02 2000
|
||||||
|
+++ ncurses/_curses_wrap.c Tue Mar 13 19:23:42 2001
|
||||||
|
@@ -1136,7 +1136,7 @@
|
||||||
|
extern bool isendwin();
|
||||||
|
extern bool is_linetouched(WINDOW *,int );
|
||||||
|
extern bool is_wintouched(WINDOW *);
|
||||||
|
-extern const char *keyname(int );
|
||||||
|
+/*extern const char *keyname(int );*/
|
||||||
|
extern int keypad(WINDOW *,bool );
|
||||||
|
extern char killchar();
|
||||||
|
extern int leaveok(WINDOW *,bool );
|
||||||
|
@@ -1147,7 +1147,7 @@
|
||||||
|
extern int mvwin(WINDOW *,int ,int );
|
||||||
|
extern int napms(int );
|
||||||
|
extern WINDOW *newpad(int ,int );
|
||||||
|
-extern SCREEN *newterm(const char *,FILE *,FILE *);
|
||||||
|
+/*extern SCREEN *newterm(const char *,FILE *,FILE *);*/
|
||||||
|
extern WINDOW *newwin(int ,int ,int ,int );
|
||||||
|
extern int nl();
|
||||||
|
extern int nocbreak();
|
||||||
|
@@ -1197,15 +1197,15 @@
|
||||||
|
extern int syncok(WINDOW *,bool );
|
||||||
|
extern chtype termattrs();
|
||||||
|
extern char *termname();
|
||||||
|
-extern int tigetflag(const char *);
|
||||||
|
-extern int tigetnum(const char *);
|
||||||
|
-extern char *tigetstr(const char *);
|
||||||
|
+/*extern int tigetflag(const char *);*/
|
||||||
|
+/*extern int tigetnum(const char *);*/
|
||||||
|
+/*extern char *tigetstr(const char *);*/
|
||||||
|
extern int typeahead(int );
|
||||||
|
extern int ungetch(int );
|
||||||
|
extern void use_env(bool );
|
||||||
|
extern int vidattr(chtype );
|
||||||
|
-extern int vwprintw(WINDOW *,const char *,va_list );
|
||||||
|
-extern int vwscanw(WINDOW *,const char *,va_list );
|
||||||
|
+/*extern int vwprintw(WINDOW *,const char *,va_list );*/
|
||||||
|
+/*extern int vwscanw(WINDOW *,const char *,va_list );*/
|
||||||
|
extern int waddch(WINDOW *,const chtype );
|
||||||
|
extern int waddchnstr(WINDOW *,const chtype *,int );
|
||||||
|
extern int waddnstr(WINDOW *,const char *,int );
|
||||||
|
@@ -4442,7 +4442,8 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
static PyObject *_wrap__tracechar(PyObject *self, PyObject *args) {
|
||||||
|
- PyObject * _resultobj;
|
||||||
|
+ return Py_None;
|
||||||
|
+/* PyObject * _resultobj;
|
||||||
|
char * _result;
|
||||||
|
unsigned char _arg0;
|
||||||
|
|
||||||
|
@@ -4451,11 +4452,12 @@
|
||||||
|
return NULL;
|
||||||
|
_result = (char *)_tracechar(_arg0);
|
||||||
|
_resultobj = Py_BuildValue("s", _result);
|
||||||
|
- return _resultobj;
|
||||||
|
+ return _resultobj;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
static PyObject *_wrap_trace(PyObject *self, PyObject *args) {
|
||||||
|
- PyObject * _resultobj;
|
||||||
|
+ return Py_None;
|
||||||
|
+/* PyObject * _resultobj;
|
||||||
|
unsigned int _arg0;
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
@@ -4464,7 +4466,7 @@
|
||||||
|
trace(_arg0);
|
||||||
|
Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
- return _resultobj;
|
||||||
|
+ return _resultobj;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
static PyObject *_wrap__nc_visbuf(PyObject *self, PyObject *args) {
|
16
devel/pyncurses/files/patch-ncurses::_panel_wrap.c
Normal file
16
devel/pyncurses/files/patch-ncurses::_panel_wrap.c
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- ncurses/_panel_wrap.c 2001/03/13 17:00:02 1.1
|
||||||
|
+++ ncurses/_panel_wrap.c 2001/03/13 17:00:26
|
||||||
|
@@ -588,8 +588,8 @@
|
||||||
|
extern PANEL *new_panel(WINDOW *);
|
||||||
|
extern PANEL *panel_above(const PANEL *);
|
||||||
|
extern PANEL *panel_below(const PANEL *);
|
||||||
|
-extern int set_panel_userptr(PANEL *,const void *);
|
||||||
|
-extern const void *panel_userptr(const PANEL *);
|
||||||
|
+/*extern int set_panel_userptr(PANEL *,const void *);*/
|
||||||
|
+/*extern const void *panel_userptr(const PANEL *);*/
|
||||||
|
extern int move_panel(PANEL *,int ,int );
|
||||||
|
extern int replace_panel(PANEL *,WINDOW *);
|
||||||
|
extern int panel_hidden(const PANEL *);
|
1
devel/pyncurses/pkg-comment
Normal file
1
devel/pyncurses/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
||||||
|
A ncurses binding for Python
|
4
devel/pyncurses/pkg-descr
Normal file
4
devel/pyncurses/pkg-descr
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
A new ncurses binding for Python, generated with the help of SWIG. Includes
|
||||||
|
bindings for libncurses, libpanel, libmenu, and libform.
|
||||||
|
|
||||||
|
WWW: http://pyncurses.sourceforge.net/
|
15
devel/pyncurses/pkg-plist
Normal file
15
devel/pyncurses/pkg-plist
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/__init__.py
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/__init__.pyc
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/_curses.so
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/_form.so
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/_menu.so
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/_panel.so
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/curses.py
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/curses.pyc
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/form.py
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/form.pyc
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/menu.py
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/menu.pyc
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/panel.py
|
||||||
|
lib/%%PYTHON_VERSION%%/site-packages/ncurses/panel.pyc
|
||||||
|
@dirrm lib/%%PYTHON_VERSION%%/site-packages/ncurses
|
Loading…
Add table
Reference in a new issue