ebuild for swiftfox 3.0.2_pre2

swiftfox-3.0.2_pre2.ebuild,对其依赖我不是很清楚,如果运行不了,请告诉我

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit flag-o-matic mozextension

DESCRIPTION=”Optimized build of Mozilla Firefox”
HOMEPAGE=”http://getswiftfox.com/”

LICENSE=”MPL-1.1″
SLOT=”0″
KEYWORDS=”~x86″

DEPEND=”"
RDEPEND=”"
RESTRICT=”mirror”

MY_PV=${PV%%_*}pre-2

case $(get-flag march) in
pentium4 ) SRC_URI=”http://getswiftfox.com/builds/releases/${MY_PV}/${PN}-${MY_PV}-pentium4.tar.bz2″ ;;
pentium3 ) SRC_URI=”http://getswiftfox.com/builds/releases/${MY_PV}/${PN}-${MY_PV}-pentium3.tar.bz2″ ;;
pentium-m ) SRC_URI=”http://getswiftfox.com/builds/releases/${MY_PV}/${PN}-${MY_PV}-pentium-m.tar.bz2″ ;;
prescott | nocona ) SRC_URI=”http://getswiftfox.com/builds/releases/${MY_PV}/${PN}-${MY_PV}-prescott.tar.bz2″ ;;
k8 | opteron | althon64 | althon-fx ) SRC_URI=”http://getswiftfox.com/builds/releases/${MY_PV}/${PN}-${MY_PV}-athlon64.tar.bz2″ ;;
althon-4 | althon-xp | althon-mp ) SRC_URI=”http://getswiftfox.com/builds/releases/${MY_PV}/${PN}-${MY_PV}-athlon-xp.tar.bz2″ ;;
* ) SRC_URI=”http://getswiftfox.com/builds/releases/${MY_PV}/${PN}-${MY_PV}-i686.tar.bz2″ ;;
esac
tarball=${SRC_URI##*/}

for LANG in ${LINGUAS};do
if [[ "${LANG}" != "en{,_US}" ]];then
SRC_URI=”${SRC_URI}
linguas_${LANG}? ( http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla1.9.0-l10n/linux-xpi/${LANG/_/-}.xpi )”
fi
IUSE=”${IUSE} linguas_${LANG}”
done

src_unpack(){
unpack ${tarball}
for LANG in ${LINGUAS};do
[[ "${LANG}" != "en{,_US}" ]] && xpi_unpack “${LANG/_/-}.xpi”
done
}

src_install(){
MOZILLA_FIVE_HOME=/opt/${PN}
insinto ${MOZILLA_FIVE_HOME}
doins -r ${WORKDIR}/${PN}/* || die
exeinto ${MOZILLA_FIVE_HOME}
doexe ${WORKDIR}/${PN}/{${PN}{,-bin},updater,run-mozilla.sh,mozilla-xremote-client,removed-files,crashreporter}
dosym /opt/${PN}/${PN} /usr/bin/firefox || die
for LANG in ${LINGUAS};do
[[ "${LANG}" != "en{,_US}" ]] && xpi_install “${WORKDIR}/${LANG/_/-}”
done
locale=${LINGUAS%% *}
elog “Setting default locale to ${LANG}”
dosed -e “s/general.useragent.locale\”, \”en-US\”/general.useragent.locale\”, \”${locale/_/-}\”/g” \
${MOZILLA_FIVE_HOME}/defaults/pref/firefox.js \
${MOZILLA_FIVE_HOME}/defaults/pref/firefox-l10n.js || \
die “sed failed to change locale”
}

Tags: , ,

This entry was posted on Sunday, September 7th, 2008 at 5:08 pm and is filed under firefox, linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Posts you may enjoy

Leave a Reply

Please copy the string pOhYw1 to the field below: