summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2013-03-02 07:43:40 +0000
committeragc <agc@pkgsrc.org>2013-03-02 07:43:40 +0000
commit7155dc803b494721d20080c35c6191f9cc8ddc81 (patch)
tree6c1a637aacab8b1f8be04d9787dfd9b8dc90e70f
parenta5511e4d3869d0c67689232c10e1c88ac2a25b16 (diff)
downloadpkgsrc-7155dc803b494721d20080c35c6191f9cc8ddc81.tar.gz
import libuv, the platform layer for node.js, and an asynchronous event
library, into the Packages Collection. libuv is used as the platform layer for node.js libuv enforces an asynchronous, event-driven style of programming. Its core job is to provide an event loop and callback based notifications of I/O and other activities. libuv offers core utilities like timers, non-blocking networking support, asynchronous file system access, child processes and more.
-rw-r--r--devel/libuv/DESCR7
-rw-r--r--devel/libuv/Makefile25
-rw-r--r--devel/libuv/PLIST3
-rw-r--r--devel/libuv/distinfo6
-rw-r--r--devel/libuv/patches/patch-aa15
5 files changed, 56 insertions, 0 deletions
diff --git a/devel/libuv/DESCR b/devel/libuv/DESCR
new file mode 100644
index 00000000000..4eabaf0a8b4
--- /dev/null
+++ b/devel/libuv/DESCR
@@ -0,0 +1,7 @@
+libuv is used as the platform layer for node.js
+
+libuv enforces an asynchronous, event-driven style of programming.
+Its core job is to provide an event loop and callback based
+notifications of I/O and other activities. libuv offers core
+utilities like timers, non-blocking networking support, asynchronous
+file system access, child processes and more.
diff --git a/devel/libuv/Makefile b/devel/libuv/Makefile
new file mode 100644
index 00000000000..c2683e4edf7
--- /dev/null
+++ b/devel/libuv/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2013/03/02 07:43:40 agc Exp $
+#
+
+DISTNAME= master
+PKGNAME= libuv-20130301
+CATEGORIES= devel
+MASTER_SITES= https://github.com/joyent/libuv/archive/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= agc@pkgsrc.org
+HOMEPAGE= http://nikhilm.github.com/uvbook/
+COMMENT= Asynchronous event library, platform layer of node.js
+LICENSE= joyent
+
+DIST_SUBDIR= ${PKGNAME_NOREV}
+WRKSRC= ${WRKDIR}/libuv-master
+
+USE_TOOLS+= gmake
+AUTO_MKDIRS= yes
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/include/uv.h ${DESTDIR}${PREFIX}/include/uv.h
+ ${INSTALL_LIB} ${WRKSRC}/libuv.a ${DESTDIR}${PREFIX}/lib/libuv.a
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libuv/PLIST b/devel/libuv/PLIST
new file mode 100644
index 00000000000..284ef15cf2f
--- /dev/null
+++ b/devel/libuv/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2013/03/02 07:43:40 agc Exp $
+include/uv.h
+lib/libuv.a
diff --git a/devel/libuv/distinfo b/devel/libuv/distinfo
new file mode 100644
index 00000000000..ce408c14be2
--- /dev/null
+++ b/devel/libuv/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2013/03/02 07:43:40 agc Exp $
+
+SHA1 (master.zip) = 1caf616d42d9a2a9ab5dd4d0712de2817baf04bc
+RMD160 (master.zip) = 244d503838bb3759cb3941d88cd80704faaa24a2
+Size (master.zip) = 506825 bytes
+SHA1 (patch-aa) = a14917e8fa7a5c74ab53727d6ec6b3c1dc77bf44
diff --git a/devel/libuv/patches/patch-aa b/devel/libuv/patches/patch-aa
new file mode 100644
index 00000000000..c9e5f2b26d8
--- /dev/null
+++ b/devel/libuv/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2013/03/02 07:43:40 agc Exp $
+
+modern netbsd needs uvm_extern.h header file
+
+--- src/unix/netbsd.c 2013/03/01 18:45:51 1.1
++++ src/unix/netbsd.c 2013/03/01 18:47:24
+@@ -38,6 +38,8 @@
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+
++#include <uvm/uvm_extern.h>
++
+ #include <unistd.h>
+ #include <time.h>
+