Files
ports/lang/linux-j/Makefile
T
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

47 lines
1.4 KiB
Makefile

# Created by: js@jeannot.org
PORTNAME= j
PORTVERSION= 504b
PORTREVISION= 4
CATEGORIES= lang linux java
MASTER_SITES= http://www.jsoftware.com/download/
PKGNAMEPREFIX= linux-
DISTNAME= j${PORTVERSION}_linux32
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= General purpose programming language
LICENSE= JSoftware
LICENSE_NAME= JSoftware End User License Agreement
LICENSE_FILE= ${FILESDIR}/license.txt
LICENSE_PERMS= auto-accept dist-mirror pkg-mirror
USES= linux
USE_JAVA= yes
CONFLICTS_INSTALL= docbook-utils # bin/jw
ONLY_FOR_ARCHS= i386 amd64
NO_WRKSUBDIR= yes
NO_BUILD= yes
SUB_FILES= j-jconsole.sh jw.sh
SUB_LIST= PORTVERSION=${PORTVERSION:S/b//g}
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/j-jconsole.sh ${STAGEDIR}${PREFIX}/bin/j-jconsole
${INSTALL_SCRIPT} ${WRKDIR}/jw.sh ${STAGEDIR}${PREFIX}/bin/jw
${INSTALL_MAN} ${WRKSRC}/j${PORTVERSION:S/b//g}/system/extras/help/man/jconsole.1 ${STAGEDIR}${PREFIX}/man/man1/${MAN1}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/j
cd ${WRKSRC}/j${PORTVERSION:S/b//g} && \
${COPYTREE_SHARE} "system user profile.ijs j.jar" \
${STAGEDIR}${PREFIX}/lib/j
${BRANDELF} -t Linux ${WRKSRC}/j${PORTVERSION:S/b//g}/jconsole
${INSTALL_PROGRAM} ${WRKSRC}/j${PORTVERSION:S/b//g}/jconsole ${STAGEDIR}${PREFIX}/lib/j/jconsole
${MV} ${STAGEDIR}${PREFIX}/man/man1/jconsole.1 ${STAGEDIR}${PREFIX}/man/man1/j-jconsole.1
.include <bsd.port.mk>