New package: nodejs-0.6.6.

This commit is contained in:
davehome 2011-12-23 01:22:16 -07:00
parent bc2d0d748c
commit 5a18f88cbe
6 changed files with 90 additions and 0 deletions

1
srcpkgs/nodejs-devel Symbolic link
View File

@ -0,0 +1 @@
nodejs

1
srcpkgs/nodejs-docs Symbolic link
View File

@ -0,0 +1 @@
nodejs

View File

@ -0,0 +1,13 @@
# Template file for 'nodejs-devel'.
#
short_desc="${short_desc} (Development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run nodejs
do_install()
{
vmove usr/include usr
}

View File

@ -0,0 +1,11 @@
# Template file for 'nodejs-docs'.
#
short_desc="${short_desc} (Documentation)"
long_desc="${long_desc}
This package contains the nodejs manpage(s)."
do_install()
{
vmove usr/share usr
}

View File

@ -0,0 +1,10 @@
librt.so.1
libssl.so.1
libcrypto.so.1
libdl.so.2
libz.so.1
libv8.so
libstdc++.so.6
libgcc_s.so.1
libpthread.so.0
libc.so.6

54
srcpkgs/nodejs/template Normal file
View File

@ -0,0 +1,54 @@
# Template file for 'nodejs'
pkgname=nodejs
version=0.6.6
homepage="http://nodejs.org/"
distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
short_desc="Evented I/O for V8 javascript"
maintainer="davehome <davehome@redthumb.info.tm>"
license="MIT"
checksum=7abea518b1b63fd669c9ca436bf33d0bb0b09b252f06d700ccbd290fe5222102
long_desc="
Node.js is a software system designed for writing highly-scalable internet
applications, notably web servers. Programs are written in JavaScript, using
event-driven, asynchronous I/O to minimize overhead and maximize scalability.
Node.js consists of Google's V8 JavaScript engine plus several built-in
libraries.
Node.js was created by Ryan Dahl starting in 2009, and its growth is
sponsored by Joyent, his employer.
Similar environments written in other programming languages include Twisted
for Python, Perl Object Environment for Perl, libevent for C and EventMachine
for Ruby. Unlike most JavaScript, it is not executed in a web browser, but is
instead a form of server-side JavaScript.
Node.js implements some CommonJS specifications. It provides a REPL
environment for interactive testing."
subpackages="${pkgname}-devel ${pkgname}-docs"
wrksrc=node-v${version}
Add_dependency build coreutils
Add_dependency build pkg-config
Add_dependency build openssl-devel
Add_dependency build v8-devel
Add_dependency build zlib-devel
Add_dependency full python
do_configure()
{
./configure --prefix=/usr --shared-v8 --shared-zlib
}
do_build()
{
make ${makejobs}
}
do_install()
{
make ${makejobs} DESTDIR=$DESTDIR install
}