add/delete

This commit is contained in:
Mario Fetka
2011-11-19 16:55:48 +01:00
parent dec0c98298
commit e191b1ef58
55 changed files with 5731 additions and 172 deletions

View File

@@ -0,0 +1,178 @@
# ChangeLog for www-client/httrack
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/www-client/httrack/ChangeLog,v 1.30 2011/04/21 16:40:31 vanquirius Exp $
*httrack-3.44.1 (21 Apr 2011)
21 Apr 2011; Marcelo Goes <vanquirius@gentoo.org> -httrack-3.43.4.ebuild,
+httrack-3.44.1.ebuild:
3.44.1 version bump for bug 360409. Thanks again to tman.
*httrack-3.43.9 (08 Jun 2010)
08 Jun 2010; Marcelo Goes <vanquirius@gentoo.org> +httrack-3.43.9.ebuild:
3.43.9 version bump for bug 317713. Thanks to tman <cornicx at hotmail dot
com>.
01 Jan 2010; Christian Faulhammer <fauli@gentoo.org>
httrack-3.43.7.ebuild:
Transfer Prefix keywords
*httrack-3.43.7 (22 Aug 2009)
22 Aug 2009; Marcelo Goes <vanquirius@gentoo.org> -httrack-3.43.1.ebuild,
+httrack-3.43.7.ebuild:
3.43.7 version bump for bug 276779. Thanks to jon noble <jonnobleuk at gmail
dot com>.
*httrack-3.43.4 (17 May 2009)
17 May 2009; Marcelo Goes <vanquirius@gentoo.org> +httrack-3.43.4.ebuild:
Version bump for bug 269708. Thanks to Lars Wendler (Polynomial-C)
<polynomial-c at gentoo dot org>.
06 Mar 2009; Timothy Redaelli <drizzt@gentoo.org> httrack-3.43.1.ebuild:
Add ~x86-fbsd keyword
*httrack-3.43.1 (14 Nov 2008)
14 Nov 2008; Marcelo Goes <vanquirius@gentoo.org> -httrack-3.42.2.ebuild,
+httrack-3.43.1.ebuild:
3.43.1 version bump for bug 246383. Thanks to midnightflash <midnightflash
at gmx dot de>.
08 Aug 2008; Tobias Scherbaum <dertobi123@gentoo.org>
httrack-3.42.3.ebuild:
ppc stable, bug #233563
04 Aug 2008; Tobias Heinlein <keytoaster@gentoo.org>
httrack-3.42.3.ebuild:
amd64 stable wrt security bug #233563
04 Aug 2008; Raúl Porcel <armin76@gentoo.org> httrack-3.42.3.ebuild:
sparc/x86 stable wrt #233563
*httrack-3.42.3 (03 Aug 2008)
03 Aug 2008; Marcelo Goes <vanquirius@gentoo.org> -httrack-3.41.20.ebuild,
+httrack-3.42.3.ebuild:
3.42.3 version bump for bug 233563. Remove old ebuild.
17 Jul 2008; Kenneth Prugh <ken69267@gentoo.org> httrack-3.42.2.ebuild:
amd64 stable, bug #231733
16 Jul 2008; nixnut <nixnut@gentoo.org> httrack-3.42.2.ebuild:
Stable on ppc wrt bug 231733
15 Jul 2008; Raúl Porcel <armin76@gentoo.org> httrack-3.42.2.ebuild:
sparc/x86 stable wrt #231733
*httrack-3.42.2 (12 May 2008)
12 May 2008; Marcelo Goes <vanquirius@gentoo.org> -httrack-3.40.2.ebuild,
+httrack-3.42.2.ebuild:
Version bump for bug 209279. Thanks to Tiziano Muller <dev-zero at gentoo
dot org>. Remove old ebuild.
16 Jun 2007; Christoph Mende <angelos@gentoo.org> httrack-3.41.20.ebuild:
Stable on amd64 wrt bug 180193
04 Jun 2007; Gustavo Zacarias <gustavoz@gentoo.org>
httrack-3.41.20.ebuild:
Stable on sparc wrt #180193
02 Jun 2007; nixnut <nixnut@gentoo.org> httrack-3.41.20.ebuild:
Stable on ppc wrt bug 180193
28 Apr 2007; Marcelo Goes <vanquirius@gentoo.org> httrack-3.41.20.ebuild:
Mark 3.41.20 x86 stable.
*httrack-3.41.20 (17 Mar 2007)
17 Mar 2007; Marcelo Goes <vanquirius@gentoo.org> +httrack-3.41.20.ebuild:
3.41.20 version bump for bug 171245. Thanks to Fabio Rossi <rossi.f at
inwind dot it>.
22 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
Redigest for Manifest2
25 Mar 2006; Marcelo Goes <vanquirius@gentoo.org> -httrack-3.23.ebuild,
-httrack-3.32.2.ebuild:
Remove old ebuilds.
17 Mar 2006; Chris White <chriswhite@gentoo.org> httrack-3.40.2.ebuild:
ppc stable for 3.40.2.
13 Mar 2006; Marcelo Goes <vanquirius@gentoo.org> httrack-3.40.2.ebuild:
Mark 3.40.2 x86 stable.
*httrack-3.40.2 (24 Feb 2006)
24 Feb 2006; Marcelo Goes <vanquirius@gentoo.org> -httrack-3.40.ebuild,
+httrack-3.40.2.ebuild:
3.40.2 version bump, hopefully fixes bug 123868, reported by Mehmet Kemal
EROL <mehmetkemal at gmx dot net>.
19 Feb 2006; Marcelo Goes <vanquirius@gentoo.org> httrack-3.40.ebuild:
It still will not compile in parallel, re-adding -j1 dirty, dirty hack.
*httrack-3.40 (19 Feb 2006)
19 Feb 2006; Marcelo Goes <vanquirius@gentoo.org> +metadata.xml,
-httrack-3.30.ebuild, -httrack-3.33.ebuild, +httrack-3.40.ebuild:
3.40 version bump for bug 123183. Request by gdub <gdub at ece dot utexas
dot edu>. Also, making myself maintainer of this package.
*httrack-3.33 (05 Apr 2005)
05 Apr 2005; Pieter Van den Abeele <pvdabeel@gentoo.org> +httrack-3.33.ebuild:
Version bump, thanks to Davy Van Nieuwenborgh for reporting.
*httrack-3.32.2 (18 Mar 2005)
*httrack-3.30 (18 Mar 2005)
*httrack-3.23 (18 Mar 2005)
18 Mar 2005; Seemant Kulleen <seemant@gentoo.org> +httrack-3.23.ebuild,
+httrack-3.30.ebuild, +httrack-3.32.2.ebuild:
Moved from net-www/httrack to www-client/httrack.
27 Feb 2005; Jason Wever <weeve@gentoo.org> httrack-3.32.2.ebuild:
Added ~sparc keyword.
23 Oct 2004; Simon Stelling <blubb@gentoo.org> httrack-3.32.2.ebuild:
added ~amd64
04 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
httrack-3.32.2.ebuild:
Masked httrack-3.32.2.ebuild stable for ppc
01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> httrack-3.23.ebuild,
httrack-3.30.ebuild, httrack-3.32.2.ebuild:
virtual/glibc -> virtual/libc
26 Jun 2004; Sven Wegener <swegener@gentoo.org> httrack-3.32.2.ebuild:
Package is not parallel build capable, added -j1. Closes bug #54756.
*httrack-3.32.2 (21 Jun 2004)
21 Jun 2004; David Holm <dholm@gentoo.org> +httrack-3.32.2.ebuild:
Version bump.
*httrack-3.30 (04 Mar 2004)
04 Mar 2004; David Holm <dholm@gentoo.org> httrack-3.30.ebuild:
Version bump.
*httrack-3.23 (18 Mar 2003)
18 Mar 2003; Seth Chandler <sethbc@gentoo.org>; httrack-3.22.ebuild,
httrack-3.22.ebuild, httrack-3.23.ebuild:
bumpage+fixes
*httrack-3.22-3 (09 Feb 2003)
15 Feb 2003; Seth Chandler <sethbc@gentoo.org>:httrack-3.22.ebuild
updated some doc stuff...
09 Feb 2003; Seth Chandler <sethbc@gentoo.org>: httrack-3.22.ebuild
added httrack to portage thanks to Ricardo Cordeiro
<Ricardo.Cordeiro@iscte.pt> among others who submitted ebuilds

