summaryrefslogtreecommitdiff
blob: 62e347d8caf93f09c83e3a51dc843f3708ca93c6 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

WANT_AUTOMAKE=1.11

inherit autotools

DEBIAN_PV=$(ver_rs 3 '-')
DEBIAN_PATCH=${PN}_${DEBIAN_PV}.diff
ORIG_PV=${DEBIAN_PV%-*}
ORIG_P=${PN}-${ORIG_PV}

DESCRIPTION="Libtabe provides bimsphone support for xcin-2.5+"
HOMEPAGE="https://packages.qa.debian.org/libt/libtabe.html"
SRC_URI="
	mirror://debian/pool/main/${PN:0:4}/${PN}/${PN}_${ORIG_PV}.orig.tar.gz
	mirror://debian/pool/main/${PN:0:4}/libtabe/${DEBIAN_PATCH}.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="debug"

RDEPEND=">=sys-libs/db-4.5:="
DEPEND="
	${RDEPEND}
	x11-libs/libX11"

S=${WORKDIR}/${ORIG_P}.orig

PATCHES=(
	"${WORKDIR}"/${DEBIAN_PATCH}
	"${FILESDIR}"/${ORIG_P}-fabs.patch
	"${FILESDIR}"/${ORIG_P}-ldflags.patch
)

src_prepare() {
	default

	ln -s script/configure.in configure.ac || die
	eautoreconf
}

src_configure() {
	econf \
		--with-db-inc="${EPREFIX}"/usr/include \
		--with-db-lib="${EPREFIX}"/usr/$(get_libdir) \
		--with-db-bin="${EPREFIX}"/usr/bin \
		--with-db-name=db \
		--enable-shared \
		--disable-static \
		$(use_enable debug)
}

src_compile() {
	# We execute this serially because the Makefiles don't handle
	# proper cross-directory references.
	emake -C src
	emake -C util
	emake -C tsi-src
}

src_install() {
	default
	dodoc -r doc/.

	# no static archives
	find "${D}" -name '*.la' -delete || die
}