Update app-shells/oksh/oksh-7.9.ebuild

This commit is contained in:
gigirassy
2026-08-21 09:15:51 +02:00
parent 99934ca304
commit f41a7f1c07
+16 -14
View File
@@ -6,15 +6,17 @@ SRC_URI="https://github.com/ibara/oksh/releases/download/oksh-${PV}/oksh-${PV}.t
LICENSE="BSD-3 ISC public-domain" LICENSE="BSD-3 ISC public-domain"
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86" KEYWORDS="~amd64"
DEPEND="sys-libs/ncurses" DEPEND="sys-libs/ncurses"
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
src_configure() { src_configure() {
econf \ local myeconfargs=(
CPPFLAGS="${CPPFLAGS}" \ --enable-curses
LIBS="-lncurses ${LIBS}" )
econf "${myeconfargs[@]}"
} }
src_test() { src_test() {
@@ -22,19 +24,19 @@ src_test() {
[[ -x ${shell} ]] || die "oksh binary was not built" [[ -x ${shell} ]] || die "oksh binary was not built"
"${shell}" -c 'printf "%s\n" "$((2 + 2))"' \ "${shell}" -c 'printf "%s\n" "$((2 + 2))"' |
| grep -qx '4' \ grep -qx '4' ||
|| die "arithmetic smoke test failed" die "arithmetic smoke test failed"
"${shell}" -c 'x=oksh; test "$x" = oksh' \ "${shell}" -c 'x=oksh; test "$x" = oksh' ||
|| die "shell variable/test smoke test failed" die "shell variable/test smoke test failed"
"${shell}" -c 'printf "%s\n" "hello world"' \ "${shell}" -c 'printf "%s\n" "hello world"' |
| grep -qx 'hello world' \ grep -qx 'hello world' ||
|| die "basic output smoke test failed" die "basic output smoke test failed"
"${shell}" -n -c 'case foo in foo) exit 0;; esac' \ "${shell}" -n -c 'case foo in foo) exit 0;; esac' ||
|| die "syntax smoke test failed" die "syntax smoke test failed"
} }
src_install() { src_install() {