Files
haikuports/dev-python/snowballstemmer/snowballstemmer-2.2.0.recipe
Schrijvers Luc 480e45cd2f sphinx(python), add new/updated dependency python recipes (#8775)
* sphinx(python), add new/updated dependency python recipes

* Update dev-python/babel/babel-2.12.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/babel/babel-2.12.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/babel/babel-2.12.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinxcontrib-jquery/sphinxcontrib_jquery-4.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinx/sphinx-7.0.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinx/sphinx-7.0.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinx/sphinx-7.0.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

---------

Co-authored-by: OscarL <oscar.lesta@gmail.com>
2023-06-03 21:48:24 +02:00

80 lines
2.4 KiB
Bash

SUMMARY="Snowball stemming library collection for Python"
DESCRIPTION="This package provides 29 stemmers for 28 languages generated from Snowball algorithms.
Stemming maps different forms of the same word to a common *stem* - for example, the English \
stemmer maps *connection*, *connections*, *connective*, *connected*, and *connecting* to \
*connect*. So a searching for *connected* would also find documents which only have the other \
forms.
This stem form is often a word itself, but this is not always the case as this is not a \
requirement for text search systems, which are the intended field of use. We also aim to conflate \
words with the same meaning, rather than all words with a common linguistic root (so *awe* and \
*awful* don't have the same stem), and over-stemming is more problematic than under-stemming so we \
tend not to stem in cases that are hard to resolve. If you want to always reduce words to a root \
form and/or get a root form which is itself a word then Snowball's stemming algorithms likely \
aren't the right answer."
HOMEPAGE="https://github.com/snowballstem/snowball"
COPYRIGHT="2001, Dr Martin Porter
2004,2005, Richard Boulton
2013, Yoshiki Shibukawa
2006-2019 Olly Betts"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-$portVersion.tar.gz"
CHECKSUM_SHA256="09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}