From ad5b336135bf32c2d0c1f5a3efb5dd62342b1825 Mon Sep 17 00:00:00 2001 From: John Marino Date: Fri, 28 Nov 2014 12:02:35 +0000 Subject: [PATCH] Add new port devel/libr3 PR: 194212 Submitted by: Gasol Wu R3 is an URL router library with high performance implemented in C. It compiles route paths into a prefix trie. By using the constructed prefix trie in the start-up time, you can dispatch routes with efficiency. --- devel/Makefile | 1 + devel/libr3/Makefile | 36 ++++++++++++++++++++++++++++++++++++ devel/libr3/distinfo | 2 ++ devel/libr3/pkg-descr | 5 +++++ devel/libr3/pkg-plist | 8 ++++++++ 5 files changed, 52 insertions(+) create mode 100644 devel/libr3/Makefile create mode 100644 devel/libr3/distinfo create mode 100644 devel/libr3/pkg-descr create mode 100644 devel/libr3/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 09e975004248..8b5dbed5f21f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1118,6 +1118,7 @@ SUBDIR += libpthread-stubs SUBDIR += libqcow SUBDIR += libqxt + SUBDIR += libr3 SUBDIR += librcc SUBDIR += librcd SUBDIR += libreadline-java diff --git a/devel/libr3/Makefile b/devel/libr3/Makefile new file mode 100644 index 000000000000..821149ad8ea9 --- /dev/null +++ b/devel/libr3/Makefile @@ -0,0 +1,36 @@ +# Created by: Gasol Wu +# $FreeBSD$ + +PORTNAME= libr3 +PORTVERSION= 1.0.0 +CATEGORIES= devel + +MAINTAINER= gasol.wu@gmail.com +COMMENT= URL router library with high performance + +LICENSE= MIT + +LIB_DEPENDS= libcheck.so:${PORTSDIR}/devel/libcheck \ + libgvc.so:${PORTSDIR}/graphics/graphviz \ + libpcre.so:${PORTSDIR}/devel/pcre + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-graphviz +USES= libtool pkgconfig +INSTALL_TARGET= install-strip +USE_AUTOTOOLS= aclocal:env autoconf:env autoheader:env automake:env libtoolize:env + +USE_GITHUB= yes +GH_ACCOUNT= c9s +GH_TAGNAME= ${PORTVERSION} +GH_COMMIT= ad8faeb +GH_PROJECT= r3 + +post-patch: + @${REINPLACE_CMD} 's,^pkgconfigdir = .*,pkgconfigdir=$${prefix}/libdata/pkgconfig,' \ + ${WRKSRC}/Makefile.am + +pre-configure: + (cd ${WRKSRC} && ./autogen.sh) + +.include diff --git a/devel/libr3/distinfo b/devel/libr3/distinfo new file mode 100644 index 000000000000..c546a8bb8e79 --- /dev/null +++ b/devel/libr3/distinfo @@ -0,0 +1,2 @@ +SHA256 (libr3-1.0.0.tar.gz) = 8fa891adbbfe0a471c8d5de217983afb656412959f537120ed7a3e965cc80ca2 +SIZE (libr3-1.0.0.tar.gz) = 65255 diff --git a/devel/libr3/pkg-descr b/devel/libr3/pkg-descr new file mode 100644 index 000000000000..ef1227f27b91 --- /dev/null +++ b/devel/libr3/pkg-descr @@ -0,0 +1,5 @@ +R3 is an URL router library with high performance implemented in C. It +compiles route paths into a prefix trie. By using the constructed prefix +trie in the start-up time, you can dispatch routes with efficiency. + +WWW: https://github.com/c9s/r3 diff --git a/devel/libr3/pkg-plist b/devel/libr3/pkg-plist new file mode 100644 index 000000000000..a90a6dba7c16 --- /dev/null +++ b/devel/libr3/pkg-plist @@ -0,0 +1,8 @@ +include/r3/r3.h +include/r3/r3_str.h +include/r3/str_array.h +lib/libr3.a +lib/libr3.so +lib/libr3.so.0 +lib/libr3.so.0.0.0 +libdata/pkgconfig/r3.pc