summaryrefslogtreecommitdiff
blob: 29df565238396353334bd6e8d709eef1c62e0e21 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/junkie/junkie-0.3.1-r1.ebuild,v 1.4 2005/01/25 17:29:50 greg_g Exp $

inherit gnome2

S=${WORKDIR}/${PN}${PV}
DESCRIPTION="Junkie - GTK2 FTP Client"
SRC_URI="mirror://sourceforge/${PN}/${PN}${PV}.tar.bz2"
HOMEPAGE="http://sourceforge.net/projects/junkie"

SLOT="0"
LICENSE="BSD"
KEYWORDS="x86 ~ppc ~sparc"

DEPEND=">=x11-libs/gtk+-2.0.3
	>=dev-libs/glib-2.0.0"

src_install() {
	# Files "AUTHORS" and "COPYING" should also be here, but they are empty and dodoc can do nothing with them

	GNOME_LINKS_DIR="/usr/share/applications"
	GNOME_ICONS_DIR="/usr/share/pixmaps"

	ICONS="logo.png logo.gif logo.jpg"
	emake install DESTDIR=${D} || die "ERROR: I cannot install ${P}"

	if use gnome;
	then
		dodir ${GNOME_LINKS_DIR} ${GNOME_ICONS_DIR}
		einfo "Installing Gnome icons in ${GNOME_ICONS_DIR}"
		for x in ${ICONS}
		do
			cp ${S}/$x ${D}/${GNOME_ICONS_DIR}/junkie-$x
		done

		cp ${FILESDIR}/junkie.desktop ${D}/${GNOME_LINKS_DIR}
	fi

	KDE_LINKS_DIR="/usr/share/applnk/Internet"
	KDE_ICONS_DIR="/usr/share/pixmaps"

	if use kde;
	then
		dodir ${KDE_LINKS_DIR} ${KDE_ICONS_DIR}
		einfo "Installing KDE icons"
		for x in ${ICONS}
		do
			cp ${S}/$x ${D}/${KDE_ICONS_DIR}/junkie-$x
		done
		cp ${FILESDIR}/junkie.desktop ${D}/${KDE_LINKS_DIR}
	fi

	dodoc ChangeLog INSTALL NEWS README
}