diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/elvis | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/elvis')
-rw-r--r-- | recipes/elvis/elvis-tiny_2.2.0.bb | 19 | ||||
-rw-r--r-- | recipes/elvis/elvis_2.2.0.bb | 62 |
2 files changed, 81 insertions, 0 deletions
diff --git a/recipes/elvis/elvis-tiny_2.2.0.bb b/recipes/elvis/elvis-tiny_2.2.0.bb new file mode 100644 index 0000000000..a5e42bf07c --- /dev/null +++ b/recipes/elvis/elvis-tiny_2.2.0.bb @@ -0,0 +1,19 @@ +require elvis_${PV}.bb + +do_configure_append() { + for i in DISPLAY_MAN DISPLAY_HTML DISPLAY_TEX \ + PROTOCOL_HTTP PROTOCOL_FTP FEATURE_ARRAY \ + FEATURE_BROWSE FEATURE_FOLD FEATURE_INCSEARCH \ + FEATURE_LPR FEATURE_MAKE FEATURE_MAPDB \ + FEATURE_MKEXRC FEATURE_RCSID FEATURE_SHOWTAG \ + FEATURE_SPELL FEATURE_TEXTOBJ; do + sed -i -e "s/^#define[ ]*${i}/#undef ${i}/g" config.h + done +} + +do_install_append() { + sed -i -e "s/^source\(.* .*elvis.clr.*\)/\"source\1/" ${D}/etc/elvis/elvis.ini + sed -i -e "s/^set\(.*lptype.*\)/\"set\1/" ${D}/etc/elvis/elvis.ini +} + +FILES_${PN} = "/usr/bin/elvis /etc/elvis" diff --git a/recipes/elvis/elvis_2.2.0.bb b/recipes/elvis/elvis_2.2.0.bb new file mode 100644 index 0000000000..c0f92627bf --- /dev/null +++ b/recipes/elvis/elvis_2.2.0.bb @@ -0,0 +1,62 @@ +DESCRIPTION = "A vi clone" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "Perl Clarified Artistic License" +DEPENDS = "ncurses" + +#SRC_URI = "ftp://ftp.cs.pdx.edu/pub/elvis/elvis-2.2_0.tar.gz" +SRC_URI = "http://www.fh-wedel.de/pub/elvis/elvis-2.2_0.tar.gz" +S = "${WORKDIR}/elvis-2.2_0" + +CFLAGS_prepend = " -I. -Iosunix -L${STAGING_LIBDIR} " + +do_configure() { + ./configure --without-x --without-gnome --datadir=/etc/elvis --bindir=/usr/bin linux +} + +do_compile() { + ( + unset CC LD CXX CCLD CFLAGS LDFLAGS CPPFLAGS + oe_runmake 'CC=${BUILD_CC}' elvtags + rm *.o + mv elvtags elvtags-native + ) || exit 1 + oe_runmake all + mv elvtags elvtags-target + mv elvtags-native elvtags +} + +do_install() { + install -d -m 755 ${D}/usr + install -d -m 755 ${D}/etc/elvis + oe_runmake PREFIX=${D} \ + BINDIR=${D}/usr/bin \ + DATADIR=${D}/usr/share/elvis \ + DOCDIR=${D}/usr/share/elvis/manual \ + install + install -m 755 elvtags-target ${D}/usr/bin/elvtags + cd ${D}/usr/share/elvis + for i in ali arf awf brf bwf clr ini msg ps spe syn; do + mv elvis."$i" ${D}/etc/elvis + done + rm elvis.x11 + rm elvis.rc + rm -rf ${D}/usr/share/elvis/themes + rm -rf ${D}/usr/share/elvis/stubs + rm -rf ${D}/usr/share/elvis/icons +} + +pkg_postinst_${PN}() { + update-alternatives --install /bin/vi vi /usr/bin/elvis 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove vi /usr/bin/elvis +} + +PACKAGES = "${PN}-dbg ${PN} ${PN}-doc ${PN}-tools" +FILES_${PN}-doc = "/usr/share/elvis/manual /usr/share/elvis/README" +FILES_${PN}-tools = "/usr/bin/elvfmt /usr/bin/elvtags /usr/bin/ref" +FILES_${PN} = "/usr/bin/elvis /etc/elvis /usr/share/elvis/scripts /usr/share/elvis/README /usr/share/elvis/*.*" + + |