Files
haikuports/app-crypt/qca/qca-2.1.3.recipe
alaviss a0fdf8cf1f Add TEST() to various ports (#1832)
* app-crypt/rhash: disable on x86_gcc2, also fixed secondary arch

* dev-lang/tcc: make tcc actually works

  - update patches: define custom haiku definitions, use haiku
    start/end objects

  - make tcc uses haiku custom paths

  - add secondary arch support
  - add x86_64

* dev-lang/tcc: disable on all architectures

  - Haiku's BeBuild.h depends on __GNUC__ macro to select ABI, which
    unfortunately we can't risk to define, so disabling for now

* dev-python/pyqt: use correct name for sip

* dev-lang/spidermonkey: fix build

  - add x86 to snd arch

  - update config.sub and config.guess

  - add missing cmd:js_config
  - add missing cmd:zip

* dev-python/pyqt: clean up the spaces left by previous contributor

* add TEST() for the following ports:
  - sys-devel/flex
  - app-crypt/rhash
  - app-text/podofo
  - app-crypt/qca
  - app-editors/retext
  - app-i18n/mozc
  - dev-lang/tcc
  - dev-lang/yasm
  - dev-lang/spidermonkey
  - dev-libs/glib
  - dev-libs/jsoncpp
  - dev-libs/libtommath
  - dev-libs/libxslt
  - dev-libs/libyajl
  - dev-libs/zziplib
2017-12-10 13:49:50 +01:00

106 lines
3.0 KiB
Bash

SUMMARY="Qt Cryptographic Architecture"
DESCRIPTION="QCA aims to provide a straightforward and cross-platform \
crypto API, using Qt datatypes and conventions. QCA separates the API from \
the implementation, using plugins known as Providers. The advantage of this \
model is to allow applications to avoid linking to or explicitly depending \
on any particular cryptographic library. This allows one to easily change or \
upgrade crypto implementations without even needing to recompile the \
application!"
HOMEPAGE="http://delta.affinix.com/qca/"
COPYRIGHT="2003-2015 Justin Karneges"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="http://download.kde.org/stable/qca/$portVersion/src/qca-$portVersion.tar.xz"
CHECKSUM_SHA256="003fd86a32421057a03b18a8168db52e2940978f9db5ebbb6a08882f8ab1e353"
SOURCE_DIR="qca-$portVersion"
PATCHES="qca-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qca$secondaryArchSuffix = $portVersion
cmd:mozcerts_qt5$secondaryArchSuffix = $portVersion
cmd:qcatool_qt5$secondaryArchSuffix = $portVersion
cmd:qcatool2$secondaryArchSuffix = $portVersion
lib:libqca$secondaryArchSuffix = $portVersion
lib:libqca_qt5$secondaryArchSuffix = $portVersion compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libnspr4$secondaryArchSuffix
lib:libnss3$secondaryArchSuffix
lib:libnssutil3$secondaryArchSuffix
lib:libplc4$secondaryArchSuffix
lib:libplds4$secondaryArchSuffix
lib:libsmime3$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libssl3$secondaryArchSuffix
ca_root_certificates
"
PROVIDES_devel="
qca${secondaryArchSuffix}_devel = $portVersion
devel:libqca$secondaryArchSuffix = $portVersion compat >= 2
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
qca$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgsasl$secondaryArchSuffix
devel:libnss3$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:which
"
BUILD()
{
export QC_CERTSTORE_PATH=/system/data/ssl/CARootCertificates.pem
cmake . -DCMAKE_INSTALL_PREFIX=$prefix \
-DQCA_PLUGINS_INSTALL_DIR=$libDir \
-DQCA_BINARY_INSTALL_DIR=$binDir \
-DQCA_LIBRARY_INSTALL_DIR=$libDir \
-DQCA_FEATURE_INSTALL_DIR=$dataDir/Qt/mkspecs/features \
-DQCA_INCLUDE_INSTALL_DIR=$includeDir \
-DQCA_PRIVATE_INCLUDE_INSTALL_DIR=$includeDir \
-DQCA_DOC_INSTALL_DIR=$docDir \
-DQCA_MAN_INSTALL_DIR=$manDir \
-DBUILD_TESTS=1 \
-DPKGCONFIG_INSTALL_PREFIX=$developLibDir/pkgconfig
make $jobArgs
}
INSTALL()
{
rm -f bin/qcatool2.debug
rm -f lib/libqca.so.2.0.3.debug
make install
fixPkgconfig
packageEntries devel \
$developDir \
$dataDir/Qt/mkspecs \
$libDir/cmake
}
TEST()
{
QCA_PLUGIN_PATH="$sourceDir/lib/qca" make test
}