diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2015-06-30 20:43:19 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2015-06-30 20:43:19 +0000 |
commit | b8e979e546d0709de6db658bb5c07b4e7c4a2a9d (patch) | |
tree | 977c888cb15d93b62f0b9489da5dd6980b127638 /devel/erlang-parse_trans/Makefile | |
parent | d2b4b985609b3f6f054f036c0ef7476911258bdc (diff) | |
download | ports-b8e979e546d0709de6db658bb5c07b4e7c4a2a9d.tar.gz ports-b8e979e546d0709de6db658bb5c07b4e7c4a2a9d.zip |
Notes
Diffstat (limited to 'devel/erlang-parse_trans/Makefile')
-rw-r--r-- | devel/erlang-parse_trans/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/erlang-parse_trans/Makefile b/devel/erlang-parse_trans/Makefile new file mode 100644 index 000000000000..d8bc00e78bfa --- /dev/null +++ b/devel/erlang-parse_trans/Makefile @@ -0,0 +1,39 @@ +# $FreeBSD$ + +PORTNAME= parse_trans +PORTVERSION= 2.9.2 +CATEGORIES= devel +PKGNAMEPREFIX= erlang- + +MAINTAINER= olgeni@FreeBSD.org +COMMENT= Parse transform utilities for Erlang + +BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang +RUN_DEPENDS:= ${BUILD_DEPENDS} + +PLIST_SUB= VERSION="${PORTVERSION}" + +USE_GITHUB= yes +GH_ACCOUNT= uwiger + +post-patch: + @${REINPLACE_CMD} -e 's/{vsn, git}/{vsn,"${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src + +do-build: + @cd ${WRKSRC} && ./rebar compile + +do-install: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${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}/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}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src + ${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include + +.include <bsd.port.mk> |