View | Details | Raw Unified | Return to bug 237332 | Differences between
and this patch

Collapse All | Expand All

(-)shells/ksh93-2020/Makefile (+50 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	ksh93
4
DISTVERSION=2020.0.0-alpha1
5
CATEGORIES=	shells
6
7
MAINTAINER=	saper@saper.info
8
COMMENT=	AT&T KornShell 93
9
10
LICENSE=	EPL
11
12
USES=		compiler:c11 meson ninja python:build
13
14
USE_GITHUB=	yes
15
GH_ACCOUNT=	att
16
GH_PROJECT=	ast
17
GH_TAGNAME=	${HASH}
18
19
KSH_CONFLICTS=		pdksh-*
20
KSH93_CONFLICTS=	ksh93-devel
21
22
LDFLAGS+=	-lm
23
MESON_BUILD_DIR=	build
24
MAKE_ENV=	CCFLAGS="${CFLAGS}"
25
26
OPTIONS_DEFAULT=	KSH93
27
OPTIONS_SINGLE=		BIN_KSH
28
OPTIONS_SINGLE_BIN_KSH=	KSH KSH93
29
KSH_DESC=		Install to ${PREFIX}/bin/ksh
30
KSH93_DESC=		Install to ${PREFIX}/bin/ksh93
31
32
KSH93_EXTRA_PATCHES=	${FILESDIR}/extra-patch-install-as-ksh93
33
KSH93_DESC=	Install to ${PREFIX}/bin/ksh93
34
35
KSH_PLIST_SUB=		93=""
36
KSH93_PLIST_SUB=	93="93"
37
38
.include <bsd.port.options.mk>
39
40
post-patch:
41
	@${REINPLACE_CMD} -e '/for name in/ s|python.*|${PYTHON_CMD}|g' ${WRKSRC}/scripts/python.sh
42
	@${REINPLACE_CMD} -e 's|SF_FLAGS|SFIO_FLAGS|g' ${WRKSRC}/src/lib/libast/include/sfio*.h ${WRKSRC}/src/lib/libast/sfio/*.c
43
.if ${PORT_OPTIONS:MKSH93}
44
	@${MV} ${WRKSRC}/src/cmd/ksh93/ksh.1 ${WRKSRC}/src/cmd/ksh93/ksh93.1
45
.endif
46
.if ${PORT_OPTIONS:MKSH}
47
	@# Keep portlint happy
48
.endif
49
50
.include <bsd.port.mk>
(-)shells/ksh93-2020/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1556307803
2
SHA256 (att-ast-2020.0.0-alpha1_GH0.tar.gz) = a9c6a9291ee1a2a5169cdebfe601124e53ae15f83d0857c166d9f2d86c1d4294
3
SIZE (att-ast-2020.0.0-alpha1_GH0.tar.gz) = 2041318
(-)shells/ksh93-2020/files/extra-patch-install-as-ksh93 (+25 lines)
Line 0 Link Here
1
--- src/cmd/ksh93/meson.build.orig	2018-09-25 15:33:55.000000000 -0700
2
+++ src/cmd/ksh93/meson.build	2018-09-25 19:00:44.313649000 -0700
3
@@ -26,19 +26,19 @@
4
                  dependencies: [libm_dep, libexecinfo_dep, libdl_dep],
5
                  install: false)
6
 
7
-ksh93_exe = executable('ksh', ['sh/pmain.c'], c_args: shared_c_args,
8
+ksh93_exe = executable('ksh93', ['sh/pmain.c'], c_args: shared_c_args,
9
     include_directories: [configuration_incdir, ksh93_incdir],
10
     link_with: [libksh, libast, libcmd, libdll],
11
     dependencies: [libm_dep, libexecinfo_dep, libdl_dep],
12
     install: true)
13
 
14
-shcomp_exe = executable('shcomp', ['sh/shcomp.c'], c_args: shared_c_args,
15
+shcomp_exe = executable('shcomp93', ['sh/shcomp.c'], c_args: shared_c_args,
16
     include_directories: [configuration_incdir, ksh93_incdir],
17
     link_with: [libksh, libast, libcmd, libdll],
18
     dependencies: [libm_dep, libexecinfo_dep, libdl_dep],
19
     install: true)
20
 
21
-install_man('ksh.1')
22
+install_man('ksh93.1')
23
 
24
 test_dir = join_paths(meson.current_source_dir(), 'tests')
25
 test_driver = join_paths(test_dir, 'util', 'run_test.sh')
(-)shells/ksh93-2020/pkg-descr (+13 lines)
Line 0 Link Here
1
KSH-93 is the most recent version of the KornShell Language described
2
in "The KornShell Command and Programming Language," by Morris
3
Bolsky and David Korn of AT&T Bell Laboratories.  The KornShell is
4
a shell programming language, which is upward compatible with "sh"
5
(the Bourne Shell), and is intended to conform to the IEEE P1003.2/ISO
6
9945.2 Shell and Utilities standard.  KSH-93 provides an enhanced
7
programming environment in addition to the major command-entry
8
features of the BSD shell "csh".  With KSH-93, medium-sized programming
9
tasks can be performed at shell-level without a significant loss
10
in performance.  In addition, "sh" scripts can be run on KSH-93
11
without modification.
12
13
WWW: http://www.kornshell.com/
(-)shells/ksh93-2020/pkg-plist (+3 lines)
Line 0 Link Here
1
@shell bin/ksh%%93%%
2
bin/shcomp%%93%%
3
man/man1/ksh%%93%%.1.gz

Return to bug 237332