blob: 7717a5b81f09c3322a9f9fbe0916d4a67d93309b (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: George Shapovalov <georges@its.caltech.edu>
# $Header: /var/cvsroot/gentoo-x86/media-sound/rip/rip-1.01.ebuild,v 1.2 2002/04/27 23:34:20 bangert Exp $
S="${WORKDIR}/${P}"
DESCRIPTION="A command-line based audio CD ripper and mp3 encoder"
SRC_URI="http://rip.sourceforge.net/download/${P}.tar.gz"
HOMEPAGE="http://rip.sourceforge.net"
DEPEND=""
RDEPEND="media-sound/cdparanoia
media-sound/lame"
# Use this function to unpack your sources and apply patches, and run
# autoconf/automake/etc. if necessary. By default, this function unpacks
# the packages in ${A} and applies ${PF}-gentoo.diff. The default
# starting directory is ${WORKDIR}.
#
src_unpack() {
unpack "${P}.tar.gz"
cd "${S}"
#we need to unpack supplementary perl modules
tar xzf CDDB_get-1.66.tar.gz
tar xzf MP3-Info-0.91.tar.gz
}
src_compile() {
#the thing itself is just a perl script
#but we need to make suppl perl modules
cd CDDB_get-1.66
perl Makefile.PL && make || die "could not prepare CDDB access perl module"
cd ..
cd MP3-Info-0.91
perl Makefile.PL && make || die "could not prepare CDDB access perl module"
cd ..
}
src_install () {
chmod 755 rip
dobin rip || die
#now we need to install perl modules
cd CDDB_get-1.66
make \
PREFIX=${D}/usr \
INSTALLMAN3DIR=${D}/usr/share/man/man3 \
INSTALLMAN1DIR=${D}/usr/share/man/man1 \
install || die
cd ../MP3-Info-0.91
make \
PREFIX=${D}/usr \
INSTALLMAN3DIR=${D}/usr/share/man/man3 \
INSTALLMAN1DIR=${D}/usr/share/man/man1 \
install || die
# Install documentation.
dodoc COPYING FAQ README
}
|