aboutsummaryrefslogtreecommitdiffstats
path: root/www/opera
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-01-27 00:21:30 +0800
committerpav <pav@FreeBSD.org>2007-01-27 00:21:30 +0800
commitff43c0f9348274729748e38ff6e69f14d843270f (patch)
treeb54a2dbdc062cefd19cd4a4f6c8a4e3fe8c12477 /www/opera
parenta0d6400c3dc48f78d92df40e31ca8115174aedd8 (diff)
downloadfreebsd-ports-gnome-ff43c0f9348274729748e38ff6e69f14d843270f.tar.gz
freebsd-ports-gnome-ff43c0f9348274729748e38ff6e69f14d843270f.tar.zst
freebsd-ports-gnome-ff43c0f9348274729748e38ff6e69f14d843270f.zip
- Install application icons unconditionally
Submitted by: maintainer
Diffstat (limited to 'www/opera')
-rw-r--r--www/opera/Makefile2
-rw-r--r--www/opera/files/patch-install.sh78
-rw-r--r--www/opera/pkg-plist25
3 files changed, 72 insertions, 33 deletions
diff --git a/www/opera/Makefile b/www/opera/Makefile
index d3ebe32c94b4..3861ad395a46 100644
--- a/www/opera/Makefile
+++ b/www/opera/Makefile
@@ -39,7 +39,7 @@ DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
USE_BZIP2= yes
WANT_GNOME= yes
-ONLY_FOR_ARCHS= i386
+ONLY_FOR_ARCHS= i386 amd64
WRKSRC= ${WRKDIR}/${DISTNAME}-${OPERA_BUILD}
MAN1= opera.1
diff --git a/www/opera/files/patch-install.sh b/www/opera/files/patch-install.sh
index 98e99b3cd981..cf440a0ee89b 100644
--- a/www/opera/files/patch-install.sh
+++ b/www/opera/files/patch-install.sh
@@ -1,5 +1,5 @@
---- install.sh.orig Fri Jun 16 12:03:46 2006
-+++ install.sh Tue Jun 20 15:24:11 2006
+--- install.sh.orig Thu Dec 14 15:06:40 2006
++++ install.sh Thu Jan 25 15:56:02 2007
@@ -924,69 +924,14 @@
if test ! \"\${OPERA_JAVA_DIR}\"; then
@@ -115,7 +115,7 @@
# Executable
debug_msg 1 "Executable"
-@@ -1328,41 +1271,9 @@
+@@ -1340,41 +1283,9 @@
if test -z "${OPERADESTDIR}"
then
@@ -157,7 +157,7 @@
if test "${bool_icons}" -ne 0
then xdg
fi
-@@ -1573,48 +1484,43 @@
+@@ -1585,48 +1496,43 @@
# This function searches for common gnome icon paths.
debug_msg 1 "in gnome()"
@@ -229,34 +229,60 @@
elif test -d /usr/share/gnome/
then
-@@ -1662,9 +1568,9 @@
+@@ -1674,47 +1580,34 @@
# This function searches for common kde2 and kde 3 icon paths.
debug_msg 1 "in kde()"
- if test -d /opt/kde$1/share
-+ if test -d %%LOCALBASE%%/share;
- then
+- then
- DIR_HI=/opt/kde$1/share/icons/hicolor
-+ DIR_HI=%%LOCALBASE%%/share/icons/hicolor
- if test -d "$DIR_HI" -a -w "$DIR_HI"
- then
- if test -d "$DIR_HI"/48x48/apps -a -w "$DIR_HI"/48x48/apps
-@@ -1678,7 +1584,7 @@
- fi
- fi
+- if test -d "$DIR_HI" -a -w "$DIR_HI"
+- then
+- if test -d "$DIR_HI"/48x48/apps -a -w "$DIR_HI"/48x48/apps
+- then cp $cpv $share_dir/images/opera_48x48.png $DIR_HI/48x48/apps/opera.png
+- fi
+- if test -d "$DIR_HI"/32x32/apps -a -w "$DIR_HI"/32x32/apps
+- then cp $cpv $share_dir/images/opera_32x32.png $DIR_HI/32x32/apps/opera.png
+- fi
+- if test -d "$DIR_HI"/22x22/apps -a -w "$DIR_HI"/22x22/apps
+- then cp $cpv $share_dir/images/opera_22x22.png $DIR_HI/22x22/apps/opera.png
+- fi
+- fi
++ DIR_HI=%%LOCALBASE%%/share/icons/hicolor
++ mkdir -p $DIR_HI/48x48/apps
++ mkdir -p $DIR_HI/32x32/apps
++ mkdir -p $DIR_HI/22x22/apps
++
++ cp $cpv $share_dir/images/opera_48x48.png $DIR_HI/48x48/apps/opera.png
++ cp $cpv $share_dir/images/opera_32x32.png $DIR_HI/32x32/apps/opera.png
++ cp $cpv $share_dir/images/opera_22x22.png $DIR_HI/22x22/apps/opera.png
++
++ DIR_LO=%%LOCALBASE%%/share/icons/locolor
++ mkdir -p $DIR_LO/32x32/apps
++ mkdir -p $DIR_LO/22x22/apps
++ mkdir -p $DIR_LO/16x16/apps
++
++ cp $cpv $share_dir/images/opera_32x32.png $DIR_LO/32x32/apps/opera.png
++ cp $cpv $share_dir/images/opera_22x22.png $DIR_LO/22x22/apps/opera.png
++ cp $cpv $share_dir/images/opera_16x16.png $DIR_LO/16x16/apps/opera.png
- DIR_LO=/opt/kde$1/share/icons/locolor
-+ DIR_LO=%%LOCALBASE%%/share/icons/locolor
- if test -d $DIR_LO -a -w $DIR_LO
+- if test -d $DIR_LO -a -w $DIR_LO
++ if test -d %%LOCALBASE%%/share/applnk/
then
- if test -d $DIR_LO/32x32/apps -a -w $DIR_LO/32x32/apps
-@@ -1692,15 +1598,15 @@
- fi
- fi
-
+- if test -d $DIR_LO/32x32/apps -a -w $DIR_LO/32x32/apps
+- then cp $cpv $share_dir/images/opera_32x32.png $DIR_LO/32x32/apps/opera.png
+- fi
+- if test -d $DIR_LO/22x22/apps -a -w $DIR_LO/22x22/apps
+- then cp $cpv $share_dir/images/opera_22x22.png $DIR_LO/22x22/apps/opera.png
+- fi
+- if test -d $DIR_LO/16x16/apps -a -w $DIR_LO/16x16/apps
+- then cp $cpv $share_dir/images/opera_16x16.png $DIR_LO/16x16/apps/opera.png
+- fi
+- fi
+-
- if test -d /opt/kde$1/share/applnk/
-+ if test -d %%LOCALBASE%%/share/applnk/
- then
+- then
- if test ! -d /opt/kde$1/share/applnk/Internet/ -a -w /opt/kde$1/share/applnk
+ if test ! -d %%LOCALBASE%%/share/applnk/Internet/ -a -w %%LOCALBASE%%/share/applnk
then
@@ -270,9 +296,11 @@
+ if test -w %%LOCALBASE%%/share/applnk/Internet
+ then generate_desktop %%LOCALBASE%%/share/applnk/Internet $1
fi
- fi
+- fi
fi
-@@ -1784,45 +1690,9 @@
+
+ if test -d /usr/share/applnk/Networking
+@@ -1796,45 +1689,9 @@
}
xdg()
diff --git a/www/opera/pkg-plist b/www/opera/pkg-plist
index a5571ac26bfc..3f9d06d1a0c4 100644
--- a/www/opera/pkg-plist
+++ b/www/opera/pkg-plist
@@ -97,11 +97,22 @@ bin/opera
@dirrm %%DATADIR%%
@dirrm %%DOCSDIR%%
-%%KDE%%@cwd %%LOCALBASE%%
+@cwd %%LOCALBASE%%
%%KDE%%share/applnk/Internet/opera.desktop
-%%KDE%%share/icons/hicolor/22x22/apps/opera.png
-%%KDE%%share/icons/hicolor/32x32/apps/opera.png
-%%KDE%%share/icons/hicolor/48x48/apps/opera.png
-%%KDE%%share/icons/locolor/16x16/apps/opera.png
-%%KDE%%share/icons/locolor/22x22/apps/opera.png
-%%KDE%%share/icons/locolor/32x32/apps/opera.png
+share/icons/hicolor/22x22/apps/opera.png
+share/icons/hicolor/32x32/apps/opera.png
+share/icons/hicolor/48x48/apps/opera.png
+share/icons/locolor/16x16/apps/opera.png
+share/icons/locolor/22x22/apps/opera.png
+share/icons/locolor/32x32/apps/opera.png
+@dirrmtry share/icons/hicolor/22x22/apps
+@dirrmtry share/icons/hicolor/22x22
+@dirrmtry share/icons/hicolor/48x48/apps
+@dirrmtry share/icons/hicolor/48x48
+@dirrmtry share/icons/locolor/32x32/apps
+@dirrmtry share/icons/locolor/32x32
+@dirrmtry share/icons/locolor/22x22/apps
+@dirrmtry share/icons/locolor/22x22
+@dirrmtry share/icons/locolor/16x16/apps
+@dirrmtry share/icons/locolor/16x16
+@dirrmtry share/icons/locolor