import newt 0.52.14

Newt is a programming library for color text mode, widget based user
interfaces. Newt can be used to add stacked windows, entry widgets,
checkboxes, radio buttons, labels, plain text fields, scrollbars, etc.,
to text mode user interfaces. Newt is based on the S-Lang library.

feedback/ok aja@
This commit is contained in:
jasper 2012-09-05 07:31:48 +00:00
parent b1ecd9b599
commit 325e28bbb6
7 changed files with 259 additions and 0 deletions

51
devel/newt/Makefile Normal file
View File

@ -0,0 +1,51 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/09/05 07:31:48 jasper Exp $
COMMENT= programming library for color text mode, widget based UIs
VERSION= 0.52.14
DISTNAME= newt-${VERSION}
REVISION=0
SHARED_LIBS += newt 0.0 # 0.52
CATEGORIES= devel
HOMEPAGE= https://fedorahosted.org/newt/
MASTER_SITES= https://fedorahosted.org/releases/n/e/newt/
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= devel/gettext \
lang/python
LIB_DEPENDS= devel/libslang \
devel/popt
WANTLIB += c m ncurses popt pthread slang util termcap ${MODPY_WANTLIB}
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --without-tcl \
--with-python
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lm -ltermcap -lintl -liconv"
MAKE_FLAGS= MAKE_PROGRAM=${MAKE_PROGRAM}
NO_REGRESS= Yes
SUBST_VARS+= VERSION
pre-configure:
perl -pi -e 's,^(SONAME=).*,SONAME=${LIBnewt_VERSION},g;' \
-e 's,PYTHONVERS=.*,PYTHONVERS=python${MODPY_VERSION},g' ${WRKSRC}/configure
pre-install:
${SUBST_CMD} -c ${FILESDIR}/setup.py ${WRKSRC}/setup.py
cd ${WRKSRC} && ${MAKE_ENV} ${MODPY_BIN} setup.py install --prefix=${PREFIX}
.include <bsd.port.mk>

2
devel/newt/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (newt-0.52.14.tar.gz) = 9w9PWLqmA4jd8uOSSf+wCJj7QPKydn5C4qtR/ktAl44=
SIZE (newt-0.52.14.tar.gz) = 183621

16
devel/newt/files/setup.py Normal file
View File

@ -0,0 +1,16 @@
# $OpenBSD: setup.py,v 1.1.1.1 2012/09/05 07:31:48 jasper Exp $
import os
from distutils.core import setup, Extension
setup ( name = 'newt',
version = '${VERSION}',
description = 'Python interface to Newt module',
py_modules = ['snack'],
ext_modules = [ Extension(
name='_snack',
sources=['snackmodule.c'],
include_dirs=['.', '${LOCALBASE}'+'/include', '${TRUEPREFIX}'+'/include'],
library_dirs=['.', '${LOCALBASE}'+'/lib', '${TRUEPREFIX}'+'/lib'],
libraries=['newt', 'popt', 'slang', 'ncurses']
)])

View File

