blob: ba8d5c1e4e8fd00035b0ece172dc3c39181f68ee (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/endeavour/endeavour-2.1.20-r1.ebuild,v 1.12 2005/01/01 15:00:36 eradicator Exp $
inherit eutils
M=endeavour2-mimetypes
DESCRIPTION="powerful file and image browser"
HOMEPAGE="http://wolfpack.twu.net/Endeavour2/"
SRC_URI="ftp://wolfpack.twu.net/users/wolfpack/${P}.tar.bz2
ftp://wolfpack.twu.net/users/wolfpack/${M}.tgz"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="x86 ppc"
DEPEND="app-arch/bzip2
=x11-libs/gtk+-1.2*
>=media-libs/imlib-1.9.14"
src_unpack() {
unpack ${P}.tar.bz2
unpack ${M}.tgz
#need to remove reference to ctypes.h from fio.cpp to make gcc-3.x compile the package
cd ${S}/endeavour2
sed -i -e "s:#include <ctype.h>://#include <ctype.h>:" fio.cpp
if [ "${ARCH}" = "ppc" -o "${ARCH}" = "sparc" -o "${ARCH}" = "sparc64" ]; then
# This patch fixes inverted color on big endian machines
einfo "Applying big endian patch..."
cd ${S}; epatch ${FILESDIR}/${P}-bigendian.diff
fi
}
src_compile() {
./configure Linux --prefix=/usr || die
emake || die "Parallel make failed"
}
src_install() {
dodoc AUTHORS HACKING INSTALL README TODO
cd endeavour2
dobin endeavour2
bunzip2 endeavour2.1.bz2
doman endeavour2.1
dodir /usr/share/endeavour2
cp -R data/* ${D}/usr/share/endeavour2
cd images
insinto /usr/share/icons
doins endeavour_48x48.xpm image_browser_48x48.xpm icon_trash_48x48.xpm \
icon_trash_empty_48x48.xpm
# install mimetypes
cd ${WORKDIR}/${M}
mv README README.mimetypes
dodoc README.mimetypes
insinto /usr/share/endeavour2/
doins mimetypes.ini
}
|