mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
qca, bump version (#9941)
This commit is contained in:
120
app-crypt/qca/qca2.3_qt5-2.3.8.recipe
Normal file
120
app-crypt/qca/qca2.3_qt5-2.3.8.recipe
Normal file
@@ -0,0 +1,120 @@
|
||||
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="1"
|
||||
SOURCE_URI="http://download.kde.org/stable/qca/$portVersion/qca-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="48759ca86a0202461d908ba66134380cc3bb7d20fed3c031b9fc0289796a8264"
|
||||
SOURCE_DIR="qca-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qca2.3_qt5$secondaryArchSuffix = $portVersion
|
||||
lib:libqca_qt5$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
ca_root_certificates
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libnspr4$secondaryArchSuffix
|
||||
lib:libnss3$secondaryArchSuffix
|
||||
lib:libnssutil3$secondaryArchSuffix
|
||||
lib:libplc4$secondaryArchSuffix
|
||||
lib:libplds4$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libsmime3$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libssl3$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
qca2.3_qt5${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libqca_qt5$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
qca2.3_qt5$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
CONFLICTS_devel="
|
||||
qca${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
PROVIDES_tools="
|
||||
qca2.3_qt5${secondaryArchSuffix}_tools
|
||||
cmd:mozcerts_qt5$secondaryArchSuffix = $portVersion
|
||||
cmd:qcatool_qt5$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_tools="
|
||||
qca2.3_qt5$secondaryArchSuffix == $portVersion
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcrypto$secondaryArchSuffix
|
||||
devel:libgsasl$secondaryArchSuffix
|
||||
devel:libnss3$secondaryArchSuffix
|
||||
devel:libQt5Core$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 -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DBUILD_WITH_QT6=OFF \
|
||||
-DQCA_PLUGINS_INSTALL_DIR=$libDir/Qt5 \
|
||||
-DQCA_BINARY_INSTALL_DIR=$binDir \
|
||||
-DQCA_LIBRARY_INSTALL_DIR=$libDir \
|
||||
-DQCA_FEATURE_INSTALL_DIR=$dataDir/Qt5/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 -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib libqca-qt5
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries tools \
|
||||
$binDir \
|
||||
$manDir
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/Qt5 \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
|
||||
TEST()
|
||||
{
|
||||
# 96% tests passed, 1 tests failed out of 25
|
||||
QCA_PLUGIN_PATH="$sourceDir/lib/qca" make -Cbuild test
|
||||
}
|
||||
121
app-crypt/qca/qca2.3_qt6-2.3.8.recipe
Normal file
121
app-crypt/qca/qca2.3_qt6-2.3.8.recipe
Normal file
@@ -0,0 +1,121 @@
|
||||
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="1"
|
||||
SOURCE_URI="http://download.kde.org/stable/qca/$portVersion/qca-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="48759ca86a0202461d908ba66134380cc3bb7d20fed3c031b9fc0289796a8264"
|
||||
SOURCE_DIR="qca-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qca2.3_qt6$secondaryArchSuffix = $portVersion
|
||||
lib:libqca_qt6$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
ca_root_certificates
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libnspr4$secondaryArchSuffix
|
||||
lib:libnss3$secondaryArchSuffix
|
||||
lib:libnssutil3$secondaryArchSuffix
|
||||
lib:libplc4$secondaryArchSuffix
|
||||
lib:libplds4$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Core5Compat$secondaryArchSuffix
|
||||
lib:libsmime3$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libssl3$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
qca2.3_qt6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libqca_qt6$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
qca2.3_qt6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
CONFLICTS_devel="
|
||||
qca${secondaryArchSuffix}_devel
|
||||
qca2.3_qt5${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
PROVIDES_tools="
|
||||
qca2.3_qt6${secondaryArchSuffix}_tools
|
||||
cmd:mozcerts_qt6$secondaryArchSuffix = $portVersion
|
||||
cmd:qcatool2$secondaryArchSuffix = $portVersion
|
||||
cmd:qcatool_qt6$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_tools="
|
||||
qca2.3_qt6$secondaryArchSuffix == $portVersion
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcrypto$secondaryArchSuffix
|
||||
devel:libgsasl$secondaryArchSuffix
|
||||
devel:libnss3$secondaryArchSuffix
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Core5Compat$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 -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DBUILD_WITH_QT6=ON \
|
||||
-DQCA_PLUGINS_INSTALL_DIR=$libDir/Qt6 \
|
||||
-DQCA_BINARY_INSTALL_DIR=$binDir \
|
||||
-DQCA_LIBRARY_INSTALL_DIR=$libDir \
|
||||
-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 -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib libqca-qt6
|
||||
|
||||
packageEntries tools \
|
||||
$binDir \
|
||||
$manDir
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
|
||||
TEST()
|
||||
{
|
||||
# 96% tests passed, 1 tests failed out of 25
|
||||
QCA_PLUGIN_PATH="$sourceDir/lib/qca" make -Cbuild test
|
||||
}
|
||||
Reference in New Issue
Block a user