Bug 72055 - New port: lang/see Simple ECMAScript Engine
Summary: New port: lang/see Simple ECMAScript Engine
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jean-Yves Lefort
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-24 09:40 UTC by Simun Mikecin
Modified: 2005-04-15 18:08 UTC (History)
0 users

See Also:


Attachments
file.shar (4.53 KB, text/plain)
2004-09-24 09:40 UTC, Simun Mikecin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simun Mikecin 2004-09-24 09:40:20 UTC
Library that provides an ECMAScript (JavaScript) run-time environment.
Author didn't package the distfile right, so it's missing init.h. I have put
the missing file in files/ directory.
Comment 1 Simun Mikecin 2004-09-28 10:22:12 UTC
This patch solves linking errors for programs that use SEE.
files/patch-mem.h follows:

--- include/see/mem.h.orig      Tue Mar 30 15:02:46 2004
+++ include/see/mem.h   Tue Sep 28 11:13:57 2004
@@ -15,8 +15,8 @@
 #define SEE_NEW(i, t)          (t *)SEE_malloc(i, sizeof (t))
 #define SEE_NEW_ARRAY(i, t, n) (t *)SEE_malloc(i, (n) * sizeof (t))

-void *(*SEE_mem_malloc_hook)(struct SEE_interpreter *i, unsigned int
sz);
-void  (*SEE_mem_free_hook)(struct SEE_interpreter *i, void *ptr);
-void  (*SEE_mem_exhausted_hook)(struct SEE_interpreter *i) SEE_dead;
+extern void *(*SEE_mem_malloc_hook)(struct SEE_interpreter *i, unsigned
int sz);
+extern void  (*SEE_mem_free_hook)(struct SEE_interpreter *i, void
*ptr);
+extern void  (*SEE_mem_exhausted_hook)(struct SEE_interpreter *i)
SEE_dead;

 #endif /* _SEE_h_mem_ */
Comment 2 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-04-14 16:42:21 UTC
State Changed
From-To: open->feedback

