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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jun 16 00:39:31 2015 UTC (5 years, 1 month ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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.6.0.ebuild,v 1.1 2015/06/02 08:24:05 xmw 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 x11-libs/qscintilla
27 qt4? (
28 dev-qt/qtcore:4
29 dev-qt/qtgui:4
30 )
31 qt5? (
32 dev-qt/linguist:5
33 dev-qt/linguist-tools:5
34 dev-qt/qtnetwork:5
35 dev-qt/qttest:5
36 dev-qt/qtwidgets:5
37 )"
38 RDEPEND="${DEPEND}"
39
40 PATCHES=( "${FILESDIR}"/${P}-unbundle-keep-qscintilla.patch )
41
42 src_prepare() {
43 # https://github.com/qingfengxia/qhexedit still bundled
44 # x11-libs/qscintilla[qt4?,qt5?] still bundled
45 find libs/{antlr-2.7.7,qcustomplot-source} -delete || die
46 cmake-utils_src_prepare
47 }
48
49 src_configure() {
50 local mycmakeargs=(
51 $(cmake-utils_use_use qt5)
52 )
53 cmake-utils_src_configure
54 if use test; then
55 BUILD_DIR="${S}"/tests CMAKE_USE_DIR="${S}"/tests cmake-utils_src_configure
56 fi
57 }
58
59 src_compile() {
60 cmake-utils_src_compile
61 if use test; then
62 BUILD_DIR="${S}"/tests CMAKE_USE_DIR="${S}"/tests cmake-utils_src_compile
63 fi
64 }
65
66 src_test() {
67 tests/sqlb-unittests || die
68 }
69
70 src_install() {
71 cmake-utils_src_install
72 doicon images/sqlitebrowser.svg
73 domenu distri/sqlitebrowser.desktop
74 }

  ViewVC Help
Powered by ViewVC 1.1.20