blob: bde8998c209ccfe1ace45e5ef0442a350a1f6a1c (
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
46
47
48
49
50
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
WX_GTK_VER="2.6"
inherit eutils wxwidgets
DESCRIPTION="a C++ wrapper around the public domain SQLite 3.x database"
HOMEPAGE="http://wxcode.sourceforge.net/components/wxsqlite3/"
SRC_URI="mirror://sourceforge/wxcode/wxsqlite3-${PV}.tar.gz"
LICENSE="wxWinLL-3"
SLOT="0"
KEYWORDS="~x86"
IUSE="unicode"
DEPEND="=x11-libs/wxGTK-2.6*
=dev-db/sqlite-3*"
RDEPEND="${DEPEND}"
S="${WORKDIR}/wxsqlite3"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-makefile_in.patch"
}
src_compile() {
use unicode && need-wxwidgets unicode
econf \
$(use_enable unicode) \
--enable-shared \
--with-wx-config="${WX_CONFIG}" \
--with-gtk \
--with-wxshared \
--with-sqlite3-prefix=/usr
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc Readme.txt
dohtml -r docs/html/*
docinto samples
dodoc -r samples/*
}
|