summaryrefslogtreecommitdiff
blob: 62df8a8e52c74488808046c2590903f5871cc8e2 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils versionator

MY_P=SCMBUG_RELEASE_$(replace_all_version_separators -)

DESCRIPTION="integrates verion control system with bug trackers"
HOMEPAGE="http://www.mkgnu.net/?q=scmbug"
SRC_URI="http://files.mkgnu.net/files/scmbug/${MY_P}/source/${MY_P}.tar.gz"

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

DEPEND="doc? ( media-gfx/transfig )"
RDEPEND="dev-perl/Mail-Sendmail"

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}
	cd "${S}"

	# Remove threads dependency which crashes SCMBUG at startup
	# and use fork instead
	epatch "${FILESDIR}/${P}-threads.patch"
}

src_compile() {
	econf $(use_with doc)
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
}