diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-28 12:38:19 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-31 12:58:31 +0100 |
commit | 72a1427f116cbb516aeced7931aedc891865bac7 (patch) | |
tree | 0d4747a0fdb2b1775b4ed30620151ad2b3e817e8 /meta-oe | |
parent | 048b1ea461c2d116b7e31161bae0dee1f9e06a7e (diff) | |
download | meta-openembedded-72a1427f116cbb516aeced7931aedc891865bac7.tar.gz |
vim: implement gvim, vim-tiny as PACKAGECONFIG
* only one of those should be built in sysroot, otherwise they were
overwritting files provided by other alternatives
* define PACKAGECONFIG options
* there are no RCONFLICTS/RREPLACES/RPROVIDES, because it depends on
selected PACKAGECONFIGs
* add PN to VIMDIR and use VIMDIR where undefined VIMVER was
(e.g. "${PN}${VIMVER}")
* move checksums from .inc to recipe
* vim/gvim/vim-tiny conflict is now fatal, with
http://patches.openembedded.org/patch/43105/
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-support/vim/gvim_7.2.446.bb | 14 | ||||
-rw-r--r-- | meta-oe/recipes-support/vim/vim-tiny_7.2.446.bb | 11 | ||||
-rw-r--r-- | meta-oe/recipes-support/vim/vim.inc | 47 | ||||
-rw-r--r-- | meta-oe/recipes-support/vim/vim_7.2.446.bb | 31 |
4 files changed, 30 insertions, 73 deletions
diff --git a/meta-oe/recipes-support/vim/gvim_7.2.446.bb b/meta-oe/recipes-support/vim/gvim_7.2.446.bb deleted file mode 100644 index fbc763abe..000000000 --- a/meta-oe/recipes-support/vim/gvim_7.2.446.bb +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | VIMGUI = "gtk2" | ||
2 | VIMX = "--with-x" | ||
3 | |||
4 | require vim_${PV}.bb | ||
5 | |||
6 | PR = "${INC_PR}.4" | ||
7 | |||
8 | DEPENDS += "gtk+ xt" | ||
9 | |||
10 | FILES_${PN} += "${datadir}/vim" | ||
11 | |||
12 | EXTRA_OECONF += "--enable-gtk2-test" | ||
13 | |||
14 | RREPLACES_${PN} = "vim vim-tiny" | ||
diff --git a/meta-oe/recipes-support/vim/vim-tiny_7.2.446.bb b/meta-oe/recipes-support/vim/vim-tiny_7.2.446.bb deleted file mode 100644 index d29b801cb..000000000 --- a/meta-oe/recipes-support/vim/vim-tiny_7.2.446.bb +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | VIMFEATURES = "tiny" | ||
2 | |||
3 | require vim_${PV}.bb | ||
4 | |||
5 | PR = "${INC_PR}.4" | ||
6 | |||
7 | RCONFLICTS_${PN} = "gvim vim" | ||
8 | |||
9 | PACKAGES =+ "${PN}-data" | ||
10 | |||
11 | FILES_${PN}-data = "${datadir}/vim" | ||
diff --git a/meta-oe/recipes-support/vim/vim.inc b/meta-oe/recipes-support/vim/vim.inc index 16ca58d4e..ca36bf142 100644 --- a/meta-oe/recipes-support/vim/vim.inc +++ b/meta-oe/recipes-support/vim/vim.inc | |||
@@ -7,17 +7,18 @@ LICENSE = "vim" | |||
7 | LIC_FILES_CHKSUM = "file://README.txt;md5=72c4840d07b65659b60b3fa405c7da36" | 7 | LIC_FILES_CHKSUM = "file://README.txt;md5=72c4840d07b65659b60b3fa405c7da36" |
8 | 8 | ||
9 | PV_MAJOR = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" | 9 | PV_MAJOR = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" |
10 | VIMDIR = "${@d.getVar('PV',1).split('.')[0]}${@d.getVar('PV',1).split('.')[1]}" | 10 | VIMDIR = "${PN}${@d.getVar('PV',1).split('.')[0]}${@d.getVar('PV',1).split('.')[1]}" |
11 | 11 | ||
12 | INC_PR = "r11" | 12 | INC_PR = "r12" |
13 | 13 | ||
14 | SRC_URI = " \ | 14 | SRC_URI = " \ |
15 | ftp://ftp.vim.org/pub/vim/unix/vim-${PV_MAJOR}.tar.bz2;name=vim${PV_MAJOR}tarbz2 \ | 15 | ftp://ftp.${PN}.org/pub/${PN}/unix/${PN}-${PV_MAJOR}.tar.bz2;name=${VIMDIR} \ |
16 | ftp://ftp.vim.org/pub/vim/extra/vim-${PV_MAJOR}-extra.tar.gz;name=vim${PV_MAJOR}extratargz \ | 16 | ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-extra.tar.gz;name=${VIMDIR}-extra \ |
17 | ftp://ftp.vim.org/pub/vim/extra/vim-${PV_MAJOR}-lang.tar.gz;name=vim${PV_MAJOR}langtargz \ | 17 | ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-lang.tar.gz;name=${VIMDIR}-lang \ |
18 | file://vimrc \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | S = "${WORKDIR}/vim${VIMDIR}/src" | 21 | S = "${WORKDIR}/${VIMDIR}/src" |
21 | 22 | ||
22 | inherit autotools update-alternatives | 23 | inherit autotools update-alternatives |
23 | 24 | ||
@@ -32,16 +33,14 @@ do_configure () { | |||
32 | touch auto/config.mk auto/config.h | 33 | touch auto/config.mk auto/config.h |
33 | } | 34 | } |
34 | 35 | ||
36 | #Available PACKAGECONFIG options are gtkgui, x11, tiny | ||
37 | PACKAGECONFIG ??= "" | ||
35 | 38 | ||
36 | 39 | PACKAGECONFIG[gtkgui] = "--enable-gtk2-test --enable-gui=gtk2,--enable-gui=no,gtk+," | |
37 | VIMFEATURES ?= "big" | 40 | PACKAGECONFIG[x11] = "--with-x,--without-x,xt," |
38 | VIMX ?= "--without-x" | 41 | PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," |
39 | VIMGUI ?= "no" | ||
40 | 42 | ||
41 | EXTRA_OECONF = " \ | 43 | EXTRA_OECONF = " \ |
42 | --enable-gui=${VIMGUI} \ | ||
43 | --with-features=${VIMFEATURES} \ | ||
44 | ${VIMX} \ | ||
45 | --disable-gpm \ | 44 | --disable-gpm \ |
46 | --disable-gtktest \ | 45 | --disable-gtktest \ |
47 | --disable-xim \ | 46 | --disable-xim \ |
@@ -59,24 +58,20 @@ EXTRA_OECONF = " \ | |||
59 | 58 | ||
60 | # Work around rpm picking up csh as a dep | 59 | # Work around rpm picking up csh as a dep |
61 | do_install_append() { | 60 | do_install_append() { |
62 | chmod -x ${D}${datadir}/vim/vim72/tools/vim132 | 61 | chmod -x ${D}${datadir}/${PN}/${VIMDIR}/tools/vim132 |
62 | install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/${PN} | ||
63 | } | 63 | } |
64 | 64 | ||
65 | PACKAGES =+ "vim-common vim-syntax vim-help vim-tutor" | 65 | PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-data" |
66 | FILES_vim-syntax = "${datadir}/vim/vim${VIMVER}/syntax" | 66 | FILES_${PN}-syntax = "${datadir}/${PN}/${VIMDIR}/syntax" |
67 | FILES_vim-help = "${datadir}/vim/vim${VIMVER}/doc" | 67 | FILES_${PN}-help = "${datadir}/${PN}/${VIMDIR}/doc" |
68 | FILES_vim-tutor = "${datadir}/vim/vim${VIMVER}/tutor ${bindir}/vimtutor" | 68 | FILES_${PN}-tutor = "${datadir}/${PN}/${VIMDIR}/tutor ${bindir}/${PN}tutor" |
69 | FILES_${PN}-vimrc = "${datadir}/${PN}/vimrc" | ||
70 | FILES_${PN}-data = "${datadir}/${PN}" | ||
69 | 71 | ||
70 | ALTERNATIVE_NAME = "vi" | 72 | ALTERNATIVE_NAME = "vi" |
71 | ALTERNATIVE_PATH = "${bindir}/vim" | 73 | ALTERNATIVE_PATH = "${bindir}/${PN}" |
72 | ALTERNATIVE_LINK = "${base_bindir}/vi" | 74 | ALTERNATIVE_LINK = "${base_bindir}/vi" |
73 | ALTERNATIVE_PRIORITY = "100" | 75 | ALTERNATIVE_PRIORITY = "100" |
74 | 76 | ||
75 | SRC_URI[vim7.2tarbz2.md5sum] = "f0901284b338e448bfd79ccca0041254" | ||
76 | SRC_URI[vim7.2tarbz2.sha256sum] = "914db0f2205ebd6f02878295ec2506036ea7500399db112c61a01491cd9a1d86" | ||
77 | SRC_URI[vim7.2langtargz.md5sum] = "d8884786979e0e520c112faf2e176f05" | ||
78 | SRC_URI[vim7.2langtargz.sha256sum] = "11607f539a4518b550bf1606b7d3a6f36c1ffdf566c058e7d94bced78034cd5b" | ||
79 | SRC_URI[vim7.2extratargz.md5sum] = "35e04482f07c57221c9a751aaa3b8dac" | ||
80 | SRC_URI[vim7.2extratargz.sha256sum] = "20894ac79672160bfc4f1d2f9f9775b34d944762d655307a91ca96d358faa04d" | ||
81 | |||
82 | PARALLEL_MAKE = "" | 77 | PARALLEL_MAKE = "" |
diff --git a/meta-oe/recipes-support/vim/vim_7.2.446.bb b/meta-oe/recipes-support/vim/vim_7.2.446.bb index 62d76d709..ef9f3c9f8 100644 --- a/meta-oe/recipes-support/vim/vim_7.2.446.bb +++ b/meta-oe/recipes-support/vim/vim_7.2.446.bb | |||
@@ -1,15 +1,6 @@ | |||
1 | # vim-tiny sets that too | 1 | require ${PN}.inc |
2 | VIMFEATURES ?= "big" | ||
3 | 2 | ||
4 | # GUI type - gvim recipe sets "gtk2" | 3 | PR = "${INC_PR}.0" |
5 | VIMGUI ?= "no" | ||
6 | |||
7 | # gvim recipes uses "--with-x" | ||
8 | VIMX ?= "--without-x" | ||
9 | |||
10 | require vim.inc | ||
11 | |||
12 | PR = "${INC_PR}.3" | ||
13 | 4 | ||
14 | # 001-446; 401-446 are not yet available online | 5 | # 001-446; 401-446 are not yet available online |
15 | SRC_URI += "http://ftp.vim.org/pub/vim/patches/7.2/7.2.001-100.gz;name=p001-100;apply=yes;patchdir=..;pnum=0" | 6 | SRC_URI += "http://ftp.vim.org/pub/vim/patches/7.2/7.2.001-100.gz;name=p001-100;apply=yes;patchdir=..;pnum=0" |
@@ -18,6 +9,13 @@ SRC_URI += "http://ftp.vim.org/pub/vim/patches/7.2/7.2.201-300.gz;name=p201-300; | |||
18 | SRC_URI += "http://ftp.vim.org/pub/vim/patches/7.2/7.2.301-400.gz;name=p301-400;apply=yes;patchdir=..;pnum=0" | 9 | SRC_URI += "http://ftp.vim.org/pub/vim/patches/7.2/7.2.301-400.gz;name=p301-400;apply=yes;patchdir=..;pnum=0" |
19 | SRC_URI += "file://401-446.diff;patchdir=..;pnum=0" | 10 | SRC_URI += "file://401-446.diff;patchdir=..;pnum=0" |
20 | 11 | ||
12 | SRC_URI[vim72.md5sum] = "f0901284b338e448bfd79ccca0041254" | ||
13 | SRC_URI[vim72.sha256sum] = "914db0f2205ebd6f02878295ec2506036ea7500399db112c61a01491cd9a1d86" | ||
14 | SRC_URI[vim72-lang.md5sum] = "d8884786979e0e520c112faf2e176f05" | ||
15 | SRC_URI[vim72-lang.sha256sum] = "11607f539a4518b550bf1606b7d3a6f36c1ffdf566c058e7d94bced78034cd5b" | ||
16 | SRC_URI[vim72-extra.md5sum] = "35e04482f07c57221c9a751aaa3b8dac" | ||
17 | SRC_URI[vim72-extra.sha256sum] = "20894ac79672160bfc4f1d2f9f9775b34d944762d655307a91ca96d358faa04d" | ||
18 | |||
21 | SRC_URI[p001-100.md5sum] = "ba91b19374cee90f71b8f4ab1d92dc0f" | 19 | SRC_URI[p001-100.md5sum] = "ba91b19374cee90f71b8f4ab1d92dc0f" |
22 | SRC_URI[p001-100.sha256sum] = "519f4fea460e4f7a737ea8006c0dc1684982f8372d1581fb963a5d58f8007f67" | 20 | SRC_URI[p001-100.sha256sum] = "519f4fea460e4f7a737ea8006c0dc1684982f8372d1581fb963a5d58f8007f67" |
23 | SRC_URI[p101-200.md5sum] = "b485233d360041d043c56cd99057dbff" | 21 | SRC_URI[p101-200.md5sum] = "b485233d360041d043c56cd99057dbff" |
@@ -28,14 +26,3 @@ SRC_URI[p301-400.md5sum] = "137b5821ff4a2266796d14d867be5f9f" | |||
28 | SRC_URI[p301-400.sha256sum] = "41f022ec829786a008685c0b00acf8be09525755a94a06236a4b879b1f84b5f4" | 26 | SRC_URI[p301-400.sha256sum] = "41f022ec829786a008685c0b00acf8be09525755a94a06236a4b879b1f84b5f4" |
29 | 27 | ||
30 | SRC_URI += "file://configure.in_remove_CC_quotes.patch;patchdir=.." | 28 | SRC_URI += "file://configure.in_remove_CC_quotes.patch;patchdir=.." |
31 | SRC_URI += "file://vimrc" | ||
32 | |||
33 | do_install_append() { | ||
34 | install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/vim | ||
35 | } | ||
36 | |||
37 | RCONFLICTS_${PN} = "gvim" | ||
38 | RREPLACES_${PN} = "vim-tiny" | ||
39 | PACKAGES =+ "${PN}-vimrc" | ||
40 | |||
41 | FILES_${PN}-vimrc = "${datadir}/vim/vimrc" | ||