pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bosh: Import bosh (Schily Bourne Shell)
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By: micha
Date: Fri Sep 21 15:22:09 2018 +0200
Changeset: fbe00f41208f349385dc12e254ed1354ba1b971e
Added Files:
bosh/DESCR
bosh/Makefile
bosh/PLIST
bosh/TODO
bosh/distinfo
Log Message:
bosh: Import bosh (Schily Bourne Shell)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fbe00f41208f349385dc12e254ed1354ba1b971e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
bosh/DESCR | 11 ++++++++
bosh/Makefile | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
bosh/PLIST | 3 +++
bosh/TODO | 14 ++++++++++
bosh/distinfo | 6 +++++
5 files changed, 119 insertions(+)
diffs:
diff --git a/bosh/DESCR b/bosh/DESCR
new file mode 100644
index 0000000000..1adeadd262
--- /dev/null
+++ b/bosh/DESCR
@@ -0,0 +1,11 @@
+The Schily Bourne Shell
+
+The Schily Bourne Shell was derived from the Bourne Shell sources from
+OpenSolaris.
+
+The Schily Bourne Shell is actively maintained and enhanced on a regular base.
+It can be compiled into three variants:
+- The non-POSIX SVr4/OpenSolaris variant (obosh)
+- The minimal POSIX compliant variant (pbosh)
+- The POSIX compliant extended variant (bosh)
+This package contains the third variant.
diff --git a/bosh/Makefile b/bosh/Makefile
new file mode 100644
index 0000000000..d99d0536cc
--- /dev/null
+++ b/bosh/Makefile
@@ -0,0 +1,85 @@
+# $NetBSD$
+
+DISTNAME= schily-2018-09-04
+PKGNAME= ${DISTNAME:S/schily/bosh/}
+CATEGORIES= shells
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=schilytools/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://schilytools.sourceforge.net/bosh.html
+COMMENT= The Schily Bourne Shell
+LICENSE= cddl-1.0
+
+MAKE_JOBS_SAFE= no
+MAKE_FLAGS+= GMAKE_NOWARN=true
+
+USE_TOOLS+= gmake tbl
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+.include "../../mk/bsd.prefs.mk"
+
+# Map PKGSRC_COMPILER to CCOM used by schilytools build system.
+.if !empty(PKGSRC_COMPILER:Mgcc)
+MAKE_FLAGS+= CCOM=gcc
+.elif !empty(PKGSRC_COMPILER:Mclang)
+MAKE_FLAGS+= CCOM=clang
+# The following compilers are untested
+.elif !empty(PKGSRC_COMPILER:Micc)
+MAKE_FLAGS+= CCOM=icc
+.else
+MAKE_FLAGS+= CCOM=cc
+.endif
+
+# Fix testsuite (NetBSD od creates whitespace at the end of output lines)
+SUBST_CLASSES+= od
+SUBST_STAGE.od= post-patch
+SUBST_FILES.od= sh/tests/shelltests/printf/printf.sh
+SUBST_SED.od= -e "s,-e \\\\\"s/\^\[ ]\*//\\\[\"],-e \\\\\"s/^[ ]*//\\\\\" -e \\\\\"s/[ ]*$$//\\\\\",g"
+SUBST_MESSAGE.od= Fix processing of output from od.
+
+do-configure:
+ cd ${WRKSRC}/RULES; \
+ if [ ! -f i386-netbsd-clang.rul ]; then \
+ ${SED} -e 's/cc-gcc.rul/cc-$$(C_ARCH).rul/' i386-netbsd-gcc.rul >i386-netbsd-clang.rul; \
+ fi
+ cd ${WRKSRC}/RULES; \
+ for suffix in netbsd-clang.rul netbsd-cc.rul netbsd-gcc.rul; do \
+ if [ ! -f ${MACHINE}-$$suffix ]; then \
+ ln -sf i386-$$suffix ${MACHINE}-$$suffix; \
+ fi; \
+ done; \
+ ${CP} -fp i386-darwin-clang.rul x86_64-darwin-clang.rul
+ cd ${WRKSRC}/inc && ${MAKE_PROGRAM} ${MAKE_FLAGS}
+
+# The libraries may be split into their own packages to dynamically link them
+# (and to share them with other schily tools from this source tree)
+do-build:
+ cd ${WRKSRC}; for library in \
+ libschily libxtermcap libfind libgetopt libshedit; \
+ do \
+ cd ${WRKSRC}/$${library} && \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS}; \
+ done
+ cd ${WRKSRC}/sh && ${MAKE_PROGRAM} ${MAKE_FLAGS}
+
+# Process tables in manpage
+post-build:
+ cd ${WRKSRC}; tbl sh/sh.1 >sh/sh.1.tmp; \
+ mv -f sh/sh.1.tmp sh/bosh.1
+
+do-test:
+ cd ${WRKSRC}/sh; \
+ cd tests; ${MAKE_PROGRAM} ${MAKE_FLAGS} tests
+
+do-install:
+ cd ${WRKSRC}/sh; \
+ ${INSTALL_PROGRAM} ${WRKSRC}/sh/OBJ/*/sh \
+ ${DESTDIR}${PREFIX}/bin/bosh; \
+ ${INSTALL_MAN} ${WRKSRC}/sh/bosh.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/bosh/PLIST b/bosh/PLIST
new file mode 100644
index 0000000000..4ab85d076c
--- /dev/null
+++ b/bosh/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/bosh
+man/man1/bosh.1
diff --git a/bosh/TODO b/bosh/TODO
new file mode 100644
index 0000000000..de343ad408
--- /dev/null
+++ b/bosh/TODO
@@ -0,0 +1,14 @@
+[X] Analyze test target failure on NetBSD
+ Reason: NetBSD od has trailing whitespace in its output
+ => Fix added for current version
+ => Reported to upstream, next release will contain a workaround
+[X] Analyze keyboard behaviour for Delete and Backspace
+ => Different behaviour (compared to ash and bash) is documented
+[X] Compiler setup via CCOM
+[X] Test with clang compiler
+
+[ ] Test with Intel compiler
+[ ] Test with SunPro compiler
+[ ] Test with non-NetBSD operating systems
+[ ] Schily libraries dynamically linked (as separate packages)?
+[ ] Add obosh and pbosh variants to this package?
diff --git a/bosh/distinfo b/bosh/distinfo
new file mode 100644
index 0000000000..99ef37fb31
--- /dev/null
+++ b/bosh/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (schily-2018-09-04.tar.bz2) = bc1f86abd2269261c004488ed4b7fd6384200857
+RMD160 (schily-2018-09-04.tar.bz2) = f565288e1da41277111593447a5f17bd9b129ff5
+SHA512 (schily-2018-09-04.tar.bz2) = c0a8f638c31534589cb3ca3e98ca611639ad817bb4ce7147d06c5c946f16b087073d6df28d0c6f8e24ff2a87c92e88e83a9b01620e6fa7bf1303804ca1c25a97
+Size (schily-2018-09-04.tar.bz2) = 4294348 bytes
Home |
Main Index |
Thread Index |
Old Index