summaryrefslogtreecommitdiff
path: root/media-libs/liblingoteach/liblingoteach-0.2.3-r3.ebuild
blob: 8383b34fc49720b742cc2b8d5b3eb7ed4bcb01c1 (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="A library to support lingoteach-ui and for generic lesson development"
HOMEPAGE="http://lingoteach.sourceforge.net"
SRC_URI="https://downloads.sourceforge.net/lingoteach/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="debug zlib"

RDEPEND="
	zlib? ( virtual/zlib:= )
	dev-libs/libxml2:=
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

src_prepare() {
	default

	# bug #899826
	eautoreconf
}

src_configure() {
	local myeconfargs=(
		$(use_enable zlib compression)
		$(use_enable debug)
	)
	econf "${myeconfargs[@]}"
}

src_install() {
	default
	find "${ED}" -name '*.la' -delete || die
	mv "${ED}/usr/share/doc/${P}" "${ED}/usr/share/doc/${PF}" || die
}