Date: Wed, 26 Mar 2014 10:57:50 GMT From: Simun Mikecin <numisemis@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/187954: [MAINTAINER UPDATE] lang/see & lang/see-devel: update to 3.1 Message-ID: <201403261057.s2QAvod0032379@cgiserv.freebsd.org> Resent-Message-ID: <201403261100.s2QB00lw066013@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 187954 >Category: ports >Synopsis: [MAINTAINER UPDATE] lang/see & lang/see-devel: update to 3.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Mar 26 11:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Simun Mikecin >Release: 10.0-RELEASE >Organization: >Environment: FreeBSD fbsd64 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Updated to version 3.1. Both versions (lang/see and lang/see-devel) were very old, so this replaces both of them with one lang/see port. M lang/see/Makefile M lang/see/distinfo D lang/see/files D lang/see/files/patch-libsee_dtoa.c D lang/see/files/patch-libsee_input__utf8.c D lang/see/files/patch-libsee_obj__Date.c D lang/see/files/patch-libsee_system.c M lang/see/pkg-plist D lang/see-devel D lang/see-devel/Makefile D lang/see-devel/distinfo D lang/see-devel/files D lang/see-devel/files/patch-libsee_dtoa.c D lang/see-devel/files/patch-libsee_parse.c D lang/see-devel/files/patch-libsee_value.c D lang/see-devel/pkg-descr D lang/see-devel/pkg-plist >How-To-Repeat: >Fix: Patch attached with submission follows: Index: lang/see/Makefile =================================================================== --- lang/see/Makefile (revision 349238) +++ lang/see/Makefile (working copy) @@ -2,27 +2,31 @@ # $FreeBSD$ PORTNAME= see -PORTVERSION= 2.0.1131 -PORTREVISION= 1 +PORTVERSION= 3.1.1424 CATEGORIES= lang devel -MASTER_SITES= http://www.powerband.net.au/~david.leonard/ \ - http://freshmeat.net/redir/see/45974/url_tgz/ +MASTER_SITES= http://download.openpkg.org/components/cache/see/ \ + http://lil.fr.distfiles.macports.org/see/ \ + ftp://ftp7.freebsd.org/sites/distfiles.macports.org/see/ \ + ftp://ftp.mirrorservice.org/sites/distfiles.macports.org/see/ \ + ftp://kuiper.mirrorservice.org/sites/distfiles.macports.org/see/ \ + ftp://copernicus.mirrorservice.org/sites/distfiles.macports.org/see/ \ + ftp://ftp2.uk.i-scream.org/sites/distfiles.macports.org/see/ \ + ftp://mirror.csclub.uwaterloo.ca/MacPorts/mpdistfiles/see/ MAINTAINER= numisemis@yahoo.com COMMENT= Simple ECMAScript Engine (SEE) -OPTIONS_DEFINE= GC OPTIMIZED_CFLAGS SEE_DEBUG THREADS DOCS -OPTIONS_DEFAULT= GC THREADS +LICENSE= BSD + +OPTIONS_DEFINE= GC SEE_DEBUG DOCS +OPTIONS_DEFAULT= GC DOCS GC_DESC= Use Boehm-Weiser garbage collection package SEE_DEBUG_DESC= Internal SEE library debugging CONFLICTS= see-devel-[0-9]* -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} - +USES= pathfix perl5 USE_LDCONFIG= yes -USES= perl5 USE_PERL5= build GNU_CONFIGURE= yes @@ -32,27 +36,17 @@ NO_STAGE= yes .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MMULTIPLE_THREADS} -CFLAGS+= -DMULTIPLE_THREADS -.endif +CFLAGS+= -O3 -fno-strict-aliasing .if ! ${PORT_OPTIONS:MSEE_DEBUG} CFLAGS+= -DNDEBUG .endif -.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -CFLAGS+= -O3 -fomit-frame-pointer -.endif - .if ${PORT_OPTIONS:MGC} -LIB_DEPENDS+= gc:${PORTSDIR}/devel/boehm-gc +LIB_DEPENDS+= libgc.so:${PORTSDIR}/devel/boehm-gc .else CONFIGURE_ARGS+= --without-boehm-gc -.if ! ${PORT_OPTIONS:MTHREADS} -PTHREAD_CFLAGS= -PTHREAD_LIBS= .endif -.endif post-patch: @${REINPLACE_CMD} -e "s|PACKAGE_BUGREPORT='leonard@users|PACKAGE_BUGREPORT='leonard\\\@users|" \ Index: lang/see/distinfo =================================================================== --- lang/see/distinfo (revision 349238) +++ lang/see/distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (see-2.0.1131.tar.gz) = 0d398fd5f7a2e86ddbe361a80d9658bf0f0f6c11dad186953c3c064c56d12d93 -SIZE (see-2.0.1131.tar.gz) = 948647 +SHA256 (see-3.1.1424.tar.gz) = 04c58de4f56894f05ebb3b7c61b35e4090cd15710d42b3918f867eea50ab8f5c +SIZE (see-3.1.1424.tar.gz) = 1015347 Index: lang/see/files/patch-libsee_dtoa.c =================================================================== --- lang/see/files/patch-libsee_dtoa.c (revision 349238) +++ lang/see/files/patch-libsee_dtoa.c (working copy) @@ -1,24 +0,0 @@ ---- libsee/dtoa.c.orig 2005-12-24 04:35:38.000000000 +0100 -+++ libsee/dtoa.c 2008-04-07 11:30:11.529829910 +0200 -@@ -168,6 +168,11 @@ - * the result overflows to +-Infinity or underflows to 0. - */ - -+#ifdef MULTIPLE_THREADS -+#include <pthread.h> -+static pthread_mutex_t mylock[2] = { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER }; -+#endif -+ - #ifndef Long - #define Long long - #endif -@@ -470,6 +475,9 @@ - #ifndef MULTIPLE_THREADS - #define ACQUIRE_DTOA_LOCK(n) /*nothing*/ - #define FREE_DTOA_LOCK(n) /*nothing*/ -+#else -+#define ACQUIRE_DTOA_LOCK(n) pthread_mutex_lock(&mylock[n]); -+#define FREE_DTOA_LOCK(n) pthread_mutex_unlock(&mylock[n]); - #endif - - #define Kmax 15 Index: lang/see/files/patch-libsee_input__utf8.c =================================================================== --- lang/see/files/patch-libsee_input__utf8.c (revision 349238) +++ lang/see/files/patch-libsee_input__utf8.c (working copy) @@ -1,20 +0,0 @@ ---- libsee/input_utf8.c.orig Wed Jan 18 12:40:19 2006 -+++ libsee/input_utf8.c Tue Dec 12 08:48:44 2006 -@@ -63,7 +63,7 @@ - - struct input_utf8 { - struct SEE_input inp; -- const char * s; -+ const unsigned char * s; - }; - - static SEE_unicode_t -@@ -141,7 +141,7 @@ - inpu->inp.inputclass = &input_utf8_class; - inpu->inp.filename = NULL; - inpu->inp.first_lineno = 1; -- inpu->s = s; -+ inpu->s = (const unsigned char *)s; - SEE_INPUT_NEXT((struct SEE_input *)inpu); /* prime */ - return (struct SEE_input *)inpu; - } Index: lang/see/files/patch-libsee_obj__Date.c =================================================================== --- lang/see/files/patch-libsee_obj__Date.c (revision 349238) +++ lang/see/files/patch-libsee_obj__Date.c (working copy) @@ -1,11 +0,0 @@ ---- libsee/obj_Date.c.orig Sun May 7 06:43:55 2006 -+++ libsee/obj_Date.c Tue Sep 5 09:11:09 2006 -@@ -335,7 +335,7 @@ - struct SEE_interpreter *interp; - SEE_number_t t; - { -- return t + LocalTZA(interp) + DaylightSavingTA(interp, t); -+ return t + LocalTZA(interp) - DaylightSavingTA(interp, t); - } - - /* Index: lang/see/files/patch-libsee_system.c =================================================================== --- lang/see/files/patch-libsee_system.c (revision 349238) +++ lang/see/files/patch-libsee_system.c (working copy) @@ -1,11 +0,0 @@ ---- libsee/system.c.orig 2009-12-17 14:05:43.000000000 -0800 -+++ libsee/system.c 2009-12-17 14:07:20.000000000 -0800 -@@ -70,6 +70,8 @@ - #include "dprint.h" - #include "platform.h" - -+typedef void * GC_PTR; -+ - /* Prototypes */ - static unsigned int simple_random_seed(void); - #if HAVE_GC_MALLOC Index: lang/see/pkg-plist =================================================================== --- lang/see/pkg-plist (revision 349238) +++ lang/see/pkg-plist (working copy) @@ -23,11 +23,12 @@ lib/libsee.a lib/libsee.la lib/libsee.so -lib/libsee.so.1 +lib/libsee.so.2 lib/see/libFile.a lib/see/libFile.la lib/see/libFile.so lib/see/libFile.so.0 +libdata/pkgconfig/see.pc %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/COPYING %%PORTDOCS%%%%DOCSDIR%%/NEWS Index: lang/see-devel/Makefile =================================================================== --- lang/see-devel/Makefile (revision 349238) +++ lang/see-devel/Makefile (working copy) @@ -1,67 +0,0 @@ -# Created by: Simun Mikecin <numisemis@yahoo.com> -# $FreeBSD$ - -PORTNAME= see -PORTVERSION= 3.0.1376 -PORTREVISION= 2 -CATEGORIES= lang devel -MASTER_SITES= http://www.evolane.com/download/mirror/etcl/ \ - http://www.evolane.fr/download/mirror/etcl/ -PKGNAMESUFFIX= -devel - -MAINTAINER= numisemis@yahoo.com -COMMENT= Simple ECMAScript Engine (SEE) - -OPTIONS_DEFINE= GC OPTIMIZED_CFLAGS SEE_DEBUG THREADS DOCS -OPTIONS_DEFAULT= GC THREADS -GC_DESC= Use Boehm-Weiser garbage collection package -SEE_DEBUG_DESC= Internal SEE library debugging - -CONFLICTS= see-[0-9]* - -USES= pathfix perl5 -USE_LDCONFIG= yes -USE_PERL5= build -GNU_CONFIGURE= yes - -CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} - -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MMULTIPLE_THREADS} -CFLAGS+= -DMULTIPLE_THREADS -.endif - -.if ! ${PORT_OPTIONS:MSEE_DEBUG} -CFLAGS+= -DNDEBUG -.endif - -.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -CFLAGS+= -O3 -fomit-frame-pointer -.endif - -.if ${PORT_OPTIONS:MGC} -LIB_DEPENDS+= gc:${PORTSDIR}/devel/boehm-gc -.else -CONFIGURE_ARGS+= --without-boehm-gc -.if ! ${PORT_OPTIONS:MTHREADS} -PTHREAD_CFLAGS= -PTHREAD_LIBS= -.endif -.endif - -post-patch: - @${REINPLACE_CMD} -e "s|PACKAGE_BUGREPORT='leonard@users|PACKAGE_BUGREPORT='leonard\\\@users|" \ - ${WRKSRC}/configure - -.if ${PORT_OPTIONS:MDOCS} -post-install: - ${MKDIR} ${DOCSDIR} -.for f in doc/USAGE.html AUTHORS NEWS README TODO COPYING - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -.endfor -.endif - -.include <bsd.port.mk> Index: lang/see-devel/distinfo =================================================================== --- lang/see-devel/distinfo (revision 349238) +++ lang/see-devel/distinfo (working copy) @@ -1,2 +0,0 @@ -SHA256 (see-3.0.1376.tar.gz) = e06dc6182adc2d4abb7b23b92472c02b8a1016d58038533770de4c26988d51f7 -SIZE (see-3.0.1376.tar.gz) = 1066852 Index: lang/see-devel/files/patch-libsee_dtoa.c =================================================================== --- lang/see-devel/files/patch-libsee_dtoa.c (revision 349238) +++ lang/see-devel/files/patch-libsee_dtoa.c (working copy) @@ -1,24 +0,0 @@ ---- libsee/dtoa.c.orig 2005-12-24 04:35:38.000000000 +0100 -+++ libsee/dtoa.c 2008-04-07 11:30:11.529829910 +0200 -@@ -168,6 +168,11 @@ - * the result overflows to +-Infinity or underflows to 0. - */ - -+#ifdef MULTIPLE_THREADS -+#include <pthread.h> -+static pthread_mutex_t mylock[2] = { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER }; -+#endif -+ - #ifndef Long - #define Long long - #endif -@@ -470,6 +475,9 @@ - #ifndef MULTIPLE_THREADS - #define ACQUIRE_DTOA_LOCK(n) /*nothing*/ - #define FREE_DTOA_LOCK(n) /*nothing*/ -+#else -+#define ACQUIRE_DTOA_LOCK(n) pthread_mutex_lock(&mylock[n]); -+#define FREE_DTOA_LOCK(n) pthread_mutex_unlock(&mylock[n]); - #endif - - #define Kmax 15 Index: lang/see-devel/files/patch-libsee_parse.c =================================================================== --- lang/see-devel/files/patch-libsee_parse.c (revision 349238) +++ lang/see-devel/files/patch-libsee_parse.c (working copy) @@ -1,18 +0,0 @@ ---- libsee/parse.c.orig Sun Feb 10 05:59:48 2008 -+++ libsee/parse.c Thu Aug 21 13:07:30 2008 -@@ -27,7 +27,7 @@ - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ --/* $Id: parse.c 1371 2008-02-10 04:59:09Z d $ */ -+/* $Id: parse.c 1381 2008-03-05 07:29:31Z d $ */ - - /* - * Combined parser and evaluator. -@@ -12317,6 +12317,7 @@ - &SourceElements_nodeclass); - ss->statements = s; - ss->functions = NULL; -+ ss->vars = NULL; - return (struct node *)ss; - } Index: lang/see-devel/files/patch-libsee_value.c =================================================================== --- lang/see-devel/files/patch-libsee_value.c (revision 349238) +++ lang/see-devel/files/patch-libsee_value.c (working copy) @@ -1,40 +0,0 @@ ---- libsee/value.c.orig Sat Feb 9 13:54:59 2008 -+++ libsee/value.c Thu Aug 21 13:07:30 2008 -@@ -27,7 +27,7 @@ - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ --/* $Id: value.c 1370 2008-02-09 12:54:24Z d $ */ -+/* $Id: value.c 1383 2008-07-03 13:56:11Z d $ */ - - #if HAVE_CONFIG_H - # include <config.h> -@@ -289,14 +289,17 @@ - } else if (SEE_NUMBER_ISPINF(val)) { - SEE_SET_STRING(res, STR(Infinity)); - } else { -- char *a, *endstr; -+ char *a0, *a, *endstr; - struct SEE_string *s; - int sign, k, n, i, exponent; - int len; - -- a = SEE_dtoa(val->u.number, DTOA_MODE_SHORT_SW, 31, -+ a0 = SEE_dtoa(val->u.number, DTOA_MODE_SHORT_SW, 31, - &n, &sign, &endstr); -- k = (int)(endstr - a); -+ k = (int)(endstr - a0); -+ a = SEE_STRING_ALLOCA(interp, char, k); -+ memcpy(a, a0, k); -+ SEE_freedtoa(a0); - - /* Numbers converted to strings are generally - * small and short-lived. */ -@@ -359,7 +362,6 @@ - } - SEE_ASSERT(interp, len == s->length); - SEE_SET_STRING(res, s); -- SEE_freedtoa(a); - } - break; - case SEE_STRING: Index: lang/see-devel/pkg-descr =================================================================== --- lang/see-devel/pkg-descr (revision 349238) +++ lang/see-devel/pkg-descr (working copy) @@ -1,3 +0,0 @@ -Library that provides an ECMAScript (JavaScript) run-time environment. - -WWW: http://www.adaptive-enterprises.com.au/~d/software/see/ Index: lang/see-devel/pkg-plist =================================================================== --- lang/see-devel/pkg-plist (revision 349238) +++ lang/see-devel/pkg-plist (working copy) @@ -1,40 +0,0 @@ -bin/libsee-config -bin/see-shell -include/see/cfunction.h -include/see/context.h -include/see/debug.h -include/see/error.h -include/see/eval.h -include/see/input.h -include/see/intern.h -include/see/interpreter.h -include/see/mem.h -include/see/module.h -include/see/native.h -include/see/no.h -include/see/object.h -include/see/see.h -include/see/string.h -include/see/system.h -include/see/try.h -include/see/type.h -include/see/value.h -include/see/version.h -lib/libsee.a -lib/libsee.la -lib/libsee.so -lib/libsee.so.2 -lib/see/libFile.a -lib/see/libFile.la -lib/see/libFile.so -lib/see/libFile.so.0 -libdata/pkgconfig/see.pc -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/COPYING -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%%%DOCSDIR%%/USAGE.html -%%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm include/see -@dirrm lib/see >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403261057.s2QAvod0032379>