aboutsummaryrefslogtreecommitdiff
path: root/devel/erlang-gproc
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2015-06-02 15:37:04 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2015-06-02 15:37:04 +0000
commitfc93ac9de22f2c03ce1c729e44b2dc04803257ce (patch)
treede033ec5b46cad7b040e4cbc82a8e8e90df2cf87 /devel/erlang-gproc
parented0e1afb67f6aae6d4f7bdeb901b435fd4ae73bd (diff)
downloadports-fc93ac9de22f2c03ce1c729e44b2dc04803257ce.tar.gz
ports-fc93ac9de22f2c03ce1c729e44b2dc04803257ce.zip
Notes
Diffstat (limited to 'devel/erlang-gproc')
-rw-r--r--devel/erlang-gproc/Makefile44
-rw-r--r--devel/erlang-gproc/distinfo2
-rw-r--r--devel/erlang-gproc/files/patch-src_gproc.app.src11
-rw-r--r--devel/erlang-gproc/pkg-descr4
-rw-r--r--devel/erlang-gproc/pkg-plist59
5 files changed, 120 insertions, 0 deletions
diff --git a/devel/erlang-gproc/Makefile b/devel/erlang-gproc/Makefile
new file mode 100644
index 000000000000..8df1fc8607f8
--- /dev/null
+++ b/devel/erlang-gproc/Makefile
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+PORTNAME= gproc
+PORTVERSION= 0.4
+CATEGORIES= devel
+PKGNAMEPREFIX= erlang-
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Process dictionary for Erlang
+
+LICENSE= ERLPL
+LICENSE_NAME= Erlang Public License
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+PLIST_SUB= VERSION="${PORTVERSION}"
+
+USE_GITHUB= yes
+GH_ACCOUNT= uwiger
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e "s/%%PORTVERSION%%/${PORTVERSION}/" ${WRKSRC}/src/gproc.app.src
+ @${RM} ${WRKSRC}/src/*.bak ${WRKSRC}/src/*.orig
+
+do-build:
+ @cd ${WRKSRC} && ./rebar compile
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
+ @${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}/include
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+ ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+ ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
+ ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+
+.include <bsd.port.mk>
diff --git a/devel/erlang-gproc/distinfo b/devel/erlang-gproc/distinfo
new file mode 100644
index 000000000000..9ff620c24674
--- /dev/null
+++ b/devel/erlang-gproc/distinfo
@@ -0,0 +1,2 @@
+SHA256 (uwiger-gproc-0.4_GH0.tar.gz) = 520342d021f0ea3b74440c94719080a5a4bc6c2233572d9759d976aecdf2687c
+SIZE (uwiger-gproc-0.4_GH0.tar.gz) = 740388
diff --git a/devel/erlang-gproc/files/patch-src_gproc.app.src b/devel/erlang-gproc/files/patch-src_gproc.app.src
new file mode 100644
index 000000000000..ef6f40450c53
--- /dev/null
+++ b/devel/erlang-gproc/files/patch-src_gproc.app.src
@@ -0,0 +1,11 @@
+--- src/gproc.app.src.orig 2015-06-02 13:48:54 UTC
++++ src/gproc.app.src
+@@ -5,7 +5,7 @@
+ {application, gproc,
+ [
+ {description, "GPROC"},
+- {vsn, git},
++ {vsn, "%%PORTVERSION%%"},
+ {id, "GPROC"},
+ {registered, [ ] },
+ {applications, [ kernel, stdlib ] },
diff --git a/devel/erlang-gproc/pkg-descr b/devel/erlang-gproc/pkg-descr
new file mode 100644
index 000000000000..a7693060a7e8
--- /dev/null
+++ b/devel/erlang-gproc/pkg-descr
@@ -0,0 +1,4 @@
+Gproc is a process dictionary for Erlang, which provides a number of useful
+features beyond what the built-in dictionary has.
+
+WWW: https://github.com/uwiger/gproc
diff --git a/devel/erlang-gproc/pkg-plist b/devel/erlang-gproc/pkg-plist
new file mode 100644
index 000000000000..ffa47341def5
--- /dev/null
+++ b/devel/erlang-gproc/pkg-plist
@@ -0,0 +1,59 @@
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc.app
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_app.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_bcast.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_dist.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_info.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_init.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_lib.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_monitor.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_pool.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_ps.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_pt.beam
+lib/erlang/lib/gproc-%%VERSION%%/ebin/gproc_sup.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc.app
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_app.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_bcast.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_dist.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_info.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_init.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_lib.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_monitor.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_pool.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_ps.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_pt.beam
+lib/erlang/lib/gproc-%%VERSION%%/include/gproc_sup.beam
+lib/erlang/lib/gproc-%%VERSION%%/src/Makefile
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc.app.src
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_app.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_bcast.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_dist.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_info.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_init.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_int.hrl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_lib.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_monitor.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_pool.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_ps.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_pt.erl
+lib/erlang/lib/gproc-%%VERSION%%/src/gproc_sup.erl
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%PORTDOCS%%%%DOCSDIR%%/edoc-info
+%%PORTDOCS%%%%DOCSDIR%%/erlang.png
+%%PORTDOCS%%%%DOCSDIR%%/erlang07-wiger.pdf
+%%PORTDOCS%%%%DOCSDIR%%/gproc.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_app.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_bcast.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_dist.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_info.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_init.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_lib.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_monitor.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_pool.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_ps.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_pt.md
+%%PORTDOCS%%%%DOCSDIR%%/gproc_sup.md
+%%PORTDOCS%%%%DOCSDIR%%/overview.edoc
+%%PORTDOCS%%%%DOCSDIR%%/stylesheet.css