You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
61 lines
1.2 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
10 years ago
|
|
||
8 years ago
|
inherit cmake-utils eutils
|
||
10 years ago
|
|
||
|
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"
|
||
8 years ago
|
IUSE="test"
|
||
10 years ago
|
|
||
9 years ago
|
RDEPEND="
|
||
8 years ago
|
dev-cpp/antlr-cpp:2
|
||
9 years ago
|
dev-db/sqlite:3
|
||
8 years ago
|
dev-libs/qcustomplot[qt5]
|
||
|
dev-qt/qtgui:5
|
||
|
dev-qt/qtnetwork:5
|
||
|
dev-qt/qtwidgets:5
|
||
8 years ago
|
>=x11-libs/qscintilla-2.9.3-r2:=[qt5(+)]
|
||
8 years ago
|
"
|
||
9 years ago
|
DEPEND="${RDEPEND}
|
||
8 years ago
|
dev-qt/linguist-tools:5
|
||
|
test? ( dev-qt/qttest:5 )
|
||
9 years ago
|
"
|
||
10 years ago
|
|
||
8 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-3.7.0-unbundle.patch
|
||
|
"${FILESDIR}"/${PN}-3.9.1-cmake.patch
|
||
|
)
|
||
10 years ago
|
|
||
|
src_prepare() {
|
||
8 years ago
|
cmake-utils_src_prepare
|
||
10 years ago
|
# https://github.com/qingfengxia/qhexedit still bundled
|
||
9 years ago
|
# x11-libs/qscintilla[qt4?,qt5?] still bundled
|
||
10 years ago
|
find libs/{antlr-2.7.7,qcustomplot-source} -delete || die
|
||
8 years ago
|
|
||
|
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
|
||
10 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
8 years ago
|
-DUSE_QT5=ON
|
||
|
-DENABLE_TESTING=$(usex test)
|
||
10 years ago
|
)
|
||
|
cmake-utils_src_configure
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
cmake-utils_src_install
|
||
|
doicon images/sqlitebrowser.svg
|
||
|
}
|