pkgsrc/devel/rebar/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

24 lines
645 B
Makefile

# $NetBSD: Makefile,v 1.10 2018/07/04 13:40:15 jperkin Exp $
DISTNAME= rebar-2.6.4
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=rebar/}
MAINTAINER= reinoud@NetBSD.org
HOMEPAGE= https://github.com/rebar/rebar/
COMMENT= Rebar is an Erlang build tool
LICENSE= apache-2.0
USE_TOOLS+= gmake
AUTO_MKDIRS= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/rebar ${DESTDIR}${PREFIX}/bin/rebar
SUBST_CLASSES+= shebang
SUBST_FILES.shebang= src/rebar_escripter.erl
SUBST_SED.shebang+= -e 's,/usr/bin/env escript,${PREFIX}/bin/escript,'
SUBST_STAGE.shebang= pre-configure
.include "../../lang/erlang/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"