diff options
| author | Ulrich Müller <ulm@gentoo.org> | 2025-01-04 19:41:42 +0100 |
|---|---|---|
| committer | Ulrich Müller <ulm@gentoo.org> | 2025-01-04 19:47:38 +0100 |
| commit | aa3dc65bd445253a820d7e65bd4c10e395eb4e71 (patch) | |
| tree | 7156556636e70830da17d38092830c225de7c219 /dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.11-r2.ebuild | |
| parent | 7a276e71f444ce6a4302eb1b32a81d35acbbc981 (diff) | |
| download | gentoo-aa3dc65bd445253a820d7e65bd4c10e395eb4e71.tar.gz gentoo-aa3dc65bd445253a820d7e65bd4c10e395eb4e71.tar.bz2 gentoo-aa3dc65bd445253a820d7e65bd4c10e395eb4e71.zip | |
dev-db/qt5-sqlcipher: Update for Qt 5.15.16
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.11-r2.ebuild')
| -rw-r--r-- | dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.11-r2.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.11-r2.ebuild b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.11-r2.ebuild new file mode 100644 index 000000000000..60da9b9a752b --- /dev/null +++ b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.11-r2.ebuild @@ -0,0 +1,48 @@ +# 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/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" # version 2.1 only +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=dev-db/sqlcipher-3.4.1 + >=dev-qt/qtcore-5.15.16:5= + >=dev-qt/qtsql-5.15.16:5=[sqlite] <dev-qt/qtsql-5.16:5=[sqlite]" +DEPEND="${RDEPEND}" + +DOCS=(README.md) + +src_prepare() { + eapply "${FILESDIR}"/${PN}-1.0.10-install-path.patch + cp -a "${S}"/qt-file-cache/5.15.{0,16} || die + eapply "${FILESDIR}"/${P}-qt-5.15.16.patch + sed -i -e "s/@LIBDIR@/$(get_libdir)/" CMakeLists.txt || die + + local v=$(best_version dev-qt/qtsql:5) + v=$(ver_cut 1-3 ${v#*/qtsql-}) + [[ -n ${v} ]] || die "could not determine qtsql version" + if ! [[ -d qt-file-cache/${v} ]]; then + local vc + case $(ver_cut 1-2 ${v}) in + 5.15) vc=5.15.16 ;; + *) die "qtsql-${v} not supported" ;; + esac + elog "qtsql-${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 +} |
