vim 6.4: reorganization and split into more packages
authorMarcin Juszkiewicz <hrw@openembedded.org>
Mon, 31 Oct 2005 22:41:11 +0000 (22:41 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 31 Oct 2005 22:41:11 +0000 (22:41 +0000)
- moved common part into vim.inc
- new packages:
  - vim-syntax with /usr/share/vim/vimXX/syntax/ (2.8M)
  - vim-help with "online" help (4.1M)
  - vim-tutor (0.6M)
More work can be done on vim but this is good step.

packages/vim/vim-tiny_6.4.bb
packages/vim/vim.inc [new file with mode: 0644]
packages/vim/vim_6.4.bb

index 897e40d..16f6069 100644 (file)
@@ -1,12 +1,9 @@
-SECTION = "console/utils"
 include vim_${PV}.bb
+
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/vim-${PV}"
-LICENSE = "vim"
+
 EXTRA_OECONF = "--enable-gui=none --disable-gtktest \
                --disable-xim --with-features=tiny \
                --disable-gpm --without-x --disable-netbeans \
                --with-tlib=ncurses"
 
-FILES_${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir}/lib*.so.* \
-              ${libdir}/*/ ${sysconfdir} ${sharedstatedir} ${localstatedir} \
-              /bin /sbin /lib/*/ /lib/*.so* ${datadir}/vim"
diff --git a/packages/vim/vim.inc b/packages/vim/vim.inc
new file mode 100644 (file)
index 0000000..f675ce8
--- /dev/null
@@ -0,0 +1,30 @@
+DESCRIPTION = "Vim is an almost fully-compatible version of the Unix editor Vi."
+SECTION = "console/utils"
+DEPENDS = "ncurses"
+LICENSE = "vim"
+
+SRC_URI = "ftp://ftp.vim.org/pub/vim/unix/vim-${PV}.tar.bz2 \
+          file://configure.patch;patch=1"
+
+S = "${WORKDIR}/vim${VIMVER}/src"
+
+inherit autotools
+
+do_configure () {
+       rm -f auto/*
+       touch auto/config.mk
+       aclocal
+        autoconf
+       oe_runconf
+       touch auto/configure
+       touch auto/config.mk auto/config.h
+}
+
+PACKAGES =+ "vim-common vim-syntax vim-help vim-tutor"
+FILES_vim-syntax = "${datadir}/vim/vim${VIMVER}/syntax"
+FILES_vim-help = "${datadir}/vim/vim${VIMVER}/doc"
+FILES_vim-tutor = "${datadir}/vim/vim${VIMVER}/tutor ${bindir}/vimtutor"
+
+#FILES_${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir}/lib*.so.* \
+#             ${libdir}/*/ ${sysconfdir} ${sharedstatedir} ${localstatedir} \
+#             /bin /sbin /lib/*/ /lib/*.so* ${datadir}/vim"
index 1740a46..b53c752 100644 (file)
@@ -1,28 +1,9 @@
-DESCRIPTION = "Vim is an almost fully-compatible version of the Unix editor Vi."
-SECTION = "console/utils"
-DEPENDS = "ncurses"
-LICENSE = "vim"
+VIMVER = "64"
 
-SRC_URI = "ftp://ftp.vim.org/pub/vim/unix/vim-${PV}.tar.bz2 \
-          file://configure.patch;patch=1"
-
-S = "${WORKDIR}/vim64/src"
-
-inherit autotools
+include vim.inc
 
 EXTRA_OECONF = "--enable-gui=none --disable-gtktest \
                --disable-xim --with-features=normal \
                --disable-gpm --without-x --disable-netbeans \
                --with-tlib=ncurses"
 
-do_configure () {
-       rm -f auto/*
-       touch auto/config.mk
-       aclocal
-        autoconf
-       oe_runconf
-       touch auto/configure
-       touch auto/config.mk auto/config.h
-}
-
-#FILES_${PN}-doc=${datadir}/vim/vim64/doc ${mandir} ${infodir}