Index: head/shells/Makefile =================================================================== --- head/shells/Makefile (revision 480230) +++ head/shells/Makefile (revision 480231) @@ -1,55 +1,56 @@ # $FreeBSD$ # COMMENT = Shells SUBDIR += 44bsd-csh SUBDIR += bash SUBDIR += bash-completion SUBDIR += bash-static SUBDIR += bashc SUBDIR += bicon SUBDIR += ch SUBDIR += dash SUBDIR += envy SUBDIR += es SUBDIR += esh SUBDIR += fd SUBDIR += fish SUBDIR += flash SUBDIR += heirloom-sh SUBDIR += hs-shelly SUBDIR += ibsh SUBDIR += jailkit SUBDIR += klish SUBDIR += ksh93 + SUBDIR += ksh93-devel SUBDIR += lshell SUBDIR += mksh SUBDIR += nologinmsg SUBDIR += oksh SUBDIR += osh SUBDIR += p5-Bash-Completion SUBDIR += p5-Shell-Perl SUBDIR += p5-Term-Bash-Completion-Generator SUBDIR += p5-Term-ShellUI SUBDIR += pdksh SUBDIR += pear-PHP_Shell SUBDIR += psh SUBDIR += rc SUBDIR += rssh SUBDIR += sash SUBDIR += scponly SUBDIR += shell-include SUBDIR += sparforte SUBDIR += tcsh_nls SUBDIR += tcshrc SUBDIR += v7sh SUBDIR += viewglob SUBDIR += vshnu SUBDIR += wcd SUBDIR += xonsh SUBDIR += zsh SUBDIR += zsh-antigen SUBDIR += zsh-navigation-tools .include Index: head/shells/ksh93-devel/Makefile =================================================================== --- head/shells/ksh93-devel/Makefile (nonexistent) +++ head/shells/ksh93-devel/Makefile (revision 480231) @@ -0,0 +1,55 @@ +# $FreeBSD$ + +# Make sure that your configuration DOES NOT set ANY gcc-related +# variables. ksh93 will not compile if you set even the seemingly +# most unrelated variable related to gcc configuration. This means +# especially any flag which attempts to set the cputype. Setting the +# cputype does absolutely nothing except cause systems to fail in +# horrible ways. For any modern processor, setting the cputype only +# serves to expose gcc bugs and does nothing to speed up any known +# program. If you are really unconvinced, go ahead but do not +# complain to me about it. + +PORTNAME= ksh93 +PORTVERSION= ${AST_COMMIT_DATE} +CATEGORIES= shells +PKGNAMESUFFIX= -devel +HASH= 4b26777 +AST_COMMIT_DATE= 2018.09.20 + +MAINTAINER= cy@FreeBSD.org +COMMENT= Development branch of AT&T KornShell 93 + +LICENSE= EPL + +OPTIONS_DEFINE= EXAMPLES STATIC + +USE_GITHUB= yes +GH_ACCOUNT= att +GH_PROJECT= ast +GH_TAGNAME= ${HASH} + +CONFLICTS= ksh93-* + +USES= meson ninja +FETCH_ENV= HTTP_AUTH=basic:*:I\ accept\ www.opensource.org/licenses/cpl:. +LDFLAGS+= -lm +MESON_BUILD_DIR= build +MAKE_ENV= CCFLAGS="${CFLAGS}" + +STATIC_MAKE_ENV= LDFLAGS+=-static + +BROKEN_aarch64= Fails to compile: needs sbrk + +.include + +post-patch: +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100093 + @${REINPLACE_CMD} -e 's|SF_FLAGS|SFIO_FLAGS|g' ${WRKSRC}/src/lib/libast/include/sfio*.h ${WRKSRC}/src/lib/libast/sfio/*.c +.endif + @${MV} ${WRKSRC}/src/cmd/ksh93/ksh.1 ${WRKSRC}/src/cmd/ksh93/ksh93.1 + +do-test: + cd ${WRKSRC}/src/cmd/ksh93/tests/ && ${SETENV} SHELL=${WRKSRC}/bin/ksh ${WRKSRC}/bin/ksh shtests + +.include Property changes on: head/shells/ksh93-devel/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/shells/ksh93-devel/distinfo =================================================================== --- head/shells/ksh93-devel/distinfo (nonexistent) +++ head/shells/ksh93-devel/distinfo (revision 480231) @@ -0,0 +1,3 @@ +TIMESTAMP = 1537512222 +SHA256 (att-ast-2018.09.20-4b26777_GH0.tar.gz) = ec8711a8a19beae33de7be9911c29575584d38197940c834652df9ce66ac7d58 +SIZE (att-ast-2018.09.20-4b26777_GH0.tar.gz) = 15286573 Property changes on: head/shells/ksh93-devel/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/shells/ksh93-devel/files/patch-src_cmd_ksh93_meson.build =================================================================== --- head/shells/ksh93-devel/files/patch-src_cmd_ksh93_meson.build (nonexistent) +++ head/shells/ksh93-devel/files/patch-src_cmd_ksh93_meson.build (revision 480231) @@ -0,0 +1,25 @@ +--- src/cmd/ksh93/meson.build.orig 2018-09-20 20:55:29.000000000 -0700 ++++ src/cmd/ksh93/meson.build 2018-09-21 00:13:21.315431000 -0700 +@@ -27,19 +27,19 @@ + dependencies: [libm_dep, libexecinfo_dep, libdl_dep], + install: false) + +-ksh93_exe = executable('ksh', ['sh/pmain.c'], c_args: shared_c_args, ++ksh93_exe = executable('ksh93', ['sh/pmain.c'], c_args: shared_c_args, + include_directories: [configuration_incdir, ksh93_incdir], + link_with: [libksh, libast, libcmd, libcoshell, libdll], + dependencies: [libm_dep, libexecinfo_dep, libdl_dep], + install: true) + +-shcomp_exe = executable('shcomp', ['sh/shcomp.c'], c_args: shared_c_args, ++shcomp_exe = executable('shcomp93', ['sh/shcomp.c'], c_args: shared_c_args, + include_directories: [configuration_incdir, ksh93_incdir], + link_with: [libksh, libast, libcmd, libcoshell, libdll], + dependencies: [libm_dep, libexecinfo_dep, libdl_dep], + install: true) + +-install_man('ksh.1') ++install_man('ksh93.1') + + test_dir = join_paths(meson.current_source_dir(), 'tests') + test_driver = join_paths(test_dir, 'util', 'run_test.sh') Property changes on: head/shells/ksh93-devel/files/patch-src_cmd_ksh93_meson.build ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/shells/ksh93-devel/pkg-plist =================================================================== --- head/shells/ksh93-devel/pkg-plist (nonexistent) +++ head/shells/ksh93-devel/pkg-plist (revision 480231) @@ -0,0 +1,3 @@ +@shell bin/ksh93 +bin/shcomp93 +man/man1/ksh93.1.gz Property changes on: head/shells/ksh93-devel/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/shells/ksh93-devel/pkg-descr =================================================================== --- head/shells/ksh93-devel/pkg-descr (nonexistent) +++ head/shells/ksh93-devel/pkg-descr (revision 480231) @@ -0,0 +1,13 @@ +KSH-93 is the most recent version of the KornShell Language described +in "The KornShell Command and Programming Language," by Morris +Bolsky and David Korn of AT&T Bell Laboratories. The KornShell is +a shell programming language, which is upward compatible with "sh" +(the Bourne Shell), and is intended to conform to the IEEE P1003.2/ISO +9945.2 Shell and Utilities standard. KSH-93 provides an enhanced +programming environment in addition to the major command-entry +features of the BSD shell "csh". With KSH-93, medium-sized programming +tasks can be performed at shell-level without a significant loss +in performance. In addition, "sh" scripts can be run on KSH-93 +without modification. + +WWW: http://www.kornshell.com/ Property changes on: head/shells/ksh93-devel/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property