summaryrefslogtreecommitdiff
blob: 11cbe8bbd02822e010973f8510f80fa69fc5cc9d (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5

DESCRIPTION="Makes usable statistics from your web site log file analysis"
HOMEPAGE="http://www.reportmagic.org/"
SRC_URI="http://www.reportmagic.org/rmagic-${PV}.tar.gz"

LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="truetype"

DEPEND="sys-libs/zlib
	media-libs/libpng
	media-libs/gd
	truetype? ( media-libs/freetype )
	virtual/jpeg
	dev-perl/GD
	dev-perl/Config-IniFiles
	virtual/perl-File-Spec
	dev-perl/HTML-Tagset
	dev-perl/HTML-Parser
	dev-perl/GDGraph
	virtual/perl-File-Temp
	dev-perl/GD-Graph3d"

S="${WORKDIR}/rmagic-${PV}"

src_install() {
	sed -i \
		-e "s:^\$DEST.*:\$DEST='${ED}/usr/share/reportmagic';:g" \
		-e "s:^\$DOC.*:\$DOC='${ED}/usr/share/doc/${PF}';:g" \
		Install.PL \
		|| die "sed failed"
	perl Install.PL -no_modules
}