diff options
author | pi <pi@FreeBSD.org> | 2016-11-20 06:03:39 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2016-11-20 06:03:39 +0800 |
commit | 9aaf55732de76717ac53f56655de7a6a11733357 (patch) | |
tree | a9dd5e80246dd733d57effbb82cffa7d1343a084 /www | |
parent | 83969eb4b2ec609f35af508051544990519cf36d (diff) | |
download | freebsd-ports-gnome-9aaf55732de76717ac53f56655de7a6a11733357.tar.gz freebsd-ports-gnome-9aaf55732de76717ac53f56655de7a6a11733357.tar.zst freebsd-ports-gnome-9aaf55732de76717ac53f56655de7a6a11733357.zip |
www/node7: Add Node.js 7.1.0, copied from www/node
PR: 213945
Submitted by: Bradley T. Hughes <bradleythughes@fastmail.fm> (maintainer)
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/node/Makefile | 2 | ||||
-rw-r--r-- | www/node012/Makefile | 2 | ||||
-rw-r--r-- | www/node4/Makefile | 2 | ||||
-rw-r--r-- | www/node6/Makefile | 2 | ||||
-rw-r--r-- | www/node7/Makefile | 99 | ||||
-rw-r--r-- | www/node7/distinfo | 3 | ||||
-rw-r--r-- | www/node7/pkg-descr | 6 | ||||
-rw-r--r-- | www/node7/pkg-message | 1 | ||||
-rw-r--r-- | www/node7/pkg-plist | 115 |
10 files changed, 229 insertions, 4 deletions
diff --git a/www/Makefile b/www/Makefile index 2e65978eb325..5d490181a162 100644 --- a/www/Makefile +++ b/www/Makefile @@ -543,6 +543,7 @@ SUBDIR += node012 SUBDIR += node4 SUBDIR += node6 + SUBDIR += node7 SUBDIR += nostromo SUBDIR += npapi-vlc SUBDIR += npapi-xine diff --git a/www/node/Makefile b/www/node/Makefile index 3ca84268651c..41f754cf9b1a 100644 --- a/www/node/Makefile +++ b/www/node/Makefile @@ -27,7 +27,7 @@ USES= compiler:c++11-lib execinfo gmake python:2,build pkgconfig localbase HAS_CONFIGURE= yes USE_LDCONFIG= yes -CONFLICTS_INSTALL= node[456]-[0-9]* node01[02]-[0-9]* node-devel-[0-9]* iojs-[0-9]* +CONFLICTS_INSTALL= node[4567]-[0-9]* node01[02]-[0-9]* node-devel-[0-9]* iojs-[0-9]* ONLY_FOR_ARCHS= i386 amd64 armv6 CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ diff --git a/www/node012/Makefile b/www/node012/Makefile index 872f7c80ed1b..979c0464afa6 100644 --- a/www/node012/Makefile +++ b/www/node012/Makefile @@ -21,7 +21,7 @@ USE_LDCONFIG= yes DEPRECATED= Upstream has placed 0.12.x in maintenance mode, see https://github.com/nodejs/LTS#lts_schedule EXPIRATION_DATE= 2016-12-31 -CONFLICTS_INSTALL= node[456]-[0-9]* node010-[0-9]* node-[0-9]* node-devel-[0-9]* iojs-[0-9]* +CONFLICTS_INSTALL= node[4567]-[0-9]* node010-[0-9]* node-[0-9]* node-devel-[0-9]* iojs-[0-9]* ONLY_FOR_ARCHS= i386 amd64 CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} --without-npm --shared-zlib diff --git a/www/node4/Makefile b/www/node4/Makefile index 8657deae67e8..75071468686c 100644 --- a/www/node4/Makefile +++ b/www/node4/Makefile @@ -29,7 +29,7 @@ USES= compiler:c++11-lib execinfo gmake python:2 pkgconfig localbase HAS_CONFIGURE= yes USE_LDCONFIG= yes -CONFLICTS_INSTALL= node[56]-[0-9]* node01[02]-[0-9]* node-[0-9]* node-devel-[0-9]* iojs-[0-9]* +CONFLICTS_INSTALL= node[567]-[0-9]* node01[02]-[0-9]* node-[0-9]* node-devel-[0-9]* iojs-[0-9]* ONLY_FOR_ARCHS= i386 amd64 CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ diff --git a/www/node6/Makefile b/www/node6/Makefile index 45e019a7edc7..228986eae779 100644 --- a/www/node6/Makefile +++ b/www/node6/Makefile @@ -28,7 +28,7 @@ USES= compiler:c++11-lib execinfo gmake python:2,build pkgconfig localbase HAS_CONFIGURE= yes USE_LDCONFIG= yes -CONFLICTS_INSTALL= node[45]-[0-9]* node01[02]-[0-9]* node-[0-9]* node-devel-[0-9]* iojs-[0-9]* +CONFLICTS_INSTALL= node[457]-[0-9]* node01[02]-[0-9]* node-[0-9]* node-devel-[0-9]* iojs-[0-9]* ONLY_FOR_ARCHS= i386 amd64 armv6 CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ diff --git a/www/node7/Makefile b/www/node7/Makefile new file mode 100644 index 000000000000..fad427c85099 --- /dev/null +++ b/www/node7/Makefile @@ -0,0 +1,99 @@ +# $FreeBSD$ + +PORTNAME= node +PORTVERSION= 7.1.0 +DISTVERSIONPREFIX= v +CATEGORIES= www +MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/ +PKGNAMESUFFIX= 7 + +MAINTAINER= bradleythughes@fastmail.fm +COMMENT= V8 JavaScript for client and server (7.x) + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +OPTIONS_DEFINE= BUNDLED_SSL DOCS NLS +OPTIONS_SUB= yes + +BUNDLED_SSL_DESC= Use node.js's bundled OpenSSL implementation +BUNDLED_SSL_USES_OFF= ssl +BUNDLED_SSL_CONFIGURE_OFF= --shared-openssl + +NLS_CONFIGURE_ON= --with-intl=system-icu +NLS_LIB_DEPENDS= libicui18n.so:devel/icu + +USES= compiler:c++11-lib execinfo gmake python:2,build pkgconfig localbase +HAS_CONFIGURE= yes +USE_LDCONFIG= yes + +CONFLICTS_INSTALL= node[456]-[0-9]* node01[02]-[0-9]* node-[0-9]* node-devel-[0-9]* iojs-[0-9]* + +ONLY_FOR_ARCHS= i386 amd64 armv6 +CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ + --without-npm \ + --shared-cares \ + --shared-libuv \ + --shared-zlib + +PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,} +REINPLACE_ARGS= -i '' +MAKE_ENV+= CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX} + +LIB_DEPENDS+= libcares.so:dns/c-ares\ + libuv.so:devel/libuv + +.include <bsd.port.options.mk> + +.if empty(PORT_OPTIONS:MBUNDLED_SSL) + +.if ${OSVERSION} < 1100085 +# node.js requires openssl 1.0.2, use the port since base isn't new enough +WITH_OPENSSL_PORT= yes +.endif + +.endif + +.include <bsd.port.pre.mk> + +.if empty(PORT_OPTIONS:MBUNDLED_SSL) +.if !empty(SSL_DEFAULT:Mlibressl*) +IGNORE= cannot build node.js with LibreSSL. You must enable BUNDLED_SSL +.endif +.endif + +.if ${ARCH} == "armv6" +CONFIGURE_ARGS= --openssl-no-asm +.endif + +.if ${COMPILER_TYPE} == gcc +# GCC does not expose std::snprintf() without this define +CXXFLAGS+= -D_GLIBCXX_USE_C99 +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ + ${WRKSRC}/deps/v8/src/v8.gyp + # So many different ways to run python. Fix them all. + @${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ + ${WRKSRC}/configure + @${FIND} ${WRKSRC} -type f -name '*.gyp*' -print0 \ + | ${XARGS} -0 ${REINPLACE_CMD} \ + -e "s|'python'|'${PYTHON_CMD}'|" \ + -e 's|<!(python |<!(${PYTHON_CMD} |' \ + -e 's|\&\& python |\&\& ${PYTHON_CMD} |' + +post-configure: + # Post-process Makefile and *.mk files created by node-gyp and remove + # all occurrences of -I${LOCALBASE}/include. C*FLAGS include this + # before all -I../deps/* for bundled code. This can cause build + # breakages if the dependency is installed in ${LOCALBASE}. The + # USES+=localbase # above will ensure that we pick up includes for real + # external dependencies. + ${FIND} ${WRKSRC}/out -type f -print0 \ + | ${XARGS} -0 ${REINPLACE_CMD} -e "s|-I${LOCALBASE}/include||g" + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/node + +.include <bsd.port.post.mk> diff --git a/www/node7/distinfo b/www/node7/distinfo new file mode 100644 index 000000000000..0bb79527913f --- /dev/null +++ b/www/node7/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1478717348 +SHA256 (node-v7.1.0.tar.gz) = 595e7e2a37d1e0573044a90077bb12c0f750e5d8851899ffa74038238da9a983 +SIZE (node-v7.1.0.tar.gz) = 27719659 diff --git a/www/node7/pkg-descr b/www/node7/pkg-descr new file mode 100644 index 000000000000..03e73fa9be85 --- /dev/null +++ b/www/node7/pkg-descr @@ -0,0 +1,6 @@ +Node.js is a JavaScript runtime built on Chrome's V8 JavaScript +engine. Node.js uses an event-driven, non-blocking I/O model that +makes it lightweight and efficient. Node.js' package ecosystem, +npm, is the largest ecosystem of open source libraries in the world. + +WWW: http://nodejs.org/ diff --git a/www/node7/pkg-message b/www/node7/pkg-message new file mode 100644 index 000000000000..87d7ce8d688e --- /dev/null +++ b/www/node7/pkg-message @@ -0,0 +1 @@ +Note: If you need npm (Node Package Manager), please install www/npm. diff --git a/www/node7/pkg-plist b/www/node7/pkg-plist new file mode 100644 index 000000000000..000f990cad52 --- /dev/null +++ b/www/node7/pkg-plist @@ -0,0 +1,115 @@ +bin/node +include/node/common.gypi +include/node/config.gypi +include/node/libplatform/libplatform.h +include/node/libplatform/v8-tracing.h +include/node/node.h +include/node/node_buffer.h +include/node/node_object_wrap.h +include/node/node_version.h +%%BUNDLED_SSL%%include/node/openssl/aes.h +%%BUNDLED_SSL%%include/node/openssl/archs/BSD-x86/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/BSD-x86_64/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/VC-WIN32/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/VC-WIN64A/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/aix-gcc/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/aix64-gcc/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/darwin-i386-cc/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/linux-aarch64/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/linux-armv4/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/linux-elf/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/linux-ppc/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/linux-ppc64/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/linux-x32/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/linux-x86_64/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/linux32-s390x/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/linux64-s390x/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/solaris-x86-gcc/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/asn1.h +%%BUNDLED_SSL%%include/node/openssl/asn1_mac.h +%%BUNDLED_SSL%%include/node/openssl/asn1t.h +%%BUNDLED_SSL%%include/node/openssl/bio.h +%%BUNDLED_SSL%%include/node/openssl/blowfish.h +%%BUNDLED_SSL%%include/node/openssl/bn.h +%%BUNDLED_SSL%%include/node/openssl/buffer.h +%%BUNDLED_SSL%%include/node/openssl/camellia.h +%%BUNDLED_SSL%%include/node/openssl/cast.h +%%BUNDLED_SSL%%include/node/openssl/cmac.h +%%BUNDLED_SSL%%include/node/openssl/cms.h +%%BUNDLED_SSL%%include/node/openssl/comp.h +%%BUNDLED_SSL%%include/node/openssl/conf.h +%%BUNDLED_SSL%%include/node/openssl/conf_api.h +%%BUNDLED_SSL%%include/node/openssl/crypto.h +%%BUNDLED_SSL%%include/node/openssl/des.h +%%BUNDLED_SSL%%include/node/openssl/des_old.h +%%BUNDLED_SSL%%include/node/openssl/dh.h +%%BUNDLED_SSL%%include/node/openssl/dsa.h +%%BUNDLED_SSL%%include/node/openssl/dso.h +%%BUNDLED_SSL%%include/node/openssl/dtls1.h +%%BUNDLED_SSL%%include/node/openssl/e_os2.h +%%BUNDLED_SSL%%include/node/openssl/ebcdic.h +%%BUNDLED_SSL%%include/node/openssl/ec.h +%%BUNDLED_SSL%%include/node/openssl/ecdh.h +%%BUNDLED_SSL%%include/node/openssl/ecdsa.h +%%BUNDLED_SSL%%include/node/openssl/engine.h +%%BUNDLED_SSL%%include/node/openssl/err.h +%%BUNDLED_SSL%%include/node/openssl/evp.h +%%BUNDLED_SSL%%include/node/openssl/hmac.h +%%BUNDLED_SSL%%include/node/openssl/idea.h +%%BUNDLED_SSL%%include/node/openssl/krb5_asn.h +%%BUNDLED_SSL%%include/node/openssl/kssl.h +%%BUNDLED_SSL%%include/node/openssl/lhash.h +%%BUNDLED_SSL%%include/node/openssl/md4.h +%%BUNDLED_SSL%%include/node/openssl/md5.h +%%BUNDLED_SSL%%include/node/openssl/mdc2.h +%%BUNDLED_SSL%%include/node/openssl/modes.h +%%BUNDLED_SSL%%include/node/openssl/obj_mac.h +%%BUNDLED_SSL%%include/node/openssl/objects.h +%%BUNDLED_SSL%%include/node/openssl/ocsp.h +%%BUNDLED_SSL%%include/node/openssl/opensslconf.h +%%BUNDLED_SSL%%include/node/openssl/opensslv.h +%%BUNDLED_SSL%%include/node/openssl/ossl_typ.h +%%BUNDLED_SSL%%include/node/openssl/pem.h +%%BUNDLED_SSL%%include/node/openssl/pem2.h +%%BUNDLED_SSL%%include/node/openssl/pkcs12.h +%%BUNDLED_SSL%%include/node/openssl/pkcs7.h +%%BUNDLED_SSL%%include/node/openssl/pqueue.h +%%BUNDLED_SSL%%include/node/openssl/rand.h +%%BUNDLED_SSL%%include/node/openssl/rc2.h +%%BUNDLED_SSL%%include/node/openssl/rc4.h +%%BUNDLED_SSL%%include/node/openssl/ripemd.h +%%BUNDLED_SSL%%include/node/openssl/rsa.h +%%BUNDLED_SSL%%include/node/openssl/safestack.h +%%BUNDLED_SSL%%include/node/openssl/seed.h +%%BUNDLED_SSL%%include/node/openssl/sha.h +%%BUNDLED_SSL%%include/node/openssl/srp.h +%%BUNDLED_SSL%%include/node/openssl/srtp.h +%%BUNDLED_SSL%%include/node/openssl/ssl.h +%%BUNDLED_SSL%%include/node/openssl/ssl2.h +%%BUNDLED_SSL%%include/node/openssl/ssl23.h +%%BUNDLED_SSL%%include/node/openssl/ssl3.h +%%BUNDLED_SSL%%include/node/openssl/stack.h +%%BUNDLED_SSL%%include/node/openssl/symhacks.h +%%BUNDLED_SSL%%include/node/openssl/tls1.h +%%BUNDLED_SSL%%include/node/openssl/ts.h +%%BUNDLED_SSL%%include/node/openssl/txt_db.h +%%BUNDLED_SSL%%include/node/openssl/ui.h +%%BUNDLED_SSL%%include/node/openssl/ui_compat.h +%%BUNDLED_SSL%%include/node/openssl/whrlpool.h +%%BUNDLED_SSL%%include/node/openssl/x509.h +%%BUNDLED_SSL%%include/node/openssl/x509_vfy.h +%%BUNDLED_SSL%%include/node/openssl/x509v3.h +include/node/v8-debug.h +include/node/v8-experimental.h +include/node/v8-platform.h +include/node/v8-profiler.h +include/node/v8-testing.h +include/node/v8-util.h +include/node/v8-version.h +include/node/v8.h +include/node/v8config.h +@(,,444) man/man1/node.1.gz +%%PORTDOCS%%%%DOCSDIR%%/gdbinit +share/systemtap/tapset/node.stp |