summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-shells/zsh/zsh_5.9.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-shells/zsh/zsh_5.9.bb')
-rw-r--r--meta-oe/recipes-shells/zsh/zsh_5.9.bb60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta-oe/recipes-shells/zsh/zsh_5.9.bb b/meta-oe/recipes-shells/zsh/zsh_5.9.bb
new file mode 100644
index 0000000000..c03dfc2f83
--- /dev/null
+++ b/meta-oe/recipes-shells/zsh/zsh_5.9.bb
@@ -0,0 +1,60 @@
1SUMMARY = "UNIX Shell similar to the Korn shell"
2DESCRIPTION = "Zsh is a shell designed for interactive use, although it is also a \
3 powerful scripting language. Many of the useful features of bash, \
4 ksh, and tcsh were incorporated into zsh; many original features were added."
5HOMEPAGE = "http://www.zsh.org"
6SECTION = "base/shell"
7
8LICENSE = "zsh"
9LIC_FILES_CHKSUM = "file://LICENCE;md5=1a4c4cda3e8096d2fd483ff2f4514fec"
10
11DEPENDS = "ncurses bison-native libcap libpcre gdbm groff-native"
12
13SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.xz"
14SRC_URI[sha256sum] = "9b8d1ecedd5b5e81fbf1918e876752a7dd948e05c1a0dba10ab863842d45acd5"
15
16inherit autotools gettext update-alternatives manpages
17
18EXTRA_AUTORECONF += "--exclude=aclocal"
19
20EXTRA_OECONF = " \
21 --bindir=${base_bindir} \
22 --enable-etcdir=${sysconfdir} \
23 --enable-fndir=${datadir}/${BPN}/${PV}/functions \
24 --enable-site-fndir=${datadir}/${BPN}/site-functions \
25 --with-term-lib='ncursesw ncurses' \
26 --with-tcsetpgrp \
27 --enable-cap \
28 --enable-multibyte \
29 --disable-gdbm \
30 --disable-dynamic \
31 zsh_cv_shared_environ=yes \
32"
33
34# Configure respects --bindir from EXTRA_OECONF, but then Src/Makefile will read bindir from environment
35export bindir = "${base_bindir}"
36
37EXTRA_OEMAKE = "-e MAKEFLAGS="
38
39ALTERNATIVE:${PN} = "sh"
40ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
41ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
42ALTERNATIVE_PRIORITY = "90"
43
44# Needed for manpages.bbclass, but they're always installed
45PACKAGECONFIG[manpages] = ""
46
47do_install:append() {
48 sed -i -e '1!b; s:^#!.*[ /]zsh:#!${bindir}/zsh:; s#/usr/local/bin#${bindir}#;' \
49 `find ${D}/usr/share/zsh/${PV}/functions -type f`
50}
51
52pkg_postinst:${PN} () {
53 touch $D${sysconfdir}/shells
54 for i in zsh sh
55 do
56 grep -q "bin/$i" $D${sysconfdir}/shells || \
57 printf >> $D${sysconfdir}/shells \
58 "${bindir}/$i\n${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '/bin/$i\n', '', d)}"
59 done
60}