aboutsummaryrefslogtreecommitdiff
path: root/textproc/erlang-edown/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/erlang-edown/Makefile')
-rw-r--r--textproc/erlang-edown/Makefile25
1 files changed, 2 insertions, 23 deletions
diff --git a/textproc/erlang-edown/Makefile b/textproc/erlang-edown/Makefile
index 1fa354b7d810..35db02323d55 100644
--- a/textproc/erlang-edown/Makefile
+++ b/textproc/erlang-edown/Makefile
@@ -8,31 +8,10 @@ PKGNAMEPREFIX= erlang-
MAINTAINER= olgeni@FreeBSD.org
COMMENT= EDoc extension for generating Github-flavored Markdown
-BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang
-RUN_DEPENDS:= ${BUILD_DEPENDS}
-
-PLIST_SUB= VERSION="${PORTVERSION}"
-
+USES= erlang:rebar
USE_GITHUB= yes
GH_ACCOUNT= uwiger
-post-patch:
- @${RM} ${WRKSRC}/src/*.orig
- @${REINPLACE_CMD} -i '' -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}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
- ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
- ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
- cd ${WRKSRC}/priv && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
+ERL_DOCS= doc/*
.include <bsd.port.mk>