diff options
author | Derek Straka <derek@asterius.io> | 2018-03-06 08:38:35 -0500 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-03-12 10:01:17 -0700 |
commit | 26b6f912a38a7f9cfead4076ef588ef8c2e9bd0e (patch) | |
tree | b5162de50512e674acab9c763c321d8284f90e51 /meta-oe/recipes-shells/zsh/zsh_5.4.2.bb | |
parent | 1ab54c99ba5370e5cd9727d87d3e7a7d0b4241e5 (diff) | |
download | meta-openembedded-contrib-26b6f912a38a7f9cfead4076ef588ef8c2e9bd0e.tar.gz |
zsh: update to version 5.4.2
License-Update: Update the license checksum for copyright year and verify the terms remain the same
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-shells/zsh/zsh_5.4.2.bb')
-rw-r--r-- | meta-oe/recipes-shells/zsh/zsh_5.4.2.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-oe/recipes-shells/zsh/zsh_5.4.2.bb b/meta-oe/recipes-shells/zsh/zsh_5.4.2.bb new file mode 100644 index 0000000000..100c449f2b --- /dev/null +++ b/meta-oe/recipes-shells/zsh/zsh_5.4.2.bb @@ -0,0 +1,64 @@ +SUMMARY = "UNIX Shell similar to the Korn shell" +DESCRIPTION = "Zsh is a shell designed for interactive use, although it is also a \ + powerful scripting language. Many of the useful features of bash, \ + ksh, and tcsh were incorporated into zsh; many original features were added." +HOMEPAGE = "http://www.zsh.org" +SECTION = "base/shell" + +LICENSE = "zsh" +LIC_FILES_CHKSUM = "file://LICENCE;md5=1a4c4cda3e8096d2fd483ff2f4514fec" + +DEPENDS = "ncurses bison-native libcap libpcre gdbm groff-native" + +SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz" +SRC_URI[md5sum] = "dfe156fd69b0d8d1745ecf6d6e02e047" +SRC_URI[sha256sum] = "957bcdb2c57f64c02f673693ea5a7518ef24b6557aeb3a4ce222cefa6d74acc9" + +inherit autotools gettext update-alternatives + +EXTRA_OECONF = " \ + --bindir=${base_bindir} \ + --enable-etcdir=${sysconfdir} \ + --enable-fndir=${datadir}/${PN}/${PV}/functions \ + --enable-site-fndir=${datadir}/${PN}/site-functions \ + --with-term-lib='ncursesw ncurses' \ + --with-tcsetpgrp \ + --enable-cap \ + --enable-multibyte \ + --disable-gdbm \ + --disable-dynamic \ + zsh_cv_shared_environ=yes \ +" + +# Configure respects --bindir from EXTRA_OECONF, but then Src/Makefile will read bindir from environment +export bindir="${base_bindir}" + +EXTRA_OEMAKE = "-e MAKEFLAGS=" + +ALTERNATIVE_${PN} = "sh" +ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" +ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}" +ALTERNATIVE_PRIORITY = "100" + +export AUTOHEADER = "true" + +do_configure () { + gnu-configize --force ${S} + oe_runconf +} + +do_install_append () { + rm -fr ${D}/usr/share +} + +pkg_postinst_${PN} () { + touch $D${sysconfdir}/shells + grep -q "bin/zsh" $D${sysconfdir}/shells || echo /bin/zsh >> $D${sysconfdir}/shells + grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells +} + +FILES_${PN}-dbg += "\ + ${libdir}/${PN}/${PV}/${PN}/.debug/*.so \ + ${libdir}/${PN}/${PV}/${PN}/db/.debug/*.so \ + ${libdir}/${PN}/${PV}/${PN}/net/.debug/*.so \ +" |