1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/editors/jed/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

72 lines
1.8 KiB
Makefile

# Created by: eric
PORTNAME= jed
DISTVERSION= 0.99-19
PORTREVISION= 4
CATEGORIES= editors
MASTER_SITES= ftp://space.mit.edu/pub/davis/jed/v${PORTVERSION:R}/ \
ftp://ftp.fu-berlin.de/pub/unix/editors/jed/v${PORTVERSION:R}/ \
ftp://ftp.ntua.gr/pub/lang/slang/jed/v${PORTVERSION:R}/
MAINTAINER= garga@FreeBSD.org
COMMENT= SLang-based text editor
LICENSE= GPLv2
LIB_DEPENDS= libslang.so:devel/libslang2
CONFLICTS= ja-jed
OPTIONS_DEFINE= X11 PERMS HOSTLOOKUP DOCS
OPTIONS_DEFAULT=X11 HOSTLOOKUP
PERMS_DESC= Respect permissions by Root
HOSTLOOKUP_DESC=Look-up for hostname
OPTIONS_SUB= yes
USES= tar:bzip2
DIST_SUBDIR= jed
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
CONFIGURE_ENV+= JED_ROOT=${PREFIX}/lib/jed
PORTDOCS= *
MAKE_ENV+= DEST_DOC_DIR=${STAGEDIR}${DOCSDIR}
ALL_TARGET= all getmail
X11_USES= xorg
X11_USE= XORG=x11 XORG=ice XORG=xt
X11_ALL_TARGET= xjed
.include <bsd.port.pre.mk>
.if empty(PORT_OPTIONS:MHOSTLOOKUP)
HOSTNAME_CMD= /bin/hostname
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__userinfo.c
.endif
post-patch:
@${REINPLACE_CMD} -e 's,(DEST_JED_ROOT)/doc,(DEST_DOC_DIR),g' \
-e 's,\.\./info/\*,,' \
-e 's,^\(JED_DOC_.*FILES\) =,\1 \?=,g' \
${WRKSRC}/src/Makefile.in
.if empty(PORT_OPTIONS:MPERMS)
@${REINPLACE_CMD} 's|jed_file_is_readonly (file, 1)|jed_file_is_readonly (file, 0)|' ${WRKSRC}/src/file.c
.endif
.if empty(PORT_OPTIONS:MHOSTLOOKUP)
@${REINPLACE_CMD} -e "s/%%JED_HOSTNAME%%/$$(${HOSTNAME_CMD})/" \
${WRKSRC}/src/userinfo.c
.endif
post-configure:
@${REINPLACE_CMD} -e 's,\(.usr.bin.install\) *-c,\1 -s -m 555,' \
${WRKSRC}/src/Makefile
post-install:
${INSTALL_DATA} ${WRKSRC}/lib/vms_shell.com ${STAGEDIR}${PREFIX}/lib/jed/lib
${INSTALL_DATA} ${WRKSRC}/lib/README ${STAGEDIR}${PREFIX}/lib/jed/lib
${INSTALL_DATA} ${WRKSRC}/lib/jed.conf ${STAGEDIR}${PREFIX}/lib/jed/lib
.include <bsd.port.post.mk>