libraries/libexttextcat: Updated for version 3.4.5.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
dec9ed6dfa
commit
4c4269a4c7
|
@ -3,7 +3,7 @@ classification technique described in Cavnar & Trenkle, "N-Gram-Based
|
|||
Text Categorization". It was primarily developed for language
|
||||
guessing, a task on which it is known to perform with near-perfect
|
||||
accuracy.
|
||||
|
||||
|
||||
The central idea of the Cavnar & Trenkle technique is to calculate a
|
||||
"fingerprint" of a document with an unknown category, and compare this
|
||||
with the fingerprints of a number of documents of which the categories
|
||||
|
@ -12,7 +12,7 @@ classification. A fingerprint is a list of the most frequent n-grams
|
|||
occurring in a document, ordered by frequency. Fingerprints are
|
||||
compared with a simple out-of-place metric. See the article for more
|
||||
details.
|
||||
|
||||
|
||||
Considerable effort went into making this implementation fast and
|
||||
efficient. The language guesser processes over 100 documents/second on
|
||||
a simple PC, which makes it practical for many uses. It was developed
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for libexttextcat
|
||||
|
||||
# Copyright 2015 Hunter Sezen California, USA
|
||||
# Copyright 2015, 2017 Hunter Sezen California, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,13 +23,13 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=libexttextcat
|
||||
VERSION=${VERSION:-3.4.4}
|
||||
VERSION=${VERSION:-3.4.5}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
|
@ -54,7 +54,7 @@ else
|
|||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
set -eu
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
@ -74,6 +74,8 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--disable-static \
|
||||
--disable-werror \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
|
@ -83,7 +85,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
|
|||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ChangeLog LICENSE READM* TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ChangeLog LICENSE README* TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="libexttextcat"
|
||||
VERSION="3.4.4"
|
||||
VERSION="3.4.5"
|
||||
HOMEPAGE="https://wiki.freedesktop.org/www/Software/libexttextcat/"
|
||||
DOWNLOAD="http://dev-www.libreoffice.org/src/libexttextcat/libexttextcat-3.4.4.tar.xz"
|
||||
MD5SUM="bfa7107c27afda3a3afa4b7ab5a3fe17"
|
||||
DOWNLOAD="http://dev-www.libreoffice.org/src/libexttextcat/libexttextcat-3.4.5.tar.xz"
|
||||
MD5SUM="69c984b1785b56942179eb0ddc9c758f"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in New Issue