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

Collapse All | Expand All

(-)shells/ksh93-2020/Makefile (+52 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	ksh93
4
PORTVERSION=	2020.0.0.a1
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
HASH=		2020.0.0-alpha1
15
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	att
18
GH_PROJECT=	ast
19
GH_TAGNAME=	${HASH}
20
21
KSH_CONFLICTS=		pdksh-*
22
KSH93_CONFLICTS=	ksh93-devel
23
24
LDFLAGS+=	-lm
25
MESON_BUILD_DIR=	build
26
MAKE_ENV=	CCFLAGS="${CFLAGS}"
27
28
OPTIONS_DEFAULT=	KSH93
29
OPTIONS_SINGLE=		BIN_KSH
30
OPTIONS_SINGLE_BIN_KSH=	KSH KSH93
31
KSH_DESC=		Install to ${PREFIX}/bin/ksh
32
KSH93_DESC=		Install to ${PREFIX}/bin/ksh93
33
34
KSH93_EXTRA_PATCHES=	${FILESDIR}/extra-patch-install-as-ksh93
35
KSH93_DESC=	Install to ${PREFIX}/bin/ksh93
36
37
KSH_PLIST_SUB=		93=""
38
KSH93_PLIST_SUB=	93="93"
39
40
.include <bsd.port.options.mk>
41
42
post-patch:
43
	@${REINPLACE_CMD} -e '/for name in/ s|python.*|${PYTHON_CMD}|g' ${WRKSRC}/scripts/python.sh
44
	@${REINPLACE_CMD} -e 's|SF_FLAGS|SFIO_FLAGS|g' ${WRKSRC}/src/lib/libast/include/sfio*.h ${WRKSRC}/src/lib/libast/sfio/*.c
45
.if ${PORT_OPTIONS:MKSH93}
46
	@${MV} ${WRKSRC}/src/cmd/ksh93/ksh.1 ${WRKSRC}/src/cmd/ksh93/ksh93.1
47
.endif
48
.if ${PORT_OPTIONS:MKSH}
49
	@# Keep portlint happy
50
.endif
51
52
.include <bsd.port.mk>
(-)shells/ksh93-2020/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1556243667
2
SHA256 (att-ast-2020.0.0a1-2020.0.0-alpha1_GH0.tar.gz) = a9c6a9291ee1a2a5169cdebfe601124e53ae15f83d0857c166d9f2d86c1d4294
3
SIZE (att-ast-2020.0.0a1-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