forked from Lainports/freebsd-ports
ksh93 modernization development, which was halted in 2020, resulted in the att/ast team saving the development in their ksh2020 branch and reverting the mainline back to ksh93. Since the the ksh2020 developers have forked ksh93 and resumed ksh2020 development under the ksh93 account in their ksh repository. Therefore the now "abandonware" ksh2020 ports is to be removed in favour of the shells/ksh or shells/ksh-devel ports. The shells/ksh port tracks releases while shells/ksh-devel tracks development. shells/ksh93 is available for legacy applications that require the original AT&T KSH93. The "co-existence" options of each of these ports allow users to install shells/ksh (and/or ksh-devel) with shells/ksh93 for users who wish to use the currently developed ksh93 but still need the legacy AT&T ksh93 due to incompatibilties between the old and the new. (Note: The latest CDE-25 develpment has switched to using the new ksh93 shell.)
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
PORTNAME= ksh2020
|
|
PORTVERSION= 2020
|
|
PORTREVISION= 1
|
|
CATEGORIES= shells
|
|
|
|
MAINTAINER= cy@FreeBSD.org
|
|
COMMENT= Archived development branch of AT&T KornShell 93
|
|
WWW= http://www.kornshell.com/
|
|
|
|
LICENSE= EPL
|
|
|
|
DEPRECATED= Upstream ksh2020 branch archived, development continues under new ksh93 project
|
|
EXPIRATION_DATE= 2022-09-30
|
|
|
|
USES= compiler:c11 meson ninja python:build
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= att
|
|
GH_PROJECT= ast
|
|
GH_TAGNAME= ksh2020
|
|
|
|
KSH_CONFLICTS= pdksh
|
|
KSH93_CONFLICTS= ksh93 ksh93-devel ast-ksh
|
|
|
|
MESON_BUILD_DIR= build
|
|
|
|
OPTIONS_DEFAULT= KSH93
|
|
OPTIONS_SINGLE= BIN_KSH
|
|
OPTIONS_SINGLE_BIN_KSH= KSH KSH93
|
|
KSH_DESC= Install to ${PREFIX}/bin/ksh
|
|
KSH93_DESC= Install to ${PREFIX}/bin/ksh93
|
|
|
|
KSH93_EXTRA_PATCHES= ${FILESDIR}/extra-patch-install-as-ksh93 \
|
|
${FILESDIR}/extra-patch-install-as-ksh93-doc
|
|
|
|
KSH_PLIST_SUB= 93=""
|
|
KSH93_PLIST_SUB= 93="93"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/for name in/ s|python.*|${PYTHON_CMD}|g' ${WRKSRC}/scripts/python.sh
|
|
@${REINPLACE_CMD} -e 's|SF_FLAGS|SFIO_FLAGS|g' ${WRKSRC}/src/lib/libast/include/sfio*.h ${WRKSRC}/src/lib/libast/sfio/*.c
|
|
.if ${PORT_OPTIONS:MKSH93}
|
|
@${MV} ${WRKSRC}/src/cmd/ksh93/docs/ksh.1 ${WRKSRC}/src/cmd/ksh93/docs/ksh93.1
|
|
.endif
|
|
.if ${PORT_OPTIONS:MKSH}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|