b6ec06f079
Ports 02f27a83b4 fixed the ports tree to the C locale so it would work
correctly in environments where users use a locale that isn't compatible
with the C locale, e.g. xx_YY.UTF-8 where [A-Z] includes more than just
upper case letters. USE_LOCALE was introduced to let ports use another
locale if they needed it. The C.UTF-8 locale was created later on to be
mostly compatible with the C locale.
Switch the ports tree locale to C.UTF-8 and remove USE_LOCALE. The
world has moved to Unicode so all ports either require it or know how to
build correctly in a Unicode environment.
PR: 295945
Exp-run by: antoine
68 lines
1.6 KiB
Makefile
68 lines
1.6 KiB
Makefile
PORTNAME= elixir
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.20.2
|
|
CATEGORIES= lang
|
|
MASTER_SITES+= https://github.com/elixir-lang/elixir/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}/:doc
|
|
PKGNAMESUFFIX= -devel
|
|
DISTFILES= Docs.zip:doc
|
|
DIST_SUBDIR= elixir/${PORTVERSION}
|
|
|
|
MAINTAINER= erlang@FreeBSD.org
|
|
COMMENT= Functional, meta-programming aware language built on top of Erlang VM
|
|
WWW= https://elixir-lang.org/
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= erlang-runtime${_ERLANG_VER}>0:lang/erlang-runtime${_ERLANG_VER}
|
|
|
|
USES= gmake
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= elixir-lang
|
|
|
|
MAKE_ENV+= MAN_PREFIX=${PREFIX}/share/man \
|
|
PATH="${LOCALBASE}/lib/erlang${_ERLANG_VER}/bin:${PATH}"
|
|
ALL_TARGET= # empty
|
|
|
|
CONFLICTS= elixir # bin/elixir bin/elixirc bin/iex
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
NO_ARCH= yes
|
|
|
|
PORTSCOUT= limit:^[0-9rcv.-]+$ ## accept release candidates & version numbers
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_SUB= yes
|
|
|
|
_ERLANG_VER?= 29
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-extract:
|
|
${FIND} ${WRKDIR}/doc -name .build -delete -or -name .ex_doc -delete
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKDIR}/doc/ && \
|
|
${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib
|
|
cd ${WRKSRC}/lib/ && \
|
|
for lib in *; \
|
|
do ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib/$${lib}/lib; \
|
|
cd ${WRKSRC}/lib/$${lib}/lib && \
|
|
${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/elixir/lib/$${lib}/lib; \
|
|
done
|
|
|
|
post-stage-DOCS-on:
|
|
@cd ${STAGEDIR}${PREFIX} && \
|
|
${FIND} ${DOCSDIR_REL} -type f -o -type l | \
|
|
${SORT} >> ${TMPPLIST}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} test
|
|
|
|
.include <bsd.port.mk>
|