mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
marisa: add new recipe, version 0.2.6 (#7310)
* marisa: add new recipe, version 0.2.6 Signed-off-by: Han Pengfei <pengphei@qq.com> * fix tools package Signed-off-by: Han Pengfei <pengphei@qq.com> Co-authored-by: begasus <begasus@gmail.com>
This commit is contained in:
100
dev-libs/marisa/marisa-0.2.6.recipe
Normal file
100
dev-libs/marisa/marisa-0.2.6.recipe
Normal file
@@ -0,0 +1,100 @@
|
||||
SUMMARY="Matching Algorithm with Recursively Implemented StorAge"
|
||||
DESCRIPTION="Matching Algorithm with Recursively Implemented StorAge (MARISA) is a \
|
||||
static and space-efficient trie data structure. And libmarisa is a C++ \
|
||||
library to provide an implementation of MARISA. Also, the package of \
|
||||
libmarisa contains a set of command line tools for building and \
|
||||
operating a MARISA-based dictionary."
|
||||
HOMEPAGE="https://github.com/s-yata/marisa-trie"
|
||||
COPYRIGHT="2016-2022 Susumu Yata"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/s-yata/marisa-trie/archive/v${portVersion}/marisa-tries-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="1063a27c789e75afa2ee6f1716cc6a5486631dcfcb7f4d56d6485d2462e566de"
|
||||
SOURCE_DIR="marisa-trie-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandBinDir=$binDir
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="0.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
marisa$secondaryArchSuffix = $portVersion
|
||||
lib:libmarisa$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
marisa${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmarisa$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
marisa$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
PROVIDES_tools="
|
||||
marisa${secondaryArchSuffix}_tools = $portVersion
|
||||
cmd:marisa_benchmark$commandSuffix = $portVersion
|
||||
cmd:marisa_build$commandSuffix = $portVersion
|
||||
cmd:marisa_common_prefix_search$commandSuffix = $portVersion
|
||||
cmd:marisa_dump$commandSuffix = $portVersion
|
||||
cmd:marisa_lookup$commandSuffix = $portVersion
|
||||
cmd:marisa_predictive_search$commandSuffix = $portVersion
|
||||
cmd:marisa_reverse_lookup$commandSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_tools="
|
||||
marisa$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -i
|
||||
|
||||
runConfigure --omit-dirs bindir ./configure \
|
||||
--bindir=$commandBinDir
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/libmarisa.la
|
||||
rm $libDir/libmarisa.a
|
||||
|
||||
prepareInstalledDevelLib libmarisa
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
|
||||
packageEntries tools \
|
||||
$commandBinDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user