summaryrefslogtreecommitdiff
blob: cabf3e0eaca82d236b8916c3ec3de1e5aa8b6c77 (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-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Bruce A. Locke <blocke@shivan.org>
# $Header: /var/cvsroot/gentoo-x86/media-sound/grip/grip-2.96-r2.ebuild,v 1.1 2001/10/07 17:29:35 danarmak Exp $


A=${P}.tgz
S=${WORKDIR}/${P}
DESCRIPTION="GTK+ based Audio CD Ripper"
SRC_URI="http://www.nostatic.org/grip/${A}"
HOMEPAGE="http://www.nostatic.org/grip"

DEPEND="media-sound/cdparanoia"

# Seems to be fixed...
#src_unpack() {
#
#   # author forgot to gzip his tgz file... sigh
#   cd ${WORKDIR}
#   tar xvf ${DISTDIR}/${P}.tgz
#
#}

src_compile() {

   # grip doesn't have a nice configure script and requires some
   # symlink love to build

   cd ${S}

   mkdir cdparanoia
   mkdir cdparanoia/interface
   mkdir cdparanoia/paranoia
   ln -s /usr/lib/libcdda* cdparanoia/interface/
   ln -s /usr/lib/libcdda* cdparanoia/paranoia/
   ln -s /usr/include/*cdda* cdparanoia/interface/
   ln -s /usr/include/*cdda* cdparanoia/paranoia/
   ln -s /usr/include/utils.h cdparanoia/utils.h

   # apply CFLAGS
   mv Makefile Makefile.old
   sed -e "s/-Wall/-Wall ${CFLAGS}/" -e "s/PREFIX=\/usr/PREFIX=\/usr\/X11R6/" Makefile.old > Makefile

   try make all

}

src_install () {
    cd ${S}

    dodir /usr/bin

    cp ${S}/grip ${D}/usr/bin
    cp ${S}/gcd ${D}/usr/bin

    dodir /usr/man/man1

    gzip ${S}/grip.1
    cp ${S}/grip.1.gz ${D}/usr/man/man1
    cp ${S}/grip.1.gz ${D}/usr/man/man1/gcd.1.gz

    dodoc README LICENSE TODO CREDITS CHANGES

    insinto /usr/include/X11/pixmaps
    doins pixmaps/*.xpm

}