summaryrefslogtreecommitdiff
path: root/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.1.0.ebuild
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2025-11-09 11:41:41 +0100
committerUlrich Müller <ulm@gentoo.org>2025-11-09 13:49:27 +0100
commit1a3ce8bf5c322e7df2e542f0a6a8fc962c6923a1 (patch)
tree49f0d5fe0e7322ebe822174dbedf943f85bc1e1a /dev-db/qt5-sqlcipher/qt5-sqlcipher-1.1.0.ebuild
parentf935fa5dd9442782c59df31bfdca0a25a570de60 (diff)
downloadgentoo-1a3ce8bf5c322e7df2e542f0a6a8fc962c6923a1.tar.gz
gentoo-1a3ce8bf5c322e7df2e542f0a6a8fc962c6923a1.tar.bz2
gentoo-1a3ce8bf5c322e7df2e542f0a6a8fc962c6923a1.zip
dev-db/qt5-sqlcipher: add 1.1.0
Despite the package's name, the upstream package supports only Qt6. Bug: https://bugs.gentoo.org/955180 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-db/qt5-sqlcipher/qt5-sqlcipher-1.1.0.ebuild')
-rw-r--r--dev-db/qt5-sqlcipher/qt5-sqlcipher-1.1.0.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.1.0.ebuild b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.1.0.ebuild
new file mode 100644
index 000000000000..9e805823115a
--- /dev/null
+++ b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.1.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Qt SQL driver plugin for SQLCipher"
+HOMEPAGE="https://github.com/blizzard4591/qt5-sqlcipher"
+SRC_URI="https://github.com/blizzard4591/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1" # version 2.1 only
+SLOT="6"
+KEYWORDS="~amd64"
+
+RDEPEND=">=dev-db/sqlcipher-4.6.1
+ >=dev-qt/qtbase-6.9.3:6=[sql,sqlite] <dev-qt/qtbase-6.11:6=[sql,sqlite]"
+DEPEND="${RDEPEND}"
+
+DOCS=(README.md)
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-install-path.patch
+ sed -i -e "s:@LIBDIR@:$(get_libdir):" CMakeLists.txt || die
+
+ local v=$(best_version dev-qt/qtbase:6)
+ v=$(ver_cut 1-3 ${v#*/qtbase-})
+ [[ -n ${v} ]] || die "could not determine qtbase version"
+ if ! [[ -d qt-file-cache/${v} ]]; then
+ local vc
+ case $(ver_cut 1-2 ${v}) in
+ 6.9) vc=6.9.3 ;;
+ 6.10) vc=6.10.0 ;;
+ *) die "qtbase-${v} not supported" ;;
+ esac
+ elog "qtbase-${v} not in cache, using ${vc} instead"
+ cp -R qt-file-cache/${vc} qt-file-cache/${v} || die
+ fi
+
+ cmake_src_prepare
+}
+
+src_test() {
+ cd "${BUILD_DIR}" || die
+ ./qsqlcipher-test || die
+}