From ae50d9a9cd8d78cf623e41ee95dd626f9de69059 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti de Araujo Date: Mon, 9 Nov 2009 18:58:01 -0300 Subject: [PATCH 104/118] hunspell: adding recipe The hunspell package is needed for mozilla. Signed-off-by: Eduardo Valentin Signed-off-by: Ricardo Salveti de Araujo --- recipes/hunspell/hunspell-lang_1.2.6.bb | 17 +++++++++++++++++ recipes/hunspell/hunspell-native_1.2.6.bb | 5 +++++ recipes/hunspell/hunspell_1.2.6.bb | 17 +++++++++++++++++ 3 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 recipes/hunspell/hunspell-lang_1.2.6.bb create mode 100644 recipes/hunspell/hunspell-native_1.2.6.bb create mode 100644 recipes/hunspell/hunspell_1.2.6.bb diff --git a/recipes/hunspell/hunspell-lang_1.2.6.bb b/recipes/hunspell/hunspell-lang_1.2.6.bb new file mode 100644 index 0000000..7c6b853 --- /dev/null +++ b/recipes/hunspell/hunspell-lang_1.2.6.bb @@ -0,0 +1,17 @@ +DEPENDS = "hunspell-native" + +do_configure() { + cd ${S} + DESTDIR=${D} ./configure --vars HUNSPELL=${STAGING_BINDIR_NATIVE}/hunspell +} + +do_compile() { + sed -i -e "s|dictdir.*lib|dictdir = ${libdir}|" Makefile + sed -i -e "s|datadir.*lib|datadir = ${libdir}|" Makefile + oe_runmake +} + +do_install() { + unset datadir + oe_runmake install +} diff --git a/recipes/hunspell/hunspell-native_1.2.6.bb b/recipes/hunspell/hunspell-native_1.2.6.bb new file mode 100644 index 0000000..feb5ba0 --- /dev/null +++ b/recipes/hunspell/hunspell-native_1.2.6.bb @@ -0,0 +1,5 @@ +require hunspell_${PV}.bb + +inherit native + +S = "${WORKDIR}/hunspell-${PV}" diff --git a/recipes/hunspell/hunspell_1.2.6.bb b/recipes/hunspell/hunspell_1.2.6.bb new file mode 100644 index 0000000..6330c24 --- /dev/null +++ b/recipes/hunspell/hunspell_1.2.6.bb @@ -0,0 +1,17 @@ +SRC_URI = "http://downloads.sourceforge.net/hunspell/hunspell-${PV}.tar.gz" +DESCRIPTION = "Hunspell spell-checker and morphological analyzer (program)" +SECTION = "console/utils" +LICENSE="LGPL" + +PACKAGES += "libhunspell libhunspell-dev" + +FILES_${PN}-dbg += "${libdir}/hunspell-${PV}/.debu*" +FILES_${PN} = "${bindir}/hunspell ${bindir}/analyze ${bindir}/chmorph ${bindir}/hunzip ${bindir}/hzip ${bindir}/*munch" +FILES_libhunspell = "${libdir}/libhunspell*.so.*" +FILES_libhunspell-dev = "${libdir}/libhunspell* ${includedir}/hunspell ${includedir}/*munch*.h" + +inherit autotools + +do_stage() { + autotools_stage_all +} -- 1.6.3.3