summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/zsh/zsh.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/zsh/zsh.inc')
-rw-r--r--meta-oe/recipes-extended/zsh/zsh.inc59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/zsh/zsh.inc b/meta-oe/recipes-extended/zsh/zsh.inc
new file mode 100644
index 000000000..6dc40bf50
--- /dev/null
+++ b/meta-oe/recipes-extended/zsh/zsh.inc
@@ -0,0 +1,59 @@
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=b7bc853894664be455a922db9805288e"
10
11PNBLACKLIST[zsh] ?= "BROKEN: doesn't build with B!=S (gnu-configize executed in ${B})"
12
13DEPENDS = "ncurses bison-native"
14
15SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz"
16
17inherit autotools gettext update-alternatives
18
19EXTRA_OECONF = " \
20 --bindir=${base_bindir} \
21 --enable-etcdir=${sysconfdir} \
22 --enable-fndir=${datadir}/${PN}/${PV}/functions \
23 --enable-site-fndir=${datadir}/${PN}/site-functions \
24 --with-term-lib='ncursesw ncurses' \
25 --with-tcsetpgrp \
26 --enable-cap \
27 --enable-multibyte \
28 --disable-gdbm \
29 --disable-dynamic \
30 zsh_cv_shared_environ=yes \
31"
32
33ALTERNATIVE_${PN} = "sh"
34ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
35ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
36ALTERNATIVE_PRIORITY = "100"
37
38export AUTOHEADER = "true"
39
40do_configure () {
41 gnu-configize --force
42 oe_runconf
43}
44
45do_install_append () {
46 rm -fr ${D}/usr/share
47}
48
49pkg_postinst_${PN} () {
50 touch $D${sysconfdir}/shells
51 grep -q "bin/zsh" $D${sysconfdir}/shells || echo /bin/zsh >> $D${sysconfdir}/shells
52 grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells
53}
54
55FILES_${PN}-dbg += "\
56 ${libdir}/${PN}/${PV}/${PN}/.debug/*.so \
57 ${libdir}/${PN}/${PV}/${PN}/db/.debug/*.so \
58 ${libdir}/${PN}/${PV}/${PN}/net/.debug/*.so \
59"