View File

@@ -0,0 +1,4 @@
DIST httrack-3.44.1.tar.gz 1664216 RMD160 04644ba0300b92392a255965d1c7191fe4f186fc SHA1 5bdbc0b294b25929e52bc932e076c9e349a18fa9 SHA256 af95a730eff665d8275770951e8816bb29def5dc66d9faeaad91f93f686c9ddd
EBUILD httrack-3.44.1.ebuild 754 RMD160 f07d67ae16aec89cbfd6229f9bc4cfa4dab93d10 SHA1 7137c79e68999b1cc7b9a448ce42aed85acdbf8d SHA256 5b3100432f3c7769784f776974277c352e032dc3c2e9fef1855dc018c7192faf
MISC ChangeLog 6036 RMD160 9318b39c19ea1c3fb48506f6ce10797ec081e0f4 SHA1 e1826245afc70d9251c0b79789169786d196f02d SHA256 6840a46d5f588a66124f58c273f6ddd421ef4356a051ddf8278729dfdb6a8400
MISC metadata.xml 231 RMD160 5ffc63b4d4166adf83af9e571b24e435f58f2065 SHA1 4e3bdb071fefd1bd2e75574c6d54097ee8707768 SHA256 5893ff74a54adcf08dadf759b6e8ed0ca68f01fbdb3784c2e7dd5b53984f2a8d

