diff options
author | Martin Ertsaas <mertsas@cisco.com> | 2012-09-20 07:01:44 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-09-24 10:01:24 +0200 |
commit | 4cfe58d3ce694ee2951a0ed0e855c6e4dbca2dc2 (patch) | |
tree | d8327e5749451df8254528416bc72a0a727387f6 /meta-oe/recipes-extended/zsh/zsh.inc | |
parent | c988ce5518967d3acd0edd5d71a44963f08dae7a (diff) | |
download | meta-openembedded-contrib-4cfe58d3ce694ee2951a0ed0e855c6e4dbca2dc2.tar.gz |
zsh: Change from 4.3.17 to 5.0.0, which is the latest stable release. Also change the mirror from the zsh ftp server, which is really slow and unstable, to a sourceforce mirror.
The reason for removing the 4.3.17 recipe is that it used the ftp mirror, which
has removed the 4.3.17 tarbal used.
Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-extended/zsh/zsh.inc')
-rw-r--r-- | meta-oe/recipes-extended/zsh/zsh.inc | 55 |
1 files changed, 55 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 0000000000..cacce9140c --- /dev/null +++ b/meta-oe/recipes-extended/zsh/zsh.inc @@ -0,0 +1,55 @@ +DESCRIPTION = "UNIX Shell similar to the Korn shell" +HOMEPAGE="http://www.zsh.org" +SECTION = "base/shell" + +PR = "r0" + +LICENSE = "ZSH" +LIC_FILES_CHKSUM = "file://LICENCE;md5=ad234d4b46db63491c4a9789da4fb341" + +DEPENDS = "ncurses bison-native" + +SRC_URI = "http://downloads.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz" + +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 \ + " + +ALTERNATIVE_${PN} = "sh" +ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" +ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}" +ALTERNATIVE_PRIORITY = "100" + +export AUTOHEADER = "true" + +do_configure () { + 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 \ + " |