From owner-svn-ports-head@FreeBSD.ORG Wed Dec 18 18:50:31 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 753CB27E; Wed, 18 Dec 2013 18:50:31 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 612F8185D; Wed, 18 Dec 2013 18:50:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBIIoVNe022278; Wed, 18 Dec 2013 18:50:31 GMT (envelope-from wg@svn.freebsd.org) Received: (from wg@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBIIoUCt022272; Wed, 18 Dec 2013 18:50:30 GMT (envelope-from wg@svn.freebsd.org) Message-Id: <201312181850.rBIIoUCt022272@svn.freebsd.org> From: William Grzybowski Date: Wed, 18 Dec 2013 18:50:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336855 - in head/devel: . py-snack py-snack/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 18:50:31 -0000 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@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 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/