diff options
author | Ulrich Müller <ulm@gentoo.org> | 2019-12-21 10:21:26 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2019-12-21 10:21:48 +0100 |
commit | d84af79d13e2ba8e3164e2c1320bb17f5b8d918f (patch) | |
tree | 259adb83b1abf4224a7da5c23b4819df4b21610b /dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20191025-r1.ebuild | |
parent | dev-util/cmake: Reuse makeopts_jobs in bootstrap command (diff) | |
download | gentoo-d84af79d13e2ba8e3164e2c1320bb17f5b8d918f.tar.gz gentoo-d84af79d13e2ba8e3164e2c1320bb17f5b8d918f.tar.bz2 gentoo-d84af79d13e2ba8e3164e2c1320bb17f5b8d918f.zip |
dev-db/qt5-sqlcipher: Support Qt 5.14.
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20191025-r1.ebuild')
-rw-r--r-- | dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20191025-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20191025-r1.ebuild b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20191025-r1.ebuild new file mode 100644 index 000000000000..deb835d5057a --- /dev/null +++ b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20191025-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +COMMIT="8b8ba1579f4fdd0d2c1e8bd9596eedf5101dd917" +DESCRIPTION="Qt SQL driver plugin for SQLCipher" +HOMEPAGE="https://github.com/blizzard4591/qt5-sqlcipher" +SRC_URI="https://github.com/blizzard4591/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~ulm/distfiles/${PN}-${PV%_*}-qt-5.14.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.15:5=[sqlite]" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}-${COMMIT}" +DOCS=(README.md) + +src_prepare() { + mv "${WORKDIR}/5.14.0" qt-file-cache/ || die + + eapply "${FILESDIR}"/${PN}-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.1 ;; + 5.14) vc=5.14.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 +} |