diff options
| author | Ulrich Müller <ulm@gentoo.org> | 2019-03-18 17:53:12 +0100 |
|---|---|---|
| committer | Ulrich Müller <ulm@gentoo.org> | 2019-03-18 19:11:38 +0100 |
| commit | f2226f1f71722d8fc1b01020fcb2efb65fa73e20 (patch) | |
| tree | 55a1a36135fc543421703ed578c588cd83865470 /dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20181221.ebuild | |
| parent | 8527e1dc3f2d13b6fb3aa0488b643937a84b7930 (diff) | |
| download | gentoo-f2226f1f71722d8fc1b01020fcb2efb65fa73e20.tar.gz gentoo-f2226f1f71722d8fc1b01020fcb2efb65fa73e20.tar.bz2 gentoo-f2226f1f71722d8fc1b01020fcb2efb65fa73e20.zip | |
dev-db/qt5-sqlcipher: New snapshot, supports Qt 5.12.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20181221.ebuild')
| -rw-r--r-- | dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20181221.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20181221.ebuild b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20181221.ebuild new file mode 100644 index 000000000000..744c62f7f414 --- /dev/null +++ b/dev-db/qt5-sqlcipher/qt5-sqlcipher-1.0.1_p20181221.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 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://dev.gentoo.org/~ulm/distfiles/${P}.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.7.1:5= + >=dev-qt/qtsql-5.7.1:5=[sqlite] <dev-qt/qtsql-5.13:5=[sqlite]" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" +DOCS=(README.md) + +src_prepare() { + 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.7) vc=5.7.1 ;; + 5.9) vc=5.9.6 ;; + 5.11) vc=5.11.3 ;; + 5.12) vc=5.12.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 +} |
