1 |
commit: d1f6c36477476add0efe1389a7ce4eccac2c0213 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 6 21:46:43 2015 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 6 21:49:49 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1f6c364 |
7 |
|
8 |
dev-db/sqlitebrowser: Use the new antlr-cpp package instead of antlr |
9 |
|
10 |
The non-Java parts of antlr have now been split out. The Java part |
11 |
isn't required in this case. |
12 |
|
13 |
Package-Manager: portage-2.2.26 |
14 |
|
15 |
dev-db/sqlitebrowser/sqlitebrowser-3.7.0-r1.ebuild | 60 ++++++++++++++++++++++ |
16 |
1 file changed, 60 insertions(+) |
17 |
|
18 |
diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.7.0-r1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.7.0-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..3ebd2cb |
21 |
--- /dev/null |
22 |
+++ b/dev-db/sqlitebrowser/sqlitebrowser-3.7.0-r1.ebuild |
23 |
@@ -0,0 +1,60 @@ |
24 |
+# Copyright 1999-2015 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=5 |
29 |
+ |
30 |
+CMAKE_MAKEFILE_GENERATOR=ninja |
31 |
+ |
32 |
+inherit eutils cmake-utils |
33 |
+ |
34 |
+DESCRIPTION="SQLite Database Browser" |
35 |
+HOMEPAGE="http://sqlitebrowser.org" |
36 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="GPL-3 MPL-2.0" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~x86" |
41 |
+IUSE="qt4 qt5 test" |
42 |
+ |
43 |
+REQUIRED_USE="^^ ( qt4 qt5 )" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ dev-cpp/antlr-cpp:2= |
47 |
+ dev-db/sqlite:3 |
48 |
+ dev-libs/qcustomplot[qt5=] |
49 |
+ x11-libs/qscintilla |
50 |
+ qt4? ( |
51 |
+ dev-qt/qtcore:4 |
52 |
+ dev-qt/qtgui:4 |
53 |
+ ) |
54 |
+ qt5? ( |
55 |
+ dev-qt/qtnetwork:5 |
56 |
+ dev-qt/qttest:5 |
57 |
+ dev-qt/qtwidgets:5 |
58 |
+ )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ qt5? ( dev-qt/linguist-tools:5 ) |
61 |
+" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}"/${P}-unbundle.patch ) |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ # https://github.com/qingfengxia/qhexedit still bundled |
67 |
+ # x11-libs/qscintilla[qt4?,qt5?] still bundled |
68 |
+ find libs/{antlr-2.7.7,qcustomplot-source} -delete || die |
69 |
+ cmake-utils_src_prepare |
70 |
+} |
71 |
+ |
72 |
+src_configure() { |
73 |
+ local mycmakeargs=( |
74 |
+ $(cmake-utils_use_use qt5) |
75 |
+ $(cmake-utils_use_enable test TESTING) |
76 |
+ ) |
77 |
+ cmake-utils_src_configure |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ cmake-utils_src_install |
82 |
+ doicon images/sqlitebrowser.svg |
83 |
+} |