1 |
jer 08/10/02 02:59:21 |
2 |
|
3 |
Added: opera-simplify-desktop.patch |
4 |
opera-freedesktop.patch opera-gentoo.patch |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2008/10/01/opera-9-6-rc-1>. Implement install.sh changes thanks to Pacho Ramos (bug #204294). |
7 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r7-JeR i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 www-client/opera/files/opera-simplify-desktop.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/files/opera-simplify-desktop.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/files/opera-simplify-desktop.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: opera-simplify-desktop.patch |
16 |
=================================================================== |
17 |
--- install.sh~ 2008-08-12 23:39:54.000000000 +0200 |
18 |
+++ install.sh 2008-08-12 23:39:54.000000000 +0200 |
19 |
@@ -1331,20 +1331,7 @@ |
20 |
fi |
21 |
|
22 |
# Shorcuts and Icons |
23 |
- bool_icons=1 # install icons by default |
24 |
- if test "${flag_mode}" = "--force" -o "${flag_mode}" = "--prefix=" |
25 |
- then |
26 |
- warn |
27 |
- warn "Shortcut icons would be ignored if installed with the prefix \"$prefix\"." |
28 |
- if [ "$flag_mode" = "--force" ] |
29 |
- then warn "Installing them in default locations." |
30 |
- else bool_icons=0; warn "Ignoring them; menus shall lack nice icons." |
31 |
- fi |
32 |
- fi |
33 |
- |
34 |
- if test "$bool_icons" -ne 0 |
35 |
- then xdg |
36 |
- fi |
37 |
+ xdg |
38 |
|
39 |
fi # OPERADESTDIR |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 www-client/opera/files/opera-freedesktop.patch |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/files/opera-freedesktop.patch?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/files/opera-freedesktop.patch?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: opera-freedesktop.patch |
50 |
=================================================================== |
51 |
--- install.sh~ 2008-09-07 14:22:32.000000000 +0200 |
52 |
+++ install.sh 2008-09-07 14:22:32.000000000 +0200 |
53 |
@@ -1405,7 +1405,6 @@ |
54 |
EOF |
55 |
fi |
56 |
cat <<EOF |
57 |
-Encoding=UTF-8 |
58 |
Name=Opera |
59 |
Name[af]=opera |
60 |
Name[eo]=Opero |
61 |
@@ -1438,19 +1437,20 @@ |
62 |
# http://standards.freedesktop.org/menu-spec/menu-spec-latest.html |
63 |
# |
64 |
# but Chris included it anyway to fix |
65 |
-# http://bugs.gentoo.org/show_bug.cgi?id=90508 |
66 |
+# http://bugs.gentoo.org/show_bug.cgi?id=90508 -> This is already fixed |
67 |
+# in Gnome |
68 |
# |
69 |
# Other possible categories: |
70 |
# Email, Presentation, IRCClient, FileTransfer, P2P, News, WebDevelopment |
71 |
|
72 |
if test "$1" = "xdg" |
73 |
then cat <<EOF |
74 |
-Categories=Application;Qt;Network;WebBrowser;X-Ximian-Main;X-Ximian-Toplevel |
75 |
-Icon=opera.png |
76 |
+Categories=Qt;Network;WebBrowser;X-Ximian-Main;X-Ximian-Toplevel; |
77 |
+Icon=opera |
78 |
EOF |
79 |
else echo 'Icon=opera' |
80 |
fi |
81 |
- echo 'MimeType=text/html;text/xml;application/xhtml+xml' |
82 |
+ echo 'MimeType=text/html;text/xml;application/xhtml+xml;' |
83 |
fi |
84 |
cat <<EOF |
85 |
Comment=Web Browser |
86 |
|
87 |
|
88 |
|
89 |
1.1 www-client/opera/files/opera-gentoo.patch |
90 |
|
91 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/files/opera-gentoo.patch?rev=1.1&view=markup |
92 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/files/opera-gentoo.patch?rev=1.1&content-type=text/plain |
93 |
|
94 |
Index: opera-gentoo.patch |
95 |
=================================================================== |
96 |
--- install.sh.orig 2008-08-12 23:45:42.000000000 +0200 |
97 |
+++ install.sh 2008-08-13 23:09:44.000000000 +0200 |
98 |
@@ -1720,6 +1720,18 @@ |
99 |
fi |
100 |
} |
101 |
|
102 |
+gentoo() |
103 |
+{ |
104 |
+ if test -e /etc/gentoo-release ; then |
105 |
+ for res in 16x16 22x22 32x32 48x48 ; do |
106 |
+ mkdir -p /usr/share/icons/hicolor/${res}/apps |
107 |
+ cp usr/share/icons/hicolor/${res}/apps/opera.png /usr/share/icons/hicolor/${res}/apps |
108 |
+ done |
109 |
+ mkdir -p ${D}/usr/share/applications |
110 |
+ generate_desktop ${D}/usr/share/applications xdg |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
huntdirs() |
115 |
{ |
116 |
# $GNOME2PATH and $GNOMEPATH skipped (too few hits google site:gnome.org) |
117 |
@@ -1737,47 +1749,7 @@ |
118 |
|
119 |
xdg() |
120 |
{ # http://standards.freedesktop.org |
121 |
- UDD='' |
122 |
- for BIN_DIR in `pathdirs`; do |
123 |
- test -x ${BIN_DIR}/update-desktop-database || continue |
124 |
- UDD=${BIN_DIR}/update-desktop-database; break |
125 |
- done |
126 |
- |
127 |
- # http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html |
128 |
- if test "$UDD"; then |
129 |
- for ICON_DIR in `echo ${XDG_DATA_DIRS}:/usr/local/share:/usr/share|tr : '\012'|sed -e '/^$/d;s:$:/icons/hicolor:'` /usr/share/pixmaps/hicolor |
130 |
- do test -d ${ICON_DIR} && break |
131 |
- done |
132 |
- |
133 |
- if test ! -d ${ICON_DIR} |
134 |
- then warn "Could not find icon installation directory, icons not installed." |
135 |
- elif test ! -w ${ICON_DIR} |
136 |
- then warn "Directory \"${ICON_DIR}\" not writable by user \"${USER}\", icons not installed." |
137 |
- elif [ "`cd $ICON_DIR; /bin/pwd`" != "`cd usr/share/icons/hicolor; /bin/pwd`" ] |
138 |
- then |
139 |
- for RESOLUTION in 48x48 32x32 22x22 |
140 |
- do TO_DIR=${ICON_DIR}/${RESOLUTION}/apps |
141 |
- test -d $TO_DIR && test -w $TO_DIR && cp $cpv usr/share/icons/hicolor/$RESOLUTION/apps/opera.png $TO_DIR |
142 |
- done |
143 |
- fi |
144 |
- |
145 |
- for SHORTCUT_DIR in ${XDG_DATA_HOME}/applications /usr/local/share/applications /usr/share/applications |
146 |
- do test -d ${SHORTCUT_DIR} && break; |
147 |
- done |
148 |
- |
149 |
- if test ! -d ${SHORTCUT_DIR}; then warn "Could not find shortcut installation directory, desktop entry not installed."; return |
150 |
- elif test ! -w ${SHORTCUT_DIR}; then warn "Directory \"${SHORTCUT_DIR}\" not writable by user \"${USER}\", desktop entry not installed."; return |
151 |
- fi |
152 |
- generate_desktop ${SHORTCUT_DIR} xdg |
153 |
- ${UDD} |
154 |
- else |
155 |
- icons |
156 |
- gnome |
157 |
- kde 3 |
158 |
- kde 2 |
159 |
- kde1 |
160 |
- mandrake |
161 |
- fi |
162 |
+ gentoo |
163 |
} |
164 |
|
165 |
echo test | sed -n -e 's/test//' || error 'sed' |