freebsd-ports/www/geneweb/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

44 lines
1.2 KiB
Makefile

# Created by: Hubert Tournier <hubert@frbsd.org>
PORTNAME= geneweb
DISTVERSIONPREFIX= distrib-
DISTVERSION= 6-08
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= alex@stangl.us
COMMENT= Advanced genealogy software
LICENSE= GPLv2
BUILD_DEPENDS= ocamlc:lang/ocaml \
camlp5:devel/ocaml-camlp5 \
ocamlfind:devel/ocaml-findlib
USE_GITHUB= yes
GH_ACCOUNT= geneweb
GH_TAGNAME= 13c850a0cc3973daf7ae3e0772a1621f84052041
CONFLICTS_INSTALL= coreutils # bin/gwc
HAS_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
MAKE_ENV+= STAGEDIR=${STAGEDIR}
SUB_FILES+= pkg-message
USE_RC_SUBR= gwd
post-patch:
@${REINPLACE_CMD} -e 's,52,& -unsafe-string,' \
${WRKSRC}/tools/Makefile.inc.unix
post-install:
(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} distrib)
${INSTALL_DATA} ${WRKSRC}/etc/a.gwf ${STAGEDIR}${PREFIX}/share/geneweb
@${MKDIR} ${STAGEDIR}${PREFIX}/share/geneweb/distribution
@${CP} -a ${WRKSRC}/distribution ${STAGEDIR}${PREFIX}/share/geneweb/
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gwc1
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/geneweb/distribution/gw/gwc1
${INSTALL_SCRIPT} ${FILESDIR}/install.sh ${STAGEDIR}${PREFIX}/share/geneweb
.include <bsd.port.mk>