mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Switch devel/erlang-neotoma to erlang.mk.
This commit is contained in:
parent
6ab6493f6b
commit
f0374cad5e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=391482
@ -11,32 +11,18 @@ COMMENT= Erlang library and packrat parser-generator
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
|
||||
SUB_FILES+= neotoma
|
||||
SUB_FILES+= ${PORTNAME}
|
||||
SUB_LIST+= PORTNAME=${PORTNAME} \
|
||||
PORTVERSION=${PORTVERSION}
|
||||
|
||||
PLIST_SUB= VERSION="${PORTVERSION}"
|
||||
|
||||
USES= erlang:rebar
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= seancribbs
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -i '' -e 's/{ *vsn, git *}/{vsn, "${PORTVERSION}"}/' ${WRKSRC}/src/*.app.src
|
||||
REBAR_TARGETS= compile escriptize
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.textile ${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}/priv
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
|
||||
${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
|
||||
${INSTALL_DATA} ${WRKSRC}/priv/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv
|
||||
${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/neotoma ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/neotoma ${STAGEDIR}${PREFIX}/bin
|
||||
post-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${ERL_APP_ROOT}
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user