mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
64 lines
1.5 KiB
Bash
64 lines
1.5 KiB
Bash
SUMMARY="A library for number to number name conversion"
|
||
DESCRIPTION="Numbertext can convert numbers to their names, including cardinal \
|
||
and ordinal numbers, ordinal indicators and money amounts with currencies in \
|
||
more than 40 languages and numeral systems."
|
||
HOMEPAGE="https://numbertext.org/"
|
||
COPYRIGHT="2009–2018 László Németh et al."
|
||
LICENSE="BSD (3-clause)"
|
||
REVISION="1"
|
||
SOURCE_URI="https://github.com/Numbertext/libnumbertext/releases/download/1.0/libnumbertext-1.0.3.tar.xz"
|
||
CHECKSUM_SHA256="b52f6dc468a5cc93d572cf28cab88c6c68bc45e59a0f69e9b327327db3e7e5a5"
|
||
PATCHES="libnumbertext-$portVersion.patchset"
|
||
|
||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||
SECONDARY_ARCHITECTURES="x86"
|
||
|
||
libVersion="0.0.0"
|
||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||
|
||
PROVIDES="
|
||
libnumbertext$secondaryArchSuffix = $portVersion
|
||
cmd:spellout = $portVersion
|
||
lib:libnumbertext_1.0$secondaryArchSuffix = $libVersionCompat
|
||
"
|
||
REQUIRES="
|
||
haiku$secondaryArchSuffix
|
||
"
|
||
|
||
PROVIDES_devel="
|
||
libnumbertext${secondaryArchSuffix}_devel = $portVersion
|
||
devel:libnumbertext_1.0$secondaryArchSuffix = $libVersion
|
||
"
|
||
REQUIRES_devel="
|
||
libnumbertext$secondaryArchSuffix == $portVersion base
|
||
"
|
||
|
||
BUILD_REQUIRES="
|
||
haiku${secondaryArchSuffix}_devel
|
||
"
|
||
BUILD_PREREQUIRES="
|
||
cmd:awk
|
||
cmd:cmp
|
||
cmd:gcc$secondaryArchSuffix
|
||
cmd:make
|
||
cmd:pkg_config$secondaryArchSuffix
|
||
"
|
||
|
||
BUILD()
|
||
{
|
||
runConfigure ./configure
|
||
make $jobArgs
|
||
}
|
||
|
||
INSTALL()
|
||
{
|
||
make install
|
||
|
||
prepareInstalledDevelLibs \
|
||
libnumbertext-1.0
|
||
fixPkgconfig
|
||
|
||
packageEntries devel \
|
||
$developDir
|
||
}
|