svn commit: r336855 - in head/devel: . py-snack py-snack/files

William Grzybowski wg at FreeBSD.org
Wed Dec 18 18:50:31 UTC 2013


Author: wg
Date: Wed Dec 18 18:50:29 2013
New Revision: 336855
URL: http://svnweb.freebsd.org/changeset/ports/336855

Log:
  devel/py-snack: Not Eriks Windowing Toolkit Python bindings
  
  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.
  
  WWW: https://fedorahosted.org/newt/

Added:
  head/devel/py-snack/
  head/devel/py-snack/Makefile   (contents, props changed)
  head/devel/py-snack/distinfo   (contents, props changed)
  head/devel/py-snack/files/
  head/devel/py-snack/files/setup.py.in   (contents, props changed)
  head/devel/py-snack/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Dec 18 18:27:04 2013	(r336854)
+++ head/devel/Makefile	Wed Dec 18 18:50:29 2013	(r336855)
@@ -3782,6 +3782,7 @@
     SUBDIR += py-sip
     SUBDIR += py-six
     SUBDIR += py-smmap
+    SUBDIR += py-snack
     SUBDIR += py-snackwich
     SUBDIR += py-spark
     SUBDIR += py-speaklater

Added: head/devel/py-snack/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-snack/Makefile	Wed Dec 18 18:50:29 2013	(r336855)
@@ -0,0 +1,42 @@
+# $FreeBSD$
+
+PORTNAME=	snack
+PORTVERSION=	0.52.16
+CATEGORIES=	devel
+MASTER_SITES=	https://fedorahosted.org/releases/n/e/newt/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	newt-${PORTVERSION}
+
+MAINTAINER=	python at FreeBSD.org
+COMMENT=	Not Eriks Windowing Toolkit Python bindings
+
+LIB_DEPENDS=	libslang.so:${PORTSDIR}/devel/libslang2 \
+		libpopt.so:${PORTSDIR}/devel/popt \
+		libnewt.so:${PORTSDIR}/devel/newt
+
+OPTIONS_DEFINE=	EXAMPLES
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-nls
+
+USE_PYTHON=	2
+USE_PYDISTUTILS=yes
+PYDISTUTILS_AUTOPLIST=	yes
+PYSETUP=	${WRKDIR}/setup.py
+
+SUB_FILES=	setup.py
+SUB_LIST=	VERSION=${PORTVERSION}
+
+PORTEXAMPLES=	peanuts.py \
+		popcorn.py
+
+post-patch: apply-slist
+	@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
+		${WRKSRC}/popcorn.py \
+		${WRKSRC}/peanuts.py
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>

Added: head/devel/py-snack/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-snack/distinfo	Wed Dec 18 18:50:29 2013	(r336855)
@@ -0,0 +1,2 @@
+SHA256 (newt-0.52.16.tar.gz) = 1b9574bc9c8fb7b25cd26e5c3f2840e8c17fde5dd09c759604925919b3589cd3
+SIZE (newt-0.52.16.tar.gz) = 183487

Added: head/devel/py-snack/files/setup.py.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-snack/files/setup.py.in	Wed Dec 18 18:50:29 2013	(r336855)
@@ -0,0 +1,15 @@
+from distutils.core import setup, Extension
+
+setup(
+    name='snack',
+	version='%%VERSION%%',
+	description='Python interface to Newt module',
+	py_modules=['snack'],
+	ext_modules=[ Extension(
+		name='_snack',
+		sources=['snackmodule.c'],
+		include_dirs=['.', '%%LOCALBASE%%'+'/include', '%%PREFIX%%'+'/include'],
+		library_dirs=['.', '%%LOCALBASE%%'+'/lib', '%%PREFIX%%'+'/lib'],
+		libraries=['newt', 'popt', 'slang', 'ncurses']
+	)]
+)

Added: head/devel/py-snack/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-snack/pkg-descr	Wed Dec 18 18:50:29 2013	(r336855)
@@ -0,0 +1,14 @@
+Python bindings for Newt toolkit.
+
+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 port 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.
+
+WWW: https://fedorahosted.org/newt/


More information about the svn-ports-head mailing list