summaryrefslogtreecommitdiff
blob: cd4a8921a1fa42cda08b0e9fc9f143de4d188a19 (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-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/amphetadesk/amphetadesk-0.93.1.ebuild,v 1.2 2003/05/23 18:15:44 tberman Exp $

DESCRIPTION="AmphetaDesk is a free syndicated news aggregator"
HOMEPAGE="http://www.disobey.com/amphetadesk/"
SRC_URI="mirror://sourceforge/sourceforge/amphetadesk/${PN}-src-v${PV}.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="dev-lang/perl
	dev-perl/libwww-perl
	dev-libs/expat
	dev-perl/XML-Parser
	dev-perl/Compress-Zlib"
S=${WORKDIR}/${PN}-src-v${PV}


src_install() {
	dodir /usr/share/amphetadesk
	cp ${S}/AmphetaDesk.pl ${D}/usr/share/amphetadesk/AmphetaDesk.pl
	dodoc README.txt
	cp -R ${S}/data ${D}/usr/share/amphetadesk
	cp -R ${S}/docs ${D}/usr/share/amphetadesk
	cp -R ${S}/lib ${D}/usr/share/amphetadesk
	cp -R ${S}/templates ${D}/usr/share/amphetadesk
	exeinto /etc/init.d; newexe ${FILESDIR}/amphetadesk.initd amphetadesk
}

pkg_postinst() {
	einfo "AmphetaDesk should be started and stopped with the runscript located at "
	einfo "'/etc/init.d/amphetadesk'. You can access AmphetaDesk after it has been"
	einfo "started in your browser of choice on port 8888."
	einfo ""
	ewarn "If you start AmphetaDesk at boot with rc-update don't give it a browser"
	ewarn "to start up when it loads (in the options page)"
}