summaryrefslogtreecommitdiff
blob: 35d1d979945bde6cff7476029edce26d827f5760 (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-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/disc-cover/disc-cover-1.5.4.ebuild,v 1.5 2004/06/05 23:38:26 dragonheart Exp $

DESCRIPTION="Creates CD-Covers via Latex by fetching cd-info from freedb.org or local file"
HOMEPAGE="http://www.cwi.nl/~jvhemert/disc-cover.html"
SRC_URI="http://www.cwi.nl/~jvhemert/files/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~sparc"
IUSE=""

DEPEND="dev-lang/perl
	>=sys-apps/sed-4"
RDEPEND="dev-lang/perl
	>=dev-perl/Audio-CD-disc-cover-0.05
	virtual/tetex"

src_compile() {
	sed -i -e "s#/usr/share/disc-cover/#/etc/webapps/${PF}/#" disc-cover
	pod2man disc-cover > disc-cover.1 || die
}

src_install() {
	dobin disc-cover || die
	doman disc-cover.1

	dodoc AUTHORS CHANGELOG TODO

	exeinto /usr/share/webapps/${PF}/cgi-bin/
	doexe index.cgi online.cgi

	insinto /usr/share/webapps/${PF}/htdocs/
	doins busy.png offline.png online.png

	insinto /etc/webapps/${PF}/templates
	doins templates/*
}