summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2016-02-23 17:24:20 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2016-02-25 17:47:28 +0100
commit3ba313d33eebbbddea512a2c8e97d4c5e320dee4 (patch)
tree4bf7e79207d571b56d4a32998541c48b2f7736a9
parent41198c93844ddefabc80bcafb248e40b33b52c9f (diff)
downloadmeta-openembedded-3ba313d33eebbbddea512a2c8e97d4c5e320dee4.tar.gz
zsh: fold .inc into .bb
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-extended/zsh/zsh.inc57
-rw-r--r--meta-oe/recipes-extended/zsh/zsh_5.0.5.bb58
2 files changed, 56 insertions, 59 deletions
diff --git a/meta-oe/recipes-extended/zsh/zsh.inc b/meta-oe/recipes-extended/zsh/zsh.inc
deleted file mode 100644
index b8fce807aa..0000000000
--- a/meta-oe/recipes-extended/zsh/zsh.inc
+++ /dev/null
@@ -1,57 +0,0 @@
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
11DEPENDS = "ncurses bison-native"
12
13SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz"
14
15inherit autotools gettext update-alternatives
16
17EXTRA_OECONF = " \
18 --bindir=${base_bindir} \
19 --enable-etcdir=${sysconfdir} \
20 --enable-fndir=${datadir}/${PN}/${PV}/functions \
21 --enable-site-fndir=${datadir}/${PN}/site-functions \
22 --with-term-lib='ncursesw ncurses' \
23 --with-tcsetpgrp \
24 --enable-cap \
25 --enable-multibyte \
26 --disable-gdbm \
27 --disable-dynamic \
28 zsh_cv_shared_environ=yes \
29"
30
31ALTERNATIVE_${PN} = "sh"
32ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
33ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
34ALTERNATIVE_PRIORITY = "100"
35
36export AUTOHEADER = "true"
37
38do_configure () {
39 gnu-configize --force ${S}
40 oe_runconf
41}
42
43do_install_append () {
44 rm -fr ${D}/usr/share
45}
46
47pkg_postinst_${PN} () {
48 touch $D${sysconfdir}/shells
49 grep -q "bin/zsh" $D${sysconfdir}/shells || echo /bin/zsh >> $D${sysconfdir}/shells
50 grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells
51}
52
53FILES_${PN}-dbg += "\
54 ${libdir}/${PN}/${PV}/${PN}/.debug/*.so \
55 ${libdir}/${PN}/${PV}/${PN}/db/.debug/*.so \
56 ${libdir}/${PN}/${PV}/${PN}/net/.debug/*.so \
57"
diff --git a/meta-oe/recipes-extended/zsh/zsh_5.0.5.bb b/meta-oe/recipes-extended/zsh/zsh_5.0.5.bb
index a7170dca87..658f3d9984 100644
--- a/meta-oe/recipes-extended/zsh/zsh_5.0.5.bb
+++ b/meta-oe/recipes-extended/zsh/zsh_5.0.5.bb
@@ -1,5 +1,59 @@
1require zsh.inc 1SUMMARY = "UNIX Shell similar to the Korn shell"
2DEPENDS += "libcap libpcre gdbm groff-native" 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"
3 7
8LICENSE = "zsh"
9LIC_FILES_CHKSUM = "file://LICENCE;md5=b7bc853894664be455a922db9805288e"
10
11DEPENDS = "ncurses bison-native libcap libpcre gdbm groff-native"
12
13SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz"
4SRC_URI[md5sum] = "6fb0e3e52a0f8de5ca63138391b81ce0" 14SRC_URI[md5sum] = "6fb0e3e52a0f8de5ca63138391b81ce0"
5SRC_URI[sha256sum] = "b35cf19e4a6ba39fd03c6372b8a8760a491cc2e2e4aba3d15023ff291c2894b4" 15SRC_URI[sha256sum] = "b35cf19e4a6ba39fd03c6372b8a8760a491cc2e2e4aba3d15023ff291c2894b4"
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 ${S}
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"