From 80b48951443ab7fe91f57d9d241b7e0b1567e656 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 30 Oct 2024 13:58:47 +0100 Subject: [PATCH] accounts_qml, new recipe (#11286) --- net-libs/accounts-qml/accounts_qml-0.7.recipe | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 net-libs/accounts-qml/accounts_qml-0.7.recipe diff --git a/net-libs/accounts-qml/accounts_qml-0.7.recipe b/net-libs/accounts-qml/accounts_qml-0.7.recipe new file mode 100644 index 000000000..6475d4cf4 --- /dev/null +++ b/net-libs/accounts-qml/accounts_qml-0.7.recipe @@ -0,0 +1,65 @@ +SUMMARY="QML bindings for libaccounts-qt and libsignon-qt" +DESCRIPTION="This QML module provides an API to manage the user's online accounts and get their \ +authentication data. +It's a tiny wrapper around the Qt-based APIs of libaccounts-qt and libsignon-qt. +It is part of the accounts-sso project: + +https://gitlab.com/groups/accounts-sso" +HOMEPAGE="https://gitlab.com/accounts-sso/accounts-qml-module" +COPYRIGHT="2013-2016 Canonical Ltd." +LICENSE="GNU LGPL v2.1" +REVISION="1" +srcGitRev="05e79ebbbf3784a87f72b7be571070125c10dfe3" +SOURCE_URI="https://gitlab.com/accounts-sso/accounts-qml-module/-/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="1a53a6d8a3a56694244bc24bdab844d91420483744822d08ae8517ff7df84763" +SOURCE_DIR="accounts-qml-module-$srcGitRev" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="?x86" + +PROVIDES=" + accounts_qml$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libaccounts_qt6$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6Gui$secondaryArchSuffix + lib:libQt6Network$secondaryArchSuffix + lib:libQt6Qml$secondaryArchSuffix + lib:libQt6Xml$secondaryArchSuffix + lib:libsignon_qt6$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix + devel:libaccounts_qt6$secondaryArchSuffix + devel:libsignon_qt6$secondaryArchSuffix + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:g++$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:qmake6$secondaryArchSuffix + " + +BUILD() +{ + mkdir -p build && cd build + qmake6 ../accounts-qml-module.pro \ + PREFIX=$prefix + make $jobArgs +} + +INSTALL() +{ + sed -i -e 's|INSTALL_ROOT)/boot/system/|INSTALL_ROOT)/|g' build/src/Makefile + make -C build INSTALL_ROOT="$prefix" install_subtargets + + # no testbin required + rm -rf $prefix/packages +}