Files
haikuports/kde-frameworks/kcodecs/kcodecs-5.50.0.recipe
2018-09-12 15:11:01 +03:00

84 lines
1.8 KiB
Bash

SUMMARY="String encoding library"
DESCRIPTION="KCodecs provide a collection of methods to manipulate strings \
using various encodings.
It can automatically determine the charset of a string, translate XML \
entities, validate email addresses, and find encodings by name in a more \
tolerant way than QTextCodec (useful e.g. for data coming from the Internet)."
HOMEPAGE="https://github.com/KDE/kcodecs/"
COPYRIGHT="2010-2018 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/kcodecs/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="e5823d29dc872e3d4d1295340895ed6fde4f26a58a1b4604b8192b25b1b94027"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
GLOBAL_WRITABLE_FILES="
settings/xdg/kcodecs.categories keep-old
"
PROVIDES="
kcodecs$secondaryArchSuffix = $portVersion
lib:libKF5Codecs$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
"
PROVIDES_devel="
kcodecs${secondaryArchSuffix}_devel = $portVersion
devel:libKF5Codecs$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
kcodecs$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libQt5Core$secondaryArchSuffix >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:gperf
cmd:make
"
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs \
libKF5Codecs
fixPkgconfig
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}