aboutsummaryrefslogtreecommitdiff
path: root/www/erlang-mochiweb
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2015-07-06 22:34:11 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2015-07-06 22:34:11 +0000
commit37893c2bae470a4676caf15fe598c2299f989b56 (patch)
tree3e29cba43e97a56867bc38f2a6f4fec18fcc241a /www/erlang-mochiweb
parenta0b3668460499425f5779bcd059f7ac0ef42e65c (diff)
downloadports-37893c2bae470a4676caf15fe598c2299f989b56.tar.gz
ports-37893c2bae470a4676caf15fe598c2299f989b56.zip
Notes
Diffstat (limited to 'www/erlang-mochiweb')
-rw-r--r--www/erlang-mochiweb/Makefile22
-rw-r--r--www/erlang-mochiweb/pkg-plist1
2 files changed, 3 insertions, 20 deletions
diff --git a/www/erlang-mochiweb/Makefile b/www/erlang-mochiweb/Makefile
index 6b9117b22f3d..a50161925c05 100644
--- a/www/erlang-mochiweb/Makefile
+++ b/www/erlang-mochiweb/Makefile
@@ -3,6 +3,7 @@
PORTNAME= mochiweb
PORTVERSION= 2.12.2
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= www devel
PKGNAMEPREFIX= erlang-
@@ -11,32 +12,15 @@ COMMENT= Erlang library for building lightweight HTTP servers
LICENSE= MIT
-BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:= ${BUILD_DEPENDS}
-
CONFLICTS= mochiweb-basho-[0-9]*
-USES= cpe
+USES= cpe erlang:rebar
CPE_VENDOR= mochiweb_project
-
-PLIST_SUB= VERSION="${PORTVERSION}"
-
USE_GITHUB= yes
GH_ACCOUNT= mochi
-do-install:
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- for FILE in CHANGES.md README; do \
- ${INSTALL_DATA} ${WRKSRC}/$${FILE} ${STAGEDIR}${DOCSDIR}; \
- done
+post-install:
@${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}/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}/include/* ${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/www/erlang-mochiweb/pkg-plist b/www/erlang-mochiweb/pkg-plist
index 19dc5154a621..4190def6f501 100644
--- a/www/erlang-mochiweb/pkg-plist
+++ b/www/erlang-mochiweb/pkg-plist
@@ -67,7 +67,6 @@ lib/erlang/lib/mochiweb-%%VERSION%%/src/mochiweb_socket_server.erl
lib/erlang/lib/mochiweb-%%VERSION%%/src/mochiweb_util.erl
lib/erlang/lib/mochiweb-%%VERSION%%/src/mochiweb_websocket.erl
lib/erlang/lib/mochiweb-%%VERSION%%/src/reloader.erl
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES.md
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hmac_api/README
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hmac_api/hmac_api.hrl