summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorwiz <wiz>2008-04-13 09:54:57 +0000
committerwiz <wiz>2008-04-13 09:54:57 +0000
commit8712c34e6b5ce0309195c69c84d44757d8d151aa (patch)
tree63708baf8794c44809beb18a0ed6a6ae36f017a2 /devel
parent010635c439c11b560b36fcfef198dc0ac44a4edc (diff)
downloadpkgsrc-8712c34e6b5ce0309195c69c84d44757d8d151aa.tar.gz
Import py24-newt-0.51.6 as devel/py-newt.
Newt is a windowing toolkit for text mode built from the slang library. It allows color text mode applications to easily use stackable windows, push buttons, check boxes, radio buttons, lists, entry fields, labels, and displayable text. Scrollbars are supported, and forms may be nested to provide extra functionality. Besides the newt library, this package provides whiptail, which may be used from shell scripts similarly to Savio Lam's "dialog". Newt provides the textual interface for the Red Hat and Debian boot disks. This package contains the python bindings for newt.
Diffstat (limited to 'devel')
-rw-r--r--devel/py-newt/DESCR12
-rw-r--r--devel/py-newt/Makefile25
-rw-r--r--devel/py-newt/PLIST4
3 files changed, 41 insertions, 0 deletions
diff --git a/devel/py-newt/DESCR b/devel/py-newt/DESCR
new file mode 100644
index 00000000000..d30d031b0af
--- /dev/null
+++ b/devel/py-newt/DESCR
@@ -0,0 +1,12 @@
+Newt is a windowing toolkit for text mode built from the slang
+library. It allows color text mode applications to easily use
+stackable windows, push buttons, check boxes, radio buttons, lists,
+entry fields, labels, and displayable text. Scrollbars are supported,
+and forms may be nested to provide extra functionality.
+
+Besides the newt library, this package provides whiptail, which may
+be used from shell scripts similarly to Savio Lam's "dialog". Newt
+provides the textual interface for the Red Hat and Debian boot
+disks.
+
+This package contains the python bindings for newt.
diff --git a/devel/py-newt/Makefile b/devel/py-newt/Makefile
new file mode 100644
index 00000000000..d6c244efd96
--- /dev/null
+++ b/devel/py-newt/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/04/13 09:54:57 wiz Exp $
+
+.include "../../devel/newt/Makefile.common"
+
+PKGNAME= ${PYPKGPREFIX}-newt-${VERSION}
+COMMENT= Windowing toolkit based on libslang (Python bindings)
+
+PY_PATCHPLIST= yes
+GNU_CONFIGURE= yes
+
+INSTALLATION_DIRS= ${PREFIX}/${PYSITELIB}
+
+do-build:
+ cd ${WRKSRC} && \
+ ${CC} ${CFLAGS} -fPIC -c -o snackmodule.o snackmodule.c; \
+ ${CC} --shared ${CFLAGS} -o _snackmodule.so snackmodule.o -Wl,-R${BUILDLINK_PREFIX.newt}/lib -L${BUILDLINK_PREFIX.newt}/lib -lnewt
+ ${PYTHONBIN} -m py_compile ${WRKSRC}/snack.py
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/_snackmodule.so ${PREFIX}/${PYSITELIB}
+ ${INSTALL_LIB} ${WRKSRC}/snack.p* ${PREFIX}/${PYSITELIB}
+
+.include "../../devel/newt/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-newt/PLIST b/devel/py-newt/PLIST
new file mode 100644
index 00000000000..e4c887572bb
--- /dev/null
+++ b/devel/py-newt/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/13 09:54:57 wiz Exp $
+${PYSITELIB}/_snackmodule.so
+${PYSITELIB}/snack.py
+${PYSITELIB}/snack.pyc