Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 311715
Collapse All | Expand All

(-)munin-1.4.4.ebuild (-11 / +14 lines)
Lines 1-10 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/munin-1.4.4.ebuild,v 1.1 2010/03/28 05:23:49 darkside Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/munin-1.4.3.ebuild,v 1.3 2010/02/10 16:38:14 darkside Exp $
4
4
5
EAPI=2
5
EAPI=2
6
6
7
inherit eutils
7
inherit eutils java-pkg-opt-2
8
8
9
DESCRIPTION="Munin Server Monitoring Tool"
9
DESCRIPTION="Munin Server Monitoring Tool"
10
HOMEPAGE="http://munin.projects.linpro.no/"
10
HOMEPAGE="http://munin.projects.linpro.no/"
Lines 21-27 Link Here
21
DEPEND_COM="dev-lang/perl
21
DEPEND_COM="dev-lang/perl
22
			sys-process/procps
22
			sys-process/procps
23
			irc? ( dev-perl/Net-IRC )
23
			irc? ( dev-perl/Net-IRC )
24
			java? ( >=virtual/jdk-1.5 )
25
			mysql? ( virtual/mysql dev-perl/Cache-Cache )
24
			mysql? ( virtual/mysql dev-perl/Cache-Cache )
26
			ssl? ( dev-perl/Net-SSLeay )
25
			ssl? ( dev-perl/Net-SSLeay )
27
			postgres? ( dev-perl/DBD-Pg virtual/postgresql-base )
26
			postgres? ( dev-perl/DBD-Pg virtual/postgresql-base )
Lines 45-57 Link Here
45
44
46
# Keep this seperate, as previous versions have had other deps here
45
# Keep this seperate, as previous versions have had other deps here
47
DEPEND="${DEPEND_COM}
46
DEPEND="${DEPEND_COM}
48
	virtual/perl-Module-Build"
47
	virtual/perl-Module-Build
48
	java? ( >=virtual/jdk-1.5 )"
49
RDEPEND="${DEPEND_COM}
49
RDEPEND="${DEPEND_COM}
50
		!minimal? ( virtual/cron )"
50
	!minimal? ( virtual/cron )
51
	java? ( >=virtual/jre-1.5 )"
51
52
52
pkg_setup() {
53
pkg_setup() {
53
	enewgroup munin
54
	enewgroup munin
54
	enewuser munin 177 -1 /var/lib/munin munin
55
	enewuser munin 177 -1 /var/lib/munin munin
56
	java-pkg-opt-2_pkg_setup
55
}
57
}
56
58
57
src_prepare() {
59
src_prepare() {
Lines 60-74 Link Here
60
	epatch "${FILESDIR}"/${P}-Makefile.patch
62
	epatch "${FILESDIR}"/${P}-Makefile.patch
61
63
62
	# Don't build java plugins if not requested via USE.
64
	# Don't build java plugins if not requested via USE.
63
	if ! use java; then
65
	#if ! use java; then
64
		# sed is needed so the java plugins aren't automagically built.
66
	#	# sed is needed so the java plugins aren't automagically built.
65
		sed -i -e 's: build-plugins-java : :' \
67
	#	sed -i -e 's: build-plugins-java : :' \
66
			-e 's: install-plugins-java : :' Makefile || die
68
	#		-e 's: install-plugins-java : :' Makefile || die
67
	fi
69
	#fi
70
	java-pkg-opt-2_src_prepare
68
}
71
}
69
72
70
src_compile() {
73
src_compile() {
71
	emake -j 1 build build-man || die "build/build-man failed"
74
	emake -j 1 JC=$(JAVAC) JFLAGS=$(JAVACFLAGS) JCVALID=$(use java && echo yes) build build-man || die "build/build-man failed"
72
	if use doc; then
75
	if use doc; then
73
		emake -j 1 build-doc || die "build-doc failed"
76
		emake -j 1 build-doc || die "build-doc failed"
74
	fi
77
	fi

Return to bug 311715