summaryrefslogtreecommitdiff
blob: c9d26be7613e1d63246fa05e8f3599e510c2ed09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="simple but powerfull Sqlite3 GUI database manager"
HOMEPAGE="http://www.assembla.com/space/sqliteman/"
SRC_URI="mirror://sourceforge/sqliteman/${P/_pre/-}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"

DEPEND="${RDEPEND}
		dev-util/cmake"
RDEPEND=">=x11-libs/qt-4.2
		>=dev-db/sqlite-3.0"

MY_P="sqliteman-0.99"

S=${WORKDIR}/${MY_P}

src_compile() {
	if  ! built_with_use x11-libs/qt sqlite3; then
		eerror "sqliteman requires that x11-libs/qt will be"
		eerror "compiled with sqlite3 support"
		die "Please, rebuild x11-libs/qt with the \"sqlite3\" USE flag."
	fi
	cmake . \
		-DCMAKE_INSTALL_PREFIX:PATH=/usr \
		-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
		-DCMAKE_C_FLAGS="${CFLAGS}" \
		|| die "cmake failed"
	emake || die "Compile Failed!"
}

src_install() {
	emake DESTDIR="${D}" install || die "Install Failed!"

	if use doc ; then
		dodoc AUTHORS README
	fi
}