diff --git a/app-antivirus/avast4workstation/avast4workstation-1.3.0-r2.ebuild b/app-antivirus/avast4workstation/avast4workstation-1.3.0-r2.ebuild
index 82ffeb5855..ccf9b4f58b 100644
--- a/app-antivirus/avast4workstation/avast4workstation-1.3.0-r2.ebuild
+++ b/app-antivirus/avast4workstation/avast4workstation-1.3.0-r2.ebuild
@@ -14,17 +14,12 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
- amd64? (
- app-emulation/emul-linux-x86-baselibs
- app-emulation/emul-linux-x86-gtklibs
- app-emulation/emul-linux-x86-xlibs )
- x86? (
- >=dev-libs/glib-2.0.7
- x11-libs/libX11
- x11-libs/libXext
- >=x11-libs/pango-1.0.5
- >=x11-libs/gtk+-2.0.9
- >=dev-libs/atk-1.0.3 )"
+ >=dev-libs/glib-2.0.7[abi_x86_32]
+ x11-libs/libX11[abi_x86_32]
+ x11-libs/libXext[abi_x86_32]
+ >=x11-libs/pango-1.0.5[abi_x86_32]
+ >=x11-libs/gtk+-2.0.9:2[abi_x86_32]
+ >=dev-libs/atk-1.0.3[abi_x86_32]"
DEPEND=""
RESTRICT="mirror"
diff --git a/app-misc/wink/wink-1.5.ebuild b/app-misc/wink/wink-1.5.ebuild
index da39b9d471..bd5289cfb3 100644
--- a/app-misc/wink/wink-1.5.ebuild
+++ b/app-misc/wink/wink-1.5.ebuild
@@ -17,13 +17,10 @@ SLOT="0"
LICENSE="FREEWARE"
IUSE=""
-RDEPEND="amd64? ( app-emulation/emul-linux-x86-baselibs
- app-emulation/emul-linux-x86-gtklibs
- || ( sys-libs/libstdc++-v3 sys-libs/libstdc++-v3-bin )
- )
- x86? ( >=dev-libs/expat-2.0
- x11-libs/gtk+:2
- ) "
+RDEPEND=" >=x11-libs/gtk+-2.4:2[abi_x86_32]
+ || ( sys-libs/libstdc++-v3 sys-libs/libstdc++-v3-bin )
+ >=dev-libs/expat-2.0
+ "
src_unpack(){
unpack wink15.tar.gz
diff --git a/app-office/Yozo-Office/Yozo-Office-6.1.0088.131.ebuild b/app-office/Yozo-Office/Yozo-Office-6.1.0088.131.ebuild
index f9a359060c..c7b570e229 100644
--- a/app-office/Yozo-Office/Yozo-Office-6.1.0088.131.ebuild
+++ b/app-office/Yozo-Office/Yozo-Office-6.1.0088.131.ebuild
@@ -17,13 +17,11 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-DEPEND="amd64? ( app-emulation/emul-linux-x86-xlibs
-app-emulation/emul-linux-x86-soundlibs )
-x86? ( x11-libs/libXext
-x11-libs/libXrender
-x11-libs/libXtst
-x11-libs/libXi
-media-libs/alsa-lib )"
+DEPEND=" x11-libs/libXext[abi_x86_32]
+x11-libs/libXrender[abi_x86_32]
+x11-libs/libXtst[abi_x86_32]
+x11-libs/libXi[abi_x86_32]
+media-libs/alsa-lib[abi_x86_32]"
RDEPEND="${DEPEND}"
diff --git a/app-office/wps-office/wps-office-9.1.0.4945_alpha16_p3.ebuild b/app-office/wps-office/wps-office-9.1.0.4945_alpha16_p3.ebuild
index c1b7c5b37b..d70afa0cd6 100644
--- a/app-office/wps-office/wps-office-9.1.0.4945_alpha16_p3.ebuild
+++ b/app-office/wps-office/wps-office-9.1.0.4945_alpha16_p3.ebuild
@@ -46,92 +46,38 @@ REQUIRED_USE="abi_x86_32" # for now; will add abi_x86_64 once available
NATIVE_DEPEND="
app-arch/bzip2
dev-libs/expat
- dev-libs/glib:2
- dev-libs/libffi
- dev-libs/libxml2:2
- media-libs/fontconfig:1.0
- media-libs/freetype:2
- media-libs/glu
- media-libs/gst-plugins-base:0.10
- media-libs/gstreamer:0.10
- media-libs/libpng:1.2
- virtual/opengl
- media-libs/tiff:3
+ dev-libs/glib:2[abi_x86_32]
+ dev-libs/libffi[abi_x86_32]
+ dev-libs/libxml2:2[abi_x86_32]
+ media-libs/fontconfig:1.0[abi_x86_32]
+ media-libs/freetype:2[abi_x86_32]
+ media-libs/glu[abi_x86_32]
+ media-libs/gst-plugins-base:0.10[abi_x86_32]
+ media-libs/gstreamer:0.10[abi_x86_32]
+ media-libs/libpng:1.2[abi_x86_32]
+ virtual/opengl[abi_x86_32]
+ media-libs/tiff:3[abi_x86_32]
sys-apps/util-linux
- sys-devel/gcc
- sys-libs/glibc
- sys-libs/zlib
- x11-libs/libdrm
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libX11
- x11-libs/libXau
- x11-libs/libxcb
- x11-libs/libXdamage
- x11-libs/libXdmcp
- x11-libs/libXext
- x11-libs/libXfixes
- x11-libs/libXrender
- x11-libs/libXxf86vm"
+ sys-libs/zlib[abi_x86_32]
+ x11-libs/libdrm[abi_x86_32]
+ x11-libs/libICE[abi_x86_32]
+ x11-libs/libSM[abi_x86_32]
+ x11-libs/libX11[abi_x86_32]
+ x11-libs/libXau[abi_x86_32]
+ x11-libs/libxcb[abi_x86_32]
+ x11-libs/libXdamage[abi_x86_32]
+ x11-libs/libXdmcp[abi_x86_32]
+ x11-libs/libXext[abi_x86_32]
+ x11-libs/libXfixes[abi_x86_32]
+ x11-libs/libXrender[abi_x86_32]
+ x11-libs/libXxf86vm[abi_x86_32]"
RDEPEND="
- !amd64? (
- ${NATIVE_DEPEND}
- )
+ ${NATIVE_DEPEND}
amd64? (
- abi_x86_32? (
sys-devel/gcc[multilib]
sys-libs/glibc[multilib]
- ( || (
- app-emulation/emul-linux-x86-baselibs
- (
- app-arch/bzip2[abi_x86_32]
- dev-libs/expat[abi_x86_32]
- dev-libs/glib:2[abi_x86_32]
- dev-libs/libffi[abi_x86_32]
- dev-libs/libxml2:2[abi_x86_32]
- media-libs/libpng:1.2[abi_x86_32]
- media-libs/tiff:3[abi_x86_32]
- sys-apps/util-linux[abi_x86_32]
- sys-libs/zlib[abi_x86_32]
- )
- ) )
- ( || (
- app-emulation/emul-linux-x86-medialibs
- (
- media-libs/gst-plugins-base:0.10[abi_x86_32]
- media-libs/gstreamer:0.10[abi_x86_32]
- )
- ) )
- ( || (
- app-emulation/emul-linux-x86-opengl
- (
- media-libs/glu[abi_x86_32]
- virtual/opengl[abi_x86_32]
- x11-libs/libdrm[abi_x86_32]
- )
- ) )
- ( || (
- app-emulation/emul-linux-x86-xlibs
- (
- media-libs/fontconfig:1.0[abi_x86_32]
- media-libs/freetype:2[abi_x86_32]
- x11-libs/libICE[abi_x86_32]
- x11-libs/libSM[abi_x86_32]
- x11-libs/libX11[abi_x86_32]
- x11-libs/libXau[abi_x86_32]
- x11-libs/libxcb[abi_x86_32]
- x11-libs/libXdamage[abi_x86_32]
- x11-libs/libXdmcp[abi_x86_32]
- x11-libs/libXext[abi_x86_32]
- x11-libs/libXfixes[abi_x86_32]
- x11-libs/libXrender[abi_x86_32]
- x11-libs/libXxf86vm[abi_x86_32]
- )
- ) )
- )
)
-
corefonts? ( media-fonts/corefonts )
net-nds/openldap
dev-db/sqlite:3"
diff --git a/app-text/foxitreader/foxitreader-1.1.0.ebuild b/app-text/foxitreader/foxitreader-1.1.0.ebuild
index f566ae9573..8833c3d3d5 100644
--- a/app-text/foxitreader/foxitreader-1.1.0.ebuild
+++ b/app-text/foxitreader/foxitreader-1.1.0.ebuild
@@ -15,7 +15,7 @@ SRC_URI="http://cdn04.foxitsoftware.com/pub/foxit/reader/desktop/linux/${MY_PV1}
LICENSE="${PN}"
SLOT="0"
-KEYWORDS="~amd64 ~x86 -*"
+KEYWORDS="amd64 x86 -*"
IUSE=""
MY_LANGS="de fr ja zh_CN zh_TW"
for MY_LANG in ${MY_LANGS} ; do
@@ -23,16 +23,14 @@ for MY_LANG in ${MY_LANGS} ; do
done
RDEPEND="
- x86? ( dev-libs/atk
- dev-libs/glib:2
- media-libs/freetype:2
+ dev-libs/atk[abi_x86_32]
+ dev-libs/glib:2[abi_x86_32]
+ media-libs/freetype:2[abi_x86_32]
net-print/cups
- x11-libs/cairo
- x11-libs/gtk+:2
- x11-libs/pango )
- amd64? ( app-emulation/emul-linux-x86-baselibs
- app-emulation/emul-linux-x86-xlibs
- app-emulation/emul-linux-x86-gtklibs )"
+ x11-libs/cairo[abi_x86_32]
+ x11-libs/gtk+:2[abi_x86_32]
+ x11-libs/pango[abi_x86_32]
+"
S=${WORKDIR}/${MY_PV2}-release
diff --git a/media-sound/MiguMusic/Manifest b/media-sound/MiguMusic/Manifest
deleted file mode 100644
index dfcd8b4106..0000000000
--- a/media-sound/MiguMusic/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST MiguMusic_2010Beta1.bin 70144123 SHA256 a63164a67dd18a377925547e96bf37616d3879d01b9f5f9059f588c62b100375
-DIST MiguMusic_noqtlib_2010Beta1.bin 7221538 SHA256 5c959edb1ded3690045ae3bdf7fcf2201a725aef27d4d4e9528641c9d4158c20
diff --git a/media-sound/MiguMusic/MiguMusic-1.0.1_beta1.ebuild b/media-sound/MiguMusic/MiguMusic-1.0.1_beta1.ebuild
deleted file mode 100644
index 2248d93774..0000000000
--- a/media-sound/MiguMusic/MiguMusic-1.0.1_beta1.ebuild
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=3
-
-inherit gnome2-utils eutils
-
-MY_PV="2010Beta1"
-SRC_URI_BASE="http://interface-club.12530.com/update/Linux/"
-
-DESCRIPTION="An online music client"
-HOMEPAGE="http://music.10086.cn/newweb/zq/2009/migu_music_client/default/_/_/_/_/_/_/p.html"
-SRC_URI="
- qt-static? ( ${SRC_URI_BASE}${PN}_${MY_PV}.bin )
- !qt-static? ( ${SRC_URI_BASE}${PN}_noqtlib_${MY_PV}.bin )"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="gstreamer qt-static"
-
-RESTRICT="mirror"
-
-RDEPEND="
- amd64? (
- !qt-static? ( app-emulation/emul-linux-x86-qtlibs )
- sys-devel/gcc[multilib]
- sys-libs/glibc[multilib] )
- x86? (
- gstreamer? (
- media-libs/gst-plugins-bad
- media-libs/gst-plugins-ugly
- media-plugins/gst-plugins-ffmpeg
- x11-libs/gtk+ )
- !qt-static? (
- media-sound/phonon[gstreamer=]
- dev-qt/qtcore:4
- dev-qt/qtdbus:4
- dev-qt/qtgui:4[accessibility,dbus]
- dev-qt/qtsql:4[sqlite]
- dev-qt/qtwebkit:4
- dev-qt/qtxmlpatterns:4 ) )
- sys-devel/gcc
- sys-libs/glibc"
-DEPEND=""
-
-S="${WORKDIR}"
-
-pkg_setup() {
- if use amd64 && use gstreamer; then
- ewarn
- ewarn "Amd64 hasn't gstreamer support"
- die "Please disable gstreamer USE flag"
- fi
-}
-
-src_unpack() {
- sed -n -e '1,/^exit 0$/!p' "${DISTDIR}"/${A} > "${T}"/${A}.tar.gz
- tar xf "${T}"/${A}.tar.gz -C "${T}" || die
- tar xf "${T}"/MiguMusicInstaller/${PN}.tar.gz -C "${S}" || die
-}
-
-src_prepare() {
- find . -type d -name .svn -exec rm -fR {} \; >/dev/null 2>&1
- rm ${PN}.sh Readme Resource/uninstaller.png uninstaller*
-}
-
-src_install() {
- dodir /opt/${PN}
- cp -R * "${T}"/MiguMusicInstaller/libQt* "${D}"/opt/${PN}
-
- insinto /opt/bin
- doins "${FILESDIR}"/${PN}
- fperms +x /opt/bin/${PN}
-
- domenu "${FILESDIR}"/${PN}.desktop
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
-}
diff --git a/media-sound/MiguMusic/files/MiguMusic b/media-sound/MiguMusic/files/MiguMusic
deleted file mode 100644
index 7935e80c4f..0000000000
--- a/media-sound/MiguMusic/files/MiguMusic
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /bin/sh
-
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/MiguMusic
-/opt/MiguMusic/MiguMusic $*
diff --git a/media-sound/MiguMusic/files/MiguMusic.desktop b/media-sound/MiguMusic/files/MiguMusic.desktop
deleted file mode 100644
index 7807e1e5c6..0000000000
--- a/media-sound/MiguMusic/files/MiguMusic.desktop
+++ /dev/null
@@ -1,14 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Migu Music
-Name[zh_CN]="咪咕音乐"
-Name[zh_HK]="咪咕音樂"
-Name[zh_TW]="咪咕音樂"
-Comment=Digital Music Player
-Comment[zh_CN]="数字音乐播放器"
-Comment[zh_HK]="數位音樂播放器"
-Comment[zh_TW]="數位音樂播放器"
-Icon=/opt/MiguMusic/Resource/ICONmacmusic.png
-Exec=MiguMusic
-Terminal=false
-Categories=Audio;Network;Player;AudioVideo;
diff --git a/media-sound/MiguMusic/metadata.xml b/media-sound/MiguMusic/metadata.xml
deleted file mode 100644
index 75547bcff0..0000000000
--- a/media-sound/MiguMusic/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-no-herd
-
-
diff --git a/media-tv/ppstream/ppstream-1.0.2.ebuild b/media-tv/ppstream/ppstream-1.0.2.ebuild
index 962e1b6014..03f144c846 100644
--- a/media-tv/ppstream/ppstream-1.0.2.ebuild
+++ b/media-tv/ppstream/ppstream-1.0.2.ebuild
@@ -13,11 +13,9 @@ SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
-DEPEND="x86? ( >=dev-qt/qtcore-4.4.0
- >=dev-qt/qtgui-4.4.0
- >=dev-qt/qtwebkit-4.4.0 )
- amd64? ( app-emulation/emul-linux-x86-qtlibs )
- || ( media-video/mplayer media-video/mplayer2 )"
+DEPEND=" >=dev-qt/qtgui:4[abi_x86_32]
+ >=dev-qt/qtwebkit:4[abi_x86_32]
+ || ( media-video/mplayer media-video/mplayer2 )"
RDEPEND="${DEPEND}"
src_unpack() {
diff --git a/media-video/realplayer/Manifest b/media-video/realplayer/Manifest
deleted file mode 100644
index 2c23a96585..0000000000
--- a/media-video/realplayer/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST realplay-10.0.9-source.tar.bz2 17132957 SHA256 ae2c77bee18fef9a78397b7d648a3bb51b48642aea9778e971d38dbe942940a4
-DIST realplay_gtk_current-20060824-dist_linux-2.6-glibc23-amd64.zip 1341639 SHA256 0413d01994090e5702a26edcfb25500b232055598226ee2e549c026fe4a0200c
diff --git a/media-video/realplayer/files/50realplay b/media-video/realplayer/files/50realplay
deleted file mode 100644
index 0e5d91e697..0000000000
--- a/media-video/realplayer/files/50realplay
+++ /dev/null
@@ -1 +0,0 @@
-PATH=/opt/RealPlayer
diff --git a/media-video/realplayer/files/buildrc b/media-video/realplayer/files/buildrc
deleted file mode 100644
index 7d7e4eb96a..0000000000
--- a/media-video/realplayer/files/buildrc
+++ /dev/null
@@ -1 +0,0 @@
-SetSDKPath("oggvorbissdk", "/usr")
diff --git a/media-video/realplayer/files/gcc_versioncheck.patch b/media-video/realplayer/files/gcc_versioncheck.patch
deleted file mode 100644
index c965083a36..0000000000
--- a/media-video/realplayer/files/gcc_versioncheck.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- player_all-bingo-beta-20040615/build/lib/sysinfo.py 2004-06-04 09:24:43.000000000 +0900
-+++ player_all-bingo-beta-20040615_2/build/lib/sysinfo.py 2004-07-08 18:20:57.000000000 +0900
-@@ -818,7 +818,7 @@
- set_platform('linux-2.0-libc6-i386')
- return
-
-- gcc_version=os.popen("gcc -v 2>&1 | sed -n 's/^gcc version //gp'").read()
-+ gcc_version=os.popen("gcc -dumpversion").read()
- gcc_version=string.strip(gcc_version)
-
- if gcc_version[0] == "3":
diff --git a/media-video/realplayer/files/installer-naming.patch b/media-video/realplayer/files/installer-naming.patch
deleted file mode 100644
index efbcc5652c..0000000000
--- a/media-video/realplayer/files/installer-naming.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- player_all-bingo-beta-20040615/installer/common/scripts/installer.backup 2004-04-21 09:09:34.000000000 +0900
-+++ player_all-bingo-beta-20040615/installer/common/scripts/installer.py 2004-07-11 14:22:35.037901736 +0900
-@@ -294,7 +294,7 @@
- else:
- ext = self.archive_type
-
-- dest_arch = "%s%s-%s.%s" % (name, verstr, sysinfo.id, ext)
-+ dest_arch = "%s.%s" % ("realplayer", ext)
- project.writeln("copy:")
- project.writeln("\t %s %s %s" %
- (platform.copy.cmd, self.archive_file,
diff --git a/media-video/realplayer/files/mimeinfo b/media-video/realplayer/files/mimeinfo
deleted file mode 100644
index 4acaa1648b..0000000000
--- a/media-video/realplayer/files/mimeinfo
+++ /dev/null
@@ -1,8 +0,0 @@
-application/smil smil,smi Synchronized stream
-application/vnd.rn-realmedia rm RealMedia stream
-audio/vnd.rn-realaudio ra RealAudio stream
-audio/x-pn-realaudio ram,rmm RealPlayer metafile
-image/vnd.rn-realflash rf RealFlash stream
-image/vnd.rn-realpix rp RealPix stream
-text/vnd.rn-realtext rt RealText stream
-video/vnd.rn-realvideo rv RealVideo stream
diff --git a/media-video/realplayer/files/realplay b/media-video/realplayer/files/realplay
deleted file mode 100644
index 264c90217f..0000000000
--- a/media-video/realplayer/files/realplay
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/sh
-
-# If you don't have readlink, fill in the path to hxplay.bin here.
-# HELIX_LIBS="/usr/local/HelixPlayer" ; export HELIX_LIBS
-
-# To install this script, create a symlink to it from somewhere in your
-# path. Do *not* move the script out of the HelixPlayer directory, since
-# it relies on the true location of hxplay to derive the location of the
-# HelixPlayer directory
-
-# REALPLAYSYMLINK and REALPLAYSCRIPT are only used to derive REALPLAYDIR
-
-if [ ! -d "$HELIX_LIBS" ]; then
- REALPLAYSCRIPT=""
-
- if [ -h "$0" ]; then
- REALPLAYSYMLINK=`which $0`
-
- # Search for something we can use as readlink
- READLINK=`which readlink` 2> /dev/null;
- PERL=`which perl` 2> /dev/null;
- PYTHON=`which python` 2> /dev/null;
- if [ -x "$READLINK" ] ; then
- # echo "Using readlink"
- REALPLAYSCRIPT=`$READLINK $REALPLAYSYMLINK`
- elif [ -x "$PERL" ] ; then
- # echo "Using perl"
- REALPLAYSCRIPT=`$PERL -e 'print readlink($ARGV[0])' -- $REALPLAYSYMLINK`
- elif [ -x "$PYTHON" ] ; then
- # echo "Using python"
- REALPLAYSCRIPT=`echo 'import os; print os.readlink("/usr/local/bin/hxplay")' | $PYTHON -`
- else
- # echo "Using ls (directory name cannot contain spaces)"
- REALPLAYSCRIPT=`ls -l $REALPLAYSYMLINK | sed -e 's/.* //'`
- fi
- else
- REALPLAYSCRIPT=`which $0`
- fi
-
- if [ ! -x "$REALPLAYSCRIPT" ] ; then
- echo "Cannot find the HelixPlayer directory."
- echo "Please set the path in the hxplay script."
- exit
- fi
-
- # if REALPLAYDIR detection doesn't work, hardcode the directory here
- REALPLAYDIR=`dirname $REALPLAYSCRIPT`
-
- # setup environment
- # find our common, plugin and codec dlls
- HELIX_LIBS=$REALPLAYDIR
- export HELIX_LIBS
-fi
-
-# See if LD_PRELOAD contains any of the sound server libs. If so, remove them.
-LD_PRELOAD=`echo $LD_PRELOAD | sed -e 's/\([^:]*libesd[^:]*\|[^:]*libarts[^:]*\):\?//g'`
-export LD_PRELOAD
-
-if [ -n "$LD_PRELOAD" ]; then
- echo "Warning: LD_PRELOAD=\"$LD_PRELOAD\""
-fi
-
-# execute binary (and pass args), optionally running via catchsegv
-REALPLAYBIN=$HELIX_LIBS/realplay.bin
-if [ -n "$DEBUG" -a -x "$CATCHSEGV" ]; then
- $CATCHSEGV $REALPLAYBIN ${1+"$@"}
-else
- while /bin/true; do
- # Restart the player if exit code is 10
- if `which aoss`;then
- aoss $REALPLAYBIN "$@"
- else
- $REALPLAYBIN "$@"
- fi
- if [ $? -ne 10 ]; then
- break
- fi
- done
-fi
diff --git a/media-video/realplayer/files/realplayer-1.0-ppc-build.patch b/media-video/realplayer/files/realplayer-1.0-ppc-build.patch
deleted file mode 100644
index 3d73688094..0000000000
--- a/media-video/realplayer/files/realplayer-1.0-ppc-build.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- hxplay-1.0.0.298/build/lib/sysinfo.py.orig 2004-07-20 02:19:57.000000000 +0100
-+++ hxplay-1.0.0.298/build/lib/sysinfo.py 2004-09-21 14:26:08.244116728 +0100
-@@ -880,9 +880,9 @@
- else:
- set_platform('linux-2.2-libc6-i586')
-
-- ## Linux PPC Q3
-+ ## Fedora PPC
- elif arch == 'ppc':
-- set_platform('linux-2.2-libc6-powerpc')
-+ set_platform('linux-2.2-libc6-gcc32-powerpc')
-
- ## Linux/Redhat SPARC
- elif arch == 'sparc64' or arch == 'sparc':
diff --git a/media-video/realplayer/files/realplayer-10.0.4-cjk-hack.patch b/media-video/realplayer/files/realplayer-10.0.4-cjk-hack.patch
deleted file mode 100644
index c14b42291d..0000000000
--- a/media-video/realplayer/files/realplayer-10.0.4-cjk-hack.patch
+++ /dev/null
@@ -1,1176 +0,0 @@
-diff -urp --exclude Makefile --exclude '*.o' --exclude rel --exclude dbg --exclude debug --exclude release realplay-10.0.4.orig/player/app/gtk/clipdetails.cpp realplay-10.0.4/player/app/gtk/clipdetails.cpp
---- realplay-10.0.4.orig/player/app/gtk/clipdetails.cpp 2005-04-25 16:39:02.000000000 +0800
-+++ realplay-10.0.4/player/app/gtk/clipdetails.cpp 2005-04-28 13:07:55.000000000 +0800
-@@ -52,6 +52,7 @@
- #include "commonapp.h"
-
- #include
-+#include "mainapp.h"
-
- typedef struct
- {
-@@ -83,10 +84,11 @@ update_clip_info(HXClipDetailsDialog* di
- GValue value;
- gboolean result;
- const gchar* prop;
--
-+ HXURL* hu;
- memset(&value, 0, sizeof(value));
-
-- url = hx_player_get_url(dialog->player);
-+ hu = hu_from_url(hx_player_get_url(dialog->player));
-+ url = hu_to_url_without_charset(hu);
- gtk_label_set_text(GTK_LABEL(dialog->url_label), url? url: "");
-
- result = hx_player_get_statistic(dialog->player, "title", &value);
-@@ -136,6 +138,9 @@ update_clip_info(HXClipDetailsDialog* di
- gtk_label_set_text(GTK_LABEL(dialog->keywords_label), prop);
- g_value_unset(&value);
- }
-+
-+ g_free(url);
-+ hu_free(hu);
- }
-
- static void
-diff -urp --exclude Makefile --exclude '*.o' --exclude rel --exclude dbg --exclude debug --exclude release realplay-10.0.4.orig/player/app/gtk/commonapp.cpp realplay-10.0.4/player/app/gtk/commonapp.cpp
---- realplay-10.0.4.orig/player/app/gtk/commonapp.cpp 2005-04-25 16:39:02.000000000 +0800
-+++ realplay-10.0.4/player/app/gtk/commonapp.cpp 2005-04-29 21:18:05.000000000 +0800
-@@ -1125,15 +1125,17 @@ hxcommon_load_preferences(HXMainWindow*
- enum SectionNameType
- {
- HELIX_SECTION = 0,
-- RECENT_URLS_SECTION = 1,
-- PLAYER_SECTION = 2,
-- FAVORITES_SECTION = 3,
-- SIGN_IN_SECTION = 4
-+ ENCODING_SECTION = 1,
-+ RECENT_URLS_SECTION = 2,
-+ PLAYER_SECTION = 3,
-+ FAVORITES_SECTION = 4,
-+ SIGN_IN_SECTION = 5
- } section_name;
-
- const gchar* section_labels[] =
- {
- "helix",
-+ "encoding",
- "recent_urls",
- "player",
- "favorites",
-@@ -1211,7 +1213,7 @@ hxcommon_load_preferences(HXMainWindow*
- guint i;
- *pos = '\0';
- section = line + 1;
--
-+
- section_name = HELIX_SECTION; // default to helix
-
- for(i = 0; i < sizeof(section_labels) / sizeof(*section_labels); i++)
-@@ -1261,7 +1263,22 @@ hxcommon_load_preferences(HXMainWindow*
- override_open_audio_pref = FALSE;
- }
- break;
--
-+
-+ /*
-+ * encoding section must be comes before recent urls &
-+ * favorites section
-+ */
-+ case ENCODING_SECTION:
-+ if (strcmp(key, "MetaDataEncoding") == 0)
-+ hx_set_meta_data_encodings(value_str);
-+ else if (strcmp(key, "RemoteUrlEncoding") == 0)
-+ hx_set_remote_url_encodings(value_str);
-+ else
-+ {
-+ g_warning("Parse error reading encoding section");
-+ }
-+ break;
-+
- case RECENT_URLS_SECTION:
- if(window)
- {
-@@ -1275,7 +1292,7 @@ hxcommon_load_preferences(HXMainWindow*
- case PLAYER_SECTION:
- if(window)
- {
-- GValue value;
-+ GValue value;
- memset(&value, 0, sizeof(value));
- g_value_init(&value, G_TYPE_STRING);
- g_value_set_string(&value, value_str);
-diff -urp --exclude Makefile --exclude '*.o' --exclude rel --exclude dbg --exclude debug --exclude release realplay-10.0.4.orig/player/app/gtk/favorites.cpp realplay-10.0.4/player/app/gtk/favorites.cpp
---- realplay-10.0.4.orig/player/app/gtk/favorites.cpp 2005-04-25 16:39:03.000000000 +0800
-+++ realplay-10.0.4/player/app/gtk/favorites.cpp 2005-04-29 21:21:09.000000000 +0800
-@@ -76,7 +76,8 @@ void
- hx_favorite_free(HXFavorite* favorite)
- {
- g_free(favorite->title);
-- g_free(favorite->url);
-+ //g_free(favorite->url);
-+ hu_free(favorite->hu);
- g_free(favorite);
- }
-
-@@ -119,14 +120,18 @@ favorites_export_to_m3u(const gchar* fil
- {
- HXFavorite* favorite = (HXFavorite*)favorites_iter->data;
- gchar* line;
-+ gchar* url;
- GError* error = NULL;
- gsize bytes_written;
- gsize len;
- GIOStatus status;
-
-- line = g_strdup_printf("%s\n", favorite->url);
-+ //line = g_strdup_printf("%s\n", favorite->url);
-+ url = hu_to_url(favorite->hu);
-+ line = g_strdup_printf("%s\n", url);
- len = strlen(line);
- status = g_io_channel_write_chars(chan, line, len, &bytes_written, &error);
-+ g_free(url);
- g_free(line);
-
- if(error)
-@@ -157,7 +162,7 @@ favorites_import_from_m3u(const gchar* f
- GIOChannel* chan;
- GError *error = NULL;
- GList* favorites_list = *favorites_list_ptr;
--
-+
- chan = g_io_channel_new_file(filename, "r", &error);
- if(error)
- {
-@@ -208,9 +213,14 @@ favorites_import_from_m3u(const gchar* f
-
- HXFavorite* favorite;
- gchar* filename;
-+ gchar* url;
-
- favorite = hx_favorite_new();
-- filename = strrchr(line, '/');
-+
-+ favorite->hu = hu_from_url(line);
-+
-+ url = hu_to_url_without_charset(favorite->hu);
-+ filename = strrchr(url, '/');
- if(filename)
- {
- filename++;
-@@ -222,11 +232,12 @@ favorites_import_from_m3u(const gchar* f
-
- if(!favorite->title)
- {
-- favorite->title = g_strdup(line);
-+ favorite->title = g_strdup(url);
- }
-+
-+ g_free(line);
-+ g_free(url);
-
-- favorite->url = line;
--
- favorites_list = g_list_append(favorites_list, favorite);
- }
-
-@@ -350,6 +361,7 @@ hfd_cell_edited(GtkCellRendererText *cel
- GtkTreeIter iter;
- gint column;
- HXFavorite* favorite = NULL;
-+ gchar* text;
-
- column = (gint)g_object_get_data (G_OBJECT (cell), "column");
- model = (GtkTreeModel*)g_object_get_data (G_OBJECT (cell), "model");
-@@ -375,11 +387,18 @@ hfd_cell_edited(GtkCellRendererText *cel
- break;
-
- case COLUMN_URL:
-- g_free(favorite->url);
-- favorite->url = g_strdup(new_text);
-- gtk_list_store_set(GTK_LIST_STORE(model), &iter,
-- COLUMN_URL, favorite->url,
-- -1);
-+ //g_free(favorite->url);
-+ //favorite->url = g_strdup(new_text);
-+ text = hu_get_utf8_url(favorite->hu) ? \
-+ hu_get_utf8_url(favorite->hu) : hu_get_raw_url(favorite->hu);
-+ if (text == NULL || strcmp(text, new_text) != 0) {
-+ hu_set_utf8_url(favorite->hu, new_text, hu_get_charset(favorite->hu));
-+ text = hu_to_url_without_charset(favorite->hu);
-+ gtk_list_store_set(GTK_LIST_STORE(model), &iter,
-+ COLUMN_URL, text,
-+ -1);
-+ g_free(text);
-+ }
- break;
- }
-
-@@ -476,15 +495,18 @@ hxplay_manage_favorites_dialog_new(GList
- while(favorites_list_iter)
- {
- HXFavorite* favorite = (HXFavorite*)favorites_list_iter->data;
--
-+ gchar *text;
-+
-+ text = hu_get_utf8_url(favorite->hu) ? \
-+ hu_get_utf8_url(favorite->hu) : hu_get_raw_url(favorite->hu);
- gtk_list_store_append(store, &tree_iter);
-- gtk_list_store_set (store, &tree_iter,
-- COLUMN_TITLE, favorite->title,
-- COLUMN_URL, favorite->url,
-+ gtk_list_store_set (store, &tree_iter,
-+ COLUMN_TITLE, favorite->title ? favorite->title : "",
-+ COLUMN_URL, text,
- COLUMN_EDITABLE, TRUE,
- COLUMN_FAVORITE, favorite,
- -1);
--
-+
- favorites_list_iter = g_list_next(favorites_list_iter);
- }
-
-@@ -552,7 +574,7 @@ void hfd_new_favorite(GtkWidget* widget)
- GtkTreeIter tree_iter;
- GtkWidget* tree_view;
- GtkTreePath* path;
--
-+ gchar* text;
- GtkWidget* dialog = gtk_widget_get_toplevel(widget);
-
- favorites_list_ptr = (GList**)g_object_get_data(G_OBJECT(dialog), "favorites_list_ptr");
-@@ -564,14 +586,17 @@ void hfd_new_favorite(GtkWidget* widget)
- favorite = hx_favorite_new();
-
- favorite->title = g_strdup(_("Untitled"));
-- favorite->url = g_strdup("http://");
--
-+ //favorite->url = g_strdup("http://");
-+ favorite->hu = hu_new();
-+ hu_set_utf8_url(favorite->hu, "http://", NULL);
-+ text = hu_get_utf8_url(favorite->hu) ? \
-+ hu_get_utf8_url(favorite->hu) : hu_get_raw_url(favorite->hu);
- favorites_list = g_list_append(favorites_list, favorite);
-
- gtk_list_store_append(list_store, &tree_iter);
- gtk_list_store_set (list_store, &tree_iter,
- COLUMN_TITLE, favorite->title,
-- COLUMN_URL, favorite->url,
-+ COLUMN_URL, text,
- COLUMN_EDITABLE, TRUE,
- COLUMN_FAVORITE, favorite,
- -1);
-diff -urp --exclude Makefile --exclude '*.o' --exclude rel --exclude dbg --exclude debug --exclude release realplay-10.0.4.orig/player/app/gtk/favorites.h realplay-10.0.4/player/app/gtk/favorites.h
---- realplay-10.0.4.orig/player/app/gtk/favorites.h 2005-04-25 16:39:03.000000000 +0800
-+++ realplay-10.0.4/player/app/gtk/favorites.h 2005-04-28 11:46:49.000000000 +0800
-@@ -51,14 +51,15 @@
- #define _FAVOURITES_H_
-
- #include
-+#include
-
- G_BEGIN_DECLS
-
- typedef struct _HXFavorite
- {
- gchar* title;
-- gchar* url;
--
-+ /*gchar* url;*/
-+ HXURL* hu;
- } HXFavorite;
-
- HXFavorite* hx_favorite_new (void);
-diff -urp --exclude Makefile --exclude '*.o' --exclude rel --exclude dbg --exclude debug --exclude release realplay-10.0.4.orig/player/app/gtk/mainapp.cpp realplay-10.0.4/player/app/gtk/mainapp.cpp
---- realplay-10.0.4.orig/player/app/gtk/mainapp.cpp 2005-04-25 16:39:02.000000000 +0800
-+++ realplay-10.0.4/player/app/gtk/mainapp.cpp 2005-04-29 21:24:39.000000000 +0800
-@@ -144,6 +144,16 @@
- /* Data structures
- * ===============
- */
-+extern "C" {
-+ typedef struct _HXURL {
-+ /* original url*/
-+ gchar *url;
-+ /* utf8 formated url*/
-+ gchar *url_utf8;
-+ /* original url charset*/
-+ gchar *charset;
-+ }HXURL;
-+}
-
- typedef enum {
- ON_TOP_NEVER,
-@@ -267,6 +277,10 @@ typedef struct _HXMainWindow
-
- typedef struct
- {
-+ /*Encodings*/
-+ gchar** remote_url_encodings;
-+ gchar** meta_data_encodings;
-+
- /* Players */
- GList* windows_list;
-
-@@ -350,7 +364,7 @@ void hmw_on_top_never (GtkWid
- void hmw_on_top_while_playing(GtkWidget *widget);
- void hmw_on_top_always (GtkWidget *widget);
- void hmw_play_from_menu_item (GtkWidget* widget,
-- gchar* url);
-+ HXURL* hu);
- void hmw_play_group (GtkWidget* widget,
- guint group);
-
-@@ -412,7 +426,347 @@ void hmw_drag_data_received(GtkWidget*
- static HXMainWindow* hxwindow_get_from_widget (GtkWidget* widget);
- static void hxwindow_destroy (HXMainWindow* window);
-
--}; // extern "C"
-+void hx_set_meta_data_encodings (gchar *encodings)
-+{
-+ g_return_if_fail(g_hx_main_app != NULL && encodings != NULL);
-+
-+ /*FIXME:this function shouldn't be called more than once*/
-+ if (g_hx_main_app->meta_data_encodings)
-+ return;
-+ g_hx_main_app->meta_data_encodings = g_strsplit_set(encodings, ";,", 0);
-+}
-+
-+void hx_set_remote_url_encodings (gchar *encodings)
-+{
-+ g_return_if_fail(g_hx_main_app != NULL && encodings != NULL);
-+
-+ /*FIXME:this function shouldn't be called more than once*/
-+ if (g_hx_main_app->remote_url_encodings)
-+ return;
-+ g_hx_main_app->remote_url_encodings = g_strsplit_set(encodings, ";,", 0);
-+}
-+
-+G_CONST_RETURN gchar** hx_get_meta_data_encodings ()
-+{
-+ return g_hx_main_app->meta_data_encodings;
-+}
-+
-+G_CONST_RETURN gchar** hx_get_remote_url_encodings ()
-+{
-+ return g_hx_main_app->remote_url_encodings;
-+}
-+
-+gboolean hx_is_valid_url_charset (const char *charset)
-+{
-+ gchar* locale_charset;
-+ g_return_val_if_fail(charset != NULL, FALSE);
-+
-+ if (charset && *charset) {
-+ gchar **ep = hx_get_remote_url_encodings();
-+ while (ep && *ep) {
-+ if (strcmp(*ep, charset) == 0)
-+ return TRUE;
-+ ep ++;
-+ }
-+ }
-+
-+ g_get_charset(&locale_charset);
-+ if (strcmp(charset, locale_charset) == 0)
-+ return TRUE;
-+
-+ return FALSE;
-+}
-+
-+/*convert meta data to utf8 encoded data
-+ *@data meta data
-+ *@return should be free by caller
-+ */
-+gchar *hx_meta_data_to_utf8 (G_CONST_RETURN gchar* data)
-+{
-+ gchar** sp;
-+ gchar* utf8_data;
-+
-+ g_return_val_if_fail(data != NULL, NULL);
-+
-+ if (g_utf8_validate(data, -1, NULL))
-+ return g_strdup(data);
-+
-+ sp = hx_get_meta_data_encodings();
-+ utf8_data = NULL;
-+
-+
-+ while (sp && *sp && utf8_data == NULL) {
-+ utf8_data = g_convert(data, strlen(data), "UTF-8", *sp, NULL, NULL, NULL);
-+ sp ++;
-+ }
-+
-+ /* I am lazy, I didn't do charset dection.
-+ * So if data's encoding is not GBK, it may segfaults.
-+ * Good luck!
-+ * -- Zhang Le
-+ */
-+ if (utf8_data == NULL)
-+ utf8_data = g_convert(data, strlen(data), "UTF-8", "GBK", NULL, NULL, NULL);
-+
-+ if (utf8_data == NULL)
-+ utf8_data = g_locale_to_utf8(data, -1, NULL, NULL, NULL);
-+
-+ return utf8_data;
-+}
-+
-+HXURL *hu_new ()
-+{
-+ return g_new0 (HXURL, 1);
-+}
-+
-+void hu_free (HXURL* hu)
-+{
-+ if (hu) {
-+ g_free(hu->url);
-+ g_free(hu->url_utf8);
-+ g_free(hu);
-+ }
-+}
-+
-+HXURL* hu_dup(HXURL* hu)
-+{
-+ HXURL* hu_copy;
-+
-+ g_return_val_if_fail(hu != NULL, NULL);
-+
-+ hu_copy = hu_new();
-+ g_return_val_if_fail(hu_copy != NULL, NULL);
-+
-+ hu_copy->url = g_strdup(hu->url);
-+ if (hu->url_utf8)
-+ hu_copy->url_utf8 = g_strdup(hu->url_utf8);
-+ hu_copy->charset = hu->charset;
-+
-+ return hu_copy;
-+}
-+
-+void hu_set_url (HXURL *hu, const gchar *url, const gchar *charset)
-+{
-+ gint url_len;
-+ gchar** encodings;
-+
-+ g_return_if_fail(hu != NULL && url != NULL);
-+
-+ if (hu->url)
-+ g_free(hu->url);
-+ if (hu->url_utf8)
-+ g_free(hu->url_utf8);
-+
-+ g_warning ("hu_set_url:url: %s", url);
-+ g_warning ("hu_set_url:charset: %s", charset);
-+ encodings = hx_get_remote_url_encodings();
-+
-+ if (strchr(url, '%')) {
-+ hu->url = hxcommon_strdup_and_unescape_url(url);
-+ } else {
-+ hu->url = g_strdup(url);
-+ }
-+ hu->url_utf8 = NULL;
-+ if (charset) {
-+ gchar **ep = encodings;
-+ while (ep && *ep && hu->url_utf8 == NULL) {
-+ g_warning("encoding:%s\n", *ep);
-+ if (strcmp(charset, *ep) == 0) {
-+ hu->url_utf8 = g_convert (hu->url, strlen(hu->url), "UTF-8", *ep, NULL, NULL, NULL);
-+ hu->charset = *ep;
-+ break;
-+ }
-+ ep ++;
-+ }
-+ }
-+
-+ g_warning ("hu->url:%s\n", hu->url);
-+ g_warning ("hu->url_utf8:%s\n", hu->url_utf8);
-+ g_warning ("hu->charset:%s\n", hu->charset);
-+ if (hu->url_utf8)
-+ return;
-+
-+ url_len = strlen(hu->url);
-+ if (!g_utf8_validate(hu->url, -1, NULL)) {
-+ gchar **ep = encodings;
-+ hu->url_utf8 = NULL;
-+ while (ep && *ep && hu->url_utf8 == NULL) {
-+ g_warning ("charset:%s\n", *ep);
-+ hu->url_utf8 = g_convert(hu->url, url_len, "UTF-8", *ep, NULL, NULL, NULL);
-+ hu->charset = *ep;
-+ ep++;
-+ }
-+ }
-+
-+ g_warning ("hu->url:%s\n", hu->url);
-+ g_warning ("hu->url_utf8:%s\n", hu->url_utf8);
-+ g_warning ("hu->charset:%s\n", hu->charset);
-+
-+ if (hu->url_utf8 == NULL) {
-+ hu->url_utf8 = g_locale_to_utf8 (hu->url, -1, NULL, NULL, NULL);
-+ g_get_charset(&hu->charset);
-+
-+ if (hu->url_utf8 == NULL) {
-+ hu->url_utf8 = g_convert(hu->url, url_len, "UTF-8", "ISO-8859-1", NULL, NULL, NULL);
-+ hu->charset = NULL;
-+ g_free(hu->url);
-+ hu->url = g_strdup(hu->url_utf8);
-+ return;
-+ }
-+ }
-+}
-+
-+void hu_set_utf8_url (HXURL *hu, const gchar *url, const gchar *charset)
-+{
-+ g_return_if_fail(hu != NULL && url != NULL);
-+
-+ g_warning ("hu_set_utf8_url:url:%s(charset%s)", url, charset);
-+ if (hu->url) {
-+ g_free(hu->url);
-+ hu->url = NULL;
-+ }
-+ if (hu->url_utf8) {
-+ g_free(hu->url_utf8);
-+ hu->url_utf8 = NULL;
-+ }
-+
-+ if (charset && *charset) {
-+ gchar **ep = hx_get_remote_url_encodings();
-+ while (ep && *ep) {
-+ if (strcmp(*ep, charset) == 0) {
-+ hu->url = g_convert(url, strlen(url), charset, "UTF-8", NULL, NULL, NULL);
-+ hu->url_utf8 = g_strdup(url);
-+ hu->charset = *ep;
-+ }
-+ ep++;
-+ }
-+ }
-+
-+ if (hu->url == NULL) {
-+ g_get_charset(&hu->charset);
-+ hu->url = g_locale_from_utf8(url, -1, NULL, NULL, NULL);
-+ }
-+
-+ if (hu->url == NULL) {
-+ hu->url = g_convert(url, strlen(url), "ISO-8859-1", "UTF-8", NULL, NULL, NULL);
-+ hu->url_utf8 = g_strdup(url);
-+ hu->charset = NULL;
-+ }
-+
-+ g_warning ("hu->url:%s\n", hu->url);
-+ g_warning ("hu->url_utf8:%s\n", hu->url_utf8);
-+ g_warning ("hu->charset:%s\n", hu->charset);
-+}
-+
-+gchar* hu_get_raw_url (HXURL *hu)
-+{
-+ g_return_val_if_fail(hu != NULL, NULL);
-+
-+ return hu->url;
-+}
-+
-+gchar* hu_get_utf8_url (HXURL *hu)
-+{
-+ g_return_val_if_fail(hu != NULL, NULL);
-+
-+ return hu->url_utf8;
-+}
-+
-+gchar* hu_get_charset (HXURL *hu)
-+{
-+ g_return_val_if_fail(hu != NULL, NULL);
-+
-+ return hu->charset;
-+}
-+
-+gboolean hu_is_equal (HXURL *left, HXURL*right)
-+{
-+ g_assert(left != NULL && right != NULL);
-+
-+ if (strcmp(left->url, right->url) == 0) {
-+ //return (strcmp (left->charset, right->charset) == 0);
-+ return TRUE;
-+ }
-+
-+ return FALSE;
-+}
-+
-+HXURL* hu_from_url (const gchar *url)
-+{
-+ gchar* url_copy;
-+ gchar* url_end;
-+ gchar* url_charset;
-+ HXURL* hu;
-+
-+ g_return_val_if_fail (url != NULL, NULL);
-+
-+ /*url with follow format:
-+ * original url|url charset
-+ * */
-+ url_copy = g_strdup(url);
-+ url_end = strrchr(url_copy, '#');
-+ if (url_end && url_end[1] != '\0') {
-+ url_charset = url_end + 1;
-+ url_end[0] = '\0';
-+ }
-+ else url_charset = NULL;
-+
-+ hu = hu_new();
-+ if (url_charset && hx_is_valid_url_charset(url_charset) && g_utf8_validate(url_copy, -1, NULL))
-+ hu_set_utf8_url(hu, url_copy, url_charset);
-+ else
-+ hu_set_url(hu, url, NULL);
-+
-+ g_free(url_copy);
-+
-+ return hu;
-+}
-+
-+gchar* hu_to_url (const HXURL *hu)
-+{
-+ gchar* url;
-+
-+ g_return_val_if_fail(hu != NULL, NULL);
-+
-+ if (hu->charset && *hu->charset)
-+ url = g_strdup_printf("%s#%s", hu->url_utf8 ? hu->url_utf8 : hu->url, hu->charset);
-+ else
-+ url = g_strdup(hu->url);
-+
-+ return url;
-+}
-+
-+gchar* hu_to_url_without_charset (const HXURL *hu)
-+{
-+ gchar* url;
-+
-+ g_return_val_if_fail(hu != NULL, NULL);
-+
-+ if (hu->charset && *hu->charset)
-+ url = g_strdup_printf("%s", hu->url_utf8 ? hu->url_utf8 : hu->url);
-+ else
-+ url = g_strdup(hu->url);
-+
-+ return url;
-+}
-+}; //extern "C"
-+
-+static HXURL* hxwindow_find_hu_by_url (HXMainWindow *window, const gchar *url)
-+{
-+ g_return_val_if_fail(window != NULL && url != NULL, NULL);
-+
-+ GList* iter = window->recent_urls_list;
-+ HXURL* hu;
-+ while (iter) {
-+ hu = (HXURL *)iter->data;
-+ if (strcmp(url, hu_get_raw_url(hu)) == 0)
-+ return hu;
-+
-+ iter = g_list_next(iter);
-+ }
-+
-+ return NULL;
-+}
-
- /* Recent url management implementation
- * ====================================
-@@ -486,8 +835,12 @@ recent_urls_menu_populate(HXMainWindow*
- gchar* menu_item_text;
- gchar* title;
- gchar* url;
-+ HXURL* hu;
-
-- url = g_strdup((const char*)iter->data);
-+ //url = g_strdup((const char*)iter->data);
-+ hu = (HXURL *)iter->data;
-+
-+ url = hu_to_url_without_charset(hu);
- title = hxcommon_get_title_from_url(url);
-
- escaped_filename = hxcommon_escape_underscores(title);
-@@ -505,7 +858,7 @@ recent_urls_menu_populate(HXMainWindow*
- g_object_set_data(G_OBJECT(menu_item), "item_type", (gpointer) PLAY_MENU_TYPE_MRU);
-
- g_signal_connect(G_OBJECT(menu_item), "activate",
-- G_CALLBACK(hmw_play_from_menu_item), url);
-+ G_CALLBACK(hmw_play_from_menu_item), hu);
-
- g_object_set_data(G_OBJECT(menu_item), "url", url);
-
-@@ -549,14 +902,22 @@ recent_urls_add(HXMainWindow* window,
- GList* last;
- GList* pos;
- GList* iter;
-+ HXURL* hu;
-+ HXURL* hu_add;
-
-+ hu_add = hu_from_url(url);
- /* Check for duplicates */
- iter = window->recent_urls_list;
- while(iter)
- {
-- if(strcmp(url, (gchar*)iter->data) == 0)
-+ hu = (HXURL *)iter->data;
-+ /*if(strcmp(url, (gchar*)iter->data) == 0)*/
-+ /*if the raw url & its charset are the same, they are duplicates.
-+ * */
-+ if (hu_is_equal(hu, hu_add))
- {
- /* Already in our list */
-+ hu_free(hu_add);
- return;
- }
-
-@@ -572,7 +933,8 @@ recent_urls_add(HXMainWindow* window,
- the right number of urls */
-
- pos = g_list_previous(last);
-- g_free(last->data);
-+ //g_free(last->data);
-+ hu_free(last->data);
- window->recent_urls_list =
- g_list_delete_link(window->recent_urls_list, last);
- last = pos;
-@@ -583,13 +945,15 @@ recent_urls_add(HXMainWindow* window,
- {
- window->recent_urls_list =
- g_list_append(window->recent_urls_list,
-- g_strdup(url));
-+ hu_add);
-+ //g_strdup(url));
- }
- else
- {
- window->recent_urls_list =
- g_list_prepend(window->recent_urls_list,
-- g_strdup(url));
-+ hu_add);
-+ //g_strdup(url));
- }
-
- /* Refresh the menu */
-@@ -636,7 +1000,8 @@ populate_clip_list_menu(HXMainWindow* wi
-
- if(group_title_raw)
- {
-- group_title = g_strdup(group_title_raw);
-+ //group_title = g_strdup(group_title_raw);
-+ group_title = hx_meta_data_to_utf8(group_title_raw);
- if(strlen(group_title_raw) > MAX_GROUP_TITLE_LENGTH)
- {
- group_title[MAX_GROUP_TITLE_LENGTH] = '\0';
-@@ -724,7 +1089,8 @@ show_setup_assistant(HXMainWindow* windo
- void
- hxwindow_recent_urls_remove_all(HXMainWindow* window)
- {
-- g_list_foreach(window->recent_urls_list, (GFunc)g_free, NULL);
-+ //g_list_foreach(window->recent_urls_list, (GFunc)g_free, NULL);
-+ g_list_foreach(window->recent_urls_list, (GFunc)hu_free, NULL);
- g_list_free(window->recent_urls_list);
- window->recent_urls_list = NULL;
-
-@@ -832,7 +1198,7 @@ favorites_menu_populate(HXMainWindow* wi
- {
- gchar* escaped_title;
- gchar* menu_item_text;
-- gchar* url;
-+ /*gchar* url;*/
- HXFavorite* favorite = (HXFavorite*)iter->data;
-
- escaped_title = hxcommon_escape_underscores(favorite->title);
-@@ -847,13 +1213,13 @@ favorites_menu_populate(HXMainWindow* wi
-
- g_object_set_data(G_OBJECT(menu_item), "item_type", (gpointer) PLAY_MENU_TYPE_FAVORITE);
-
-- url = g_strdup(favorite->url);
-+ //url = hu_to_url_without_charset(favorite->hu);
- g_signal_connect(G_OBJECT(menu_item), "activate",
-- G_CALLBACK(hmw_play_from_menu_item), url);
-+ G_CALLBACK(hmw_play_from_menu_item), favorite->hu);
-
- /* Free the g_strdup'd url from above on menu destruction */
-- g_signal_connect_swapped(G_OBJECT(menu_item), "destroy",
-- G_CALLBACK(g_free), url);
-+ /*g_signal_connect_swapped(G_OBJECT(menu_item), "destroy",
-+ G_CALLBACK(g_free), url);*/
- i++;
- pos++;
- iter = g_list_next(iter);
-@@ -873,9 +1239,14 @@ hxwindow_favorite_add(HXMainWindow* wind
- const gchar* favorite_url)
- {
- HXFavorite* favorite = hx_favorite_new();
--
-- favorite->title = g_strdup(favorite_title);
-- favorite->url = g_strdup(favorite_url);
-+ HXURL* hu;
-+ favorite->title = hx_meta_data_to_utf8(favorite_title);
-+
-+ hu = hxwindow_find_hu_by_url(window, favorite_url);
-+ if (hu)
-+ favorite->hu = hu_dup(hu);
-+ else
-+ favorite->hu = hu_from_url(favorite_url);
-
- g_hx_main_app->favorites_list =
- g_list_append(g_hx_main_app->favorites_list, favorite);
-@@ -1207,10 +1578,10 @@ hxwindow_set_property(HXMainWindow* wind
- {
- const gchar* origcode = g_value_get_string(value);
- snprintf(window->origcode, sizeof(window->origcode), "%s", origcode);
-- }
-+ }
- else
- {
-- g_warning("Unknown property %s in config file", key);
-+ g_warning("hxwindow_set_property:Unknown property `%s\' in config file", key);
- }
- }
-
-@@ -1268,7 +1639,7 @@ hxwindow_get_property(HXMainWindow* wind
- }
- else
- {
-- g_warning("Unknown property %s in config file", key);
-+ g_warning("hxwindow_get_property:Unknown property `%s\' in config file", key);
- ret = FALSE;
- }
-
-@@ -1337,6 +1708,7 @@ hxwindow_save_preferences(HXMainWindow*
- gboolean result;
- guint i;
- GValue val;
-+ gchar* url;
-
- /* Write out window preferences */
-
-@@ -1361,9 +1733,34 @@ hxwindow_save_preferences(HXMainWindow*
- "WebBrowserPath",
- "LastBrowsedDirectory",
- "DistCode",
-- "OrigCode"
-+ "OrigCode",
- };
-
-+ hxcommon_channel_write(chan, "\n[encoding]\n");
-+
-+ gchar** encodings;
-+ gchar* encoding;
-+
-+ encodings = hx_get_remote_url_encodings();
-+ if (encodings) {
-+ encoding = g_strjoinv(",", encodings);
-+ line = g_strdup_printf("RemoteUrlEncoding=%s\n", encoding);
-+ hxcommon_channel_write(chan, line);
-+ g_free(line);
-+ g_free(encoding);
-+ } else
-+ hxcommon_channel_write(chan, "RemoteUrlEncoding=\n");
-+
-+ encodings = hx_get_meta_data_encodings();
-+ if (encodings) {
-+ encoding = g_strjoinv(",", encodings);
-+ line = g_strdup_printf("MetaDataEncoding=%s\n", encoding);
-+ hxcommon_channel_write(chan, line);
-+ g_free(line);
-+ g_free(encoding);
-+ } else
-+ hxcommon_channel_write(chan, "MetaDataEncoding=\n");
-+
- memset(&val, 0, sizeof(val));
-
- hxcommon_channel_write(chan, "\n[player]\n");
-@@ -1419,13 +1816,21 @@ hxwindow_save_preferences(HXMainWindow*
-
- /* Step 3: Write out recently used url's */
- GList* recent_iter;
-+ HXURL* hu;
-
- hxcommon_channel_write(chan, "\n[recent_urls]\n");
- i = 0;
- recent_iter = window->recent_urls_list;
- while(recent_iter)
- {
-- line = g_strdup_printf("url%d=%s\n", i, (gchar*)recent_iter->data);
-+ hu = (HXURL *) recent_iter->data;
-+ //line = g_strdup_printf("url%d=%s\n", i, (gchar*)recent_iter->data);
-+ //if url isn't utf8 encoding, then save url as following format:
-+ //url(utf8)|charset
-+ if (hu_get_utf8_url(hu) && hu_get_charset(hu))
-+ line = g_strdup_printf("url%d=%s#%s\n", i, hu_get_utf8_url(hu), hu_get_charset(hu));
-+ else
-+ line = g_strdup_printf("url%d=%s\n", i, hu_get_raw_url(hu));
-
- result = hxcommon_channel_write(chan, line);
- g_free(line);
-@@ -1450,7 +1855,11 @@ hxwindow_save_preferences(HXMainWindow*
- result = hxcommon_channel_write(chan, line);
- g_free(line);
-
-- line = g_strdup_printf("favorite_url%d=%s\n", i, favorite->url);
-+ //line = g_strdup_printf("favorite_url%d=%s\n", i, favorite->url);
-+
-+ url = hu_to_url(favorite->hu);
-+ line = g_strdup_printf("favorite_url%d=%s\n", i, url ? url : "");
-+ g_free(url);
- result = hxcommon_channel_write(chan, line);
- g_free(line);
-
-@@ -2287,7 +2696,9 @@ hxwindow_open_location(HXMainWindow* win
- {
- if(!window->open_location_dialog)
- {
-- window->open_location_dialog = hxplay_open_location_dialog_new (window->recent_urls_list);
-+ //window->open_location_dialog = hxplay_open_location_dialog_new (window->recent_urls_list);
-+ //FIXME:
-+ window->open_location_dialog = hxplay_open_location_dialog_new (NULL);
- if(window->open_location_dialog)
- {
- gtk_window_set_transient_for(GTK_WINDOW(window->open_location_dialog),
-@@ -3577,11 +3988,11 @@ hmw_hxbin_size_allocate(HXMainWindow* wi
- }
-
- void
--hmw_play_from_menu_item(GtkWidget* widget, gchar* url)
-+hmw_play_from_menu_item(GtkWidget* widget, HXURL* hu)
- {
- HXMainWindow* window = hxwindow_get_from_widget(widget);
--
-- hxwindow_open(window, url);
-+
-+ hxwindow_open(window, hu_get_raw_url(hu));
- }
-
- void
-@@ -3632,6 +4043,13 @@ hpw_play(HXMainWindow* window)
- }
- }
-
-+ /*convert window title to utf8 encoded string
-+ * */
-+ gchar* window_utf8_title = hx_meta_data_to_utf8(window_title);
-+ if (window_utf8_title) {
-+ g_free(window_title);
-+ window_title = window_utf8_title;
-+ }
- gtk_window_set_title(GTK_WINDOW(window->window), window_title);
-
- g_free(window_title);
-@@ -4535,7 +4953,7 @@ static void
- hxwindow_destroy(HXMainWindow* window)
- {
- GList* item;
--
-+
- #ifdef HELIX_FEATURE_RP_SIGN_IN
- /* Init sign-in and add a menu item */
- sign_in_destroy();
-@@ -4543,7 +4961,8 @@ hxwindow_destroy(HXMainWindow* window)
-
- hxcommon_save_preferences(window);
-
-- g_list_foreach(window->recent_urls_list, (GFunc)g_free, NULL);
-+ //g_list_foreach(window->recent_urls_list, (GFunc)g_free, NULL);
-+ g_list_foreach(window->recent_urls_list, (GFunc)hu_free, NULL);
- g_list_free(window->recent_urls_list);
-
- if(window->context_menu)
-@@ -4564,6 +4983,8 @@ hxwindow_destroy(HXMainWindow* window)
- {
- if(g_hx_main_app)
- {
-+ g_strfreev(g_hx_main_app->remote_url_encodings);
-+ g_strfreev(g_hx_main_app->meta_data_encodings);
- g_free(g_hx_main_app);
- }
-
-diff -urp --exclude Makefile --exclude '*.o' --exclude rel --exclude dbg --exclude debug --exclude release realplay-10.0.4.orig/player/app/gtk/mainapp.h realplay-10.0.4/player/app/gtk/mainapp.h
---- realplay-10.0.4.orig/player/app/gtk/mainapp.h 2005-04-25 16:39:03.000000000 +0800
-+++ realplay-10.0.4/player/app/gtk/mainapp.h 2005-04-28 11:51:56.000000000 +0800
-@@ -57,7 +57,9 @@ G_BEGIN_DECLS
-
- struct _HXMainWindow;
- typedef struct _HXMainWindow HXMainWindow;
--
-+struct _HXURL;
-+typedef struct _HXURL HXURL;
-+
- typedef enum
- {
- NORMAL_SIZE = 0,
-@@ -139,7 +141,26 @@ G_CONST_RETURN gchar*
- hxwindow_get_sign_in_property(HXMainWindow* window,
- const gchar* key);
- #endif
--
-+
-+void hx_set_meta_data_encodings (gchar *encodings);
-+void hx_set_remote_url_encodings (gchar *encodings);
-+G_CONST_RETURN gchar** hx_get_meta_data_encodings ();
-+G_CONST_RETURN gchar** hx_get_remote_url_encodings ();
-+
-+gchar* hx_meta_data_to_utf8 (G_CONST_RETURN gchar* data);
-+
-+HXURL* hu_new ();
-+void hu_free (HXURL *hu);
-+void hu_set_url (HXURL *hu, const gchar *url, const gchar *charset) ;
-+void hu_set_utf8_url (HXURL *hu, const gchar *url, const gchar *charset);
-+gchar* hu_get_raw_url (HXURL *hu);
-+gchar* hu_get_utf8_url (HXURL *hu);
-+gchar* hu_get_charset (HXURL *hu);
-+gboolean hu_is_equal (HXURL *left, HXURL*right);
-+HXURL* hu_from_url (const gchar *url);
-+gchar* hu_to_url (const HXURL *hu);
-+gchar* hu_to_url_without_charset (const HXURL *hu);
-+
- G_END_DECLS
-
- #endif
-diff -urp --exclude Makefile --exclude '*.o' --exclude rel --exclude dbg --exclude debug --exclude release realplay-10.0.4.orig/player/app/gtk/open.cpp realplay-10.0.4/player/app/gtk/open.cpp
---- realplay-10.0.4.orig/player/app/gtk/open.cpp 2005-04-25 16:39:03.000000000 +0800
-+++ realplay-10.0.4/player/app/gtk/open.cpp 2005-04-29 21:19:58.000000000 +0800
-@@ -145,7 +145,8 @@ hxplay_open_file_dialog_response(GtkWidg
- g_return_if_fail(info != NULL);
- g_return_if_fail(info->window != NULL);
-
-- if(response_id == GTK_RESPONSE_OK)
-+ g_warning ("your response is %d(OK is %d)", response_id, GTK_RESPONSE_OK);
-+ if(response_id == GTK_RESPONSE_OK || response_id == GTK_RESPONSE_ACCEPT)
- {
- const gchar* str;
-
-@@ -158,12 +159,15 @@ hxplay_open_file_dialog_response(GtkWidg
- if(str && *str)
- {
- GValue value;
--
-+ HXURL* hu;
-+
- memset(&value, 0, sizeof(value));
- g_value_init(&value, G_TYPE_STRING);
-- g_value_set_string(&value, g_path_get_dirname(str));
-+ hu = hu_from_url(g_path_get_dirname(str));
-+ g_value_set_string(&value, hu_to_url(hu));
- hxwindow_set_property(info->window, "LastBrowsedDirectory", &value);
-- g_value_unset(&value);
-+ g_value_unset(&value);
-+ hu_free(hu);
- }
- }
- }
-@@ -197,14 +201,20 @@ hxplay_open_file_dialog_new(HXMainWindow
- str = g_value_get_string(&value);
- if(str && *str)
- {
-- path = g_strdup_printf("%s/", str);
-+ gchar* path_orig;
-+ HXURL* hu;
-+
-+ hu = hu_from_url(str);
-+ path_orig = hu_get_raw_url(hu);
-+ path = g_strdup_printf("%s/", path_orig ? path_orig : str);
-+ hu_free(hu);
- }
- g_value_unset(&value);
- }
- }
-
- const gchar* select_files = _("Select files");
--
-+
- #if GTK_CHECK_VERSION(2, 4, 0)
- fs = gtk_file_chooser_dialog_new(select_files,
- NULL,
-diff -urp --exclude Makefile --exclude '*.o' --exclude rel --exclude dbg --exclude debug --exclude release realplay-10.0.4.orig/player/common/gtk/hxplayer.cpp realplay-10.0.4/player/common/gtk/hxplayer.cpp
---- realplay-10.0.4.orig/player/common/gtk/hxplayer.cpp 2005-04-25 16:39:03.000000000 +0800
-+++ realplay-10.0.4/player/common/gtk/hxplayer.cpp 2005-04-28 11:13:58.000000000 +0800
-@@ -288,9 +288,10 @@ OnTitleChanged(void* userInfo,
-
- if(pTitle)
- {
-- in = strlen(pTitle) + 1;
-+ /*in = strlen(pTitle) + 1;
- out = 0;
-- title = g_convert(pTitle, in - 1, "UTF-8", "ISO-8859-1", &in, &out, NULL);
-+ title = g_convert(pTitle, in - 1, "UTF-8", "ISO-8859-1", &in, &out, NULL);*/
-+ title = g_strdup(pTitle);
- }
-
- g_signal_emit (G_OBJECT (player), signals[TITLE_CHANGED_SIGNAL], 0, title);
-@@ -2161,7 +2162,7 @@ hx_player_get_title(HXPlayer* player)
-
- if(szTitle)
- {
-- if(g_utf8_validate(szTitle, -1, NULL))
-+ /*if(g_utf8_validate(szTitle, -1, NULL))
- {
- player->title_buf = g_strdup(szTitle);
- }
-@@ -2173,7 +2174,8 @@ hx_player_get_title(HXPlayer* player)
- in = strlen(szTitle) + 1;
- out = 0;
- player->title_buf = g_convert(szTitle, in - 1, "UTF-8", "ISO-8859-1", &in, &out, NULL);
-- }
-+ }*/
-+ player->title_buf = g_strdup(szTitle);
- }
-
- return player->title_buf;
-@@ -2224,14 +2226,14 @@ hx_player_get_group_title(HXPlayer* play
-
- buf[buf_used] = '\0';
-
-- if(g_utf8_validate(buf, -1, NULL))
-+ /*if(g_utf8_validate(buf, -1, NULL))
- {
- player->group_title_buf = buf;
- }
- else
-- {
-+ {*/
- /* Convert to utf-8 */
-- gsize in;
-+ /*gsize in;
- gsize out;
-
- in = strlen(buf) + 1;
-@@ -2240,10 +2242,18 @@ hx_player_get_group_title(HXPlayer* play
-
- g_free(buf);
- }
-+ */
-+ player->group_title_buf = buf;
-
- return player->group_title_buf;
- }
-
-+/* mainapp.cpp
-+ */
-+extern "C" {
-+ gchar* hx_meta_data_to_utf8 (G_CONST_RETURN gchar* data);
-+};
-+
- gboolean
- hx_player_get_statistic(HXPlayer* player,
- const gchar* key,
-@@ -2296,22 +2306,10 @@ hx_player_get_statistic(HXPlayer* pla
- }
- g_assert(buf_used == buf_desired);
- str_value[buf_used] = '\0';
--
-- if(g_utf8_validate(str_value, -1, NULL))
-- {
-- utf8_val = str_value;
-- }
-- else
-- {
-- in = buf_used + 1;
-- out = 0;
-- utf8_val = g_convert(str_value, buf_used, "UTF-8", "ISO-8859-1", &in, &out, NULL);
-- g_assert(utf8_val);
-- g_free(str_value);
-- }
--
-+ utf8_val = hx_meta_data_to_utf8(str_value);
- g_value_init(value, G_TYPE_STRING);
- g_value_set_string_take_ownership(value, utf8_val);
-+ g_free(str_value);
- break;
-
- default:
diff --git a/media-video/realplayer/files/realplayer-10.0.4-cxx-link-fix.patch b/media-video/realplayer/files/realplayer-10.0.4-cxx-link-fix.patch
deleted file mode 100644
index 6f3982bef3..0000000000
--- a/media-video/realplayer/files/realplayer-10.0.4-cxx-link-fix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- hxplay-1.0.3/build/umakecf/linux-linker.cf.use-compat 2005-03-03 21:22:01.000000000 -0500
-+++ hxplay-1.0.3/build/umakecf/linux-linker.cf 2005-03-03 21:22:10.000000000 -0500
-@@ -120,7 +120,7 @@
-
- cmd = "%s%s -o %s %s %s %s %s %s" % (
- cmd,
-- platform.cc.cmd,
-+ platform.cxx.cmd,
- target_path, objects, libpath,
- self.link_paths(),
- string.join(self.extra_arguments),
diff --git a/media-video/realplayer/files/realplayer-10.0.4-disable-asm.patch b/media-video/realplayer/files/realplayer-10.0.4-disable-asm.patch
deleted file mode 100644
index b2ece7ba70..0000000000
--- a/media-video/realplayer/files/realplayer-10.0.4-disable-asm.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- hxplay-1.0.3/audio/fixptutil/pub/math64.h.disable-asm 2004-09-17 14:22:38.000000000 -0400
-+++ hxplay-1.0.3/audio/fixptutil/pub/math64.h 2005-03-03 14:56:56.000000000 -0500
-@@ -124,7 +124,7 @@
- // GCC / i386
- ///////////////////////////////////////////////////////////////////////////////////////
-
--#if defined(__GNUC__) && defined(__i386__) && !defined(_NO_GNU_AS)
-+#if defined(__GNUC__) && defined(__i386__) && !defined(_NO_GNU_AS) && 0
-
- #define HAVE_PLATFORM_MACROS
-
-@@ -250,7 +250,7 @@
- #endif
- #endif // defined(__sparc)
-
--#if (defined(__SVR4) && defined(__i386) && (defined(_NO_GNU_AS) || !defined(__GNUC__)) )
-+#if (defined(__SVR4) && defined(__i386) && (defined(_NO_GNU_AS) || !defined(__GNUC__)) || 1)
- /* No 64bit, no asm provided in some other file..
- * need normal funcs for sun forte CC + 386
- * However... forte's inline assembly for MulShift32 is just as good
-@@ -414,7 +414,7 @@
- // GCC / PowerPC
- ///////////////////////////////////////////////////////////////////////////////////////
-
--#if defined(__GNUC__) && (defined(__POWERPC__) || defined(__powerpc__))
-+#if defined(__GNUC__) && (defined(__POWERPC__) || defined(__powerpc__) && 0)
-
- /*if your compiler can compile 64-bit instructions, and your CPU has them,
- define this. */
diff --git a/media-video/realplayer/files/realplayer-10.0.4-no-update.patch b/media-video/realplayer/files/realplayer-10.0.4-no-update.patch
deleted file mode 100644
index 43184846ac..0000000000
--- a/media-video/realplayer/files/realplayer-10.0.4-no-update.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- HelixPlayer-1.0.beta20040615/build/lib/cvs.py~ 2004-05-11 16:55:26.000000000 -0400
-+++ HelixPlayer-1.0.beta20040615/build/lib/cvs.py 2004-07-13 12:00:31.301744656 -0400
-@@ -594,6 +594,7 @@
- timestamp = None,
- nonrecursive = 0,
- zap = None):
-+ return
-
- module_list = listify(module_list)
-
-@@ -617,12 +618,15 @@
-
-
- def Status(repository, path, dir = None):
-+ return
- return Get(repository).Status(path, dir)
-
- def Commit(repository, path, message, dir = None):
-+ return
- return Get(repository).Commit(path, message, dir)
-
- def Tag(repository, path, tag, dir=None):
-+ return
- return Get(repository).Tag(path, tag, dir)
-
- def MagicFixDir(dir = "."):
diff --git a/media-video/realplayer/files/realplayer-10.0.4-oss-use-aoss.patch b/media-video/realplayer/files/realplayer-10.0.4-oss-use-aoss.patch
deleted file mode 100644
index b9608480a1..0000000000
--- a/media-video/realplayer/files/realplayer-10.0.4-oss-use-aoss.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- realplay-10.0.4.orig/player/app/gtk/realplay 2005-04-25 16:39:03.000000000 +0800
-+++ realplay-10.0.4/player/app/gtk/realplay 2005-04-29 21:42:41.000000000 +0800
-@@ -67,7 +67,11 @@ if [ -n "$DEBUG" -a -x "$CATCHSEGV" ]; t
- else
- while /bin/true; do
- # Restart the player if exit code is 10
-- $REALPLAYBIN "$@"
-+ if which aoss;then
-+ aoss $REALPLAYBIN "$@"
-+ else
-+ $REALPLAYBIN "$@"
-+ fi
- if [ $? -ne 10 ]; then
- break
- fi
diff --git a/media-video/realplayer/files/realplayer-10.0.4-sem_t.patch b/media-video/realplayer/files/realplayer-10.0.4-sem_t.patch
deleted file mode 100644
index 3214da6d38..0000000000
--- a/media-video/realplayer/files/realplayer-10.0.4-sem_t.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- common/system/pub/platform/unix/pthreadthreads.h_old 2004-11-14 10:54:35.925645344 +0900
-+++ common/system/pub/platform/unix/pthreadthreads.h 2004-11-14 10:55:19.110080312 +0900
-@@ -102,11 +102,6 @@
-
- #ifndef _MAC_UNIX
-
--struct HXsem_t : public sem_t
--{
-- char padding[64]; /* Flawfinder: ignore */ // different linux versions have different binary reps blechhhh!
--};
--
- //=======================================================================
- //
- // HXPthreadSemaphore
-@@ -129,7 +124,7 @@
-
- private:
-
-- HXsem_t m_semaphore;
-+ sem_t m_semaphore;
-
- //Prevent unintentional ctors
- HXPthreadSemaphore( const HXPthreadSemaphore& ); //copy ctor
diff --git a/media-video/realplayer/files/realplayer-10.0.4-sysinfo-gcc4-i586-fix.patch b/media-video/realplayer/files/realplayer-10.0.4-sysinfo-gcc4-i586-fix.patch
deleted file mode 100644
index 16677cbcc4..0000000000
--- a/media-video/realplayer/files/realplayer-10.0.4-sysinfo-gcc4-i586-fix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- realplay-10.0.4.orig/build/lib/sysinfo.py 2005-04-25 16:38:52.000000000 +0800
-+++ realplay-10.0.4/build/lib/sysinfo.py 2005-04-29 10:17:34.000000000 +0800
-@@ -969,7 +969,7 @@ def set_platform_linux2():
- gcc_version=os.popen("gcc -dumpversion").read()
- gcc_version=string.strip(gcc_version)
-
-- if gcc_version[0] == "3":
-+ if gcc_version[0] == "3" or gcc_version[0] == "4":
- set_platform('linux-2.2-libc6-gcc32-i586')
- else:
- set_platform('linux-2.2-libc6-i586')
diff --git a/media-video/realplayer/files/realplayer-10.0.5-gcc4-fix.patch b/media-video/realplayer/files/realplayer-10.0.5-gcc4-fix.patch
deleted file mode 100644
index a685678661..0000000000
--- a/media-video/realplayer/files/realplayer-10.0.5-gcc4-fix.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- player/hxclientkit/src/CHXClientSiteSupplier.h.orig 2005-06-25 12:13:44.000000000 +0800
-+++ player/hxclientkit/src/CHXClientSiteSupplier.h 2005-06-25 12:14:11.000000000 +0800
-@@ -64,6 +64,7 @@ HX_SMART_POINTER_INLINE( SPIHXVideoContr
- #include "HXClientCallbacks.h"
-
- class CHXFlatArray;
-+class CHXClientSite;
- _INTERFACE IHXPlayer;
-
- class CHXClientSiteSupplier : public IHXSiteSupplier
diff --git a/media-video/realplayer/files/realplayer.desktop b/media-video/realplayer/files/realplayer.desktop
deleted file mode 100644
index b095807ab4..0000000000
--- a/media-video/realplayer/files/realplayer.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Exec=realplay %u
-Icon=realplayer8
-GenericName=Video Player
-Name=RealPlayer
-Type=Application
-Terminal=0
-MimeType=application/vnd.rn-realmedia;application/smil;audio/vnd.rn-realaudio;audio/x-pn-realaudio;image/vnd.rn-realflash;mage/vnd.rn-realpix;text/vnd.rn-realtext;video/vnd.rn-realvideo;
-Categories=Application;AudioVideo;
diff --git a/media-video/realplayer/metadata.xml b/media-video/realplayer/metadata.xml
deleted file mode 100644
index d9df1878d8..0000000000
--- a/media-video/realplayer/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-video
-
diff --git a/media-video/realplayer/realplayer-10.0.9.ebuild b/media-video/realplayer/realplayer-10.0.9.ebuild
deleted file mode 100644
index 200980a679..0000000000
--- a/media-video/realplayer/realplayer-10.0.9.ebuild
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit nsplugins eutils
-
-MY_PN="RealPlayer"
-MY_SOURCE=realplay-${PV}-source
-DESCRIPTION="Real Media Player built from source"
-HOMEPAGE="http://www.helixplayer.org/"
-SRC_URI="https://helixcommunity.org/frs/download.php/2480/realplay-10.0.9-source.tar.bz2
- amd64? ( http://gentoo-china-overlay.googlecode.com/svn/distfiles/realplay_gtk_current-20060824-dist_linux-2.6-glibc23-amd64.zip )"
-LICENSE="HBRL"
-SLOT="0"
-KEYWORDS="-* ~x86"
-IUSE="X alsa cjk nptl nsplugin"
-DEPEND="media-libs/libvorbis
- media-libs/libtheora"
-RDEPEND="${DEPEND}
- !amd64? (
- X? ( >=dev-libs/glib-2
- >=x11-libs/pango-1.2
- >=x11-libs/gtk+-2.2 )
- =virtual/libstdc++-3.3*
- )
- amd64? (
- X? ( app-emulation/emul-linux-x86-gtklibs )
- app-emulation/emul-linux-x86-compat
- )"
-RESTRICT="strip mirror test"
-
-QA_TEXTRELS="opt/RealPlayer/codecs/raac.so
- opt/RealPlayer/codecs/cvt1.so
- opt/RealPlayer/codecs/colorcvt.so
- opt/RealPlayer/codecs/drv2.so
- opt/RealPlayer/codecs/drvc.so
- opt/RealPlayer/plugins/theorarend.so
- opt/RealPlayer/plugins/vorbisrend.so
- opt/RealPlayer/plugins/swfrender.so
- opt/RealPlayer/plugins/vidsite.so
- opt/RealPlayer/plugins/oggfformat.so"
-
-S=${WORKDIR}/realplay-${PV}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- if use x86; then
- cp -ru distribution/linux-2.2-libc6-gcc32-i586/* .
- elif use amd64; then
- cp -ru ../distribution .
- cp -ru distribution/linux-2.6-glibc23-amd64/* .
- fi
-
- #adjust strange naming for helixplayer tarball
- epatch "${FILESDIR}"/installer-naming.patch
-
- #fixes the .bif file to create a gentoo_player custom target
- #epatch "${FILESDIR}"/${P}-bif.patch
-
- #fixes sem_t based issues
- use nptl && epatch "${FILESDIR}"/${PN}-10.0.4-sem_t.patch
-
- #fixes cjk issues
- use cjk && epatch "${FILESDIR}"/realplayer-10.0.4-cjk-hack.patch
-
- #dirty hack,, use alsa oss emulation
- use alsa && epatch "${FILESDIR}"/realplayer-10.0.4-oss-use-aoss.patch
-
- #disable asm code ...
- epatch "${FILESDIR}"/realplayer-10.0.4-disable-asm.patch
-
- #gcc4 fixes
- epatch "${FILESDIR}"/realplayer-10.0.4-sysinfo-gcc4-i586-fix.patch
- epatch "${FILESDIR}"/realplayer-10.0.5-gcc4-fix.patch
-
- #fixes icon name in .desktop file
- sed -i -e 's:realplay.png:realplay:' "${S}"/player/installer/common/realplay.desktop
-}
-
-src_compile() {
-
- #copies our buildrc file over with information on where
- #ogg and theora libs are kept
- cp "${FILESDIR}"/buildrc "${S}"
-
- export BUILDRC=${S}/buildrc
- export BUILD_ROOT=${S}/build
-
- # FIXME: how to handle CFLAGS, CXXFLAGS, LDFLAGS? unset them for safety
- unset CFLAGS
- unset CXXFLAGS
- unset LDFLAGS
- #now we can begin the build
- "${S}"/build/bin/build.py -m realplay_gtk_release -t release -k -p green -P helix-client-all-defines player_all || die
-}
-
-src_install() {
- # install the tarballed installation into
- # the /opt directory
- keepdir /opt/${MY_PN}
- mkdir "${S}"/${MY_PN}
- tar jxf "${S}"/release/realplayer.tar.bz2 -C "${S}"/${MY_PN}
- cd "${S}"/${MY_PN}
-
- fperms 644 codecs/*
- insinto /opt/${MY_PN}/codecs
- doins codecs/*
- for x in drvc drv2 atrc sipr; do
- dosym ${x}.so /opt/${MY_PN}/codecs/${x}.so.6.0
- done
-
- dodoc README
- dohtml share/hxplay_help.html share/tigris.css
-
- if use X; then
- for x in common lib mozilla plugins postinst realplay realplay.bin share; do
- mv $x "${D}"/opt/${MY_PN}
- done;
-
- dodir /usr/bin
- dosym /opt/${MY_PN}/realplay /usr/bin/realplay
-
- cd "${D}"/opt/${MY_PN}/share
- domenu realplay.desktop
-
- for res in 16 192 32 48; do
- insinto /usr/share/icons/hicolor/${res}x${res}/apps
- newins icons/realplay_${res}x${res}.png \
- realplay.png
- done
-
- # mozilla plugin
- if use nsplugin ; then
- cd "${D}"/opt/${MY_PN}/mozilla
- exeinto /opt/netscape/plugins
- doexe nphelix.so
- inst_plugin /opt/netscape/plugins/nphelix.so
-
- insinto /opt/netscape/plugins
- doins nphelix.xpt
- inst_plugin /opt/netscape/plugins/nphelix.xpt
- fi
-
- # Language resources
- cd "${D}"/opt/RealPlayer/share/locale
- for LC in *; do
- mkdir -p "${D}"/usr/share/locale/${LC}/LC_MESSAGES
- dosym /opt/RealPlayer/share/locale/${LC}/player.mo /usr/share/locale/${LC}/LC_MESSAGES/realplay.mo
- dosym /opt/RealPlayer/share/locale/${LC}/widget.mo /usr/share/locale/${LC}/LC_MESSAGES/libgtkhx.mo
- done
- fi
-}
diff --git a/media-video/simplescreenrecorder/simplescreenrecorder-0.3.3.ebuild b/media-video/simplescreenrecorder/simplescreenrecorder-0.3.3.ebuild
deleted file mode 100644
index ea0889280b..0000000000
--- a/media-video/simplescreenrecorder/simplescreenrecorder-0.3.3.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="5"
-
-inherit autotools multilib-minimal
-
-if [[ ${PV} = 9999 ]]; then
- inherit git-2
-fi
-
-DESCRIPTION="A Simple Screen Recorder"
-HOMEPAGE="http://www.maartenbaert.be/simplescreenrecorder"
-LICENSE="GPL-3"
-PKGNAME="ssr"
-S=${WORKDIR}/${PKGNAME}-${PV}
-if [[ ${PV} = 9999 ]]; then
- EGIT_REPO_URI="git://github.com/MaartenBaert/${PKGNAME}.git
- https://github.com/MaartenBaert/${PKGNAME}.git"
- EGIT_BOOTSTRAP="eautoreconf"
- KEYWORDS=""
-else
- SRC_URI="https://github.com/MaartenBaert/${PKGNAME}/archive/${PV}.tar.gz"
- KEYWORDS="amd64 x86"
-fi
-
-SLOT="0"
-IUSE="debug jack multilib mp3 pulseaudio theora vorbis vpx x264"
-
-RDEPEND="
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- virtual/glu
- media-libs/alsa-lib
- media-libs/mesa
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXfixes
- amd64? ( multilib? (
- app-emulation/emul-linux-x86-opengl
- app-emulation/emul-linux-x86-xlibs
- ) )
- jack? ( media-sound/jack-audio-connection-kit )
- pulseaudio? ( media-sound/pulseaudio )
- || (
- media-video/ffmpeg[vorbis?,vpx?,x264?,mp3?,theora?]
- media-video/libav[vorbis?,vpx?,x264?,mp3?,theora?]
- )
- "
-DEPEND="${RDEPEND}"
-
-pkg_setup() {
- if [[ ${PV} == "9999" ]]; then
- elog
- elog "This ebuild merges the latest revision available from upstream's"
- elog "git repository, and might fail to compile or work properly once"
- elog "merged."
- elog
- fi
-
- if [[ ${ABI} == amd64 ]]; then
- elog "You may want to add USE flag 'abi_x86_32' when running a 64bit system"
- elog "When added 32bit GLInject libraries are also included. This is"
- elog "required if you want to use OpenGL recording on 32bit applications."
- elog
- fi
-
- if ( has_version media-video/ffmpeg[x264] || has_version media-video/libav[x264] ) && has_version media-libs/x264[10bit]; then
- ewarn
- ewarn "media-libs/x264 is currently built with 10bit useflag."
- ewarn "This is known to prevent simplescreenrecorder from recording x264 videos"
- ewarn "correctly. Please build media-libs/x264 without 10bit if you want to "
- ewarn "record videos with x264."
- ewarn
- fi
-}
-
-multilib_src_configure() {
-
- local myconf=(
- --enable-dependency-tracking
- $(use_enable debug assert)
- $(use_with pulseaudio)
- $(use_with jack)
- )
-
- # libav doesn't have AVFrame::channels
- # https://github.com/MaartenBaert/ssr/issues/195#issuecomment-45646159
- if has_version media-video/libav; then
- myconf+=( --disable-ffmpeg-versions )
- fi
-
- multilib_is_native_abi || myconf+=( --disable-ssrprogram )
-
- ECONF_SOURCE="${S}" \
- econf \
- ${myconf[@]}
-
-}
diff --git a/net-im/linuxqq/Manifest b/net-im/linuxqq/Manifest
deleted file mode 100644
index eef5376f5d..0000000000
--- a/net-im/linuxqq/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST linuxqq_v1.0.2_i386.tar.gz 5015798 SHA256 06d5c2cfc18e74fa056b5399b4dab8f7554fadcabd6de292285a81ee42a6bc53
diff --git a/net-im/linuxqq/files/linuxqq.desktop b/net-im/linuxqq/files/linuxqq.desktop
deleted file mode 100644
index eb4f4bc844..0000000000
--- a/net-im/linuxqq/files/linuxqq.desktop
+++ /dev/null
@@ -1,22 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Encoding=UTF-8
-Name=QQ for Linux
-Name[zh_CN]=QQ for Linux
-Name[zh_HK]=QQ for Linux
-Name[zh_TW]=QQ for Linux
-GenericName=Internet Messenger
-GenericName[zh_CN]=互联网通讯程序
-GenericName[zh_HK]=網絡即時通
-GenericName[zh_TW]=網路即時通
-Comment=Send instant messages over QQ protocal
-Comment[zh_CN]=通过QQ协议发送即时消息
-Comment[zh_HK]=透過QQ通訊協定發送即時訊息
-Comment[zh_TW]=透過QQ通訊協定發送即時訊息
-Exec=qq
-TryExec=qq
-Icon=linuxqq
-StartupNotify=true
-Terminal=false
-Type=Application
-Categories=Network;InstantMessaging;
diff --git a/net-im/linuxqq/files/linuxqq.png b/net-im/linuxqq/files/linuxqq.png
deleted file mode 100644
index 9d68505af1..0000000000
Binary files a/net-im/linuxqq/files/linuxqq.png and /dev/null differ
diff --git a/net-im/linuxqq/linuxqq-1.0.2.ebuild b/net-im/linuxqq/linuxqq-1.0.2.ebuild
deleted file mode 100644
index c9dde38e62..0000000000
--- a/net-im/linuxqq/linuxqq-1.0.2.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-inherit eutils
-
-MY_P=${PN}_v${PV/_/-}_i386
-DESCRIPTION="Tencent QQ for Linux"
-HOMEPAGE="http://im.qq.com/qq/linux"
-SRC_URI="http://dl_dir.qq.com/linuxqq/${MY_P}.tar.gz"
-
-LICENSE="Tencent"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND="
- amd64? (
- app-emulation/emul-linux-x86-baselibs
- app-emulation/emul-linux-x86-gtklibs )
- x86? ( >=x11-libs/gtk+-2 )"
-
-S=${WORKDIR}/${MY_P}
-RESTRICT="mirror"
-
-QA_PRESTRIPPED="opt/linuxqq/qq"
-
-src_install() {
- dodir /opt/${PN}
- mv "${S}"/* "${D}"/opt/${PN}
-
- doicon "${FILESDIR}"/${PN}.png
- domenu "${FILESDIR}"/${PN}.desktop
- if use amd64; then
- dodir /usr/bin
- cat <"${D}"/usr/bin/qq
-#!/bin/sh
-export GDK_PIXBUF_MODULE_FILE=/etc/gtk-2.0/i686-pc-linux-gnu/gdk-pixbuf.loaders
-export GTK_IM_MODULE_FILE=/etc/gtk-2.0/i686-pc-linux-gnu/gtk.immodules
-cd "/opt/${PN}"
-exec /opt/linuxqq/qq "\$@"
-EOF
- fperms 0755 /usr/bin/qq
- elif use x86; then
- make_wrapper qq ./qq /opt/${PN}
- fi
-}
-
-pkg_postinst() {
- ewarn "This package is very experimental, please report your bugs to:"
- ewarn "http://support.qq.com/beta2/simple/index.html?fid=361"
-}
diff --git a/net-im/linuxqq/metadata.xml b/net-im/linuxqq/metadata.xml
deleted file mode 100644
index fe62e3ce97..0000000000
--- a/net-im/linuxqq/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-net-im
-
- acevery@gmail.com
-
-Offical client of QQ from Tencent, which use the GTK+ toolkits for UI.
-
diff --git a/net-im/wineqq/wineqq-20140102.ebuild b/net-im/wineqq/wineqq-20140102.ebuild
index dab2a580a0..4edcb4b7ad 100644
--- a/net-im/wineqq/wineqq-20140102.ebuild
+++ b/net-im/wineqq/wineqq-20140102.ebuild
@@ -16,14 +16,7 @@ KEYWORDS="~amd64 ~x86"
IUSE="system-wine"
RDEPEND="
- amd64? (
- || (
- x11-libs/gtk+:2[abi_x86_32]
- app-emulation/emul-linux-x86-gtklibs
- )
- )
-
- x86? ( x11-libs/gtk+:2 )
+ x11-libs/gtk+:2[abi_x86_32]
system-wine? (
>=app-emulation/wine-1.7.16[abi_x86_32,-abi_x86_x32,-abi_x86_64,fontconfig,mp3,truetype,X,nls,xml]
diff --git a/net-misc/115pan/115pan-4.0.ebuild b/net-misc/115pan/115pan-4.0.ebuild
index e9e4d5b28b..67ac53b381 100644
--- a/net-misc/115pan/115pan-4.0.ebuild
+++ b/net-misc/115pan/115pan-4.0.ebuild
@@ -13,20 +13,12 @@ SRC_URI="http://pc.115.com/download/linux/115wangpan_linux_v${PV}.deb"
LICENSE=" "
SLOT="0"
-KEYWORDS="amd64 x86"
+KEYWORDS="~amd64 ~x86"
RDEPEND="
- x86? (
- sys-libs/glibc
- sys-devel/gcc
- )
- amd64? (
- app-emulation/emul-linux-x86-xlibs
- sys-devel/gcc[multilib]
- sys-libs/glibc[multilib]
- )
- x11-libs/libXau
+ x11-libs/libXau[abi_x86_32]
"
+
DEPEND=""
S=$WORKDIR
@@ -56,4 +48,4 @@ src_install() {
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
-}
\ No newline at end of file
+}
diff --git a/net-misc/flashget/flashget-1.0.3.ebuild b/net-misc/flashget/flashget-1.0.3.ebuild
index 8f4d7e718f..ffeeeda6f3 100644
--- a/net-misc/flashget/flashget-1.0.3.ebuild
+++ b/net-misc/flashget/flashget-1.0.3.ebuild
@@ -17,14 +17,11 @@ IUSE=""
DEPEND=""
RDEPEND="
- amd64? (
- app-emulation/emul-linux-x86-baselibs
- app-emulation/emul-linux-x86-gtklibs )
- x86? (
dev-libs/expat
- dev-libs/glib:2
- x11-libs/cairo
- x11-libs/gtk+:2 )"
+ dev-libs/glib:2[abi_x86_abi]
+ x11-libs/cairo[abi_x86_abi]
+ x11-libs/gtk+:2[abi_x86_abi]
+"
RESTRICT="primaryuri"