diff options
author | lawrance <lawrance@FreeBSD.org> | 2006-02-11 12:51:31 +0800 |
---|---|---|
committer | lawrance <lawrance@FreeBSD.org> | 2006-02-11 12:51:31 +0800 |
commit | e18e33c5a4383a528f7750cf84f51213be0d3b8e (patch) | |
tree | 170bcf68ab76b52a7694e4ee9b74675affd26001 /www/opera-devel | |
parent | 384733ded00765646f3dd0a2b76b1778e2e54205 (diff) | |
download | freebsd-ports-gnome-e18e33c5a4383a528f7750cf84f51213be0d3b8e.tar.gz freebsd-ports-gnome-e18e33c5a4383a528f7750cf84f51213be0d3b8e.tar.zst freebsd-ports-gnome-e18e33c5a4383a528f7750cf84f51213be0d3b8e.zip |
Add Opera 9.0 Preview 2.
PR: ports/92994
Submitted by: Arjan van Leeuwen <avleeuwen@piwebs.com>
Diffstat (limited to 'www/opera-devel')
-rw-r--r-- | www/opera-devel/Makefile | 98 | ||||
-rw-r--r-- | www/opera-devel/distinfo | 3 | ||||
-rw-r--r-- | www/opera-devel/files/patch-config_opera6rc | 9 | ||||
-rw-r--r-- | www/opera-devel/files/patch-ini_pluginpath.ini | 61 | ||||
-rw-r--r-- | www/opera-devel/files/patch-ini_spellcheck.ini | 9 | ||||
-rw-r--r-- | www/opera-devel/files/patch-install.sh | 481 | ||||
-rw-r--r-- | www/opera-devel/files/patch-search.ini | 48 | ||||
-rw-r--r-- | www/opera-devel/pkg-descr | 7 | ||||
-rw-r--r-- | www/opera-devel/pkg-message | 9 | ||||
-rw-r--r-- | www/opera-devel/pkg-plist | 116 |
10 files changed, 841 insertions, 0 deletions
diff --git a/www/opera-devel/Makefile b/www/opera-devel/Makefile new file mode 100644 index 000000000000..e0850bc82ef2 --- /dev/null +++ b/www/opera-devel/Makefile @@ -0,0 +1,98 @@ +# New ports collection makefile for: opera +# Date created: November 5th 2000 +# Whom: des +# +# $FreeBSD$ +# + +PORTNAME= opera +PORTVERSION= ${OPERA_VER}.${OPERA_DATE} +CATEGORIES= www ipv6 +MASTER_SITES= http://snapshot.opera.com/unix/${OPERA_VER}-${OPERA_REL}/intel-freebsd/ +PKGNAMESUFFIX= -devel +DISTNAME= ${PORTNAME}-${OPERA_VER}-${OPERA_DATE}.${OPERA_TYPE}-${OPERA_LIB}-qt.i386.freebsd-en + +MAINTAINER= avleeuwen@piwebs.com +COMMENT= A blazingly fast, full-featured, standards-compliant browser + +OPERA_VER= 9.0 +OPERA_REL= Preview-2 +OPERA_DATE= 20060206 + +DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX} +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} + +USE_BZIP2= yes +WANT_GNOME= yes +USE_X_PREFIX= yes +USE_REINPLACE= yes +ONLY_FOR_ARCHS= i386 + +NO_BUILD= yes +NO_FILTER_SHLIBS=yes + +.ifndef(WITHOUT_ASPELL) +LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell +.endif + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 600000 +OPERA_TYPE= 4 +WITH_SHARED= yes +.elif ${OSVERSION} >= 500000 +OPERA_TYPE= 3 +WITH_SHARED= yes +.elifdef ${WITH_SHARED} +OPERA_TYPE= 2 +.else +OPERA_TYPE= 1 +.endif + +.if defined(WITH_SHARED) +OPERA_LIB= shared +LIB_DEPENDS+= qt-mt:${PORTSDIR}/x11-toolkits/qt33 +.else +OPERA_LIB= static +.endif + +.if ${HAVE_GNOME:Mgnomehier}!="" +PLIST_SUB+= GNOME="" +.else +PLIST_SUB+= GNOME="@comment " +.endif + +.if exists(${LOCALBASE}/bin/kde-config) +PLIST_SUB+= KDE="" +.else +PLIST_SUB+= KDE="@comment " +.endif + +pre-everything:: +.if !defined(WITHOUT_ASPELL) || !defined(WITH_SHARED) + @${ECHO_CMD} '===> The following options are available for this port:' + @${ECHO_CMD} '===>' +.if !defined(WITHOUT_ASPELL) + @${ECHO_CMD} '===> Define WITHOUT_ASPELL to not install aspell.' +.endif +.if !defined(WITH_SHARED) + @${ECHO_CMD} '===> Define WITH_SHARED to use a shared Qt library.' +.endif +.endif + +post-patch: + @${CP} ${WRKSRC}/search.ini ${WRKSRC}/locale/en + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \ + s|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%X11BASE%%|${X11BASE}|g' \ + ${WRKSRC}/install.sh ${WRKSRC}/ini/pluginpath.ini \ + ${WRKSRC}/ini/spellcheck.ini ${WRKSRC}/config/opera6rc + @${FIND} ${WRKSRC} -name '*.orig' -delete + @${FIND} ${WRKSRC} -name '*.bak' -delete + +do-install: + @(cd ${WRKSRC} && ./install.sh --prefix=${PREFIX}) + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/www/opera-devel/distinfo b/www/opera-devel/distinfo new file mode 100644 index 000000000000..134e90bf94ee --- /dev/null +++ b/www/opera-devel/distinfo @@ -0,0 +1,3 @@ +MD5 (opera-9.0-20060206.4-shared-qt.i386.freebsd-en.tar.bz2) = 63781286bea93b1abf355667693235e0 +SHA256 (opera-9.0-20060206.4-shared-qt.i386.freebsd-en.tar.bz2) = 51b399e2536371a34707ffa1e5eb4c893dd520f62b8f144587689b47067c4b7f +SIZE (opera-9.0-20060206.4-shared-qt.i386.freebsd-en.tar.bz2) = 4699407 diff --git a/www/opera-devel/files/patch-config_opera6rc b/www/opera-devel/files/patch-config_opera6rc new file mode 100644 index 000000000000..420f1fa0bbfa --- /dev/null +++ b/www/opera-devel/files/patch-config_opera6rc @@ -0,0 +1,9 @@ +--- config/opera6rc.orig Mon Jul 19 23:00:06 2004 ++++ config/opera6rc Mon Jul 19 23:00:16 2004 +@@ -1,5 +1,5 @@ + ; Put any default settings here that are overridable by users + + [User Prefs] +-Language Files Directory=/usr/share/opera/locale/ ++Language Files Directory=%%PREFIX%%/share/opera/locale/ + diff --git a/www/opera-devel/files/patch-ini_pluginpath.ini b/www/opera-devel/files/patch-ini_pluginpath.ini new file mode 100644 index 000000000000..a3fed160132d --- /dev/null +++ b/www/opera-devel/files/patch-ini_pluginpath.ini @@ -0,0 +1,61 @@ +--- ini/pluginpath.ini.orig Fri Sep 16 19:19:04 2005 ++++ ini/pluginpath.ini Tue Sep 20 22:35:57 2005 +@@ -3,50 +3,16 @@ + ; This file is stored in UTF-8 encoding + + [Paths] +-$PWD/plugins=1 + $HOME/.opera/plugins=1 +-/usr/lib/opera/plugins=1 +-/usr/lib/opera/plugins=1 +-/usr/local/lib/opera/plugins=1 +-/opt/lib/opera/plugins=1 ++%%PREFIX%%/share/opera/plugins=1 ++%%LOCALBASE%%/share/opera/plugins=1 + +-; Adobe Acrobat +-/usr/local/Acrobat7.0/Browsers/intellinux=1 +-/usr/local/Acrobat7/Browsers/intellinux=1 +-/usr/local/Acrobat5/Browsers/intellinux=1 +-/usr/local/Acrobat4/Browsers/intellinux=1 +-/usr/lib/Acrobat7.0/Browsers/intellinux=1 +-/usr/lib/Acrobat7/Browsers/intellinux=1 +-/usr/lib/Acrobat5/Browsers/intellinux=1 +-/usr/lib/Acrobat4/Browsers/intellinux=1 +-/usr/X11R6/lib/Acrobat7.0/Browsers/intellinux=1 +-/usr/X11R6/lib/Acrobat7/Browsers/intellinux=1 +-/usr/X11R6/lib/Acrobat5/Browsers/intellinux=1 +-/usr/X11R6/lib/Acrobat4/Browsers/intellinux=1 +-/opt/Acrobat7.0/Browsers/intellinux=1 +-/opt/Acrobat7/Browsers/intellinux=1 +-/opt/Acrobat5/Browsers/intellinux=1 +-/opt/Acrobat4/Browsers/intellinux=1 +-/usr/Acrobat7.0/Browsers/intellinux=1 +-/usr/Acrobat7/Browsers/intellinux=1 +-/usr/Acrobat5/Browsers/intellinux=1 +-/usr/Acrobat4/Browsers/intellinux=1 ++%%X11BASE%%/Acrobat7/Browser/intellinux=1 ++%%LOCALBASE%%/Acrobat5/Browsers/intellinux=1 ++%%LOCALBASE%%/Acrobat4/Browsers/intellinux=1 + +-; Realplayer +-/usr/lib/RealPlayer8/Plugins=1 +-/usr/lib/realplay/plugins=1 +-/usr/lib/RealPlayer8=1 +-/usr/lib/realplay=1 +- +-; Netscape Plug-in Paths +-$HOME/.netscape6/plugins=1 ++%%LOCALBASE%%/lib/RealPlayer8/Plugins=1 ++%%X11BASE%%/lib/browser_plugins=1 + $HOME/.netscape/plugins=1 +-/opt/netscape/plugins=1 +-/usr/lib/netscape/plugins=1 +-/usr/local/netscape/plugins=1 +-/usr/local/lib/netscape/plugins=1 +-$HOME/.kde/.konqueror/nsplugins=1 +- +-[KDE] +-plugins=$HOME/.kde/share/config/kcmnspluginrc ++%%LOCALBASE%%/lib/netscape-linux/plugins=1 + diff --git a/www/opera-devel/files/patch-ini_spellcheck.ini b/www/opera-devel/files/patch-ini_spellcheck.ini new file mode 100644 index 000000000000..a2ec7c7ccb2e --- /dev/null +++ b/www/opera-devel/files/patch-ini_spellcheck.ini @@ -0,0 +1,9 @@ +--- ini/spellcheck.ini.orig Thu May 13 13:51:43 2004 ++++ ini/spellcheck.ini Thu May 13 13:52:00 2004 +@@ -3,5 +3,6 @@ + ; This file is stored in UTF-8 encoding + + [Spell Check] ++Spell Check Engine=%%PREFIX%%/share/opera/bin/spellcheck.so + Default Language=en + Default Encoding=iso8859-1 diff --git a/www/opera-devel/files/patch-install.sh b/www/opera-devel/files/patch-install.sh new file mode 100644 index 000000000000..15d09b1be403 --- /dev/null +++ b/www/opera-devel/files/patch-install.sh @@ -0,0 +1,481 @@ +--- install.sh.orig Mon Feb 6 13:02:45 2006 ++++ install.sh Tue Feb 7 21:26:31 2006 +@@ -108,8 +108,8 @@ + + if test ${os} = 'FreeBSD' -o ${os} = 'OpenBSD'; then + wrapper_dir="${prefix}/bin" +- doc_dir="${prefix}/share/doc/opera" +- share_dir="${prefix}/share/opera" ++ doc_dir="${prefix}/share/doc/opera-devel" ++ share_dir="${prefix}/share/opera-devel" + exec_dir="${share_dir}/bin" + plugin_dir="${share_dir}/plugins" + else +@@ -381,7 +381,7 @@ + mvv='' # SunOS mv (no -v verbose option) + ;; + +- i[3456]86:FreeBSD|i[3456]86:NetBSD) ++ i[3456]86:FreeBSD|amd64:FreeBSD|i[3456]86:NetBSD) + cpf='-f' + if test "$verbose" -gt '1' + then +@@ -771,7 +771,7 @@ + debug_msg 0 "in generate_wrapper()" + + case "${machine}:${os}" in +- i[3456]86:Linux|x86_64:Linux|i[3456]86:FreeBSD|i[3456]86:NetBSD|i[3456]86:OpenBSD) ++ i[3456]86:Linux|x86_64:Linux|i[3456]86:FreeBSD|amd64:FreeBSD|i[3456]86:NetBSD|i[3456]86:OpenBSD) + wrapper_ibmjava=" + IBMJava2-142/jre \\ + IBMJava2-141/jre \\ +@@ -806,10 +806,16 @@ + error 'os' + ;; + esac +- wrapper_file="${wrapper_dir}/opera" ++ wrapper_file="${wrapper_dir}/opera-devel" + + wrapper_contain="#!/bin/sh + ++# Location of locale data ++if [ -f %%LOCALBASE%%/share/compat/locale/UTF-8/LC_CTYPE ]; then ++ PATH_LOCALE=%%LOCALBASE%%/share/compat/locale ++ export PATH_LOCALE ++fi ++ + # Location of the Opera binaries + OPERA_BINARYDIR=${str_localdirexec} + export OPERA_BINARYDIR +@@ -865,6 +871,9 @@ + OPERA_LD_PRELOAD=\"\${LD_PRELOAD}\" + export OPERA_LD_PRELOAD + ++OPERA_PERSONALDIR=\${HOME}/.opera-devel ++export OPERA_PERSONALDIR ++ + # Native Java enviroment + if test -f \"\${OPERA_PERSONALDIR}/javapath.txt\"; then + INIJAVA=\`cat \${OPERA_PERSONALDIR}/javapath.txt\` +@@ -888,69 +897,12 @@ + + if test ! \"\${OPERA_JAVA_DIR}\"; then + +- PREFIXES=\" +- /usr +- /usr/java +- /usr/lib +- /usr/local +- /opt\" ++ PREFIXES=\"%%LOCALBASE%%\" + + for SUNJAVA in \\ +- java-1.5.0-sun-1.5.0.06 \\ +- java-1.5.0-sun-1.5.0.06/jre \\ +- java-1.5.0-sun-1.5.0.05 \\ +- java-1.5.0-sun-1.5.0.05/jre \\ +- java-1.5.0-sun-1.5.0.04 \\ +- java-1.5.0-sun-1.5.0.04/jre \\ +- jre1.5.0_06 \\ +- jdk1.5.0_06/jre \\ +- jre1.5.0_05 \\ +- jdk1.5.0_05/jre \\ +- jre1.5.0_04 \\ +- jdk1.5.0_04/jre \\ +- jre1.5.0_03 \\ +- jdk1.5.0_03/jre \\ +- jre1.5.0_02 \\ +- jdk1.5.0_02/jre \\ +- jre1.5.0_01 \\ +- jdk1.5.0_01/jre \\ +- j2re1.4.2_06 \\ +- j2sdk1.4.2_06/jre \\ +- j2re1.4.2_04 \\ +- j2sdk1.4.2_04/jre \\ +- j2re1.4.2_03 \\ +- j2sdk1.4.2_03/jre \\ +- j2re1.4.2_02 \\ +- j2sdk1.4.2_02/jre \\ +- j2re1.4.2_01 \\ +- j2sdk1.4.2_01/jre \\ +- j2re1.4.2 \\ +- j2sdk1.4.2/jre \\ +- j2re1.4.1_01 \\ +- j2re1.4.1 \\ +- SUNJava2-1.4.1 \\ +- BlackdownJava2-1.4.1/jre \\ +- j2re1.4.0_01 \\ +- j2sdk1.4.0_01/jre \\ +- j2re1.4.0 \\ +- jre1.4.0 \\ +- j2se/1.4/jre \\ +- j2se/1.3/jre \\ +- j2se/jre \\ +- jre1.3.1_15 \\ +- jre1.3.1_04 \\ +- jre1.3.1_02 \\ +- jre1.3.1_01 \\ +- j2re1.3.1 \\ +- jre1.3.1 \\ +- j2re1.3 \\ +- j2se/1.3/jre \\ +- SunJava2-1.3/jre \\ +- java2re \\ +- jdk1.2.2/jre \\ +- jdk1.2/jre \\ +- jre \\ +- java \\ ++ jdk1.3.1/jre \\ ++ jdk1.4.2/jre \\ ++ jdk1.5.0/jre \\ + ; do + for PREFIX in \${PREFIXES}; do + if test -f \"\${PREFIX}/\${SUNJAVA}/lib/${wrapper_sunjava_machine}/libjava.so\"; then OPERA_JAVA_DIR=\"\${PREFIX}/\${SUNJAVA}/lib/${wrapper_sunjava_machine}\" && break; fi +@@ -1001,11 +953,8 @@ + + # Acrobat Reader + for BINDIR in \\ +- /usr/local/Acrobat[45]/bin \\ +- /usr/lib/Acrobat[45]/bin \\ +- /usr/X11R6/lib/Acrobat[45]/bin \\ +- /opt/Acrobat[45]/bin \\ +- /usr/Acrobat[45]/bin \\ ++ %%LOCALBASE%%/Acrobat4/bin \\ ++ %%LOCALBASE%%/Acrobat5/bin \\ + ; do + if test -d \${BINDIR} ; then PATH=\${PATH}:\${BINDIR}; fi + done +@@ -1016,12 +965,13 @@ + LD_LIBRARY_PATH=\"\${OPERA_BINARYDIR}\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH}\" + export LD_LIBRARY_PATH + +-# Spellchecker needs to find libaspell.so.15 ++# Spellchecker needs to find libaspell.so.16 + for LIBASPELL_DIR in \\ ++ %%LOCALBASE%%/lib \\ + /usr/local/lib \\ + /opkg/lib \\ + ; do +- if test -f \"\${LIBASPELL_DIR}/libaspell.so.15\"; then ++ if test -f \"\${LIBASPELL_DIR}/libaspell.so.16\"; then + LD_LIBRARY_PATH=\"\${LD_LIBRARY_PATH}:\${LIBASPELL_DIR}\" + fi + done" +@@ -1123,7 +1073,7 @@ + chop "${OPERADESTDIR}" "str_localdirshare" + chop "${OPERADESTDIR}" "str_localdirplugin" + +- backup ${wrapper_dir}/opera opera ++ #backup ${wrapper_dir}/opera opera + + # Executable + debug_msg 1 "Executable" +@@ -1161,7 +1111,7 @@ + + #cp $cpv $cpf wrapper.sh $wrapper_dir/opera + generate_wrapper +- chmod $chmodv 755 $wrapper_dir/opera ++ chmod $chmodv 755 $wrapper_dir/opera-devel + + # Documentation + debug_msg 1 "Documentation" +@@ -1338,41 +1288,9 @@ + + if test -z "${OPERADESTDIR}" + then +- # System wide configuration files +- config_dir='/usr/local/etc' +- if can_write_to "$config_dir" +- then +- echo +- echo "System wide configuration files:" +- echo " $config_dir/opera6rc" +- echo " $config_dir/opera6rc.fixed" +- echo " would be ignored if installed with the prefix \"$prefix\"." +- if con_firm "Do you want to install them in $config_dir" +- then +- backup $config_dir/opera6rc opera6rc config +- backup $config_dir/opera6rc.fixed opera6rc.fixed config +- cp $cpv $cpf config/opera6rc $config_dir +- cp $cpv $cpf config/opera6rc.fixed $config_dir +- fi +- else +- echo +- echo "User \"${USERNAME}\" does not have write access to $config_dir" +- echo " System wide configuration files:" +- echo " $config_dir/opera6rc" +- echo " $config_dir/opera6rc.fixed" +- echo " were not installed." +- fi +- + # Shorcuts and Icons + bool_icons=1 # install icons by default + +- if test "${flag_mode}" = "--force" -o "${flag_mode}" = "--prefix=" +- then +- echo +- echo "Shortcut icons will be ignored if installed with the prefix \"$prefix\"." +- con_firm "Do you want to (try to) install them in default locations" || bool_icons=0 +- fi +- + if test "${bool_icons}" -ne 0 + then + xdg +@@ -1407,13 +1325,13 @@ + { + # arg1 = location + +- wmconfig_file="$1/opera" ++ wmconfig_file="$1/opera-devel" + +- wmconfig_contain='opera name "Opera" ++ wmconfig_contain='opera name "Opera Technical Preview" + opera description "Opera Web Browser" +-opera icon "opera.xpm" +-opera mini-icon "opera.xpm" +-opera exec "opera &" ++opera icon "opera-devel.xpm" ++opera mini-icon "opera-devel.xpm" ++opera exec "opera-devel &" + opera group "Internet"' + + echo "${wmconfig_contain}" > ${wmconfig_file} +@@ -1425,19 +1343,19 @@ + # arg1 = location + # arg2 = type + +- desktop_file="${1}/opera.desktop" ++ desktop_file="${1}/opera-devel.desktop" + desktop_contain='[Desktop Entry]' + + if test ${2}; then + if test "${2}" = "xdg"; then + desktop_contain="${desktop_contain} + Version=1.0 +-TryExec=opera" ++TryExec=opera-devel" + fi + + desktop_contain="${desktop_contain} + Encoding=UTF-8 +-Name=Opera ++Name=Opera Technical Preview + Name[af]=opera + Name[eo]=Opero + Name[zu]=I Opera +@@ -1461,7 +1379,7 @@ + GenericName[ven]=Buronza ya Webu + GenericName[xh]=Umkhangeli Zincwadi Zokubhaliweyo + GenericName[zu]=Umkhangeli zincwadi we Web +-Exec=opera %u ++Exec=opera-devel %u + Terminal=false" + + # Application is not a category, according to +@@ -1476,19 +1394,19 @@ + if test "${2}" = "xdg"; then + desktop_contain="${desktop_contain} + Categories=Application;Qt;Network;WebBrowser;X-Ximian-Main;X-Ximian-Toplevel +-Icon=opera.png" ++Icon=opera-devel.png" + else + desktop_contain="${desktop_contain} +-Icon=opera" ++Icon=opera-devel" + fi + + desktop_contain="${desktop_contain} + MimeType=text/html;text/xml;application/xhtml+xml" + else + desktop_contain="${desktop_contain} +-Name=Opera +-Exec=opera +-Icon=opera.xpm ++Name=Opera Technical Preview ++Exec=opera-devel ++Icon=opera-devel.xpm + Terminal=0" + fi + +@@ -1582,48 +1500,43 @@ + # This function searches for common gnome icon paths. + debug_msg 1 "in gnome()" + +- if test -d /opt/gnome/ ++ if test -d %%X11BASE%%/share/gnome/; + then +- # /opt/gnome share +- if test -d /opt/gnome/share +- then +- # /opt/gnome icon +- if test ! -d /opt/gnome/share/pixmaps/ ++ # %%X11BASE%%/share/gnome icon ++ if test ! -d %%X11BASE%%/share/gnome/pixmaps/; + then +- if test -w /opt/gnome/share ++ if test -w %%X11BASE%%/share/gnome; + then +- mkdir $mkdirv $mkdirp /opt/gnome/share/pixmaps/ +- chmod $chmodv 755 /opt/gnome/share/pixmaps +- cp $cpv $share_dir/images/opera.xpm /opt/gnome/share/pixmaps/opera.xpm ++ mkdir $mkdirv $mkdirp %%X11BASE%%/share/gnome/pixmaps/ ++ chmod $chmodv 755 %%X11BASE%%/share/gnome/pixmaps ++ cp $cpv $share_dir/images/opera.xpm %%X11BASE%%/share/gnome/pixmaps/opera-devel.xpm + fi +- elif test -w /opt/gnome/share/pixmaps +- then cp $cpv $share_dir/images/opera.xpm /opt/gnome/share/pixmaps/opera.xpm ++ elif test -w %%X11BASE%%/share/gnome/pixmaps ++ then cp $cpv $share_dir/images/opera.xpm %%X11BASE%%/share/gnome/pixmaps/opera-devel.xpm + fi +- # end /opt/gnome icon ++ # end %%X11BASE%%/share/gnome icon + +- # /opt/gnome link +- if test -d /opt/gnome/share/gnome/apps/ ++ # %%X11BASE%%/share/gnome link ++ if test -d %%X11BASE%%/share/gnome/apps/ + then +- if test -d /opt/gnome/share/gnome/apps/Internet/ ++ if test -d %%X11BASE%%/share/gnome/apps/Internet/ + then +- if test -w /opt/gnome/share/gnome/apps/Internet +- then generate_desktop /opt/gnome/share/gnome/apps/Internet ++ if test -w %%X11BASE%%/share/gnome/apps/Internet ++ then generate_desktop %%X11BASE%%/share/gnome/apps/Internet + fi +- elif test -d /opt/gnome/share/gnome/apps/Networking/WWW/ ++ elif test -d %%X11BASE%%/share/gnome/apps/Networking/WWW/ + then +- if test -w /opt/gnome/share/gnome/apps/Networking/WWW +- then generate_desktop /opt/gnome/share/gnome/apps/Networking/WWW ++ if test -w %%X11BASE%%/share/gnome/apps/Networking/WWW ++ then generate_desktop %%X11BASE%%/share/gnome/apps/Networking/WWW + fi +- elif test -w /opt/gnome/share/gnome/apps ++ elif test -w %%X11BASE%%/share/gnome/apps + then +- mkdir $mkdirv $mkdirp /opt/gnome/share/gnome/apps/Internet/ +- chmod $chmodv 755 /opt/gnome/share/gnome/apps/Internet +- generate_desktop /opt/gnome/share/gnome/apps/Internet ++ mkdir $mkdirv $mkdirp %%X11BASE%%/share/gnome/apps/Internet/ ++ chmod $chmodv 755 %%X11BASE%%/share/gnome/apps/Internet ++ generate_desktop %%X11BASE%%/share/gnome/apps/Internet + fi + fi +- # end /opt/gnome link +- fi +- # end /opt/gnome share ++ # end %%X11BASE%%/share/gnome link + + elif test -d /usr/share/gnome/ + then +@@ -1634,10 +1547,10 @@ + then + mkdir $mkdirv $mkdirp /usr/share/gnome/pixmaps/ + chmod $chmodv 755 /usr/share/gnome/pixmaps +- cp $cpv $share_dir/images/opera.xpm /usr/share/gnome/pixmaps/opera.xpm ++ cp $cpv $share_dir/images/opera.xpm /usr/share/gnome/pixmaps/opera-devel.xpm + fi + elif test -w /usr/share/gnome/pixmaps +- then cp $cpv $share_dir/images/opera.xpm /usr/share/gnome/pixmaps/opera.xpm ++ then cp $cpv $share_dir/images/opera.xpm /usr/share/gnome/pixmaps/opera-devel.xpm + fi + # end /usr/share/gnome icon + +@@ -1671,45 +1584,45 @@ + # 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 +- 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 +- then cp $cpv $share_dir/images/opera_48x48.png $DIR_HI/48x48/apps/opera.png ++ then cp $cpv $share_dir/images/opera_48x48.png $DIR_HI/48x48/apps/opera-devel.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 ++ then cp $cpv $share_dir/images/opera_32x32.png $DIR_HI/32x32/apps/opera-devel.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 ++ then cp $cpv $share_dir/images/opera_22x22.png $DIR_HI/22x22/apps/opera-devel.png + fi + fi + +- DIR_LO=/opt/kde$1/share/icons/locolor ++ DIR_LO=%%LOCALBASE%%/share/icons/locolor + if test -d $DIR_LO -a -w $DIR_LO + then + 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 ++ then cp $cpv $share_dir/images/opera_32x32.png $DIR_LO/32x32/apps/opera-devel.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 ++ then cp $cpv $share_dir/images/opera_22x22.png $DIR_LO/22x22/apps/opera-devel.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 ++ then cp $cpv $share_dir/images/opera_16x16.png $DIR_LO/16x16/apps/opera-devel.png + fi + fi + +- if test -d /opt/kde$1/share/applnk/ ++ if test -d %%LOCALBASE%%/share/applnk/ + 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 +- mkdir $mkdirv $mkdirp /opt/kde$1/share/applnk/Internet/ +- chmod $chmodv 755 /opt/kde$1/share/applnk/Internet ++ mkdir $mkdirv $mkdirp %%LOCALBASE%%/share/applnk/Internet/ ++ chmod $chmodv 755 %%LOCALBASE%%/share/applnk/Internet + fi +- if test -w /opt/kde$1/share/applnk/Internet +- then generate_desktop /opt/kde$1/share/applnk/Internet $1 ++ if test -w %%LOCALBASE%%/share/applnk/Internet ++ then generate_desktop %%LOCALBASE%%/share/applnk/Internet $1 + fi + fi + fi +@@ -1778,34 +1691,9 @@ + } + + xdg() +-{ # http://standards.freedesktop.org +- if update-desktop-database --help >/dev/null 2>&1; then +- +- for ICON_DIR in ${XDG_DATA_DIRS}/icons/hicolor /usr/share/pixmaps/hicolor; do test -d ${ICON_DIR} && break; done +- +- if test ! -d ${ICON_DIR}; then echo "Could not find icon installation directory, icons not installed." >&2 +- elif test ! -w ${ICON_DIR}; then echo "Directory \"${ICON_DIR}\" not writable by user \"${USER}\", icons not installed." >&2 +- else +- test -d ${ICON_DIR}/48x48/apps && test -w ${ICON_DIR}/48x48/apps && cp $cpv $share_dir/images/opera_48x48.png $DIR_HI/48x48/apps/opera.png +- test -d ${ICON_DIR}/32x32/apps && test -w ${ICON_DIR}/32x32/apps && cp $cpv $share_dir/images/opera_32x32.png $DIR_HI/32x32/apps/opera.png +- test -d ${ICON_DIR}/22x22/apps && test -w ${ICON_DIR}/22x22/apps && cp $cpv $share_dir/images/opera_22x22.png $DIR_HI/22x22/apps/opera.png +- fi +- +- for SHORTCUT_DIR in ${XDG_DATA_HOME}/applications /usr/local/share/applications /usr/share/applications; do test -d ${SHORTCUT_DIR} && break; done +- +- if test ! -d ${SHORTCUT_DIR}; then echo "Could not find shortcut installation directory, desktop entry not installed." >&2; return +- elif test ! -w ${SHORTCUT_DIR}; then echo "Directory \"${SHORTCUT_DIR}\" not writable by user \"${USER}\", desktop entry not installed." >&2; return +- fi +- generate_desktop ${SHORTCUT_DIR} xdg +- update-desktop-database +- else +- icons ++{ + gnome + kde 3 +- kde 2 +- kde1 +- mandrake +- fi + } + + # These are the only variables the needs to be changed diff --git a/www/opera-devel/files/patch-search.ini b/www/opera-devel/files/patch-search.ini new file mode 100644 index 000000000000..f1d06000b027 --- /dev/null +++ b/www/opera-devel/files/patch-search.ini @@ -0,0 +1,48 @@ +--- search.ini.orig Mon Feb 6 13:02:45 2006 ++++ search.ini Tue Feb 7 20:58:06 2006 +@@ -445,4 +445,44 @@ + Search Type=119 + Verbtext=0 + Position=-1 +-Nameid=291960 ++Nameid=0 ++ ++[Search Engine 35] ++Name=FreshP&orts ++URL=http://www.freshports.org/search.php?query=%s ++Query= ++Key=x ++Is post=0 ++Has endseparator=0 ++Encoding=utf-8 ++Search Type=0 ++Verbtext=17063 ++Position=-1 ++Nameid=0 ++ ++[Search Engine 36] ++Name=Google &BSD ++URL=http://www.google.com/bsd?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 ++Query= ++Key=x ++Is post=0 ++Has endseparator=0 ++Encoding=utf-8 ++Search Type=0 ++Verbtext=17063 ++Position=-1 ++Nameid=0 ++ ++[Search Engine 37] ++Name=FreeBSD &PRs ++URL=http://www.freebsd.org/cgi/query-pr.cgi?pr=%s ++Query= ++Key=x ++Is post=0 ++Has endseparator=0 ++Encoding=utf-8 ++Search Type=0 ++Verbtext=17063 ++Position=-1 ++Nameid=0 ++ diff --git a/www/opera-devel/pkg-descr b/www/opera-devel/pkg-descr new file mode 100644 index 000000000000..b33bdf73eac4 --- /dev/null +++ b/www/opera-devel/pkg-descr @@ -0,0 +1,7 @@ +The most full-featured Internet power tool on the market, Opera includes +pop-up blocking, tabbed browsing, integrated searches, and advanced functions +like Opera's groundbreaking E-mail program, RSS Newsfeeds and IRC chat. And +because we know that our users have different needs, you can customize +the look and content of your Opera browser with a few clicks of the mouse. + +WWW: http://www.opera.com/ diff --git a/www/opera-devel/pkg-message b/www/opera-devel/pkg-message new file mode 100644 index 000000000000..377dc40ba37f --- /dev/null +++ b/www/opera-devel/pkg-message @@ -0,0 +1,9 @@ +*** +This port will use the ~/.opera-devel directory to save its personal settings. + +*** THIS IS AN UNSTABLE PREVIEW VERSION OF OPERA. PLEASE DO NOT REPORT *** +*** BUGS TO THE PORT MAINTAINER. *** +*** *** +*** Use http://bugs.opera.com/ *** +*** or http://my.opera.com/community/forums/ *** +*** diff --git a/www/opera-devel/pkg-plist b/www/opera-devel/pkg-plist new file mode 100644 index 000000000000..5cca8e3d7d2d --- /dev/null +++ b/www/opera-devel/pkg-plist @@ -0,0 +1,116 @@ +@comment $FreeBSD$ +bin/opera-devel +%%DOCSDIR%%/LICENSE +%%DATADIR%%/bin/missingsyms.so +%%DATADIR%%/bin/opera +%%DATADIR%%/bin/spellcheck.so +%%DATADIR%%/bin/works +%%DATADIR%%/chartables.bin +%%DATADIR%%/config/opera6rc +%%DATADIR%%/config/opera6rc.fixed +%%DATADIR%%/html40_entities.dtd +%%DATADIR%%/images/blank.gif +%%DATADIR%%/images/drive.gif +%%DATADIR%%/images/file.gif +%%DATADIR%%/images/folder.gif +%%DATADIR%%/images/link.gif +%%DATADIR%%/images/opera.xpm +%%DATADIR%%/images/opera_16x16.png +%%DATADIR%%/images/opera_22x22.png +%%DATADIR%%/images/opera_32x32.png +%%DATADIR%%/images/opera_48x48.png +%%DATADIR%%/images/operabanner.png +%%DATADIR%%/ini/dialog.ini +%%DATADIR%%/ini/fastforward.ini +%%DATADIR%%/ini/filehandler.ini +%%DATADIR%%/ini/pluginpath.ini +%%DATADIR%%/ini/spellcheck.ini +%%DATADIR%%/ini/standard_keyboard.ini +%%DATADIR%%/ini/standard_menu.ini +%%DATADIR%%/ini/standard_mouse.ini +%%DATADIR%%/ini/standard_toolbar.ini +%%DATADIR%%/ini/unix_keyboard.ini +%%DATADIR%%/ini/xmlentities.ini +%%DATADIR%%/java/opera.jar +%%DATADIR%%/java/opera.policy +%%DATADIR%%/jsconsole.html +%%DATADIR%%/lngcode.txt +%%DATADIR%%/locale/en/default.adr +%%DATADIR%%/locale/en/lngcode.txt +%%DATADIR%%/locale/en/license.txt +%%DATADIR%%/locale/en/search.ini +%%DATADIR%%/locale/english.lng +%%DATADIR%%/opera6.adr +%%DATADIR%%/plugins/libnpp.so +%%DATADIR%%/plugins/operapluginwrapper +%%DATADIR%%/plugins/operaplugincleaner +%%DATADIR%%/search.ini +%%DATADIR%%/skin/standard_skin.zip +%%DATADIR%%/skin/windows_skin.zip +%%DATADIR%%/styles/OPF.css +%%DATADIR%%/styles/about.css +%%DATADIR%%/styles/cache.css +%%DATADIR%%/styles/certinfo.css +%%DATADIR%%/styles/config.css +%%DATADIR%%/styles/contentblock.css +%%DATADIR%%/styles/dir.css +%%DATADIR%%/styles/drives.css +%%DATADIR%%/styles/email.css +%%DATADIR%%/styles/error.css +%%DATADIR%%/styles/history.css +%%DATADIR%%/styles/im.css +%%DATADIR%%/styles/image.css +%%DATADIR%%/styles/images/bar.png +%%DATADIR%%/styles/images/center.png +%%DATADIR%%/styles/images/opera.png +%%DATADIR%%/styles/images/root.png +%%DATADIR%%/styles/images/top.png +%%DATADIR%%/styles/info.css +%%DATADIR%%/styles/mime.css +%%DATADIR%%/styles/mimehead.css +%%DATADIR%%/styles/plugins.css +%%DATADIR%%/styles/user/accessibility.css +%%DATADIR%%/styles/user/contrastbw.css +%%DATADIR%%/styles/user/contrastwb.css +%%DATADIR%%/styles/user/debugwithoutline.css +%%DATADIR%%/styles/user/disabletables.css +%%DATADIR%%/styles/user/hidecertainsizes.css +%%DATADIR%%/styles/user/hidenonlinkimages.css +%%DATADIR%%/styles/user/imageandlinkonly.css +%%DATADIR%%/styles/user/nostalgia.css +%%DATADIR%%/styles/user/showstructure.css +%%DATADIR%%/styles/user/textonly.css +%%DATADIR%%/styles/user/userstyle.ini +%%DATADIR%%/styles/wml.css +%%DATADIR%%/svg-sebd.dat +%%DATADIR%%/svg-se.dat +%%DATADIR%%/svg-sabd.dat +%%DATADIR%%/svg-sa.dat +%%DATADIR%%/svg-mobd.dat +%%DATADIR%%/svg-mo.dat + +%%GNOME%%share/gnome/apps/Internet/opera-devel.desktop +%%GNOME%%share/gnome/pixmaps/opera-devel.xpm +@dirrm %%DATADIR%%/styles/user +@dirrm %%DATADIR%%/styles/images +@dirrm %%DATADIR%%/styles +@dirrm %%DATADIR%%/skin +@dirrm %%DATADIR%%/plugins +@dirrm %%DATADIR%%/locale/en +@dirrm %%DATADIR%%/locale +@dirrm %%DATADIR%%/java +@dirrm %%DATADIR%%/ini +@dirrm %%DATADIR%%/images +@dirrm %%DATADIR%%/config +@dirrm %%DATADIR%%/bin +@dirrm %%DATADIR%% +@dirrm %%DOCSDIR%% + +%%KDE%%@cwd %%LOCALBASE%% +%%KDE%%share/applnk/Internet/opera-devel.desktop +%%KDE%%share/icons/hicolor/22x22/apps/opera-devel.png +%%KDE%%share/icons/hicolor/32x32/apps/opera-devel.png +%%KDE%%share/icons/hicolor/48x48/apps/opera-devel.png +%%KDE%%share/icons/locolor/16x16/apps/opera-devel.png +%%KDE%%share/icons/locolor/22x22/apps/opera-devel.png +%%KDE%%share/icons/locolor/32x32/apps/opera-devel.png |