pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-newt Import py24-newt-0.51.6 as devel/py-newt.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b782e3ca5676
branches:  trunk
changeset: 541007:b782e3ca5676
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Apr 13 09:54:57 2008 +0000

description:
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:

 devel/py-newt/DESCR    |  12 ++++++++++++
 devel/py-newt/Makefile |  25 +++++++++++++++++++++++++
 devel/py-newt/PLIST    |   4 ++++
 3 files changed, 41 insertions(+), 0 deletions(-)

diffs (53 lines):

diff -r 0ed8ff040990 -r b782e3ca5676 devel/py-newt/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-newt/DESCR       Sun Apr 13 09:54:57 2008 +0000
@@ -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 -r 0ed8ff040990 -r b782e3ca5676 devel/py-newt/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-newt/Makefile    Sun Apr 13 09:54:57 2008 +0000
@@ -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 -r 0ed8ff040990 -r b782e3ca5676 devel/py-newt/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-newt/PLIST       Sun Apr 13 09:54:57 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index