/[gentoo-x86]/dev-db/sqlitebrowser/sqlitebrowser-3.5.1.ebuild
Gentoo

Contents of /dev-db/sqlitebrowser/sqlitebrowser-3.5.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Jun 16 00:39:31 2015 UTC (5 years ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +4 -4 lines
Adjust dev-libs/qcustomplot USE deps.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/sqlitebrowser/sqlitebrowser-3.5.1.ebuild,v 1.3 2015/03/21 09:20:34 jlec Exp $
4
5 EAPI=5
6
7 CMAKE_MAKEFILE_GENERATOR=ninja
8
9 inherit eutils cmake-utils
10
11 DESCRIPTION="SQLite Database Browser"
12 HOMEPAGE="http://sqlitebrowser.org"
13 SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14
15 LICENSE="GPL-3 MPL-2.0"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="qt4 qt5 test"
19
20 REQUIRED_USE="^^ ( qt4 qt5 )"
21
22 DEPEND="
23 dev-db/sqlite:3
24 dev-java/antlr:0[cxx]
25 dev-libs/qcustomplot[qt5=]
26 qt4? (
27 dev-qt/qtcore:4
28 dev-qt/qtgui:4
29 )
30 qt5? (
31 dev-qt/linguist:5
32 dev-qt/linguist-tools:5
33 dev-qt/qtnetwork:5
34 dev-qt/qttest:5
35 dev-qt/qtwidgets:5
36 )"
37 RDEPEND="${DEPEND}"
38
39 PATCHES=( "${FILESDIR}"/${P}-unbundle.patch )
40
41 src_prepare() {
42 # https://github.com/qingfengxia/qhexedit still bundled
43 find libs/{antlr-2.7.7,qcustomplot-source} -delete || die
44 cmake-utils_src_prepare
45 }
46
47 src_configure() {
48 local mycmakeargs=(
49 $(cmake-utils_use_use qt5)
50 )
51 cmake-utils_src_configure
52 if use test; then
53 BUILD_DIR="${S}"/tests CMAKE_USE_DIR="${S}"/tests cmake-utils_src_configure
54 fi
55 }
56
57 src_compile() {
58 cmake-utils_src_compile
59 if use test; then
60 BUILD_DIR="${S}"/tests CMAKE_USE_DIR="${S}"/tests cmake-utils_src_compile
61 fi
62 }
63
64 src_test() {
65 tests/sqlb-unittests || die
66 }
67
68 src_install() {
69 cmake-utils_src_install
70 doicon images/sqlitebrowser.svg
71 domenu distri/sqlitebrowser.desktop
72 }

  ViewVC Help
Powered by ViewVC 1.1.20