summaryrefslogtreecommitdiff
blob: 07094cbe179f8124f898ff2f7c10f211c1ac2165 (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-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

MY_PN=${PN##lib}

DESCRIPTION="Brokken's own base classes and templates"
HOMEPAGE="http://bobcat.sourceforge.net/"
# Note: Upstreamm is a Debian dev, latest tarball not released upstream
SRC_URI="mirror://debian/pool/main/b/${MY_PN}/${MY_PN}_${PV}.orig.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+milter"

# TODO dependency on bisonc++?
RDEPEND="
	milter? (
		|| (
			mail-filter/libmilter
			mail-mta/sendmail
		) )"
DEPEND="${RDEPEND}
	dev-util/icmake"

S=${WORKDIR}/${MY_PN}-${PV}

src_prepare() {
	sed 's|^\(#define COPT \+"-Itmp \).\+"$|\1'"${CXXFLAGS}"'"|' -i build \
		|| die 'sed failed (file missing)'
}

src_compile() {
	./build libraries all lcgen
	if use milter; then
		./build all || die
	fi
}

src_install() {
	./build install "${D}" "${D}" || die
}