forked from ports/contrib
snowball: initial commit
This commit is contained in:
parent
ce0ba5d78d
commit
d4354f5cc4
10
snowball/.footprint
Normal file
10
snowball/.footprint
Normal file
@ -0,0 +1,10 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/snowball
|
||||
-rwxr-xr-x root/root usr/bin/stemwords
|
||||
drwxr-xr-x root/root usr/include/
|
||||
-rw-r--r-- root/root usr/include/libstemmer.h
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
lrwxrwxrwx root/root usr/lib/libstemmer.so -> libstemmer.so.0
|
||||
lrwxrwxrwx root/root usr/lib/libstemmer.so.0 -> libstemmer.so.0.0.0
|
||||
-rwxr-xr-x root/root usr/lib/libstemmer.so.0.0.0
|
5
snowball/.signature
Normal file
5
snowball/.signature
Normal file
@ -0,0 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF33Z1tzPjgU8z+w2EuavIEig5Zodpur23sLsbgKpVLB7AuwhzUIa7SiPQae6bBcsbeGPI2jcMg12JP4eu7RueSgI=
|
||||
SHA256 (Pkgfile) = 3aa58bf6a18f6f6a57d57801bc2ea07b96d7da912901b288ab77acbf26912fc7
|
||||
SHA256 (.footprint) = 0f532da25ee3c32ca621ebd74ef4505e801936ff394965ba4fee041fafdbc146
|
||||
SHA256 (dynamiclib.patch) = 99511a11cdeeb1ef1eaa9d7b777f6934693d4696ba9523de40b886f7d898058e
|
25
snowball/Pkgfile
Normal file
25
snowball/Pkgfile
Normal file
@ -0,0 +1,25 @@
|
||||
# Description: String processing language for creating stemming algorithms
|
||||
# URL: http://snowballstem.org/
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: git
|
||||
|
||||
name=snowball
|
||||
version=git
|
||||
release=1
|
||||
source=(dynamiclib.patch)
|
||||
git=(https://github.com/snowballstem/snowball.git)
|
||||
|
||||
build() {
|
||||
git clone $git $name
|
||||
cd $name
|
||||
patch -Np1 -i ../dynamiclib.patch
|
||||
|
||||
make
|
||||
|
||||
install -d $PKG/usr/bin
|
||||
install -t $PKG/usr/bin snowball stemwords
|
||||
install -Dm644 {.,$PKG/usr}/include/libstemmer.h
|
||||
install -D {.,$PKG/usr/lib}/libstemmer.so.0.0.0
|
||||
ln -s libstemmer.so.0.0.0 $PKG/usr/lib/libstemmer.so.0
|
||||
ln -s libstemmer.so.0 $PKG/usr/lib/libstemmer.so
|
||||
}
|
39
snowball/dynamiclib.patch
Normal file
39
snowball/dynamiclib.patch
Normal file
@ -0,0 +1,39 @@
|
||||
diff --git c/GNUmakefile i/GNUmakefile
|
||||
index 1693f5a..b33a42e 100644
|
||||
--- c/GNUmakefile
|
||||
+++ i/GNUmakefile
|
||||
@@ -112,10 +112,10 @@ 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
|
||||
+CFLAGS=-O2 -fPIC -W -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||
CPPFLAGS=-Iinclude
|
||||
|
||||
-all: snowball libstemmer.o stemwords $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
||||
+all: snowball libstemmer.o libstemmer.so stemwords $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
||||
|
||||
clean:
|
||||
rm -f $(COMPILER_OBJECTS) $(RUNTIME_OBJECTS) \
|
||||
@@ -158,6 +158,9 @@ libstemmer/libstemmer.o: libstemmer/modules.h $(C_LIB_HEADERS)
|
||||
libstemmer.o: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
|
||||
$(AR) -cru $@ $^
|
||||
|
||||
+libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
|
||||
+ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,libstemmer.so.0,-version-script,libstemmer/symbol.map -o $@.0.0.0 $^
|
||||
+
|
||||
stemwords: $(STEMWORDS_OBJECTS) libstemmer.o
|
||||
$(CC) -o $@ $^
|
||||
|
||||
diff --git c/libstemmer/symbol.map i/libstemmer/symbol.map
|
||||
new file mode 100644
|
||||
index 0000000..7a3d423
|
||||
--- /dev/null
|
||||
+++ i/libstemmer/symbol.map
|
||||
@@ -0,0 +1,6 @@
|
||||
+SB_STEMMER_0 {
|
||||
+ global:
|
||||
+ sb_stemmer_*;
|
||||
+ local:
|
||||
+ *;
|
||||
+};
|
Loading…
x
Reference in New Issue
Block a user