View File

@@ -0,0 +1,27 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/httrack/httrack-3.44.1.ebuild,v 1.1 2011/04/21 16:40:31 vanquirius Exp $
inherit versionator
DESCRIPTION="HTTrack Website Copier, Open Source Offline Browser"
HOMEPAGE="http://www.httrack.com/"
SRC_URI="http://download.httrack.com/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE=""
src_compile() {
sed -i '1i#define OF(x) x' src/minizip/*.h
econf || die
# won't compile in parallel
emake -j1 || die
}
src_install() {
make DESTDIR="${D}" install || die
dodoc AUTHORS README greetings.txt history.txt
dohtml httrack-doc.html
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>vanquirius@gentoo.org</email>
<name>Marcelo Goes</name>
</maintainer>
</pkgmetadata>

2787
www-client/iron/ChangeLog Normal file

File diff suppressed because it is too large Load Diff

15
www-client/iron/Manifest Normal file
View File

@@ -0,0 +1,15 @@
AUX chromium-browser.xml 407 RMD160 457374ff72561648d9777ffb3270ad10d864a6be SHA1 65543bfff7d0350d40ba258e61061b0c5579e1f2 SHA256 bc039012f8677468e9ce5df825f9d8096be6deb5813031c86a087c88105096ff
AUX chromium-icu-compatibility-r0.patch 1659 RMD160 5d1fcc18d27b96f0c1b4f14b24dd8ab40ce917ca SHA1 517155769d0f421a4a81bffbcac39d17fa099956 SHA256 f70d99472d56e0aa7398b5638412d440d22943eb2c5962957f973e90992fdc99
AUX chromium-kerberos-r0.patch 944 RMD160 25fccaa4406b1f964d72c94fd414a9955fc69ddd SHA1 b8b8f2cf6df1bade7af45d8f24b65acc602e781f SHA256 75b75f241675178dff914e0ddacc910a2583b2e2077e805f3ea1b2eed8513e21
AUX chromium-launcher-r2.sh 940 RMD160 7a64e597998a8f95a7e3d1c26377842ff8106f89 SHA1 9630a36af707a810cbd646f3bac5deba984439f6 SHA256 842e121bbfa33513ca964744f0ba8401401946e672cd6a0a95bc80a28212e87e
AUX chromium-system-libevent-r0.patch 404 RMD160 0dc32cfbd0770e4be1b6f9d3cf8ac08987a5992d SHA1 f6127a903eeb4ce13a4f8fc75dda0102e68d759a SHA256 127945ad45ede0e2aefbc28d8d5eb241675abb83f3aedc2569133e437f98a841
AUX chromium.default 147 RMD160 4c0669585499b94c225e34e985e615d0299b66fb SHA1 1cdcbcd4a3517f70ba67c749da95c2a307971846 SHA256 de16d72d77ac9fe04f781df4f50dfb714ba33574755932df950c1d9472b589d9
AUX dot-gclient 253 RMD160 a768770d8e6f5b73395451277beea1cc9240fc3a SHA1 3eaf2074da58cfe4f2af3d08f59b27a16fe13dad SHA256 8c5750251ff681044cc584ef3768fe39c56c7877ade5fb9107298734126e62cf
AUX extract_v8_version.py 731 RMD160 71b134c9b88902259cb20ec232b8da6c3d8a15de SHA1 3dc5d6f9437f4b0ffb584395e19663450384b53a SHA256 4011f1e2f44bd18ad1266dffc1d3fbc13a6430afade2b19240b31ee9437dcbda
AUX nacl.gypi 98 RMD160 fa4806fbc8c2e19763c1905a3bc431022b247825 SHA1 df4cee39e1d49e10f9c075f5e6e9db28e8260926 SHA256 25bddd2eee7821e18ddda06f6e69552c359e1c04a10971ac3985556c3d8ef059
DIST iron-14.0.850.0-src.7z.001 314572800 RMD160 370aa6b170612c9aa4d6979661efd3fabd48d123 SHA1 3beeb6b4aaa01fb87c6e163d105d4efbcbc208d3 SHA256 4789cdc493617d4ed89f5a842adc9bc94441e1836b09ec673fa23996d3201207
DIST iron-14.0.850.0-src.7z.002 314572800 RMD160 046bdcba089f57c680467e21e30c65d300860bcc SHA1 e8893fe5bfa308f7291ed1ad6c33273b4bd65519 SHA256 b0505b8f4f04c1c057a99e9c706ac6543f824788f9b56b1a09907c7b46e17d0a
DIST iron-14.0.850.0-src.7z.003 257718232 RMD160 104415be31d9fd1aecc27385a3a36c5279929e1c SHA1 f9f7f6f165a63092f98e067b5e5fb87b759e28fc SHA256 5238915c1e4188ff7029e8b30f065d5d3ffabf6d7dfee512bc5b6eb36288735f
EBUILD iron-14.0.850.0.ebuild 14558 RMD160 a37468d16070898e0cbd1738a623ad8c9e59f393 SHA1 ba4783d0569d65dc3528fffabd126161b2312977 SHA256 9ec91058251217e491930ad7442a2aa6d73cc77c590d98d9182ae4ebfa5ec1ca
MISC ChangeLog 105965 RMD160 f7229960caa09549058a3e4354ead903c0ac72fb SHA1 73211c187e3fe911e6860ccc934b58ce3b9c17ac SHA256 c3df50dc0b418bcf5e3b13f6a855bb05a48070ced5410c307357941ef0d5077e
MISC metadata.xml 267 RMD160 3a166415fec415d539c1b7c32ed40b188488b9fb SHA1 5c3d71a9cea27175cbe8c98369b42b79c8643c6c SHA256 4e6afae33f60d6752cacf2785f7f9a396b8711cce605b73d0d752a4af7d01fc8

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd">
<default-apps>
<web-browsers>
<web-browser>
<name>Chromium</name>
<executable>chromium-browser</executable>
<command>chromium-browser %s</command>
<icon-name>chromium-browser</icon-name>
<run-in-terminal>false</run-in-terminal>
</web-browser>
</web-browsers>
</default-apps>

View File

@@ -0,0 +1,53 @@
this patch fixes build failures with ICU 4.8
http://codereview.chromium.org/7421003/
https://bugs.gentoo.org/show_bug.cgi?id=374903
--- v8/src/extensions/experimental/number-format.cc
+++ v8/src/extensions/experimental/number-format.cc
@@ -36,6 +36,8 @@
#include "unicode/numfmt.h"
#include "unicode/uchar.h"
#include "unicode/ucurr.h"
+#include "unicode/unum.h"
+#include "unicode/uversion.h"
namespace v8 {
namespace internal {
@@ -231,6 +233,8 @@
}
// Generates ICU number format pattern from given skeleton.
+// TODO(cira): Remove once ICU includes equivalent method
+// (see http://bugs.icu-project.org/trac/ticket/8610).
static icu::DecimalFormat* CreateFormatterFromSkeleton(
const icu::Locale& icu_locale,
const icu::UnicodeString& skeleton,
@@ -251,6 +255,7 @@
// Case of non-consecutive U+00A4 is taken care of in i18n.js.
int32_t end_index = skeleton.lastIndexOf(currency_symbol, index);
+#if (U_ICU_VERSION_MAJOR_NUM == 4) && (U_ICU_VERSION_MINOR_NUM <= 6)
icu::NumberFormat::EStyles style;
switch (end_index - index) {
case 0:
@@ -262,6 +267,19 @@
default:
style = icu::NumberFormat::kPluralCurrencyStyle;
}
+#else // ICU version is 4.8 or above (we ignore versions below 4.0).
+ UNumberFormatStyle style;
+ switch (end_index - index) {
+ case 0:
+ style = UNUM_CURRENCY;
+ break;
+ case 1:
+ style = UNUM_CURRENCY_ISO;
+ break;
+ default:
+ style = UNUM_CURRENCY_PLURAL;
+ }
+#endif
base_format = static_cast<icu::DecimalFormat*>(
icu::NumberFormat::createInstance(icu_locale, style, *status));

View File

@@ -0,0 +1,22 @@
Index: net/http/http_auth_gssapi_posix.cc
diff --git a/net/http/http_auth_gssapi_posix.cc b/net/http/http_auth_gssapi_posix.cc
index 431cfc4f2b54730fa6b46a6801c25cf691b7c878..aff2ac1114e09ec202b1ce4bd8d63ebd41483632 100644
--- a/net/http/http_auth_gssapi_posix.cc
+++ b/net/http/http_auth_gssapi_posix.cc
@@ -55,6 +55,16 @@ static gss_OID_desc GSS_C_NT_EXPORT_NAME_VAL = {
} // namespace
+// Heimdal >= 1.4 will define the following as preprocessor macros.
+// To avoid conflicting declarations, we have to undefine these.
+#undef GSS_C_NT_USER_NAME
+#undef GSS_C_NT_MACHINE_UID_NAME
+#undef GSS_C_NT_STRING_UID_NAME
+#undef GSS_C_NT_HOSTBASED_SERVICE_X
+#undef GSS_C_NT_HOSTBASED_SERVICE
+#undef GSS_C_NT_ANONYMOUS
+#undef GSS_C_NT_EXPORT_NAME
+
gss_OID GSS_C_NT_USER_NAME = &GSS_C_NT_USER_NAME_VAL;
gss_OID GSS_C_NT_MACHINE_UID_NAME = &GSS_C_NT_MACHINE_UID_NAME_VAL;
gss_OID GSS_C_NT_STRING_UID_NAME = &GSS_C_NT_STRING_UID_NAME_VAL;

View File

@@ -0,0 +1,32 @@
#!/bin/bash
# Allow the user to override command-line flags, bug #357629.
# This is based on Debian's chromium-browser package, and is intended
# to be consistent with Debian.
if [ -f /etc/chromium/default ] ; then
. /etc/chromium/default
fi
# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system
# default CHROMIUM_FLAGS (from /etc/chromium/default).
CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-"$CHROMIUM_FLAGS"}
# Let the wrapped binary know that it has been run through the wrapper
export CHROME_WRAPPER="`readlink -f "$0"`"
PROGDIR="`dirname "$CHROME_WRAPPER"`"
case ":$PATH:" in
*:$PROGDIR:*)
# $PATH already contains $PROGDIR
;;
*)
# Append $PROGDIR to $PATH
export PATH="$PATH:$PROGDIR"
;;
esac
# Set the .desktop file name
export CHROME_DESKTOP="chromium-browser-chromium.desktop"
exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@"

View File

@@ -0,0 +1,12 @@
--- base/base.gyp.orig 2011-08-04 18:25:17.000000000 +0200
+++ base/base.gyp 2011-08-04 18:25:24.000000000 +0200
@@ -283,6 +283,9 @@
'message_pump_libevent_unittest.cc',
],
}, { # OS != "win"
+ 'dependencies': [
+ '../third_party/libevent/libevent.gyp:libevent'
+ ],
'sources/': [
['exclude', '^win/'],
],

View File

@@ -0,0 +1,5 @@
# Default settings for chromium. This file is sourced by /bin/bash from
# the chromium launcher.
# Options to pass to chromium.
CHROMIUM_FLAGS=""

View File

@@ -0,0 +1,9 @@
solutions = [
{ "name" : "src",
"url" : "http://src.chromium.org/svn/trunk/src",
"custom_deps" : {
"src/third_party/WebKit/LayoutTests": None,
},
"safesync_url": "http://chromium-status.appspot.com/lkgr",
},
]

View File

@@ -0,0 +1,24 @@
#!/usr/bin/python2
import re
import sys
MAJOR_VERSION_PATTERN = re.compile(r"#define\s+MAJOR_VERSION\s+(.*)")
MINOR_VERSION_PATTERN = re.compile(r"#define\s+MINOR_VERSION\s+(.*)")
BUILD_NUMBER_PATTERN = re.compile(r"#define\s+BUILD_NUMBER\s+(.*)")
PATCH_LEVEL_PATTERN = re.compile(r"#define\s+PATCH_LEVEL\s+(.*)")
patterns = [MAJOR_VERSION_PATTERN,
MINOR_VERSION_PATTERN,
BUILD_NUMBER_PATTERN,
PATCH_LEVEL_PATTERN]
source = open(sys.argv[1]).read()
version_components = []
for pattern in patterns:
version_components.append(pattern.search(source).group(1).strip())
if version_components[len(version_components) - 1] == '0':
version_components.pop()
print '.'.join(version_components)

View File

@@ -0,0 +1,8 @@
{
'targets': [
{
'target_name': 'nacl',
'type': 'static_library',
},
],
}

View File

@@ -0,0 +1,464 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-15.0.874.102.ebuild,v 1.4 2011/10/28 13:50:45 phajdan.jr Exp $
EAPI="3"
PYTHON_DEPEND="2:2.6"
inherit eutils fdo-mime flag-o-matic gnome2-utils linux-info multilib \
pax-utils portability python toolchain-funcs versionator virtualx
DESCRIPTION="Secure Version of the Open-source Google Chrome web browser"
HOMEPAGE="http://www.srware.net/software_srware_iron_download.php"
SRC_URI="
http://rapidshare.com/files/422685582/src.7z.001 -> iron-${PV}-src.7z.001
http://rapidshare.com/files/422697601/src.7z.002 -> iron-${PV}-src.7z.002
http://rapidshare.com/files/422709880/src.7z.003 -> iron-${PV}-src.7z.003
http://ftp-disconnected-by-peer.at/iron/${PV}/iron-${PV}-src.7z.001
http://ftp-disconnected-by-peer.at/iron/${PV}/iron-${PV}-src.7z.002
http://ftp-disconnected-by-peer.at/iron/${PV}/iron-${PV}-src.7z.003"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio"
# 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
RDEPEND="app-arch/bzip2
dev-libs/dbus-glib
>=dev-libs/icu-4.4.1
>=dev-libs/libevent-1.4.13
dev-libs/libxml2[icu]
dev-libs/libxslt
>=dev-libs/nss-3.12.3
gnome? ( >=gnome-base/gconf-2.24.0 )
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
>=media-libs/alsa-lib-1.0.19
media-libs/flac
virtual/jpeg
media-libs/libpng
>=media-libs/libwebp-0.1.2
media-libs/speex
pulseaudio? ( media-sound/pulseaudio )
cups? (
dev-libs/libgcrypt
>=net-print/cups-1.3.11
)
sys-libs/zlib
x11-libs/gtk+:2
x11-libs/libXinerama
x11-libs/libXScrnSaver
x11-libs/libXtst
kerberos? ( virtual/krb5 )"
DEPEND="${RDEPEND}
dev-lang/perl
>=dev-util/gperf-3.0.3
>=dev-util/pkgconfig-0.23
>=sys-devel/bison-2.4.3
sys-devel/flex
>=sys-devel/make-3.81-r2
test? (
dev-python/pyftpdlib
dev-python/simplejson
)"
RDEPEND+="
x11-misc/xdg-utils
virtual/ttf-fonts"
gyp_use() {
if [[ $# -lt 2 ]]; then
echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
return 1
fi
if use "$1"; then echo "-D$2=1"; else echo "-D$2=0"; fi
}
egyp() {
set -- build/gyp_chromium --depth=. "${@}"
echo "${@}" >&2
"${@}"
}
# 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
}
pkg_setup() {
CHROMIUM_HOME="/usr/$(get_libdir)/iron-browser"
# Make sure the build system will use the right tools, bug #340795.
tc-export AR CC CXX RANLIB
# Make sure the build system will use the right python, bug #344367.
python_set_active_version 2
python_pkg_setup
# Prevent user problems like bug #348235.
eshopts_push -s extglob
if is-flagq '-g?(gdb)?([1-9])'; then
ewarn "You have enabled debug info (probably have -g or -ggdb in your \$C{,XX}FLAGS)."
ewarn "You may experience really long compilation times and/or increased memory usage."
ewarn "If compilation fails, please try removing -g{,gdb} before reporting a bug."
fi
eshopts_pop
# Warn if the kernel doesn't support features useful for sandboxing,
# bug #363907.
CONFIG_CHECK="~PID_NS ~NET_NS"
check_extra_config
if use bindist; then
elog "bindist enabled: H.264 video support will be disabled."
else
elog "bindist disabled: Resulting binaries may not be legal to re-distribute."
fi
}
src_prepare() {
cp "${FILESDIR}/nacl.gypi" chrome/ || die
# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
sed -i '1i#define OF(x) x' \
third_party/zlib/contrib/minizip/{ioapi,{,un}zip}.c \
chrome/common/zip.cc || die
# Backport http://codereview.chromium.org/8038051, fix for bug #383121.
epatch "${FILESDIR}/${PN}-kerberos-r0.patch"
epatch_user
# Remove most bundled libraries. Some are still needed.
find third_party -type f \! -iname '*.gyp*' \
\! -path 'third_party/WebKit/*' \
\! -path 'third_party/angle/*' \
\! -path 'third_party/cacheinvalidation/*' \
\! -path 'third_party/cld/*' \
\! -path 'third_party/expat/*' \
\! -path 'third_party/ffmpeg/*' \
\! -path 'third_party/flac/flac.h' \
\! -path 'third_party/gpsd/*' \
\! -path 'third_party/harfbuzz/*' \
\! -path 'third_party/hunspell/*' \
\! -path 'third_party/iccjpeg/*' \
\! -path 'third_party/launchpad_translations/*' \
\! -path 'third_party/leveldb/*' \
\! -path 'third_party/leveldatabase/*' \
\! -path 'third_party/libjingle/*' \
\! -path 'third_party/libphonenumber/*' \
\! -path 'third_party/libvpx/*' \
\! -path 'third_party/mesa/*' \
\! -path 'third_party/modp_b64/*' \
\! -path 'third_party/mongoose/*' \
\! -path 'third_party/npapi/*' \
\! -path 'third_party/openmax/*' \
\! -path 'third_party/ots/*' \
\! -path 'third_party/protobuf/*' \
\! -path 'third_party/sfntly/*' \
\! -path 'third_party/skia/*' \
\! -path 'third_party/smhasher/*' \
\! -path 'third_party/speex/speex.h' \
\! -path 'third_party/sqlite/*' \
\! -path 'third_party/tcmalloc/*' \
\! -path 'third_party/tlslite/*' \
\! -path 'third_party/undoview/*' \
\! -path 'third_party/v8-i18n/*' \
\! -path 'third_party/webdriver/*' \
\! -path 'third_party/webgl_conformance/*' \
\! -path 'third_party/webrtc/*' \
\! -path 'third_party/yasm/*' \
\! -path 'third_party/zlib/contrib/minizip/*' \
-delete || die
# Make sure the build system will use the right python, bug #344367.
# Only convert directories that need it, to save time.
python_convert_shebangs -q -r 2 build tools
}
src_configure() {
local myconf=""
# Never tell the build system to "enable" SSE2, it has a few unexpected
# additions, bug #336871.
myconf+=" -Ddisable_sse2=1"
# Disable NaCl temporarily, this tarball doesn't have IRT.
myconf+=" -Ddisable_nacl=1"
# Disable WebRTC until they make PulseAudio dependency optional,
# bug #377847.
myconf+=" -Denable_webrtc=0"
# Use system-provided libraries.
# TODO: use_system_ffmpeg
# TODO: use_system_hunspell (upstream changes needed).
# TODO: use_system_ssl (http://crbug.com/58087).
# TODO: use_system_sqlite (http://crbug.com/22208).
# TODO: use_system_vpx
myconf+="
-Duse_system_bzip2=1
-Duse_system_flac=1
-Duse_system_icu=1
-Duse_system_libevent=1
-Duse_system_libjpeg=1
-Duse_system_libpng=1
-Duse_system_libwebp=1
-Duse_system_libxml=1
-Duse_system_speex=1
-Duse_system_xdg_utils=1
-Duse_system_zlib=1"
# Optional dependencies.
# TODO: linux_link_kerberos, bug #381289.
myconf+="
$(gyp_use cups use_cups)
$(gyp_use gnome use_gconf)
$(gyp_use gnome-keyring use_gnome_keyring)
$(gyp_use gnome-keyring linux_link_gnome_keyring)
$(gyp_use kerberos use_kerberos)
$(gyp_use pulseaudio use_pulseaudio)"
# Enable sandbox.
myconf+="
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
if host-is-pax; then
# Prevent the build from failing (bug #301880). The performance
# difference is very small.
myconf+=" -Dv8_use_snapshot=0"
fi
# Our system ffmpeg should support more codecs than the bundled one
# for Chromium.
# myconf+=" -Dproprietary_codecs=1"
if ! use bindist; then
# Enable H.624 support in bundled ffmpeg.
myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome"
fi
local myarch="$(tc-arch)"
if [[ $myarch = amd64 ]] ; then
myconf+=" -Dtarget_arch=x64"
elif [[ $myarch = x86 ]] ; then
myconf+=" -Dtarget_arch=ia32"
elif [[ $myarch = arm ]] ; then
# TODO: check this again after
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
append-flags -fno-tree-sink
myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
else
die "Failed to determine target arch, got '$myarch'."
fi
# Make sure that -Werror doesn't get added to CFLAGS by the build system.
# Depending on GCC version the warnings are different and we don't want
# the build to fail because of that.
myconf+=" -Dwerror="
# Avoid a build error with -Os, bug #352457.
replace-flags "-Os" "-O2"
egyp ${myconf} || die
}
src_compile() {
emake chrome chrome_sandbox chromedriver BUILDTYPE=Release V=1 || die
pax-mark m out/Release/chrome
if use test; then
emake {base,crypto,googleurl,net}_unittests BUILDTYPE=Release V=1 || die
pax-mark m out/Release/{base,crypto,googleurl,net}_unittests
fi
}
src_test() {
# For more info see bug #350349.
local mylocale='en_US.utf8'
if ! locale -a | grep -q "$mylocale"; then
eerror "${PN} requires ${mylocale} locale for tests"
eerror "Please read the following guides for more information:"
eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
eerror " http://www.gentoo.org/doc/en/utf-8.xml"
die "locale ${mylocale} is not supported"
fi
# For more info see bug #370957.
if [[ $UID -eq 0 ]]; then
die "Tests must be run as non-root. Please use FEATURES=userpriv."
fi
# For more info see bug #350347.
LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/base_unittests virtualmake \
'--gtest_filter=-ICUStringConversionsTest.*'
LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/crypto_unittests virtualmake
LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/googleurl_unittests virtualmake
# NetUtilTest: bug #361885.
# NetUtilTest.GenerateFileName: some locale-related mismatch.
# UDP: unstable, active development. We should revisit this later.
LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/net_unittests virtualmake \
'--gtest_filter=-NetUtilTest.IDNToUnicode*:NetUtilTest.FormatUrl*:NetUtilTest.GenerateFileName:*UDP*'
}
src_install() {
exeinto "${CHROMIUM_HOME}"
doexe out/Release/chrome || die
doexe out/Release/chrome_sandbox || die
fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox"
doexe out/Release/chromedriver || die
# Install Native Client files on platforms that support it.
# insinto "${CHROMIUM_HOME}"
# case "$(tc-arch)" in
# amd64)
# doins native_client/irt_binaries/nacl_irt_x86_64.nexe || die
# doins out/Release/libppGoogleNaClPluginChrome.so || die
# ;;
# x86)
# doins native_client/irt_binaries/nacl_irt_x86_32.nexe || die
# doins out/Release/libppGoogleNaClPluginChrome.so || die
# ;;
# esac
newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
# It is important that we name the target "chromium-browser",
# xdg-utils expect it; bug #355517.
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser || die
# keep the old symlink around for consistency
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die
# Allow users to override command-line options, bug #357629.
dodir /etc/chromium || die
insinto /etc/chromium
newins "${FILESDIR}/chromium.default" "default" || die
# Support LINGUAS, bug #332751.
local pak
for pak in out/Release/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="out/Release/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
insinto "${CHROMIUM_HOME}"
doins out/Release/chrome.pak || die
doins out/Release/resources.pak || die
doins -r out/Release/locales || die
doins -r out/Release/resources || die
newman out/Release/chrome.1 chromium.1 || die
newman out/Release/chrome.1 chromium-browser.1 || die
# Chromium looks for these in its folder
# See media_posix.cc and base_paths_linux.cc
# dosym /usr/$(get_libdir)/libavcodec.so.52 "${CHROMIUM_HOME}" || die
# dosym /usr/$(get_libdir)/libavformat.so.52 "${CHROMIUM_HOME}" || die
# dosym /usr/$(get_libdir)/libavutil.so.50 "${CHROMIUM_HOME}" || die
doexe out/Release/libffmpegsumo.so || die
# Install icons and desktop entry.
for SIZE in 16 22 24 32 48 64 128 256 ; do
insinto /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps
newins chrome/app/theme/chromium/product_logo_${SIZE}.png \
chromium-browser.png || die
done
local mime_types="text/html;text/xml;application/xhtml+xml;"
mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
make_desktop_entry chromium-browser "Chromium" chromium-browser \
"Network;WebBrowser" \
"MimeType=${mime_types}\nStartupWMClass=chromium-browser"
sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
# Install GNOME default application entry (bug #303100).
if use gnome; then
dodir /usr/share/gnome-control-center/default-apps || die
insinto /usr/share/gnome-control-center/default-apps
doins "${FILESDIR}"/chromium-browser.xml || die
fi
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
# For more info see bug #292201, bug #352263, bug #361859.
elog
elog "Depending on your desktop environment, you may need"
elog "to install additional packages to get icons on the Downloads page."
elog
elog "For KDE, the required package is kde-base/oxygen-icons."
elog
elog "For other desktop environments, try one of the following:"
elog " - x11-themes/gnome-icon-theme"
elog " - x11-themes/tango-icon-theme"
# For more info see bug #359153.
elog
elog "Some web pages may require additional fonts to display properly."
elog "Try installing some of the following packages if some characters"
elog "are not displayed properly:"
elog " - media-fonts/arphicfonts"
elog " - media-fonts/bitstream-cyberbit"
elog " - media-fonts/droid"
elog " - media-fonts/ipamonafont"
elog " - media-fonts/ja-ipafonts"
elog " - media-fonts/takao-fonts"
elog " - media-fonts/wqy-microhei"
elog " - media-fonts/wqy-zenhei"
}
pkg_postrm() {
gnome2_icon_cache_update
}

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>chromium</herd>
<longdescription>Chromium is the open-source web browser project behind Google Chrome</longdescription>
</pkgmetadata>