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
commit5d21bfc70c2c261c17230de968f19742097a9cd0 (patch)
tree63708baf8794c44809beb18a0ed6a6ae36f017a2 /devel
parentb1576b5e23d6f8e57b4650dd7c53ad47d5dbe1ae (diff)
downloadpkgsrc-5d21bfc70c2c261c17230de968f19742097a9cd0.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