diff options
author | Michael Weber <xmw@gentoo.org> | 2017-12-11 10:05:08 +0100 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2017-12-11 10:05:08 +0100 |
commit | 6d1f62107c04fdeacd0471e901cd60af99ffeac4 (patch) | |
tree | de884dcae9d96f733de736b1640709ca7bd3d0ab /dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild | |
parent | sci-electronics/geda: Migrate from fdo-mime to xdg-utils eclass. (diff) | |
download | gentoo-6d1f62107c04fdeacd0471e901cd60af99ffeac4.tar.gz gentoo-6d1f62107c04fdeacd0471e901cd60af99ffeac4.tar.bz2 gentoo-6d1f62107c04fdeacd0471e901cd60af99ffeac4.zip |
dev-db/sqlitebrowser: Version bump, thanks @jok-ts, @a17r et al.
Reported-by: Anton Bolshakov <blshkv@pentoo.ch>
Suggested-by: Jouni Kosonen <jouni.kosonen@tukesoft.com>
Closes: https://bugs.gentoo.org/633412
Closes: https://github.com/gentoo/gentoo/pull/6322
Package-Manager: Portage-2.3.17, Repoman-2.3.6
Diffstat (limited to 'dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild')
-rw-r--r-- | dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild new file mode 100644 index 000000000000..9de05f943b19 --- /dev/null +++ b/dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils eutils + +DESCRIPTION="SQLite Database Browser" +HOMEPAGE="http://sqlitebrowser.org" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3 MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-cpp/antlr-cpp:2 + dev-db/sqlite:3 + >=dev-libs/qcustomplot-2.0.0[qt5(+)] + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + >=x11-libs/qscintilla-2.10.1:=[qt5(+)] +" +DEPEND="${RDEPEND} + dev-qt/linguist-tools:5 + test? ( dev-qt/qttest:5 ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.10.1-unbundle.patch +) + +src_prepare() { + cmake-utils_src_prepare + # https://github.com/qingfengxia/qhexedit still bundled + # x11-libs/qscintilla[qt4?,qt5?] still bundled + find libs/{antlr-2.7.7,qcustomplot-source} -delete || die + + sed -e "/^project/ s/\".*\"/sqlitebrowser/" -i CMakeLists.txt || die + + if ! use test; then + sed -e "/qt5_use_modules/ s/ Test//" -i CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + -DENABLE_TESTING=$(usex test) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + doicon images/sqlitebrowser.svg +} |