Add node 0.1.90, v8 javascript for client and server.
PR: ports/145641 Submitted by: Jin-Sih Lin <linpct at gmail.com>
This commit is contained in:
parent
1b40eaa840
commit
a977353f4b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252585
13 changed files with 359 additions and 0 deletions
|
@ -592,6 +592,7 @@
|
|||
SUBDIR += newsfeed
|
||||
SUBDIR += nginx
|
||||
SUBDIR += nginx-devel
|
||||
SUBDIR += node
|
||||
SUBDIR += notftp
|
||||
SUBDIR += npapi-xine
|
||||
SUBDIR += npc
|
||||
|
|
39
www/node/Makefile
Normal file
39
www/node/Makefile
Normal file
|
@ -0,0 +1,39 @@
|
|||
# New ports collection makefile for: node
|
||||
# Date created: 2010-04-12
|
||||
# Whom: Jin-Sih Lin <linpct@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= node
|
||||
PORTVERSION= 0.1.90
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://nodejs.org/dist/
|
||||
DISTNAME= ${PORTNAME}-v${PORTVERSION}
|
||||
|
||||
MAINTAINER= linpct@gmail.com
|
||||
COMMENT= V8 javascript for client and server
|
||||
|
||||
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
USE_PYTHON= yes
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST}
|
||||
PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,}
|
||||
|
||||
MAN1= ${PORTNAME}.1
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
do-build:
|
||||
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} tools/waf-light --jobs=${MAKE_JOBS_NUMBER} build)
|
||||
|
||||
post-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${PREFIX}/man/man1
|
||||
${GZIP_CMD} ${PREFIX}/man/man1/${PORTNAME}.1
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/node/distinfo
Normal file
3
www/node/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (node-v0.1.90.tar.gz) = 37467ff3ad0c822e0a190c3d1746d70b
|
||||
SHA256 (node-v0.1.90.tar.gz) = 0dbd47f6be45049a54de6ff268b25a8ccf8cac38bd75788e713dab35a14695c3
|
||||
SIZE (node-v0.1.90.tar.gz) = 6452573
|
11
www/node/files/patch-guess-arch-amd64
Normal file
11
www/node/files/patch-guess-arch-amd64
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- deps/v8/tools/utils.py.orig 2010-04-12 11:54:20.000000000 +0800
|
||||
+++ deps/v8/tools/utils.py 2010-04-12 11:54:44.000000000 +0800
|
||||
@@ -69,6 +69,8 @@
|
||||
return 'arm'
|
||||
elif (not id) or (not re.match('(x|i[3-6])86', id) is None):
|
||||
return 'ia32'
|
||||
+ elif id == 'amd64':
|
||||
+ return 'ia32'
|
||||
elif id == 'i86pc':
|
||||
return 'ia32'
|
||||
else:
|
38
www/node/files/patch-libev-kqueue
Normal file
38
www/node/files/patch-libev-kqueue
Normal file
|
@ -0,0 +1,38 @@
|
|||
--- deps/libev/wscript.orig 2010-04-12 11:55:55.000000000 +0800
|
||||
+++ deps/libev/wscript 2010-04-12 12:00:43.000000000 +0800
|
||||
@@ -27,12 +27,30 @@
|
||||
if conf.check_cc(header_name="poll.h"):
|
||||
conf.check_cc(header_name="poll.h", function_name="poll")
|
||||
|
||||
- conf.check_cc(header_name="sys/event.h")
|
||||
conf.check_cc(header_name="sys/queue.h")
|
||||
- if PLATFORM_IS_DARWIN:
|
||||
- conf.check_cc(header_name="sys/event.h", function_name="kqueue")
|
||||
- else:
|
||||
- conf.check_cc(header_name="sys/queue.h", function_name="kqueue")
|
||||
+
|
||||
+ code = """
|
||||
+ #include <sys/types.h>
|
||||
+ #include <sys/event.h>
|
||||
+
|
||||
+ int main() {
|
||||
+ return 0;
|
||||
+ }
|
||||
+ """
|
||||
+ conf.check_cc(fragment=code, define_name="HAVE_SYS_EVENT_H", execute=False,
|
||||
+ msg="Checking for header sys/event.h")
|
||||
+
|
||||
+ code = """
|
||||
+ #include <sys/types.h>
|
||||
+ #include <sys/event.h>
|
||||
+
|
||||
+ int main() {
|
||||
+ int fd = kqueue();
|
||||
+ return 0;
|
||||
+ }
|
||||
+ """
|
||||
+ conf.check_cc(fragment=code, define_name="HAVE_KQUEUE", execute=False,
|
||||
+ msg="Checking for function kqueue")
|
||||
|
||||
if conf.check_cc(header_name="sys/select.h"):
|
||||
conf.check_cc(header_name="sys/select.h", function_name="select")
|
3
www/node/pkg-descr
Normal file
3
www/node/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
|||
node - evented I/O for V8 javascript
|
||||
|
||||
WWW: http://nodejs.org/
|
85
www/node/pkg-plist
Normal file
85
www/node/pkg-plist
Normal file
|
@ -0,0 +1,85 @@
|
|||
@comment $FreeBSD$
|
||||
bin/node-repl
|
||||
bin/node-waf
|
||||
bin/node
|
||||
include/node/eio.h
|
||||
include/node/ev.h
|
||||
include/node/v8-debug.h
|
||||
include/node/v8.h
|
||||
include/node/evcom.h
|
||||
include/node/config.h
|
||||
include/node/node.h
|
||||
include/node/node_object_wrap.h
|
||||
include/node/node_events.h
|
||||
include/node/node_net.h
|
||||
include/node/node_version.h
|
||||
lib/node/wafadmin/Build.py
|
||||
lib/node/wafadmin/Configure.py
|
||||
lib/node/wafadmin/Constants.py
|
||||
lib/node/wafadmin/Environment.py
|
||||
lib/node/wafadmin/Logs.py
|
||||
lib/node/wafadmin/Node.py
|
||||
lib/node/wafadmin/Options.py
|
||||
lib/node/wafadmin/Runner.py
|
||||
lib/node/wafadmin/Scripting.py
|
||||
lib/node/wafadmin/Task.py
|
||||
lib/node/wafadmin/TaskGen.py
|
||||
lib/node/wafadmin/Utils.py
|
||||
lib/node/wafadmin/__init__.py
|
||||
lib/node/wafadmin/ansiterm.py
|
||||
lib/node/wafadmin/pproc.py
|
||||
lib/node/wafadmin/py3kfixes.py
|
||||
lib/node/wafadmin/Tools/__init__.py
|
||||
lib/node/wafadmin/Tools/ar.py
|
||||
lib/node/wafadmin/Tools/bison.py
|
||||
lib/node/wafadmin/Tools/cc.py
|
||||
lib/node/wafadmin/Tools/ccroot.py
|
||||
lib/node/wafadmin/Tools/compiler_cc.py
|
||||
lib/node/wafadmin/Tools/compiler_cxx.py
|
||||
lib/node/wafadmin/Tools/compiler_d.py
|
||||
lib/node/wafadmin/Tools/config_c.py
|
||||
lib/node/wafadmin/Tools/cs.py
|
||||
lib/node/wafadmin/Tools/cxx.py
|
||||
lib/node/wafadmin/Tools/d.py
|
||||
lib/node/wafadmin/Tools/dbus.py
|
||||
lib/node/wafadmin/Tools/dmd.py
|
||||
lib/node/wafadmin/Tools/flex.py
|
||||
lib/node/wafadmin/Tools/gas.py
|
||||
lib/node/wafadmin/Tools/gcc.py
|
||||
lib/node/wafadmin/Tools/gdc.py
|
||||
lib/node/wafadmin/Tools/glib2.py
|
||||
lib/node/wafadmin/Tools/gnome.py
|
||||
lib/node/wafadmin/Tools/gnu_dirs.py
|
||||
lib/node/wafadmin/Tools/gob2.py
|
||||
lib/node/wafadmin/Tools/gxx.py
|
||||
lib/node/wafadmin/Tools/icc.py
|
||||
lib/node/wafadmin/Tools/icpc.py
|
||||
lib/node/wafadmin/Tools/intltool.py
|
||||
lib/node/wafadmin/Tools/kde4.py
|
||||
lib/node/wafadmin/Tools/javaw.py
|
||||
lib/node/wafadmin/Tools/libtool.py
|
||||
lib/node/wafadmin/Tools/lua.py
|
||||
lib/node/wafadmin/Tools/misc.py
|
||||
lib/node/wafadmin/Tools/msvc.py
|
||||
lib/node/wafadmin/Tools/nasm.py
|
||||
lib/node/wafadmin/Tools/node_addon.py
|
||||
lib/node/wafadmin/Tools/ocaml.py
|
||||
lib/node/wafadmin/Tools/osx.py
|
||||
lib/node/wafadmin/Tools/perl.py
|
||||
lib/node/wafadmin/Tools/preproc.py
|
||||
lib/node/wafadmin/Tools/python.py
|
||||
lib/node/wafadmin/Tools/qt4.py
|
||||
lib/node/wafadmin/Tools/ruby.py
|
||||
lib/node/wafadmin/Tools/suncc.py
|
||||
lib/node/wafadmin/Tools/suncxx.py
|
||||
lib/node/wafadmin/Tools/tex.py
|
||||
lib/node/wafadmin/Tools/unittestw.py
|
||||
lib/node/wafadmin/Tools/vala.py
|
||||
lib/node/wafadmin/Tools/winres.py
|
||||
lib/node/wafadmin/Tools/xlc.py
|
||||
lib/node/wafadmin/Tools/xlcxx.py
|
||||
@dirrmtry lib/node/wafadmin/Tools
|
||||
@dirrmtry lib/node/wafadmin
|
||||
@dirrmtry lib/node/libraries
|
||||
@dirrmtry lib/node
|
||||
@dirrmtry include/node
|
39
www/node04/Makefile
Normal file
39
www/node04/Makefile
Normal file
|
@ -0,0 +1,39 @@
|
|||
# New ports collection makefile for: node
|
||||
# Date created: 2010-04-12
|
||||
# Whom: Jin-Sih Lin <linpct@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= node
|
||||
PORTVERSION= 0.1.90
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://nodejs.org/dist/
|
||||
DISTNAME= ${PORTNAME}-v${PORTVERSION}
|
||||
|
||||
MAINTAINER= linpct@gmail.com
|
||||
COMMENT= V8 javascript for client and server
|
||||
|
||||
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
USE_PYTHON= yes
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST}
|
||||
PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,}
|
||||
|
||||
MAN1= ${PORTNAME}.1
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
do-build:
|
||||
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} tools/waf-light --jobs=${MAKE_JOBS_NUMBER} build)
|
||||
|
||||
post-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${PREFIX}/man/man1
|
||||
${GZIP_CMD} ${PREFIX}/man/man1/${PORTNAME}.1
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/node04/distinfo
Normal file
3
www/node04/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (node-v0.1.90.tar.gz) = 37467ff3ad0c822e0a190c3d1746d70b
|
||||
SHA256 (node-v0.1.90.tar.gz) = 0dbd47f6be45049a54de6ff268b25a8ccf8cac38bd75788e713dab35a14695c3
|
||||
SIZE (node-v0.1.90.tar.gz) = 6452573
|
11
www/node04/files/patch-guess-arch-amd64
Normal file
11
www/node04/files/patch-guess-arch-amd64
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- deps/v8/tools/utils.py.orig 2010-04-12 11:54:20.000000000 +0800
|
||||
+++ deps/v8/tools/utils.py 2010-04-12 11:54:44.000000000 +0800
|
||||
@@ -69,6 +69,8 @@
|
||||
return 'arm'
|
||||
elif (not id) or (not re.match('(x|i[3-6])86', id) is None):
|
||||
return 'ia32'
|
||||
+ elif id == 'amd64':
|
||||
+ return 'ia32'
|
||||
elif id == 'i86pc':
|
||||
return 'ia32'
|
||||
else:
|
38
www/node04/files/patch-libev-kqueue
Normal file
38
www/node04/files/patch-libev-kqueue
Normal file
|
@ -0,0 +1,38 @@
|
|||
--- deps/libev/wscript.orig 2010-04-12 11:55:55.000000000 +0800
|
||||
+++ deps/libev/wscript 2010-04-12 12:00:43.000000000 +0800
|
||||
@@ -27,12 +27,30 @@
|
||||
if conf.check_cc(header_name="poll.h"):
|
||||
conf.check_cc(header_name="poll.h", function_name="poll")
|
||||
|
||||
- conf.check_cc(header_name="sys/event.h")
|
||||
conf.check_cc(header_name="sys/queue.h")
|
||||
- if PLATFORM_IS_DARWIN:
|
||||
- conf.check_cc(header_name="sys/event.h", function_name="kqueue")
|
||||
- else:
|
||||
- conf.check_cc(header_name="sys/queue.h", function_name="kqueue")
|
||||
+
|
||||
+ code = """
|
||||
+ #include <sys/types.h>
|
||||
+ #include <sys/event.h>
|
||||
+
|
||||
+ int main() {
|
||||
+ return 0;
|
||||
+ }
|
||||
+ """
|
||||
+ conf.check_cc(fragment=code, define_name="HAVE_SYS_EVENT_H", execute=False,
|
||||
+ msg="Checking for header sys/event.h")
|
||||
+
|
||||
+ code = """
|
||||
+ #include <sys/types.h>
|
||||
+ #include <sys/event.h>
|
||||
+
|
||||
+ int main() {
|
||||
+ int fd = kqueue();
|
||||
+ return 0;
|
||||
+ }
|
||||
+ """
|
||||
+ conf.check_cc(fragment=code, define_name="HAVE_KQUEUE", execute=False,
|
||||
+ msg="Checking for function kqueue")
|
||||
|
||||
if conf.check_cc(header_name="sys/select.h"):
|
||||
conf.check_cc(header_name="sys/select.h", function_name="select")
|
3
www/node04/pkg-descr
Normal file
3
www/node04/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
|||
node - evented I/O for V8 javascript
|
||||
|
||||
WWW: http://nodejs.org/
|
85
www/node04/pkg-plist
Normal file
85
www/node04/pkg-plist
Normal file
|
@ -0,0 +1,85 @@
|
|||
@comment $FreeBSD$
|
||||
bin/node-repl
|
||||
bin/node-waf
|
||||
bin/node
|
||||
include/node/eio.h
|
||||
include/node/ev.h
|
||||
include/node/v8-debug.h
|
||||
include/node/v8.h
|
||||
include/node/evcom.h
|
||||
include/node/config.h
|
||||
include/node/node.h
|
||||
include/node/node_object_wrap.h
|
||||
include/node/node_events.h
|
||||
include/node/node_net.h
|
||||
include/node/node_version.h
|
||||
lib/node/wafadmin/Build.py
|
||||
lib/node/wafadmin/Configure.py
|
||||
lib/node/wafadmin/Constants.py
|
||||
lib/node/wafadmin/Environment.py
|
||||
lib/node/wafadmin/Logs.py
|
||||
lib/node/wafadmin/Node.py
|
||||
lib/node/wafadmin/Options.py
|
||||
lib/node/wafadmin/Runner.py
|
||||
lib/node/wafadmin/Scripting.py
|
||||
lib/node/wafadmin/Task.py
|
||||
lib/node/wafadmin/TaskGen.py
|
||||
lib/node/wafadmin/Utils.py
|
||||
lib/node/wafadmin/__init__.py
|
||||
lib/node/wafadmin/ansiterm.py
|
||||
lib/node/wafadmin/pproc.py
|
||||
lib/node/wafadmin/py3kfixes.py
|
||||
lib/node/wafadmin/Tools/__init__.py
|
||||
lib/node/wafadmin/Tools/ar.py
|
||||
lib/node/wafadmin/Tools/bison.py
|
||||
lib/node/wafadmin/Tools/cc.py
|
||||
lib/node/wafadmin/Tools/ccroot.py
|
||||
lib/node/wafadmin/Tools/compiler_cc.py
|
||||
lib/node/wafadmin/Tools/compiler_cxx.py
|
||||
lib/node/wafadmin/Tools/compiler_d.py
|
||||
lib/node/wafadmin/Tools/config_c.py
|
||||
lib/node/wafadmin/Tools/cs.py
|
||||
lib/node/wafadmin/Tools/cxx.py
|
||||
lib/node/wafadmin/Tools/d.py
|
||||
lib/node/wafadmin/Tools/dbus.py
|
||||
lib/node/wafadmin/Tools/dmd.py
|
||||
lib/node/wafadmin/Tools/flex.py
|
||||
lib/node/wafadmin/Tools/gas.py
|
||||
lib/node/wafadmin/Tools/gcc.py
|
||||
lib/node/wafadmin/Tools/gdc.py
|
||||
lib/node/wafadmin/Tools/glib2.py
|
||||
lib/node/wafadmin/Tools/gnome.py
|
||||
lib/node/wafadmin/Tools/gnu_dirs.py
|
||||
lib/node/wafadmin/Tools/gob2.py
|
||||
lib/node/wafadmin/Tools/gxx.py
|
||||
lib/node/wafadmin/Tools/icc.py
|
||||
lib/node/wafadmin/Tools/icpc.py
|
||||
lib/node/wafadmin/Tools/intltool.py
|
||||
lib/node/wafadmin/Tools/kde4.py
|
||||
lib/node/wafadmin/Tools/javaw.py
|
||||
lib/node/wafadmin/Tools/libtool.py
|
||||
lib/node/wafadmin/Tools/lua.py
|
||||
lib/node/wafadmin/Tools/misc.py
|
||||
lib/node/wafadmin/Tools/msvc.py
|
||||
lib/node/wafadmin/Tools/nasm.py
|
||||
lib/node/wafadmin/Tools/node_addon.py
|
||||
lib/node/wafadmin/Tools/ocaml.py
|
||||
lib/node/wafadmin/Tools/osx.py
|
||||
lib/node/wafadmin/Tools/perl.py
|
||||
lib/node/wafadmin/Tools/preproc.py
|
||||
lib/node/wafadmin/Tools/python.py
|
||||
lib/node/wafadmin/Tools/qt4.py
|
||||
lib/node/wafadmin/Tools/ruby.py
|
||||
lib/node/wafadmin/Tools/suncc.py
|
||||
lib/node/wafadmin/Tools/suncxx.py
|
||||
lib/node/wafadmin/Tools/tex.py
|
||||
lib/node/wafadmin/Tools/unittestw.py
|
||||
lib/node/wafadmin/Tools/vala.py
|
||||
lib/node/wafadmin/Tools/winres.py
|
||||
lib/node/wafadmin/Tools/xlc.py
|
||||
lib/node/wafadmin/Tools/xlcxx.py
|
||||
@dirrmtry lib/node/wafadmin/Tools
|
||||
@dirrmtry lib/node/wafadmin
|
||||
@dirrmtry lib/node/libraries
|
||||
@dirrmtry lib/node
|
||||
@dirrmtry include/node
|
Loading…
Reference in a new issue