MASTER_SITES is unresponsive. Please submit an update.
Comment 3 Simun Mikecin 2005-04-15 10:51:03 UTC
Here is an update to version 1.2. MASTER_SITES are functional but bandwidth
limited. Since SEE is BSD licensed it would be a good thing to
copy see-1.2.tar.gz to ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/ and add
that location to MASTER_SITES.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	see
#	see/files
#	see/files/patch-mem.h
#	see/pkg-descr
#	see/Makefile
#	see/pkg-plist
#	see/distinfo
#
echo c - see
mkdir -p see > /dev/null 2>&1
echo c - see/files
mkdir -p see/files > /dev/null 2>&1
echo x - see/files/patch-mem.h
sed 's/^X//' >see/files/patch-mem.h << 'END-of-see/files/patch-mem.h'
X--- include/see/mem.h.orig	Tue Mar 30 15:02:46 2004
X+++ include/see/mem.h	Tue Sep 28 11:13:57 2004
X@@ -15,8 +15,8 @@
X #define SEE_NEW(i, t)		(t *)SEE_malloc(i, sizeof (t))
X #define SEE_NEW_ARRAY(i, t, n)	(t *)SEE_malloc(i, (n) * sizeof (t))
X
X-void *(*SEE_mem_malloc_hook)(struct SEE_interpreter *i, unsigned int sz);
X-void  (*SEE_mem_free_hook)(struct SEE_interpreter *i, void *ptr);
X-void  (*SEE_mem_exhausted_hook)(struct SEE_interpreter *i) SEE_dead;
X+extern void *(*SEE_mem_malloc_hook)(struct SEE_interpreter *i, unsigned  
int sz);
X+extern void  (*SEE_mem_free_hook)(struct SEE_interpreter *i, void *ptr);
X+extern void  (*SEE_mem_exhausted_hook)(struct SEE_interpreter *i)  
SEE_dead;
X
X #endif /* _SEE_h_mem_ */
END-of-see/files/patch-mem.h
echo x - see/pkg-descr
sed 's/^X//' >see/pkg-descr << 'END-of-see/pkg-descr'
XLibrary that provides an ECMAScript (JavaScript) run-time environment
X
XWWW: http://www.adaptive-enterprises.com.au/~d/software/see/
X
X- Simun Mikecin
Xsime@logos.hr
END-of-see/pkg-descr
echo x - see/Makefile
sed 's/^X//' >see/Makefile << 'END-of-see/Makefile'
X# New ports collection makefile for:   see
X# Date created:        22 September 2004
X# Whom:                sime@logos.hr
X#
X# $FreeBSD$
X#
X
XPORTNAME=	see
XPORTVERSION=	1.2
XCATEGORIES=	lang
XMASTER_SITES=	http://www.netsw.org/softeng/lang/js/ \
X		http://www.adaptive-enterprises.com.au/~d/software/see/
XDISTNAME=       ${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	sime@logos.hr
XCOMMENT=	Simple ECMAScript Engine (SEE)
X
XOPTIONS=	GC "Use Boehm-Weiser garbage collection package" on \
X		OPTIMIZED_CFLAGS "Enable some additional optimizations" off
X
XINSTALLS_SHLIB=	yes
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_PERL5_BUILD=	yes
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_OPTIMIZED_CFLAGS)
XCFLAGS+=	-O2 -fomit-frame-pointer
X.endif
X
X.if defined(WITHOUT_GC)
XPTHREAD_LIBS=
X.endif
X
XCONFIGURE_ENV+=	LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
X		CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
X		CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}"
XCONFIGURE_ARGS=	--prefix="${PREFIX}"
X
X.if defined(WITH_GC)
XLIB_DEPENDS+=	gc:${PORTSDIR}/devel/boehm-gc
X.else
XCONFIGURE_ARGS+=	--without-boehm-gc
X.endif
X
Xpre-install:
X	${INSTALL} -d ${PREFIX}/share/doc/see
X	${INSTALL} -m 644 ${WRKSRC}/doc/USAGE.html ${PREFIX}/share/doc/see/
X	${INSTALL} -m 644 ${WRKSRC}/COPYING ${PREFIX}/share/doc/see/
X	${INSTALL} -m 644 ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/see/
X	${INSTALL} -m 644 ${WRKSRC}/NEWS ${PREFIX}/share/doc/see/
X	${INSTALL} -m 644 ${WRKSRC}/README ${PREFIX}/share/doc/see/
X	${INSTALL} -m 644 ${WRKSRC}/TODO ${PREFIX}/share/doc/see/
X
X.include <bsd.port.post.mk>
END-of-see/Makefile
echo x - see/pkg-plist
sed 's/^X//' >see/pkg-plist << 'END-of-see/pkg-plist'
Xinclude/see/cfunction.h
Xinclude/see/debug.h
Xinclude/see/error.h
Xinclude/see/eval.h
Xinclude/see/input.h
Xinclude/see/intern.h
Xinclude/see/interpreter.h
Xinclude/see/mem.h
Xinclude/see/native.h
Xinclude/see/no.h
Xinclude/see/object.h
Xinclude/see/see.h
Xinclude/see/string.h
Xinclude/see/try.h
Xinclude/see/type.h
Xinclude/see/value.h
Xlib/libsee.so.0
Xlib/libsee.so
Xlib/libsee.la
Xlib/libsee.a
Xbin/see-shell
Xbin/libsee-config
X@exec	mkdir -p %D/share/doc/see
Xshare/doc/see/USAGE.html
Xshare/doc/see/COPYING
Xshare/doc/see/AUTHORS
Xshare/doc/see/NEWS
Xshare/doc/see/README
Xshare/doc/see/TODO
X@dirrm share/doc/see
X@dirrm include/see
END-of-see/pkg-plist
echo x - see/distinfo
sed 's/^X//' >see/distinfo << 'END-of-see/distinfo'
XMD5 (see-1.2.tar.gz) = 36795db813e5fcb2800142a48286624e
XSIZE (see-1.2.tar.gz) = 537824
END-of-see/distinfo
exit
Comment 4 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-04-15 11:06:05 UTC
State Changed
From-To: feedback->open

Feedback received. 


Comment 5 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-04-15 11:06:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jylefort

I take it.
Comment 6 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-04-15 18:08:21 UTC
State Changed
From-To: open->closed

Committed with a few modifications, thanks!