summaryrefslogtreecommitdiff
blob: 125a2ee3236f48302febd1a42fd6c65bfc7c77ae (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
68
69
70
71
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-www/opera/opera-5.0-r1.ebuild,v 1.1 2001/10/06 15:30:16 danarmak Exp $

P=opera-5.0-dynamic.i386
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Opera webbrowser"
SRC_URI="ftp://ftp.opera.com/pub/opera/linux/500/opera-5.0-dynamic.i386.tar.gz"
HOMEPAGE="http://www.opera.com"

DEPEND=">=x11-libs/qt-x11-2.3.0"

src_install() {

  T=/usr
  exeinto $T/bin
  doexe opera

  insinto $T/share/opera/buttons
  doins buttons/*
  insinto $T/share/opera/buttons/default
  doins buttons/default/*
  insinto $T/share/opera/buttons/defsmall
  doins buttons/defsmall/*

  insinto $T/share/opera/help
  doins help/*

  insinto $T/share/opera/images
  doins images/*

  insinto $T/share/opera/styles
  doins styles/*

  insinto $T/share/opera
  doins opera.xpm opera.wmconfig opera.desktop opera_*.png
  doins opera.adr

  insinto /etc/skel/.opera
  doins opera.adr

  insinto /usr/X11R6/share/pixmaps
  doins opera.xpm

  insinto /etc/X11/wmconfig
  doins opera.wmconfig

  if [ "`use gnome`" ] ; then
	insinto /opt/gnome/share/pixmaps
	doins opera.xpm
	insinto /opt/gnome/share/gnome/apps/Internet
	doins opera.desktop
  fi

  if [ "`use kde`" ] ; then
	dodir ${KDEDIR}/share/icons/{hi,lo}color
	for i in 48x48 32x32 22x22
	do
	  cp opera_${i}.png ${D}/${KDEDIR}/share/icons/hicolor
	  cp opera_${i}.png ${D}/${KDEDIR}/share/icons/locolor
	done
	insinto ${KDEDIR}/share/applnk/Internet
	doins opera.desktop
  fi
  insinto /etc/env.d
  doins ${FILESDIR}/10opera
  dodoc LICENSE
}