summaryrefslogtreecommitdiff
path: root/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.10-r1.ebuild
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-05-27 15:13:58 +0200
committerUlrich Müller <ulm@gentoo.org>2020-05-27 15:15:43 +0200
commit32e4c7fed4715800e2e5df0fd0e98bc7cd80286c (patch)
tree023442149639984e4b4133ba118126be3862b1aa /dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.10-r1.ebuild
parentf9d749c32d66d6e0eca3a0b7e63fb9eff80afd12 (diff)
downloadgentoo-32e4c7fed4715800e2e5df0fd0e98bc7cd80286c.tar.gz
gentoo-32e4c7fed4715800e2e5df0fd0e98bc7cd80286c.tar.bz2
gentoo-32e4c7fed4715800e2e5df0fd0e98bc7cd80286c.zip
dev-db/qt5-sqlcipher: Support Qt 5.15.
Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.10-r1.ebuild')
-rw-r--r--dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.10-r1.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.10-r1.ebuild b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.10-r1.ebuild
new file mode 100644
index 000000000000..1a5c9d0bfc5d
--- /dev/null
+++ b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.10-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils
+
+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
+ https://dev.gentoo.org/~ulm/distfiles/${PN}-${PV%_*}-qt-5.15.0.tar.xz"
+
+LICENSE="LGPL-2.1" # version 2.1 only
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=">=dev-db/sqlcipher-3.4.1
+ >=dev-qt/qtcore-5.12.3:5=
+ >=dev-qt/qtsql-5.12.3:5=[sqlite] <dev-qt/qtsql-5.16:5=[sqlite]"
+DEPEND="${RDEPEND}"
+
+DOCS=(README.md)
+
+src_prepare() {
+ mv "${WORKDIR}/5.15.0" qt-file-cache/ || die
+
+ eapply "${FILESDIR}"/${P}-install-path.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.12) vc=5.12.5 ;;
+ 5.13) vc=5.13.2 ;;
+ 5.14) vc=5.14.1 ;;
+ 5.15) vc=5.15.0 ;;
+ *) 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-utils_src_prepare
+}
+
+src_test() {
+ cd "${BUILD_DIR}" || die
+ ./qsqlcipher-test || die
+}