freebsd-ports/lang/elixir/Makefile
Stefan Eßer bcaf25a8c8 Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.

This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.

Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
cannot conflict with itself (due to logic in bsd.port.mk that
supresses the pattern match result in that case).

A few ports that set the conflicts variables depending on complex
conditions (e.g. port options), have been left unmodified, despite
probably containing outdated package names.

These changes should only affect the installation of locally built
ports, not the package building with poudriere. They should give an
early indication of the install conflict in cases where currently
the pkg command aborts an installation when it detects that an
existing file would be overwritten,

Approved by:	portmgr (implicit)
2022-01-10 16:15:39 +01:00

60 lines
1.4 KiB
Makefile

# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
PORTNAME= elixir
DISTVERSIONPREFIX= v
DISTVERSION= 1.12.3
CATEGORIES= lang
MASTER_SITES+= https://github.com/elixir-lang/elixir/releases/download/${DISTVERSIONPREFIX}${PORTVERSION}/:doc
DISTFILES= Docs.zip:doc
DIST_SUBDIR= elixir/${PORTVERSION}
MAINTAINER= erlang@FreeBSD.org
COMMENT= Functional, meta-programming aware language built on top of Erlang VM
LICENSE= APACHE20
BUILD_DEPENDS= erlang>=24.0:lang/erlang
RUN_DEPENDS= erlang>=24.0:lang/erlang
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= elixir-lang
CONFLICTS= elixir-devel # bin/elixir bin/elixirc bin/iex
USE_LOCALE= en_US.UTF-8
ALL_TARGET= # empty
REINPLACE_ARGS= -i ""
NO_ARCH= yes
MAKE_ENV= MAN_PREFIX=${PREFIX}/man
OPTIONS_DEFINE= DOCS SRC
OPTIONS_DEFAULT= DOCS SRC
OPTIONS_DEFAULT= DOCS
OPTIONS_SUB= yes
SRC_DESC= Install source code
.include <bsd.port.options.mk>
post-extract:
@${FIND} ${WRKDIR}/doc -name .build -delete
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKDIR}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
post-install-SRC-on:
${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
do-test:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} test
.include <bsd.port.mk>