diff options
| author | Markus Volk <f_l_k@t-online.de> | 2022-12-19 22:09:55 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-12-23 08:52:22 -0800 |
| commit | d2ad9efcd7d667276731082ecc4a9a6616c2febd (patch) | |
| tree | 7b3b223ae9c3cd719066074728c1b9403663a913 /meta-gnome/recipes-support | |
| parent | 4a3bf82ff16e5af4548cbc7a393ec5d1101711b2 (diff) | |
| download | meta-openembedded-d2ad9efcd7d667276731082ecc4a9a6616c2febd.tar.gz | |
libstemmer: move recipe to meta-oe
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-gnome/recipes-support')
| -rw-r--r-- | meta-gnome/recipes-support/libstemmer/libstemmer/0001-Build-so-lib.patch | 63 | ||||
| -rw-r--r-- | meta-gnome/recipes-support/libstemmer/libstemmer_git.bb | 38 |
2 files changed, 0 insertions, 101 deletions
diff --git a/meta-gnome/recipes-support/libstemmer/libstemmer/0001-Build-so-lib.patch b/meta-gnome/recipes-support/libstemmer/libstemmer/0001-Build-so-lib.patch deleted file mode 100644 index 37c5c3dc02..0000000000 --- a/meta-gnome/recipes-support/libstemmer/libstemmer/0001-Build-so-lib.patch +++ /dev/null | |||
| @@ -1,63 +0,0 @@ | |||
| 1 | From eacc9e9c62a3857ce1e2e24b81fc22d8ae91f422 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Thu, 9 May 2019 22:06:48 +0200 | ||
| 4 | Subject: [PATCH] Build so-lib | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Stolen from [1] | ||
| 10 | |||
| 11 | [1] https://aur.archlinux.org/cgit/aur.git/commit/dynamiclib.patch?h=snowball-git&id=a9cbf4f42f3661e4b8f791cd4374233821716ea1 | ||
| 12 | |||
| 13 | Upstream-Status: Pending | ||
| 14 | |||
| 15 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 16 | --- | ||
| 17 | GNUmakefile | 7 +++++-- | ||
| 18 | libstemmer/symbol.map | 6 ++++++ | ||
| 19 | 2 files changed, 11 insertions(+), 2 deletions(-) | ||
| 20 | create mode 100644 libstemmer/symbol.map | ||
| 21 | |||
| 22 | diff --git a/GNUmakefile b/GNUmakefile | ||
| 23 | index cbd6ff7..a85230b 100644 | ||
| 24 | --- a/GNUmakefile | ||
| 25 | +++ b/GNUmakefile | ||
| 26 | @@ -162,10 +162,10 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.o) | ||
| 27 | JAVA_CLASSES = $(JAVA_SOURCES:.java=.class) | ||
| 28 | JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class) | ||
| 29 | |||
| 30 | -CFLAGS=-O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations | ||
| 31 | +CFLAGS=-O2 -fPIC -W -Wall -Wmissing-prototypes -Wmissing-declarations | ||
| 32 | CPPFLAGS=-Iinclude | ||
| 33 | |||
| 34 | -all: snowball libstemmer.o stemwords $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS) | ||
| 35 | +all: snowball libstemmer.o libstemmer.so stemwords $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS) | ||
| 36 | |||
| 37 | clean: | ||
| 38 | rm -f $(COMPILER_OBJECTS) $(RUNTIME_OBJECTS) \ | ||
| 39 | @@ -212,6 +212,9 @@ libstemmer/libstemmer.o: libstemmer/modules.h $(C_LIB_HEADERS) | ||
| 40 | libstemmer.o: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS) | ||
| 41 | $(AR) -cru $@ $^ | ||
| 42 | |||
| 43 | +libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS) | ||
| 44 | + $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,libstemmer.so.0,-version-script,libstemmer/symbol.map -o $@.0.0.0 $^ | ||
| 45 | + | ||
| 46 | stemwords: $(STEMWORDS_OBJECTS) libstemmer.o | ||
| 47 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ | ||
| 48 | |||
| 49 | diff --git a/libstemmer/symbol.map b/libstemmer/symbol.map | ||
| 50 | new file mode 100644 | ||
| 51 | index 0000000..7a3d423 | ||
| 52 | --- /dev/null | ||
| 53 | +++ b/libstemmer/symbol.map | ||
| 54 | @@ -0,0 +1,6 @@ | ||
| 55 | +SB_STEMMER_0 { | ||
| 56 | + global: | ||
| 57 | + sb_stemmer_*; | ||
| 58 | + local: | ||
| 59 | + *; | ||
| 60 | +}; | ||
| 61 | -- | ||
| 62 | 2.20.1 | ||
| 63 | |||
diff --git a/meta-gnome/recipes-support/libstemmer/libstemmer_git.bb b/meta-gnome/recipes-support/libstemmer/libstemmer_git.bb deleted file mode 100644 index 7f0706e207..0000000000 --- a/meta-gnome/recipes-support/libstemmer/libstemmer_git.bb +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | SUMMARY = "Snowball compiler and stemming algorithms" | ||
| 2 | HOMEPAGE = "https://snowballstem.org/" | ||
| 3 | LICENSE = "BSD-3-Clause" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=19139aaf3c8c8fa1ca6edd59c072fb9f" | ||
| 5 | |||
| 6 | DEPENDS:class-target = "${BPN}-native" | ||
| 7 | |||
| 8 | SRC_URI = "\ | ||
| 9 | git://github.com/snowballstem/snowball.git;branch=master;protocol=https \ | ||
| 10 | file://0001-Build-so-lib.patch \ | ||
| 11 | " | ||
| 12 | SRCREV = "4764395431c8f2a0b4fe18b816ab1fc966a45837" | ||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | PV = "2.1.0" | ||
| 15 | LIBVER = "0.0.0" | ||
| 16 | |||
| 17 | inherit lib_package | ||
| 18 | |||
| 19 | BBCLASSEXTEND = "native" | ||
| 20 | |||
| 21 | do_compile:prepend:class-target() { | ||
| 22 | # use native tools | ||
| 23 | sed -i 's:./snowball :snowball :g' ${S}/GNUmakefile | ||
| 24 | } | ||
| 25 | |||
| 26 | do_install() { | ||
| 27 | install -d ${D}${bindir} | ||
| 28 | install -m 755 ${S}/snowball ${D}${bindir} | ||
| 29 | install -m 755 ${S}/stemwords ${D}${bindir} | ||
| 30 | |||
| 31 | install -d ${D}${libdir} | ||
| 32 | install -m 755 ${S}/libstemmer.so.${LIBVER} ${D}${libdir}/ | ||
| 33 | ln -s libstemmer.so.${LIBVER} ${D}${libdir}/libstemmer.so.0 | ||
| 34 | ln -s libstemmer.so.${LIBVER} ${D}${libdir}/libstemmer.so | ||
| 35 | |||
| 36 | install -d ${D}${includedir} | ||
| 37 | install -m 644 ${S}/include/*.h ${D}${includedir} | ||
| 38 | } | ||
