summaryrefslogtreecommitdiff
path: root/dev-db/wxsqlite3/wxsqlite3-4.12.4.ebuild
blob: 9c38794a037d124a481aa6f002dc8b21979ffe05 (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
51
52
53
54
55
# Copyright 2021-2026 BaldEagleOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8

inherit autotools

DESCRIPTION="C++ wrapper around the public domain SQLite 3.x database"
HOMEPAGE="https://utelle.github.io/wxsqlite3/docs/html/index.html"
SRC_URI="https://github.com/utelle/wxsqlite3/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="wxWinLL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc"

DEPEND="
	x11-libs/wxGTK[X]
	dev-db/sqlite:3
	doc? (
		app-text/doxygen[dot]
	)"
RDEPEND="${DEPEND}"

DOCS=(readme.md COPYING.txt GPL-3.0.txt LGPL-3.0.txt LICENCE.txt )

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf --prefix="${EPREFIX}/usr" --enable-shared --with-wx-config="${WX_CONFIG}"
	default
}

src_compile() {
	default

	if use doc; then
		pushd docs
		doxygen Doxyfile || die
		popd
	fi
}

src_install() {
	default
	insinto /usr/$(get_libdir)/pkgconfig
	doins ${PN}.pc

	if use doc; then
		HTML_DOCS=( docs/html/* )
		einstalldocs
    fi
}