aboutsummaryrefslogtreecommitdiffstats
path: root/net/erlang-ranch/Makefile
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2015-06-27 20:54:11 +0800
committerolgeni <olgeni@FreeBSD.org>2015-06-27 20:54:11 +0800
commit099bcd87401dc59b42fe814c1e7701fe95242f03 (patch)
tree7d61b3e1ed0576b122e72f1a7f9244ea99379aba /net/erlang-ranch/Makefile
parent2b760f8d8b19c5aa1a076e10629d275bfeab0425 (diff)
downloadfreebsd-ports-gnome-099bcd87401dc59b42fe814c1e7701fe95242f03.tar.gz
freebsd-ports-gnome-099bcd87401dc59b42fe814c1e7701fe95242f03.tar.zst
freebsd-ports-gnome-099bcd87401dc59b42fe814c1e7701fe95242f03.zip
Sorting out some Erlang stuff:
- Rename a few Erlang-related ports using the erlang- prefix; it will avoid confusion with elixir- ports. - Remove DOCS and EXAMPLES where not actually useful. - Simplify RUN_DEPENDS where possible. - Move textproc/exmpp to devel/erlang-exmpp. - Add missing R18 compatibility fix for devel/erlang-oserl. - Upgrade erlang-cuttlefish to 2.0.3. The idea is that libraries ("deps") have the "erlang-" prefix, while larger projects (rabbitmq, yaws, couchdb, etc) keep their usual names.
Diffstat (limited to 'net/erlang-ranch/Makefile')
-rw-r--r--net/erlang-ranch/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/net/erlang-ranch/Makefile b/net/erlang-ranch/Makefile
new file mode 100644
index 000000000000..bc0d0c2b5e60
--- /dev/null
+++ b/net/erlang-ranch/Makefile
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME= ranch
+PORTVERSION= 1.0.0
+PORTREVISION= 1
+CATEGORIES= net
+PKGNAMEPREFIX= erlang-
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Erlang socket acceptor pool for TCP protocols
+
+LICENSE= ISCL
+
+BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+PLIST_SUB= VERSION="${PORTVERSION}"
+
+USES= gmake
+USE_GITHUB= yes
+GH_ACCOUNT= ninenines
+
+PORTDOCS= *
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/guide/* ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+ ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+ ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+
+.include <bsd.port.mk>