# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit rpm versionator MY_D=/usr/share MY_N="amaya_wx" RPM_P="${MY_N}-$(replace_version_separator 2 '-')" DESCRIPTION="The W3C Web-Browser" HOMEPAGE="http://www.w3.org/Amaya/" SRC_URI="ftp://ftp.w3.org/pub/amaya/${RPM_P}.i386.rpm ftp://ftp.w3.org/pub/amaya/old/${RPM_P}.i386.rpm" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="gtk" LANGS="de_German en_English es_Spanish fr_French it_Italian nl_Dutch se_Swedish" for X in ${LANGS} ; do Y=`echo ${X} | cut -d'_' -f1` Z=`echo ${X} | cut -d'_' -f2` [[ $Y != en && $Y != fr ]] || continue for lingua in ${LINGUAS}; do if [[ $lingua == $Y ]]; then SRC_URI="${SRC_URI} linguas_${Y}? ( ftp://ftp.w3.org/pub/amaya/${Z}.tgz )" IUSE="${IUSE} linguas_${Y}" break fi done done RDEPEND=" !www-client/amaya >=dev-libs/atk-1.11.4 >=dev-libs/expat-1.95.8 >=dev-libs/glib-2.12.4-r1 >=dev-libs/libxml2-2.6.26 >=media-libs/fontconfig-2.4.2 >=media-libs/freetype-2.1.10-r2 >=media-libs/libpng-1.2.12 sys-libs/glibc sys-libs/zlib >=x11-libs/cairo-1.2.4 >=x11-libs/gtk+-2.10.6 x11-libs/libXau x11-libs/libXcursor x11-libs/libXdmcp x11-libs/libXfixes x11-libs/libXft x11-libs/libXi x11-libs/libXinerama x11-libs/libXrandr x11-libs/libXrender x11-libs/libXxf86vm >=x11-libs/pango-1.12.3" DEPEND="${RDEPEND}" S=${WORKDIR}${MY_D} src_unpack() { rpm_src_unpack } src_install() { if [[ -n $(echo $IUSE | grep linguas) ]]; then insinto ${MY_D}/Amaya/dicopar doins ${WORKDIR}/*.dic || die "doins failed" fi insinto ${MY_D} cp -r * "${D}${MY_D}" || die "cp failed" dosed "s:Comment\[fr\]=Editez le Web:Comment[de]=Das Web betrachten und bearbeiten\nComment[es]=Edite el web\nComment[fr]=Editez le Web\nComment[hu]=Web-böngésző és szerkesztő:" ${MY_D}/applications/amaya.desktop || die "dosed of Comment failed" dosed "s:/usr/share/Amaya/wx/bin/amaya_bin:amaya:" ${MY_D}/applications/amaya.desktop || die "dosed of Exec failed" dosym /usr/share/Amaya/wx/bin/amaya_bin /usr/bin/amaya || die "dosym failed" }