zangrc 66d7739e3b libstemmer: upgrade 2.0.0 -> 2.1.0
0002-snowball-stemwords-do-link-with-LDFLAGS-set-by-build.patch
Removed since this is included in 2.1.0

Refresh the following patch:
0001-Build-so-lib.patch

-License-Update: Add the following Copyright
Copyright (c) 2013, Yoshiki Shibukawa
Copyright (c) 2006,2007,2009,2010,2011,2014-2019, Olly Betts

Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-01 07:49:06 -07:00

39 lines
1.0 KiB
BlitzBasic

SUMMARY = "Snowball compiler and stemming algorithms"
HOMEPAGE = "https://snowballstem.org/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=19139aaf3c8c8fa1ca6edd59c072fb9f"
DEPENDS_class-target = "${BPN}-native"
SRC_URI = "\
git://github.com/snowballstem/snowball.git \
file://0001-Build-so-lib.patch \
"
SRCREV = "4764395431c8f2a0b4fe18b816ab1fc966a45837"
S = "${WORKDIR}/git"
PV = "2.1.0"
LIBVER = "0.0.0"
inherit lib_package
BBCLASSEXTEND = "native"
do_compile_prepend_class-target() {
# use native tools
sed -i 's:./snowball :snowball :g' ${S}/GNUmakefile
}
do_install() {
install -d ${D}${bindir}
install -m 755 ${S}/snowball ${D}${bindir}
install -m 755 ${S}/stemwords ${D}${bindir}
install -d ${D}${libdir}
install -m 755 ${S}/libstemmer.so.${LIBVER} ${D}${libdir}/
ln -s libstemmer.so.${LIBVER} ${D}${libdir}/libstemmer.so.0
ln -s libstemmer.so.${LIBVER} ${D}${libdir}/libstemmer.so
install -d ${D}${includedir}
install -m 644 ${S}/include/*.h ${D}${includedir}
}