diff options
Diffstat (limited to 'www-apps/disc-cover/disc-cover-1.5.4-r1.ebuild')
-rw-r--r-- | www-apps/disc-cover/disc-cover-1.5.4-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/www-apps/disc-cover/disc-cover-1.5.4-r1.ebuild b/www-apps/disc-cover/disc-cover-1.5.4-r1.ebuild new file mode 100644 index 000000000000..1fffc5d383cc --- /dev/null +++ b/www-apps/disc-cover/disc-cover-1.5.4-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/disc-cover/disc-cover-1.5.4-r1.ebuild,v 1.1 2005/07/15 19:07:00 dju Exp $ + +inherit webapp + +DESCRIPTION="A web frontend to disc-cover." +HOMEPAGE="http://homepages.inf.ed.ac.uk/jvanheme/disc-cover.html" +SRC_URI="http://homepages.inf.ed.ac.uk/jvanheme/files/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~x86" +IUSE="" + +SLOT="0" +WEBAPP_MANUAL_SLOT="yes" + +DEPEND="=app-cdr/disc-cover-${PVR}" + +src_unpack() { + unpack ${A} + + sed -e "s,\\./disc-cover,disc-cover,g + s,\"disc-cover\",\"/usr/bin/disc-cover\", + s,\"templates\",\"/usr/share/disc-cover/templates\", + s,templates/\$template,/usr/share/disc-cover/templates/\$template," -i ${S}/index.cgi || die + + sed -e "s|\\./disc-cover|disc-cover| + s|\!\ -f\ \"disc-cover\"\ or\ || + s|\"\$picture\"|\"/usr/share/disc-cover/\"\.\"\$picture\"|" -i ${S}/online.cgi || die +} + +src_install() { + webapp_src_preinst + + exeinto ${MY_CGIBINDIR} + doexe index.cgi online.cgi + + insinto /usr/share/${PN}/ + doins busy.png offline.png online.png + + for lang in en; do + webapp_postinst_txt ${lang} ${FILESDIR}/postinst-${lang}.txt + done + + webapp_src_install +} |