Commits

Mike Gilbert committed ee07e85

Remove google-chrome since I moved it to gentoo-x86

  • Participants
  • Parent commits 18942f9

Comments (0)

Files changed (8)

File eclass/google-chrome.eclass

-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-#
-# Original Author: Mike Gilbert <floppymaster@gmail.com>
-# Purpose: Consolidate shared logic in google-chrome ebuilds
-#
-
-inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator
-
-if ! has "${EAPI:-0}" 2 3 4; then
-	die "EAPI=${EAPI} is not supported"
-fi
-
-EXPORT_FUNCTIONS src_unpack src_install pkg_preinst pkg_postinst pkg_postrm
-
-DESCRIPTION="The web browser from Google"
-HOMEPAGE="http://www.google.com/chrome"
-
-MY_PN="${PN}-stable"
-[[ $PV == *_alpha* ]] && MY_PN="${PN}-unstable"
-[[ $PV == *_beta* ]] && MY_PN="${PN}-beta"
-
-MY_PV="${PV/_p/-r}"
-MY_PV="${MY_PV/_alpha/-r}"
-MY_PV="${MY_PV/_beta/-r}"
-
-MY_P="${MY_PN}_${MY_PV}"
-
-SRC_URI="amd64? ( http://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd64.deb )
-	x86? ( http://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_i386.deb )"
-
-LICENSE="google-chrome"
-SLOT="0"
-IUSE="+plugins"
-RESTRICT="mirror"
-
-# en_US is ommitted on purpose from the list below. It must always be available.
-LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
-hu id it ja kn ko lt lv ml mr nb nl pl pt_BR pt_PT ro ru sk sl sr sv sw ta te th
-tr uk vi zh_CN zh_TW"
-for lang in ${LANGS}; do
-	    IUSE+=" linguas_${lang}"
-done
-
-DEPEND="!app-arch/deb2targz"
-RDEPEND="
-	app-arch/bzip2
-	app-misc/ca-certificates
-	media-libs/alsa-lib
-	dev-libs/atk
-	dev-libs/dbus-glib
-	dev-libs/expat
-	dev-libs/glib:2
-	dev-libs/libxslt
-	dev-libs/nspr
-	dev-libs/nss
-	gnome-base/gconf:2
-	media-libs/fontconfig
-	media-libs/freetype
-	net-print/cups
-	media-libs/libpng:1.2
-	sys-apps/dbus
-	sys-libs/zlib
-	x11-libs/cairo
-	x11-libs/gdk-pixbuf
-	x11-libs/gtk+:2
-	x11-libs/libXScrnSaver
-	x11-libs/libX11
-	x11-libs/libXrender
-	x11-libs/libXext
-	x11-libs/pango
-	x11-misc/xdg-utils"
-
-if version_is_at_least 13 ; then
-	RDEPEND+="
-		>=sys-devel/gcc-4.4.0[-nocxx]"
-else
-	RDEPEND+="
-		>=sys-devel/gcc-4.2.1[-nocxx]
-		x11-libs/libXdamage
-		x11-libs/libXtst"
-fi
-
-QA_PREBUILT="*"
-
-S="${WORKDIR}"
-
-# Chromium uses different names for some langs,
-# return Chromium name corresponding to a Gentoo lang.
-chromium_lang() {
-	if [[ "$1" == "es_LA" ]]; then
-		echo "es_419"
-	else
-		echo "$1"
-	fi
-}
-
-google-chrome_src_unpack() {
-	default
-	unpack ./data.tar.lzma || die
-}
-
-google-chrome_src_install() {
-	local CHROME_HOME="opt/google/chrome/"
-
-	# Support LINGUAS, bug #332751.
-	local pak
-	for pak in "${CHROME_HOME}locales"/*.pak; do
-		local pakbasename="$(basename ${pak})"
-		local pakname="${pakbasename%.pak}"
-		local langname="${pakname//-/_}"
-
-		# Do not issue warning for en_US locale. This is the fallback
-		# locale so it should always be installed.
-		if [[ "${langname}" == "en_US" ]]; then
-			continue
-		fi
-
-		local found=false
-		local lang
-		for lang in ${LANGS}; do
-			local crlang="$(chromium_lang ${lang})"
-			if [[ "${langname}" == "${crlang}" ]]; then
-				found=true
-				break
-			fi
-		done
-		if ! $found; then
-			ewarn "LINGUAS warning: no ${langname} in LANGS"
-		fi
-	done
-	local lang
-	for lang in ${LANGS}; do
-		local crlang="$(chromium_lang ${lang})"
-		local pakfile="${CHROME_HOME}locales/${crlang//_/-}.pak"
-		if [ ! -f "${pakfile}" ]; then
-			ewarn "LINGUAS warning: no .pak file for ${lang} (${pakfile} not found)"
-		fi
-		if ! use linguas_${lang}; then
-			rm "${pakfile}" || die
-		fi
-	done
-
-	pax-mark m ${CHROME_HOME}chrome \
-		${CHROME_HOME}lib{ffmpegsumo,pdf,ppGoogleNaClPluginChrome}.so || die
-
-	mv opt usr "${D}" || die
-
-	chmod u+s "${D}${CHROME_HOME}chrome-sandbox" || die
-
-	if use plugins ; then
-		local args='"$@"'
-		local plugins="/usr/$(get_libdir)/nsbrowser/plugins"
-		sed -e "s:${args}:--extra-plugin-dir=\"${plugins}\" \\0:" \
-			-i "${D}${CHROME_HOME}google-chrome" || die
-	fi
-
-	domenu "${D}${CHROME_HOME}google-chrome.desktop" || die
-	local size
-	for size in 16 22 24 32 48 128 256 ; do
-		insinto /usr/share/icons/hicolor/${size}x${size}/apps
-		newins "${D}${CHROME_HOME}product_logo_${size}.png" google-chrome.png || die
-	done
-
-	dosym /$(get_libdir)/libbz2.so.1 "${CHROME_HOME}libbz2.so.1.0" || die
-
-	if ! version_is_at_least 13 ; then
-		local lib
-		for lib in lib{nss{,util},smime}3.so.1d lib{plc,nspr}4.so.0d ; do
-			dosym /usr/$(get_libdir)/${lib%.*} "${CHROME_HOME}${lib}" || die
-		done
-	fi
-}
-
-google-chrome_pkg_preinst() {
-	gnome2_icon_savelist
-}
-
-google-chrome_pkg_postinst() {
-	fdo-mime_desktop_database_update
-	gnome2_icon_cache_update
-}
-
-google-chrome_pkg_postrm() {
-	fdo-mime_desktop_database_update
-	gnome2_icon_cache_update
-}

File scripts/chrome-update-release.py

-#!/usr/bin/python2 -O
-
-import debian.deb822
-import gzip
-import StringIO
-import urllib2
-import os.path
-import portage
-import portage.dbapi
-import portage.manifest
-from portage.versions import catpkgsplit, cpv_getversion, vercmp
-
-PKGTREE = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
-CATEGORY = "www-client"
-PACKAGE = "google-chrome"
-CATPKG = CATEGORY + "/" + PACKAGE
-PKGDIR = "%s/%s/%s" % (PKGTREE, CATEGORY, PACKAGE)
-URI_BASE = "http://dl.google.com/linux/chrome/deb/"
-URI_AMD64 = URI_BASE + "dists/stable/main/binary-amd64/Packages.gz"
-URI_I386 = URI_BASE + "dists/stable/main/binary-i386/Packages.gz"
-
-portage_settings = portage.config()
-portdb = portage.dbapi.porttree.portdbapi(mysettings = portage_settings)
-manifest = portage.manifest.Manifest(PKGDIR, portage_settings["DISTDIR"])
-
-def get_package_list(pkgurl):
-    urlfile = urllib2.urlopen(pkgurl)
-    sfile = StringIO.StringIO(urlfile.read())
-    urlfile.close()
-    gzfile = gzip.GzipFile(fileobj = sfile)
-    return gzfile.read()
-
-def convert_version_components(debpkg, debver):
-    chanmap = { "beta": "_beta", "stable": "_p", "unstable": "_alpha" }
-    channel = chanmap[debpkg.split("-")[2]]
-    version, revision = debver.split("-r")
-    return version + channel + revision
-
-def parse_pkgfile(pkgfile):
-    versions = dict()
-    for pkg in debian.deb822.Packages.iter_paragraphs(pkgfile):
-        vcr = convert_version_components(pkg["Package"], pkg["Version"])
-        if not vcr in versions:
-            versions[vcr] = dict()
-        filename = os.path.basename(pkg["Filename"])
-        hashes = { "size": pkg["Size"], "SHA1": pkg["SHA1"] }
-        versions[vcr][filename] = hashes
-    return versions
-
-def fetch_versions_and_files():
-    pkglist = get_package_list(URI_AMD64) + get_package_list(URI_I386)
-    pkgfile = StringIO.StringIO(pkglist)
-    return parse_pkgfile(pkgfile)
-    
-def get_versions_dict():
-    cplist = portdb.cp_list(CATPKG)
-    versions = dict()
-    for cpv in cplist:
-        cat, pn, ver, rev = catpkgsplit(cpv)
-        if not ver in versions:
-            versions[ver] = list()
-        versions[ver].append(cpv)
-    return versions
-
-def get_channel_cpv_list(channel):
-    cplist = portdb.cp_list(CATPKG)
-    chanlist = list()
-    for cpv in cplist:
-        cat, pn, ver, rev = catpkgsplit(cpv)
-        if ver.find(channel) != -1:
-            chanlist.append(cpv)
-    return chanlist
-
-def get_best_for_channel(channel):
-    cplist = get_channel_cpv_list(channel)
-    return portage.versions.best(cplist)
-
-def iif(a, b, c):
-    if a:
-        return b
-    return c
-
-def ebuild_copy(oldcpv, newcpv):
-    oldcat, oldpkg, oldver, oldrev = catpkgsplit(oldcpv)
-    newcat, newpkg, newver, newrev = catpkgsplit(newcpv)
-
-    oldrev = iif(oldrev == "r0", "", "-" + oldrev)
-    newrev = iif(newrev == "r0", "", "-" + newrev)
-
-    oldebuild = "%s-%s%s.ebuild" % (oldpkg, oldver, oldrev)
-    oldpath = "%s/%s/%s/%s" % (PKGTREE, oldcat, oldpkg, oldebuild)
-    newebuild = "%s-%s%s.ebuild" % (newpkg, newver, newrev)
-    newpath = "%s/%s/%s/%s" % (PKGTREE, newcat, newpkg, newebuild)
-
-    print "Copying %s to %s" % (oldebuild, newebuild)
-    os.spawnlp(os.P_WAIT, "hg", "hg", "cp", oldpath, newpath)
-
-def get_channel(version):
-    if version.find("_alpha") != -1:
-        return "_alpha"
-    if version.find("_beta") != -1:
-        return "_beta"
-    return "_p"
-
-def add_ebuild(version):
-    channel = get_channel(version)
-    bestcpv = get_best_for_channel(channel)
-    bestver = cpv_getversion(bestcpv)
-    mycpv = "%s/%s-%s" % (CATEGORY, PACKAGE, version)
-    ebuild_copy(bestcpv, mycpv)
-
-def remove_ebuilds(cpv_list):
-    for cpv in cpv_list:
-        cat, pkg = cpv.split("/")
-        pn = catpkgsplit(cpv)[1]
-        ebuild = pkg + ".ebuild"
-        ebuildpath = "%s/%s/%s/%s" % (PKGTREE, cat, pn, ebuild)
-        print "Removing %s" % ebuild
-        os.spawnlp(os.P_WAIT, "hg", "hg", "rm", ebuildpath)
-
-def add_distfiles(files):
-    for filename in files:
-        if not manifest.hasFile("DIST", filename):
-            print "Adding %s to Manifest" % filename
-            manifest.addFile("DIST", filename, hashdict=files[filename], ignoreMissing=True)
-
-def do_updates():
-    myversions = get_versions_dict()
-    debpkgs = fetch_versions_and_files()
-    for debver in debpkgs:
-        if not debver in myversions:
-            add_ebuild(debver)
-            add_distfiles(debpkgs[debver])
-    for myver in myversions:
-        if not myver in debpkgs:
-            remove_ebuilds(myversions[myver])
-    manifest.write()
-
-do_updates()
-
-# vim: sw=4 et ts=4

File scripts/google-chrome-update.sh

-#!/bin/bash
-
-# Make sure we're in the right dir
-if [[ "$(basename $(pwd))" = "scripts" ]]
-then
-	cd ..
-fi
-
-# Make sure we're in the right repo
-if [[ "$(cat profiles/repo_name)" != "belak" ]]
-then
-	echo Not the correct repo
-	exit 1
-fi
-
-#hg pull -u
-
-mapfile -t info32 < <(wget -qO- http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-i386/Packages | grep -P '^(Package|Version|Size|SHA1)' | awk '{print $2}')
-mapfile -t info64 < <(wget -qO- http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages | grep -P '^(Package|Version|Size|SHA1)' | awk '{print $2}')
-offset=0
-for i in `seq 0 $((${#info32[@]}/4-1))`
-do
-	chan[$i]=${info32[4*$i]}
-	version[$i]=${info32[4*$i+1]}
-	x86size[$i]=${info32[4*$i+2]}
-	x86hash[$i]=${info32[4*$i+3]}
-	amd64size[$i]=${info64[4*$i+2]}
-	amd64hash[$i]=${info64[4*$i+3]}
-done
-
-for build in "${version[@]}"
-do
-	echo ${build}
-done
-
-cd www-client/google-chrome
-
-hg rm *.ebuild
-
-portdir=$(portageq portdir)
-[[ -z $portdir ]] && portdir=/usr/portage
-
-if [[ -n "$info32" ]]
-then
-	manifest=$(cat Manifest | grep -v '^DIST ')
-	for i in "${!chan[@]}"
-	do
-		case ${chan[$i]} in
-			google-chrome-stable)
-				temp_version=$(echo "${version[$i]}" | sed 's/-r/_p/')
-				cat "$portdir"/header.txt > google-chrome-${temp_version}.ebuild
-				echo -e 'EAPI="4"\n\ninherit google-chrome\n\nKEYWORDS="-* amd64 x86"\nIUSE=""' >> google-chrome-${temp_version}.ebuild
-				manifest="DIST google-chrome-stable_${version[$i]}_amd64.deb ${amd64size[$i]} SHA1 ${amd64hash[$i]}\nDIST google-chrome-stable_${version[$i]}_i386.deb ${x86size[$i]} SHA1 ${x86hash[$i]}\n${manifest}"
-				;;
-			google-chrome-beta)
-				temp_version=$(echo "${version[$i]}" | sed 's/-r/_beta/')
-				cat "$portdir"/header.txt > google-chrome-${temp_version}.ebuild
-				echo -e 'EAPI="4"\n\ninherit google-chrome\n\nKEYWORDS="-* ~amd64 ~x86"\nIUSE=""' >> google-chrome-${temp_version}.ebuild
-				manifest="DIST google-chrome-beta_${version[$i]}_amd64.deb ${amd64size[$i]} SHA1 ${amd64hash[$i]}\nDIST google-chrome-beta_${version[$i]}_i386.deb ${x86size[$i]} SHA1 ${x86hash[$i]}\n${manifest}"
-				;;
-			google-chrome-unstable)
-				temp_version=$(echo "${version[$i]}" | sed 's/-r/_alpha/')
-				cat "$portdir"/header.txt > google-chrome-${temp_version}.ebuild
-				echo -e 'EAPI="4"\n\ninherit google-chrome\n\nKEYWORDS="-* ~amd64 ~x86"\nIUSE=""' >> google-chrome-${temp_version}.ebuild
-				manifest="DIST google-chrome-unstable_${version[$i]}_amd64.deb ${amd64size[$i]} SHA1 ${amd64hash[$i]}\nDIST google-chrome-unstable_${version[$i]}_i386.deb ${x86size[$i]} SHA1 ${x86hash[$i]}\n${manifest}"
-				;;
-		esac
-		hg add google-chrome-${temp_version}.ebuild
-	done
-	echo -en "$manifest" > Manifest
-	#repoman commit -m 'www-client/google-chrome update'
-else
-	echo Nothing to update
-fi

File www-client/google-chrome/Manifest

------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
-DIST google-chrome-beta_14.0.835.109-r97804_amd64.deb 24338916 SHA1 6216697334658ab25d5090e6e53855378233ee08
-DIST google-chrome-beta_14.0.835.109-r97804_i386.deb 27426378 SHA1 25a72c497bb77b2198abaccd10df5bc705a4e7a5
-DIST google-chrome-stable_13.0.782.215-r97094_amd64.deb 26012680 SHA1 2c35c0c9f137acee8dc19e8afd5fea374b00ca57
-DIST google-chrome-stable_13.0.782.215-r97094_i386.deb 25651340 SHA1 a6c79a507d33c65891f7ff6a99c3d87a623d6960
-DIST google-chrome-unstable_15.0.861.0-r97996_amd64.deb 24408366 SHA1 763572d16d55041fb4cc1f32d99d2b21f9ff967b
-DIST google-chrome-unstable_15.0.861.0-r97996_i386.deb 27475876 SHA1 56da4e4b58ecd65a6f33974b18f8ae812f24b00a
-EBUILD google-chrome-13.0.782.215_p97094.ebuild 186 RMD160 b18e498728bf706bc885b4bf2fe6799bb1541bf0 SHA1 c8090ac30fa4f38abb0c310d3cc8023cbecf2d69 SHA256 671839786b585294bb4ba16668f1aeccdcdd3415b20a68f3b0181bd58faca6b6
-EBUILD google-chrome-14.0.835.109_beta97804.ebuild 188 RMD160 346e6e89867a31e76d30df81550cf203c6afdf68 SHA1 2800ad05e075cf2aba1b7af6ed8848948da7e07a SHA256 6dbf2bd1acac78a7ba4862f4ca270f9f41c29d0e1c47646f506d04dd68e9516b
-EBUILD google-chrome-15.0.861.0_alpha97996.ebuild 188 RMD160 346e6e89867a31e76d30df81550cf203c6afdf68 SHA1 2800ad05e075cf2aba1b7af6ed8848948da7e07a SHA256 6dbf2bd1acac78a7ba4862f4ca270f9f41c29d0e1c47646f506d04dd68e9516b
-MISC metadata.xml 513 RMD160 9fe3ddeb28add552a1ff6b3b78b7ab00cd312ff4 SHA1 6a5df3ef8d4d67491d522bfd058f1c721b5ca28c SHA256 651d08698483c7e67dfad88cd45b56630e3cb607a5e9afc927cd4a7bb7f33f5e
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
-
-iF4EAREIAAYFAk5VztAACgkQC77qH+pIQ6QgwgD/RgG6LXYH2H7yCb7pZB98NitW
-oDSJsbdWrbt2N71Ks4AA/A1hD6pDC3+nJfQKAOA8x1GOtg4HLp7X4kY8vl510d/0
-=cfNm
------END PGP SIGNATURE-----

File www-client/google-chrome/google-chrome-13.0.782.215_p97094.ebuild

-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-inherit google-chrome
-
-KEYWORDS="-* amd64 x86"
-IUSE=""

File www-client/google-chrome/google-chrome-14.0.835.109_beta97804.ebuild

-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-inherit google-chrome
-
-KEYWORDS="-* ~amd64 ~x86"
-IUSE=""

File www-client/google-chrome/google-chrome-15.0.861.0_alpha97996.ebuild

-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-inherit google-chrome
-
-KEYWORDS="-* ~amd64 ~x86"
-IUSE=""

File www-client/google-chrome/metadata.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<herd>no-herd</herd>
-	<maintainer>
-		<email>floppymaster@gmail.com</email>
-		<name>Mike Gilbert</name>
-	</maintainer>
-	<longdescription>
-		Google Chrome is a browser that combines a minimal design with
-		sophisticated technology to make the web faster, safer, and easier.
-	</longdescription>
-	<use>
-		<flag name="plugins">Add system plugins path to launcher</flag>
-	</use>
-</pkgmetadata>