Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/sqliteman/, dev-db/sqliteman/files/
Date: Sun, 16 Apr 2017 22:27:33
Message-Id: 1492381641.fdfa8e286694ce2f4380ac8313a112174bdb35a8.asturm@gentoo
1 commit: fdfa8e286694ce2f4380ac8313a112174bdb35a8
2 Author: Jouni Kosonen <jouni.kosonen <AT> tukesoft <DOT> com>
3 AuthorDate: Sun Apr 16 17:43:09 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 16 22:27:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdfa8e28
7
8 dev-db/sqliteman: Fix building with qscintilla-2.10
9
10 Closes: https://github.com/gentoo/gentoo/pull/4431
11
12 .../files/sqliteman-1.2.2-qscintilla-2.10.patch | 13 +++++++++
13 dev-db/sqliteman/sqliteman-1.2.2-r3.ebuild | 34 ++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/dev-db/sqliteman/files/sqliteman-1.2.2-qscintilla-2.10.patch b/dev-db/sqliteman/files/sqliteman-1.2.2-qscintilla-2.10.patch
17 new file mode 100644
18 index 00000000000..c197ad34211
19 --- /dev/null
20 +++ b/dev-db/sqliteman/files/sqliteman-1.2.2-qscintilla-2.10.patch
21 @@ -0,0 +1,13 @@
22 +diff --git a/cmake/modules/FindQScintilla.cmake b/cmake/modules/FindQScintilla.cmake
23 +index c4592d0..7700ec4 100644
24 +--- a/cmake/modules/FindQScintilla.cmake
25 ++++ b/cmake/modules/FindQScintilla.cmake
26 +@@ -21,7 +21,7 @@ IF(QT4_FOUND)
27 + "${QT_INCLUDE_DIR}/Qsci" /usr/include /usr/include/Qsci
28 + )
29 +
30 +- SET(QSCINTILLA_NAMES ${QSCINTILLA_NAMES} qscintilla2 libqscintilla2)
31 ++ SET(QSCINTILLA_NAMES ${QSCINTILLA_NAMES} qscintilla2 libqscintilla2 qscintilla2_qt4 libqscintilla2_qt4)
32 + FIND_LIBRARY(QSCINTILLA_LIBRARY
33 + NAMES ${QSCINTILLA_NAMES}
34 + PATHS ${QT_LIBRARY_DIR}
35
36 diff --git a/dev-db/sqliteman/sqliteman-1.2.2-r3.ebuild b/dev-db/sqliteman/sqliteman-1.2.2-r3.ebuild
37 new file mode 100644
38 index 00000000000..6b05f4741a6
39 --- /dev/null
40 +++ b/dev-db/sqliteman/sqliteman-1.2.2-r3.ebuild
41 @@ -0,0 +1,34 @@
42 +# Copyright 1999-2017 Gentoo Foundation
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=6
46 +
47 +inherit cmake-utils
48 +
49 +DESCRIPTION="Powerful GUI manager for the Sqlite3 database"
50 +HOMEPAGE="http://sqliteman.sourceforge.net/"
51 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~arm ~x86"
56 +IUSE=""
57 +
58 +RDEPEND="
59 + dev-qt/qtcore:4
60 + dev-qt/qtgui:4
61 + dev-qt/qtsql:4[sqlite]
62 + x11-libs/qscintilla:=[qt4(-)]"
63 +DEPEND="${RDEPEND}"
64 +
65 +PATCHES=(
66 + "${FILESDIR}/${P}-lpthread.patch"
67 + "${FILESDIR}/${P}-qscintilla-2.10.patch"
68 +)
69 +
70 +src_prepare() {
71 + # remove bundled lib
72 + rm -rf "${S}"/${PN}/qscintilla2 || die
73 +
74 + cmake-utils_src_prepare
75 +}