summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2014-03-01 10:06:45 +0000
committerThierry Thomas <thierry@FreeBSD.org>2014-03-01 10:06:45 +0000
commit9b406bce0cfb7fb4df0f328e6accb31c37e47140 (patch)
tree5e45b4ac21a6e3a0aed61810d68925a35fa052c3
parentUpdate to readline 6.3 (diff)
Adding libuv, a multi-platform support library with a focus on
asynchronous I/O.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/libuv/Makefile36
-rw-r--r--devel/libuv/distinfo2
-rw-r--r--devel/libuv/files/patch-Makefile.am11
-rw-r--r--devel/libuv/files/patch-configure.ac13
-rw-r--r--devel/libuv/pkg-descr17
-rw-r--r--devel/libuv/pkg-plist10
7 files changed, 90 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 3f3df11f64a5..c9b87909a9d5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1134,6 +1134,7 @@
SUBDIR += libuninum
SUBDIR += libunistring
SUBDIR += libunwind
+ SUBDIR += libuv
SUBDIR += libvanessa_adt
SUBDIR += libvanessa_logger
SUBDIR += libvanessa_socket
diff --git a/devel/libuv/Makefile b/devel/libuv/Makefile
new file mode 100644
index 000000000000..b9c7f5dd4396
--- /dev/null
+++ b/devel/libuv/Makefile
@@ -0,0 +1,36 @@
+# Created by: Thierry Thomas <thierry@pompo.net>
+# $FreeBSD$
+
+PORTNAME= libuv
+PORTVERSION= 0.11.21
+CATEGORIES= devel
+MASTER_SITES= http://libuv.org/dist/v${PORTVERSION}/
+DISTNAME= ${PORTNAME}-v${PORTVERSION}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= A multi-platform support library with a focus on asynchronous I/O
+
+LICENSE= NODE
+LICENSE_NAME= NODE
+LICENSE_FILE =${WRKSRC}/LICENSE
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+TEST_DEPENDS= gyp:${PORTSDIR}/devel/py-gyp-devel \
+ gmake:${PORTSDIR}/devel/gmake
+
+USE_AUTOTOOLS= aclocal automake autoconf libtoolize
+ACLOCAL_ARGS= -I m4
+USES= pkgconfig
+USE_LDCONFIG= yes
+
+run-autotools:
+ cd ${CONFIGURE_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./autogen.sh
+
+.if defined(MAINTAINER_MODE)
+regression-test:
+ (cd ${WRKSRC} && ./gyp_uv.py -f make && \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} -C out && \
+ ./out/Debug/run-tests)
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/libuv/distinfo b/devel/libuv/distinfo
new file mode 100644
index 000000000000..ebe14c8f05e9
--- /dev/null
+++ b/devel/libuv/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libuv-v0.11.21.tar.gz) = 8e3c5e7aa39bedb6e94dcb42126b1623baac054817fc7992597c6e52f5e9ed64
+SIZE (libuv-v0.11.21.tar.gz) = 376612
diff --git a/devel/libuv/files/patch-Makefile.am b/devel/libuv/files/patch-Makefile.am
new file mode 100644
index 000000000000..df6439201b1e
--- /dev/null
+++ b/devel/libuv/files/patch-Makefile.am
@@ -0,0 +1,11 @@
+--- Makefile.am.orig 2014-01-29 18:43:38.000000000 +0100
++++ Makefile.am 2014-02-27 19:07:55.000000000 +0100
+@@ -273,7 +273,7 @@
+ endif
+
+ if HAVE_PKG_CONFIG
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(libdir)data/pkgconfig
+ pkgconfig_DATA = @PACKAGE_NAME@.pc
+ endif
+
diff --git a/devel/libuv/files/patch-configure.ac b/devel/libuv/files/patch-configure.ac
new file mode 100644
index 000000000000..be186893569d
--- /dev/null
+++ b/devel/libuv/files/patch-configure.ac
@@ -0,0 +1,13 @@
+--- configure.ac.orig 2014-02-27 03:04:23.000000000 +0100
++++ configure.ac 2014-02-28 22:03:02.000000000 +0100
+@@ -47,8 +47,8 @@
+ AM_CONDITIONAL([WINNT], [AS_CASE([$host_os], [mingw*], [true], [false])])
+ PANDORA_ENABLE_DTRACE
+ AC_CHECK_PROG(PKG_CONFIG, pkg-config, yes)
+-AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" = "xyes"])
+-AS_IF([test "x$PKG_CONFIG" = "xyes"], [
++AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != "x"])
++AS_IF([test "x$PKG_CONFIG" != "x"], [
+ AC_CONFIG_FILES([libuv.pc])
+ ])
+ AC_CONFIG_FILES([Makefile])
diff --git a/devel/libuv/pkg-descr b/devel/libuv/pkg-descr
new file mode 100644
index 000000000000..a9451fb415a1
--- /dev/null
+++ b/devel/libuv/pkg-descr
@@ -0,0 +1,17 @@
+libuv is a multi-platform support library with a focus on asynchronous I/O.
+
+Feature highlights:
+ + Full-featured event loop backed by epoll, kqueue, IOCP, event ports.
+ + Asynchronous TCP and UDP sockets
+ + Asynchronous DNS resolution
+ + Asynchronous file and file system operations
+ + File system events
+ + ANSI escape code controlled TTY
+ + IPC with socket sharing, using Unix domain sockets or named pipes (Windows)
+ + Child processes
+ + Thread pool
+ + Signal handling
+ + High resolution clock
+ + Threading and synchronization primitives
+
+WWW: https://github.com/joyent/libuv
diff --git a/devel/libuv/pkg-plist b/devel/libuv/pkg-plist
new file mode 100644
index 000000000000..2e2f13da3906
--- /dev/null
+++ b/devel/libuv/pkg-plist
@@ -0,0 +1,10 @@
+include/uv-bsd.h
+include/uv-errno.h
+include/uv-unix.h
+include/uv-version.h
+include/uv.h
+lib/libuv.a
+lib/libuv.la
+lib/libuv.so
+lib/libuv.so.11
+libdata/pkgconfig/libuv.pc