diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-libs/snowball-stemmer | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-libs/snowball-stemmer')
9 files changed, 0 insertions, 365 deletions
diff --git a/dev-libs/snowball-stemmer/Manifest b/dev-libs/snowball-stemmer/Manifest deleted file mode 100644 index 0b302fb52095..000000000000 --- a/dev-libs/snowball-stemmer/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -DIST snowball-data-0703f1d6a21802c3ff00c2c8b31bd255b74b2aec.tar.gz 33063873 BLAKE2B d4222f2dbf681c670017596c2510ca389a33c736e2b4deeda3f33559e9fdda7c86bd528f4b56fc124ef5c08818739576ef28b93b326505b6ad77259c4b638a4c SHA512 a5b3eb0d73dbefd243e6f5964071c83823e4b367b5a24a660aadffe6bcd3c2e855d5cc5edcd382a88e0edd270a7576388a04fb9141ae888776824c5a74b2beef -DIST snowball-data-381b447563f9bef87b218ebbedde3159afdc3032.tar.gz 33898875 BLAKE2B ede691762af2505a5fdd9973c5e1f6ecf9cd9177830f1d831aa0e98b98682223bc0d308c54aa21316df467dfc598959dcf056e6270c25ac7544ebe480be3ff49 SHA512 d0ec59ab04981c67a66e91a4fe9762218cba996259e1fee0362e41f32623208c2b80f161b0198ad237cfec206b5005feb4c555ef11473e0059c0c1a870207016 -DIST snowball-data-39dde6129dfc7c65520704ad159d486396e4dbc5.tar.gz 35290710 BLAKE2B 65182a6044200161eee080080c7d8df0c093f010ed9977ec4e645ed128c16feb30dc86d03532759543985469dcc2b672ba535a5337ed0604d87371a19cf4e340 SHA512 4d4ca60953389320c884713356810535d2901fc16b1674fe0a6056a7d4ee25af0493119ace38d3fc24d6db0f81a660eeabff3c36698d4ad481d65786b83aba85 -DIST snowball-stemmer-2.2.0.tar.gz 223846 BLAKE2B ac06a603ab21dfe5508c1a51419568c15d61ad079a3cded98ca6a47716f4119e480b109756a107da1e6c9994062073cbfb29ac4feb3e5e4ffab6feb4db2b9930 SHA512 02c43313de9de2518ea51cfb11f1c29145fc046c7838329bfdefd70b604009ad44b6db8175c25b0db31f03db30a6aec5857aa35775a9c204ec976df9cae62957 -DIST snowball-stemmer-3.0.1.tar.gz 256065 BLAKE2B 4819083476d26f58f850f813db219734bfba6a30e6fdaefd97e54fdccd712462f6b2a773740456753e5be9569104cbf26f6804cb0d398461579fbe52fdb5bf64 SHA512 849bd5885b3dab23151d310043e2803a5f1f2792946cd91f6759cc3c56c9057a0d9f076d0544fe1b619d0a9af501ef13a78ee15cd9c7e3680eca14ac2e113953 -DIST snowball-stemmer-3.1.0.tar.gz 351600 BLAKE2B 37861b478b26e5d182660bac58f6d822bc77e108c6ff0eebcf484c66e40071df831435b873aa614805e51294ea2b2207a366b78de0b91b8f85de7a8765400fac SHA512 07ab68f726063a0655d8c8d98032281a3aef8e2bdbc2f30654ca770c21b7a650775912ebaeb641960653acf53bd4228074793e35aaa78550c614c238f3fe1d8c diff --git a/dev-libs/snowball-stemmer/files/snowball-stemmer-2.2.0-shared-library.patch b/dev-libs/snowball-stemmer/files/snowball-stemmer-2.2.0-shared-library.patch deleted file mode 100644 index 4baa2281216c..000000000000 --- a/dev-libs/snowball-stemmer/files/snowball-stemmer-2.2.0-shared-library.patch +++ /dev/null @@ -1,59 +0,0 @@ -This is based on a patch taken from alpinelinux, however, duplicated -libstemmer.o and stemwords targets were removed and the patch was -rebased on top of v2.2.0 tag. - -Created shared library contains a lot of relocations, which slow down loading. -It is known issue and probably the main reason why upstream does not support -shared library yet [1]. - -[1] https://github.com/snowballstem/snowball/issues/34#issuecomment-203200078 - -Alpinelinux-patch: https://git.alpinelinux.org/aports/tree/community/snowball/libstemmer-library.patch?id=28f9d9e192876c43fd96bc5856cd9d8a50dd49c0 -Upstream-issue: https://github.com/snowballstem/snowball/issues/34 - -diff --git a/GNUmakefile b/GNUmakefile -index 98eb1fa..9b539ec 100644 ---- a/GNUmakefile -+++ b/GNUmakefile -@@ -4,6 +4,8 @@ - # which hard-code it. - SNOWBALL_VERSION = 2.2.0 - -+MAJOR_VERSION := $(shell echo $(SNOWBALL_VERSION) | cut -d. -f1) -+ - ifeq ($(OS),Windows_NT) - EXEEXT = .exe - endif -@@ -170,12 +172,17 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.o) - JAVA_CLASSES = $(JAVA_SOURCES:.java=.class) - JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class) - --CFLAGS=-O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations --CPPFLAGS= -+CFLAGS+=-fPIC -W -Wall -Wmissing-prototypes -Wmissing-declarations -+CPPFLAGS+= - - INCLUDES=-Iinclude - --all: snowball$(EXEEXT) libstemmer.a stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS) -+all: snowball$(EXEEXT) libstemmer.a libstemmer.so stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS) -+ -+libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS) -+ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,$@.$(MAJOR_VERSION),-version-script,libstemmer/symbol.map -o $@.$(SNOWBALL_VERSION) $^ -+ ln -s $@.$(SNOWBALL_VERSION) $@.$(MAJOR_VERSION) -+ ln -s $@.$(SNOWBALL_VERSION) $@ - - algorithms.mk: libstemmer/mkalgorithms.pl libstemmer/modules.txt - libstemmer/mkalgorithms.pl algorithms.mk libstemmer/modules.txt -diff --git a/libstemmer/symbol.map b/libstemmer/symbol.map -new file mode 100644 -index 0000000..7a3d423 ---- /dev/null -+++ b/libstemmer/symbol.map -@@ -0,0 +1,6 @@ -+SB_STEMMER_0 { -+ global: -+ sb_stemmer_*; -+ local: -+ *; -+}; diff --git a/dev-libs/snowball-stemmer/files/snowball-stemmer-3.0.1-shared-library.patch b/dev-libs/snowball-stemmer/files/snowball-stemmer-3.0.1-shared-library.patch deleted file mode 100644 index 223c69eb39ec..000000000000 --- a/dev-libs/snowball-stemmer/files/snowball-stemmer-3.0.1-shared-library.patch +++ /dev/null @@ -1,59 +0,0 @@ -This is based on a patch taken from alpinelinux, however, duplicated -libstemmer.o and stemwords targets were removed and the patch was -rebased on top of v3.0.1 tag. - -Created shared library contains a lot of relocations, which slow down loading. -It is known issue and probably the main reason why upstream does not support -shared library yet [1]. - -[1] https://github.com/snowballstem/snowball/issues/34#issuecomment-203200078 - -Alpinelinux-patch: https://git.alpinelinux.org/aports/tree/community/snowball/libstemmer-library.patch?id=28f9d9e192876c43fd96bc5856cd9d8a50dd49c0 -Upstream-issue: https://github.com/snowballstem/snowball/issues/34 - -diff --git a/GNUmakefile b/GNUmakefile -index 98eb1fa..9b539ec 100644 ---- a/GNUmakefile -+++ b/GNUmakefile -@@ -4,6 +4,8 @@ - # which hard-code it. - SNOWBALL_VERSION = 2.2.0 - -+MAJOR_VERSION := $(shell echo $(SNOWBALL_VERSION) | cut -d. -f1) -+ - ifeq ($(OS),Windows_NT) - EXEEXT = .exe - endif -@@ -170,12 +172,17 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.o) - JAVA_CLASSES = $(JAVA_SOURCES:.java=.class) - JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class) - --CFLAGS=-g -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations -Wshadow $(WERROR) --CPPFLAGS= -+CFLAGS+=-fPIC -W -Wall -Wmissing-prototypes -Wmissing-declarations -Wshadow -+CPPFLAGS+= - - INCLUDES=-Iinclude - --all: snowball$(EXEEXT) libstemmer.a stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS) -+all: snowball$(EXEEXT) libstemmer.a libstemmer.so stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS) -+ -+libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS) -+ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,$@.$(MAJOR_VERSION),-version-script,libstemmer/symbol.map -o $@.$(SNOWBALL_VERSION) $^ -+ ln -s $@.$(SNOWBALL_VERSION) $@.$(MAJOR_VERSION) -+ ln -s $@.$(SNOWBALL_VERSION) $@ - - algorithms.mk: libstemmer/mkalgorithms.pl libstemmer/modules.txt - libstemmer/mkalgorithms.pl algorithms.mk libstemmer/modules.txt -diff --git a/libstemmer/symbol.map b/libstemmer/symbol.map -new file mode 100644 -index 0000000..7a3d423 ---- /dev/null -+++ b/libstemmer/symbol.map -@@ -0,0 +1,6 @@ -+SB_STEMMER_0 { -+ global: -+ sb_stemmer_*; -+ local: -+ *; -+}; diff --git a/dev-libs/snowball-stemmer/files/snowball-stemmer-3.1.0-fix_segfault.patch b/dev-libs/snowball-stemmer/files/snowball-stemmer-3.1.0-fix_segfault.patch deleted file mode 100644 index c5ace073042c..000000000000 --- a/dev-libs/snowball-stemmer/files/snowball-stemmer-3.1.0-fix_segfault.patch +++ /dev/null @@ -1,18 +0,0 @@ -PR merged https://github.com/snowballstem/snowball/pull/287.patch -From ed8dead327ae76d5215b60fc6b120c458b8d4f06 Mon Sep 17 00:00:00 2001 -From: Jerry James <loganjerry@gmail.com> -Date: Fri, 22 May 2026 10:09:35 -0600 -Subject: [PATCH] Avoid a segfault in the analyser - -The errors/string-omitted test segfaults without this ---- a/compiler/analyser.c -+++ b/compiler/analyser.c -@@ -1393,7 +1393,7 @@ static struct node * read_C(struct analyser * a) { - struct node * n = new_string_command(a, token); - if (n->name) { - n->name->value_used = true; -- } else if (SIZE(n->literalstring) == 0) { -+ } else if (n->literalstring == NULL || SIZE(n->literalstring) == 0) { - switch (token) { - case c_insert: - case c_attach: diff --git a/dev-libs/snowball-stemmer/files/snowball-stemmer-3.1.0-public_symbols.patch b/dev-libs/snowball-stemmer/files/snowball-stemmer-3.1.0-public_symbols.patch deleted file mode 100644 index bcca31bed8f0..000000000000 --- a/dev-libs/snowball-stemmer/files/snowball-stemmer-3.1.0-public_symbols.patch +++ /dev/null @@ -1,10 +0,0 @@ -# Shared-library: export only public sb_stemmer_* symbols (matching libstemmer.h) ---- /dev/null -+++ b/libstemmer/symbol.map -@@ -0,0 +1,6 @@ -+SB_STEMMER_0 { -+ global: -+ sb_stemmer_*; -+ local: -+ *; -+}; diff --git a/dev-libs/snowball-stemmer/metadata.xml b/dev-libs/snowball-stemmer/metadata.xml deleted file mode 100644 index 34fffdb84994..000000000000 --- a/dev-libs/snowball-stemmer/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>nicolas.parlant@parhuet.fr</email> - <name>Nicolas PARLANT</name> - </maintainer> - <maintainer type="project" proxied="proxy"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <upstream> - <remote-id type="github">snowballstem/snowball</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-libs/snowball-stemmer/snowball-stemmer-2.2.0.ebuild b/dev-libs/snowball-stemmer/snowball-stemmer-2.2.0.ebuild deleted file mode 100644 index f38cab2c0f7f..000000000000 --- a/dev-libs/snowball-stemmer/snowball-stemmer-2.2.0.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit toolchain-funcs - -MY_TESTDATA_COMMIT="0703f1d6a21802c3ff00c2c8b31bd255b74b2aec" - -DESCRIPTION="Snowball compiler and stemming algorithms" -HOMEPAGE="https://snowballstem.org/ https://github.com/snowballstem/snowball/" -SRC_URI="https://github.com/snowballstem/snowball/archive/v${PV}.tar.gz -> ${P}.tar.gz - test? ( https://github.com/snowballstem/snowball-data/archive/${MY_TESTDATA_COMMIT}.tar.gz -> snowball-data-${MY_TESTDATA_COMMIT}.tar.gz )" - -LICENSE="BSD" -SLOT="0/$(ver_cut 1)" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" -IUSE="static-libs test" - -BDEPEND="dev-lang/perl - test? ( virtual/libiconv )" -RESTRICT="!test? ( test )" - -S="${WORKDIR}/snowball-${PV}" - -PATCHES=( - "${FILESDIR}/${P}-shared-library.patch" -) - -src_compile() { - tc-export CC AR - default -} - -src_test() { - emake -j1 STEMMING_DATA="${WORKDIR}/snowball-data-${MY_TESTDATA_COMMIT}" check -} - -src_install() { - dodoc README.rst NEWS - - dobin stemwords - - doheader include/libstemmer.h - - dolib.so libstemmer.so.${PV} - dolib.so libstemmer.so.$(ver_cut 1) - dolib.so libstemmer.so - - use static-libs && dolib.a libstemmer.a -} diff --git a/dev-libs/snowball-stemmer/snowball-stemmer-3.0.1.ebuild b/dev-libs/snowball-stemmer/snowball-stemmer-3.0.1.ebuild deleted file mode 100644 index b73eb005eb18..000000000000 --- a/dev-libs/snowball-stemmer/snowball-stemmer-3.0.1.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit dot-a toolchain-funcs - -MY_TESTDATA_COMMIT="381b447563f9bef87b218ebbedde3159afdc3032" - -DESCRIPTION="Snowball compiler and stemming algorithms" -HOMEPAGE="https://snowballstem.org/ https://github.com/snowballstem/snowball/" -SRC_URI="https://github.com/snowballstem/snowball/archive/v${PV}.tar.gz -> ${P}.tar.gz - test? ( https://github.com/snowballstem/snowball-data/archive/${MY_TESTDATA_COMMIT}.tar.gz -> snowball-data-${MY_TESTDATA_COMMIT}.tar.gz )" -S="${WORKDIR}/snowball-${PV}" - -LICENSE="BSD" -SLOT="0/$(ver_cut 1)" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" -IUSE="static-libs test" - -BDEPEND="dev-lang/perl - test? ( virtual/libiconv )" - -RESTRICT="!test? ( test )" - -PATCHES=( - "${FILESDIR}/${P}-shared-library.patch" -) - -src_configure() { - use static-libs && lto-guarantee-fat - default -} - -src_compile() { - # 947412 - tc-is-cross-compiler && tc-env_build emake snowball - - tc-export CC AR - default -} - -src_test() { - emake -j1 STEMMING_DATA="${WORKDIR}/snowball-data-${MY_TESTDATA_COMMIT}" check -} - -src_install() { - dodoc README.rst NEWS - - dobin stemwords - - doheader include/libstemmer.h - - dolib.so libstemmer.so.${PV} - dolib.so libstemmer.so.$(ver_cut 1) - dolib.so libstemmer.so - - if use static-libs; then - dolib.a libstemmer.a - strip-lto-bytecode - fi -} diff --git a/dev-libs/snowball-stemmer/snowball-stemmer-3.1.0.ebuild b/dev-libs/snowball-stemmer/snowball-stemmer-3.1.0.ebuild deleted file mode 100644 index 55245bc20f0d..000000000000 --- a/dev-libs/snowball-stemmer/snowball-stemmer-3.1.0.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit dot-a edo toolchain-funcs - -MY_TESTDATA_COMMIT="39dde6129dfc7c65520704ad159d486396e4dbc5" -DESCRIPTION="Snowball compiler and stemming algorithms" -HOMEPAGE="https://snowballstem.org/ https://github.com/snowballstem/snowball/" -SRC_URI=" - https://github.com/snowballstem/snowball/archive/v${PV}.tar.gz - -> ${P}.tar.gz - test? ( https://github.com/snowballstem/snowball-data/archive/${MY_TESTDATA_COMMIT}.tar.gz - -> snowball-data-${MY_TESTDATA_COMMIT}.tar.gz ) -" -S="${WORKDIR}/snowball-${PV}" - -LICENSE="BSD" -SONAME="$(ver_cut 1-2)" -SLOT="0/${SONAME}" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="static-libs test" -RESTRICT="!test? ( test )" - -BDEPEND=" - dev-lang/perl - test? ( virtual/libiconv ) -" - -PATCHES=( - # Shared-library: export only public sb_stemmer_* symbols (matching libstemmer.h) - "${FILESDIR}"/${PN}-3.1.0-public_symbols.patch - - # PR merged - "${FILESDIR}/${P}-fix_segfault.patch" -) - -src_configure() { - use static-libs && lto-guarantee-fat - default -} - -src_compile() { - # 947412 - tc-is-cross-compiler && tc-env_build emake snowball - - tc-export CC AR - emake CFLAGS="${CFLAGS} -fPIC" all - - # Created shared library contains a lot of relocations, which slow down loading. - # It is known issue and probably the main reason why upstream does not support shared library yet. - # see https://github.com/snowballstem/snowball/issues/34 - edo "${CC}" \ - ${CFLAGS} \ - ${LDFLAGS} \ - -Wl,-version-script,libstemmer/symbol.map \ - -Wl,--whole-archive \ - libstemmer.a \ - -Wl,--no-whole-archive \ - -Wl,-soname,libstemmer.so.${SONAME} \ - -shared \ - -o libstemmer.so.${PV} -} - -src_test() { - emake -j1 STEMMING_DATA="${WORKDIR}/snowball-data-${MY_TESTDATA_COMMIT}" check -} - -src_install() { - dodoc README.rst NEWS - - dobin stemwords - - doheader include/libstemmer.h - - dolib.so libstemmer.so.${PV} - dosym libstemmer.so.${PV} /usr/$(get_libdir)/libstemmer.so.${SONAME} - dosym libstemmer.so.${PV} /usr/$(get_libdir)/libstemmer.so - - if use static-libs; then - dolib.a libstemmer.a - strip-lto-bytecode - fi -} |
