pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/libstemmer
Module Name: pkgsrc
Committed By: ryoon
Date: Tue Apr 14 14:07:50 UTC 2020
Added Files:
pkgsrc/textproc/libstemmer: DESCR Makefile PLIST buildlink3.mk distinfo
pkgsrc/textproc/libstemmer/patches: patch-GNUmakefile
patch-libstemmer_symbol.map
Log Message:
textproc/libstemmer: import libstemmer-2.0.0
The snowball compiler and the stemming algorithms
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/libstemmer/DESCR \
pkgsrc/textproc/libstemmer/Makefile pkgsrc/textproc/libstemmer/PLIST \
pkgsrc/textproc/libstemmer/buildlink3.mk \
pkgsrc/textproc/libstemmer/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/libstemmer/patches/patch-GNUmakefile \
pkgsrc/textproc/libstemmer/patches/patch-libstemmer_symbol.map
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/textproc/libstemmer/DESCR
diff -u /dev/null pkgsrc/textproc/libstemmer/DESCR:1.1
--- /dev/null Tue Apr 14 14:07:50 2020
+++ pkgsrc/textproc/libstemmer/DESCR Tue Apr 14 14:07:50 2020
@@ -0,0 +1 @@
+The snowball compiler and the stemming algorithms
Index: pkgsrc/textproc/libstemmer/Makefile
diff -u /dev/null pkgsrc/textproc/libstemmer/Makefile:1.1
--- /dev/null Tue Apr 14 14:07:50 2020
+++ pkgsrc/textproc/libstemmer/Makefile Tue Apr 14 14:07:50 2020
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2020/04/14 14:07:50 ryoon Exp $
+
+DISTNAME= snowball-2.0.0
+PKGNAME= libstemmer-2.0.0
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=snowballstem/}
+GITHUB_PROJECT= snowball
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= ryoon%NetBSD.org@localhost
+HOMEPAGE= https://snowballstem.org/
+COMMENT= Snowball compiler and the stemming algorithms
+LICENSE= modified-bsd
+
+USE_TOOLS+= gmake perl
+MAKE_FILE= GNUmakefile
+
+INSTALLATION_DIRS+= bin include lib
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/include/libstemmer.h \
+ ${DESTDIR}${PREFIX}/include
+ ${INSTALL_LIB} ${WRKSRC}/libstemmer.so.0.0.0 \
+ ${DESTDIR}${PREFIX}/lib
+ ${LN} -sf libstemmer.so.0.0.0 \
+ ${DESTDIR}${PREFIX}/lib/libstemmer.so.0
+ ${LN} -sf libstemmer.so.0.0.0 \
+ ${DESTDIR}${PREFIX}/lib/libstemmer.so
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/libstemmer/PLIST
diff -u /dev/null pkgsrc/textproc/libstemmer/PLIST:1.1
--- /dev/null Tue Apr 14 14:07:50 2020
+++ pkgsrc/textproc/libstemmer/PLIST Tue Apr 14 14:07:50 2020
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/14 14:07:50 ryoon Exp $
+include/libstemmer.h
+lib/libstemmer.so
+lib/libstemmer.so.0
+lib/libstemmer.so.0.0.0
+@pkgdir bin
Index: pkgsrc/textproc/libstemmer/buildlink3.mk
diff -u /dev/null pkgsrc/textproc/libstemmer/buildlink3.mk:1.1
--- /dev/null Tue Apr 14 14:07:50 2020
+++ pkgsrc/textproc/libstemmer/buildlink3.mk Tue Apr 14 14:07:50 2020
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/04/14 14:07:50 ryoon Exp $
+
+BUILDLINK_TREE+= libstemmer
+
+.if !defined(LIBSTEMMER_BUILDLINK3_MK)
+LIBSTEMMER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libstemmer+= libstemmer>=2.0.0
+BUILDLINK_PKGSRCDIR.libstemmer?= ../../textproc/libstemmer
+.endif # LIBSTEMMER_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libstemmer
Index: pkgsrc/textproc/libstemmer/distinfo
diff -u /dev/null pkgsrc/textproc/libstemmer/distinfo:1.1
--- /dev/null Tue Apr 14 14:07:50 2020
+++ pkgsrc/textproc/libstemmer/distinfo Tue Apr 14 14:07:50 2020
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/04/14 14:07:50 ryoon Exp $
+
+SHA1 (snowball-2.0.0.tar.gz) = b152bbebca34505d963f3cfb6b726859d5b83b66
+RMD160 (snowball-2.0.0.tar.gz) = f5dc4e6caeb65120eeb36d9f45dd758a8024c881
+SHA512 (snowball-2.0.0.tar.gz) = 7da7c653d41bf03f3fb2f0b4a8963572fc97319fe44e82c1fc7882ba440e60e5947ed7fb722f7e78592d5ea862e3d733880f9f656236e40c1d5306e70a80a1b1
+Size (snowball-2.0.0.tar.gz) = 179986 bytes
+SHA1 (patch-GNUmakefile) = dc58eaec3de72fb93cf2393631b1bdc7d31be7cf
+SHA1 (patch-libstemmer_symbol.map) = 0122f03d0ac54dae908ffd873f1ae4a6e502a56f
Index: pkgsrc/textproc/libstemmer/patches/patch-GNUmakefile
diff -u /dev/null pkgsrc/textproc/libstemmer/patches/patch-GNUmakefile:1.1
--- /dev/null Tue Apr 14 14:07:50 2020
+++ pkgsrc/textproc/libstemmer/patches/patch-GNUmakefile Tue Apr 14 14:07:50 2020
@@ -0,0 +1,42 @@
+$NetBSD: patch-GNUmakefile,v 1.1 2020/04/14 14:07:50 ryoon Exp $
+
+* Build dynamic library, from archlinux.
+
+--- GNUmakefile.orig 2019-10-02 03:27:17.000000000 +0000
++++ GNUmakefile
+@@ -151,10 +151,10 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.
+ JAVA_CLASSES = $(JAVA_SOURCES:.java=.class)
+ JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class)
+
+-CFLAGS=-O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations
+-CPPFLAGS=-Iinclude
++CFLAGS+=-fPIC -O2 -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) \
+@@ -179,7 +179,7 @@ clean:
+ -rmdir $(js_output_dir)
+
+ snowball: $(COMPILER_OBJECTS)
+- $(CC) $(CFLAGS) -o $@ $^
++ $(CC) $(CFLAGS) ${LDFLAGS} -o $@ $^
+
+ $(COMPILER_OBJECTS): $(COMPILER_HEADERS)
+
+@@ -200,8 +200,11 @@ libstemmer/libstemmer.o: libstemmer/modu
+ 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) $(CFLAGS) -o $@ $^
++ $(CC) $(CFLAGS) ${LDFLAGS} -o $@ $^
+
+ csharp_stemwords: $(CSHARP_STEMWORDS_SOURCES) $(CSHARP_RUNTIME_SOURCES) $(CSHARP_SOURCES)
+ $(MCS) -unsafe -target:exe -out:$@ $(CSHARP_STEMWORDS_SOURCES) $(CSHARP_RUNTIME_SOURCES) $(CSHARP_SOURCES)
Index: pkgsrc/textproc/libstemmer/patches/patch-libstemmer_symbol.map
diff -u /dev/null pkgsrc/textproc/libstemmer/patches/patch-libstemmer_symbol.map:1.1
--- /dev/null Tue Apr 14 14:07:50 2020
+++ pkgsrc/textproc/libstemmer/patches/patch-libstemmer_symbol.map Tue Apr 14 14:07:50 2020
@@ -0,0 +1,13 @@
+$NetBSD: patch-libstemmer_symbol.map,v 1.1 2020/04/14 14:07:50 ryoon Exp $
+
+* Build dynamic library, from archlinux.
+
+--- libstemmer/symbol.map.orig 2020-04-05 13:44:49.355871263 +0000
++++ libstemmer/symbol.map
+@@ -0,0 +1,6 @@
++SB_STEMMER_0 {
++ global:
++ sb_stemmer_*;
++ local:
++ *;
++};
Home |
Main Index |
Thread Index |
Old Index