@ -0,0 +1,31 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2012/09/05 07:31:48 jasper Exp $
--- Makefile.in.orig Fri Nov 11 12:00:15 2011
+++ Makefile.in Wed Sep 5 09:27:50 2012
@@ -115,9 +115,7 @@ $(SHAREDDIR):
sharedlib: $(LIBNEWTSH)
$(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS)
- $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS)
- ln -fs $(LIBNEWTSONAME) libnewt.so
- ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME)
+ $(CC) -shared -o $(LIBNEWTSONAME) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS)
$(SHAREDDIR)/%.o : %.c
$(CC) $(SHCFLAGS) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
@@ -132,14 +130,12 @@ install: $(LIBNEWT) install-sh whiptail
install -m 644 $(LIBNEWT) $(instroot)/$(libdir)
install -m 755 whiptail $(instroot)/$(bindir)
install -m 644 whiptail.1 $(instroot)/$(man1dir)
- make -C po datadir=$(instroot)/$(datadir) install
+ ${MAKE_PROGRAM} -C po datadir=$(instroot)/$(datadir) install
install -m 644 libnewt.pc $(instroot)/$(pkgconfigdir)
install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
[ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
- install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
- ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so
- ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME)
+ install -m 755 $(LIBNEWTSONAME) $(instroot)/$(libdir)
[ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || :
[ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS) ; do \
[ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-form_c,v 1.1.1.1 2012/09/05 07:31:48 jasper Exp $
--- form.c.orig Tue Sep 4 21:08:51 2012
+++ form.c Tue Sep 4 21:09:14 2012
@@ -5,6 +5,7 @@
#include <slang.h>
#include <stdarg.h>
#include <stdlib.h>
+#include <string.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif

4
devel/newt/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
Newt is a programming library for color text mode, widget based user
interfaces. Newt can be used to add stacked windows, entry widgets,
checkboxes, radio buttons, labels, plain text fields, scrollbars, etc.,
to text mode user interfaces. Newt is based on the S-Lang library.

144
devel/newt/pkg/PLIST Normal file
View File

@ -0,0 +1,144 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/09/05 07:31:48 jasper Exp $
@bin bin/whiptail
include/newt.h
lib/libnewt.a
@lib lib/libnewt.so.${LIBnewt_VERSION}
lib/pkgconfig/libnewt.pc
lib/python${MODPY_VERSION}/site-packages/_snack.so
lib/python${MODPY_VERSION}/site-packages/_snackmodule.so
lib/python${MODPY_VERSION}/site-packages/newt-${VERSION}-py${MODPY_VERSION}.egg-info
lib/python${MODPY_VERSION}/site-packages/snack.py
lib/python${MODPY_VERSION}/site-packages/snack.pyc
@man man/man1/whiptail.1
share/locale/ar/
share/locale/ar/LC_MESSAGES/
share/locale/ar/LC_MESSAGES/newt.mo
share/locale/as/
share/locale/as/LC_MESSAGES/
share/locale/as/LC_MESSAGES/newt.mo
share/locale/ast/
share/locale/ast/LC_MESSAGES/
share/locale/ast/LC_MESSAGES/newt.mo
share/locale/bal/
share/locale/bal/LC_MESSAGES/
share/locale/bal/LC_MESSAGES/newt.mo
share/locale/bg/LC_MESSAGES/newt.mo
share/locale/bn/
share/locale/bn/LC_MESSAGES/
share/locale/bn/LC_MESSAGES/newt.mo
share/locale/bn_IN/
share/locale/bn_IN/LC_MESSAGES/
share/locale/bn_IN/LC_MESSAGES/newt.mo
share/locale/bs/
share/locale/bs/LC_MESSAGES/
share/locale/bs/LC_MESSAGES/newt.mo
share/locale/ca/LC_MESSAGES/newt.mo
share/locale/cs/LC_MESSAGES/newt.mo
share/locale/cy/
share/locale/cy/LC_MESSAGES/
share/locale/cy/LC_MESSAGES/newt.mo
share/locale/da/LC_MESSAGES/newt.mo
share/locale/de/LC_MESSAGES/newt.mo
share/locale/dz/
share/locale/dz/LC_MESSAGES/
share/locale/dz/LC_MESSAGES/newt.mo
share/locale/el/LC_MESSAGES/newt.mo
share/locale/eo/LC_MESSAGES/newt.mo
share/locale/es/LC_MESSAGES/newt.mo
share/locale/et/LC_MESSAGES/newt.mo
share/locale/eu/LC_MESSAGES/newt.mo
share/locale/fa/
share/locale/fa/LC_MESSAGES/
share/locale/fa/LC_MESSAGES/newt.mo
share/locale/fi/LC_MESSAGES/newt.mo
share/locale/fr/LC_MESSAGES/newt.mo
share/locale/ga/LC_MESSAGES/newt.mo
share/locale/gl/LC_MESSAGES/newt.mo
share/locale/gu/
share/locale/gu/LC_MESSAGES/
share/locale/gu/LC_MESSAGES/newt.mo
share/locale/he/LC_MESSAGES/newt.mo
share/locale/hi/
share/locale/hi/LC_MESSAGES/
share/locale/hi/LC_MESSAGES/newt.mo
share/locale/hr/LC_MESSAGES/newt.mo
share/locale/hu/LC_MESSAGES/newt.mo
share/locale/id/LC_MESSAGES/newt.mo
share/locale/it/LC_MESSAGES/newt.mo
share/locale/ja/LC_MESSAGES/newt.mo
share/locale/km/
share/locale/km/LC_MESSAGES/
share/locale/km/LC_MESSAGES/newt.mo
share/locale/kn/
share/locale/kn/LC_MESSAGES/
share/locale/kn/LC_MESSAGES/newt.mo
share/locale/ko/LC_MESSAGES/newt.mo
share/locale/ku/
share/locale/ku/LC_MESSAGES/
share/locale/ku/LC_MESSAGES/newt.mo
share/locale/lt/
share/locale/lt/LC_MESSAGES/
share/locale/lt/LC_MESSAGES/newt.mo
share/locale/mg/
share/locale/mg/LC_MESSAGES/
share/locale/mg/LC_MESSAGES/newt.mo
share/locale/mk/
share/locale/mk/LC_MESSAGES/
share/locale/mk/LC_MESSAGES/newt.mo
share/locale/ml/
share/locale/ml/LC_MESSAGES/
share/locale/ml/LC_MESSAGES/newt.mo
share/locale/mr/
share/locale/mr/LC_MESSAGES/
share/locale/mr/LC_MESSAGES/newt.mo
share/locale/ms/
share/locale/ms/LC_MESSAGES/
share/locale/ms/LC_MESSAGES/newt.mo
share/locale/nb/LC_MESSAGES/newt.mo
share/locale/nds/
share/locale/nds/LC_MESSAGES/
share/locale/nds/LC_MESSAGES/newt.mo
share/locale/ne/
share/locale/ne/LC_MESSAGES/
share/locale/ne/LC_MESSAGES/newt.mo
share/locale/nl/LC_MESSAGES/newt.mo
share/locale/nn/LC_MESSAGES/newt.mo
share/locale/pa/
share/locale/pa/LC_MESSAGES/
share/locale/pa/LC_MESSAGES/newt.mo
share/locale/pl/LC_MESSAGES/newt.mo
share/locale/pt/LC_MESSAGES/newt.mo
share/locale/pt_BR/LC_MESSAGES/newt.mo
share/locale/ro/LC_MESSAGES/newt.mo
share/locale/ru/LC_MESSAGES/newt.mo
share/locale/sk/LC_MESSAGES/newt.mo
share/locale/sl/LC_MESSAGES/newt.mo
share/locale/sq/
share/locale/sq/LC_MESSAGES/
share/locale/sq/LC_MESSAGES/newt.mo
share/locale/sr/LC_MESSAGES/newt.mo
share/locale/sr@latin/
share/locale/sr@latin/LC_MESSAGES/
share/locale/sr@latin/LC_MESSAGES/newt.mo
share/locale/sv/LC_MESSAGES/newt.mo
share/locale/ta/
share/locale/ta/LC_MESSAGES/
share/locale/ta/LC_MESSAGES/newt.mo
share/locale/te/
share/locale/te/LC_MESSAGES/
share/locale/te/LC_MESSAGES/newt.mo
share/locale/th/LC_MESSAGES/newt.mo
share/locale/tl/
share/locale/tl/LC_MESSAGES/
share/locale/tl/LC_MESSAGES/newt.mo
share/locale/tr/LC_MESSAGES/newt.mo
share/locale/uk/LC_MESSAGES/newt.mo
share/locale/vi/LC_MESSAGES/newt.mo
share/locale/wo/
share/locale/wo/LC_MESSAGES/
share/locale/wo/LC_MESSAGES/newt.mo
share/locale/xh/
share/locale/xh/LC_MESSAGES/
share/locale/xh/LC_MESSAGES/newt.mo
share/locale/zh_CN/LC_MESSAGES/newt.mo
share/locale/zh_TW/LC_MESSAGES/newt.mo