blob: 0dfb04966dbc97d790f0bac4aad1360326ed219b (
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
40
41
42
43
44
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/cdcat/cdcat-0.3.ebuild,v 1.9 2005/01/01 14:55:16 eradicator Exp $
DESCRIPTION="simple yet effective CD indexing program"
SRC_URI="http://littledragon.home.ro/unix/${P}.tar.gz"
HOMEPAGE="http://littledragon.home.ro/unix/"
SLOT="0"
LICENSE="GPL-2"
IUSE=""
KEYWORDS="x86 ppc ~amd64"
DEPEND=">=sys-apps/sed-4.0.5
>=sys-apps/grep-2.4.2
>=sys-apps/findutils-4.1
>=app-cdr/cdrtools-1.11
!app-cdr/cdbkup"
src_unpack() {
unpack ${A}
cd ${S}
# workaround install.sh ignoring --man_prefix
sed -i 's:^MAN_PREFIX:#:' install.sh
# fix path to cd index files to be FHS-compliant
sed -i 's:/mnt/ext/cd:/var/lib/cdcat:' src/cdcat.pl
}
src_install() {
# workaround install.sh ignoring --man_prefix
export MAN_PREFIX=${D}/usr/share/man
dodir /usr/share/man/man1
# create index files path
dodir /var/lib/cdcat
chgrp cdrom ${D}/var/lib/cdcat
chmod g+ws,o+w ${D}/var/lib/cdcat
# now use the included install.sh
./install.sh --prefix=${D}/usr \
--man_prefix=${D}/usr/share/man || die "Install script failed."
}
|