diff options
author | Paweł Hajdan <phajdan.jr@gentoo.org> | 2010-12-13 20:53:30 +0000 |
---|---|---|
committer | Paweł Hajdan <phajdan.jr@gentoo.org> | 2010-12-13 20:53:30 +0000 |
commit | 60fe00afcdab2103f9ca66b7e4d4c18d9ce4313a (patch) | |
tree | fc6c59718c7b2d29c1bc843d1474c1787c1e64e2 /www-client/chromium | |
parent | Automated update of use.local.desc (diff) | |
download | historical-60fe00afcdab2103f9ca66b7e4d4c18d9ce4313a.tar.gz historical-60fe00afcdab2103f9ca66b7e4d4c18d9ce4313a.tar.bz2 historical-60fe00afcdab2103f9ca66b7e4d4c18d9ce4313a.zip |
Version bump for stable channel release.
Package-Manager: portage-2.1.9.24/cvs/Linux i686
Diffstat (limited to 'www-client/chromium')
-rw-r--r-- | www-client/chromium/ChangeLog | 8 | ||||
-rw-r--r-- | www-client/chromium/Manifest | 4 | ||||
-rw-r--r-- | www-client/chromium/chromium-8.0.552.224.ebuild | 276 |
3 files changed, 286 insertions, 2 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index 0425164428b3..07089c868e45 100644 --- a/www-client/chromium/ChangeLog +++ b/www-client/chromium/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-client/chromium # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.238 2010/12/12 17:18:47 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.239 2010/12/13 20:53:30 phajdan.jr Exp $ + +*chromium-8.0.552.224 (13 Dec 2010) + + 13 Dec 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> + +chromium-8.0.552.224.ebuild: + Version bump for stable channel release. 12 Dec 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> chromium-9999.ebuild: Drop patch applied upstream, bug #348462 by Mike Gilbert diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index abdb71c77c3e..519d2f92729b 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -9,11 +9,13 @@ AUX chromium.xml 390 RMD160 6b2f901da76555a7112f71a6f9dae6e2e3307324 SHA1 81148a AUX extract_v8_version.py 731 RMD160 71b134c9b88902259cb20ec232b8da6c3d8a15de SHA1 3dc5d6f9437f4b0ffb584395e19663450384b53a SHA256 4011f1e2f44bd18ad1266dffc1d3fbc13a6430afade2b19240b31ee9437dcbda AUX v8.gyp 2602 RMD160 2949c9e2d8e2297182130e5984fb5f114c260a81 SHA1 7d32a04a7a921f30b0c3ed33a5593f1059832c96 SHA256 bc5342501d71754f23bd87914bb11841a7487330ba2f0462611dd1b0f99a2a43 DIST chromium-8.0.552.215.tar.bz2 135971053 RMD160 fd971365dc103e227a50743877068705d6097e1c SHA1 fc039b5cb6a75dd967e152d9b5ab3274d5e94b46 SHA256 fb34f28446ef6835f54f2b0749c040dedf95646858c27a72031dae39b500a44f +DIST chromium-8.0.552.224.tar.bz2 135345394 RMD160 e7bed4bc0b4d851e83bfc351ceca9af4ae739dad SHA1 4544ec2f753893e9a5426e4bad353bad8fd25f8a SHA256 c10b5f7cbafbc430ba25f6cdc00af5c86c6216b280101df2036a89474b75a848 DIST chromium-9.0.597.0.tar.bz2 142457016 RMD160 39deb1321d35d80ef7d7a0eab9b5456ebb6064c0 SHA1 819608b9fad4c6971b0a852979e9552e7510d7a1 SHA256 f913af88393395012d67e454376e081d6ea3bfa384fa684ba9503d813f70053d DIST chromium-9.0.597.16.tar.bz2 141678073 RMD160 62c5f53528cb8d7794e0e4a30c0a9b42fc304613 SHA1 3958b30cd2687121d9f55adebd1d8da80065ea48 SHA256 469704126f081b97c4d56204babeb5898a4eea9d5802534c333cd12013a856ee EBUILD chromium-8.0.552.215.ebuild 8603 RMD160 5e9da9d8720bcbdea61e7b88098a8954a7c96241 SHA1 3c0e72fdb99230bae9b248d5643540a6294e1d5d SHA256 f8f0ff88c24a9cc3c6a39ff58bbe535bf7ad78b91fa8f1042cc85847c860a4c5 +EBUILD chromium-8.0.552.224.ebuild 8610 RMD160 15291ad1977d0c49847c40866436947a28b8c1d8 SHA1 18dbc4b1217a0c919ea2f9deadef969427a690bc SHA256 868ee026e23c9809542b196545918c53fa8a04402611babb34b38876fa5f3dc7 EBUILD chromium-9.0.597.0.ebuild 9322 RMD160 d524d3b395a61716d37e91ddc5af3b6e4e8e659b SHA1 d7f1b334287cd3c18932e288390710f74d4b386b SHA256 6d48c2388ef5d6dd322e67e54b7ef5c12080dbbc4aa5eb4d863436c361435b51 EBUILD chromium-9.0.597.16.ebuild 9758 RMD160 5c8e2fc44cd84335e24c9297cb767384c7a81955 SHA1 88cc9b3672534fc7e2cc9b0bbbb7431a899565fd SHA256 8499f95128af69e5cf8a83c8c51ceaedcc4e20b759d38dac0c660b7f06ef46fd EBUILD chromium-9999.ebuild 11360 RMD160 de86664824c5d6229959f69765567af3bcee89cf SHA1 c8540296db206ab2e6c4fb88df2ccb98e983a66b SHA256 93c331424c5fa68389ca925642d4bf4cf4d28a70ce98c16f6d747ba35db6a21d -MISC ChangeLog 52910 RMD160 f8ba9066dff9b9bfc51494caf2ec915841f1c06d SHA1 644b3a0a46190d3135af5f614b137c1f513c3d92 SHA256 eefec8781be07965e8d1f53946a0b2a00e56b132cf2c6879a478797580397b85 +MISC ChangeLog 53078 RMD160 3b89b19e284daec8914f605fad5a2888272bd13f SHA1 d3614069733b4f63256b5f9ed8dee98f2848eb00 SHA256 1043cbae6b726386da9a2f3187aeb2ff36c3cc38715f1971272abcca6f85ce7c MISC metadata.xml 607 RMD160 98f163b667c92c149e6ad82352ff5a1ea076361f SHA1 0d7d96013e31288c37a0e245cf2b538af1a46eaf SHA256 1d94b496c34342ce43cf7b1c6887d90930c0531e903e512d2d132e79e1d0d27d diff --git a/www-client/chromium/chromium-8.0.552.224.ebuild b/www-client/chromium/chromium-8.0.552.224.ebuild new file mode 100644 index 000000000000..1a7ee3a0e202 --- /dev/null +++ b/www-client/chromium/chromium-8.0.552.224.ebuild @@ -0,0 +1,276 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-8.0.552.224.ebuild,v 1.1 2010/12/13 20:53:30 phajdan.jr Exp $ + +EAPI="2" + +inherit eutils flag-o-matic multilib pax-utils portability toolchain-funcs + +DESCRIPTION="Open-source version of Google Chrome web browser" +HOMEPAGE="http://chromium.org/" +SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="cups +gecko-mediaplayer gnome gnome-keyring system-sqlite system-v8" + +RDEPEND="app-arch/bzip2 + system-sqlite? ( + >=dev-db/sqlite-3.6.23.1[fts3,icu,secure-delete,threadsafe] + ) + system-v8? ( ~dev-lang/v8-2.4.9.14 ) + >=dev-libs/icu-4.4.1 + >=dev-libs/libevent-1.4.13 + dev-libs/libxml2 + dev-libs/libxslt + >=dev-libs/nss-3.12.3 + >=gnome-base/gconf-2.24.0 + gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) + >=media-libs/alsa-lib-1.0.19 + virtual/jpeg + media-libs/libpng + >=media-video/ffmpeg-0.6_p25423[threads] + cups? ( >=net-print/cups-1.3.11 ) + sys-libs/zlib + >=x11-libs/gtk+-2.14.7 + x11-libs/libXScrnSaver" +DEPEND="${RDEPEND} + dev-lang/perl + >=dev-util/gperf-3.0.3 + >=dev-util/pkgconfig-0.23 + sys-devel/flex" +RDEPEND+=" + || ( + x11-themes/gnome-icon-theme + x11-themes/oxygen-molecule + x11-themes/tango-icon-theme + x11-themes/xfce4-icon-theme + ) + x11-misc/xdg-utils + virtual/ttf-fonts + gecko-mediaplayer? ( !www-plugins/gecko-mediaplayer[gnome] )" + +remove_bundled_lib() { + einfo "Removing bundled library $1 ..." + local out + out="$(find $1 -type f \! -iname '*.gyp' -print -delete)" \ + || die "failed to remove bundled library $1" + if [[ -z $out ]]; then + die "no files matched when removing bundled library $1" + fi +} + +pkg_setup() { + CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" + + # Make sure the build system will use the right tools, bug #340795. + tc-export AR CC CXX RANLIB + + # Prevent user problems like bug #299777. + if ! grep -q /dev/shm <<< $(get_mounts); then + ewarn "You don't have tmpfs mounted at /dev/shm." + ewarn "${PN} may fail to start in that configuration." + ewarn "Please uncomment the /dev/shm entry in /etc/fstab," + ewarn "and run 'mount /dev/shm'." + fi + if [ `stat -c %a /dev/shm` -ne 1777 ]; then + ewarn "/dev/shm does not have correct permissions." + ewarn "${PN} may fail to start in that configuration." + ewarn "Please run 'chmod 1777 /dev/shm'." + fi +} + +src_prepare() { + # Small fix to the system-provided icu support, + # to be upstreamed. + epatch "${FILESDIR}"/${PN}-system-icu-r1.patch + + # Enable optional support for gecko-mediaplayer. + epatch "${FILESDIR}"/${PN}-gecko-mediaplayer-r0.patch + + # Backport a fix for bug #343971. + epatch "${FILESDIR}"/${PN}-locale-glib-r1.patch + + remove_bundled_lib "third_party/bzip2" + remove_bundled_lib "third_party/codesighs" + remove_bundled_lib "third_party/icu" + remove_bundled_lib "third_party/jemalloc" + remove_bundled_lib "third_party/lcov" + remove_bundled_lib "third_party/libevent" + remove_bundled_lib "third_party/libjpeg" + remove_bundled_lib "third_party/libpng" + remove_bundled_lib "third_party/libxml" + remove_bundled_lib "third_party/libxslt" + remove_bundled_lib "third_party/lzma_sdk" + remove_bundled_lib "third_party/molokocacao" + remove_bundled_lib "third_party/ocmock" + remove_bundled_lib "third_party/pyftpdlib" + remove_bundled_lib "third_party/simplejson" + remove_bundled_lib "third_party/tlslite" + # TODO: also remove third_party/ffmpeg (needs to be compile-tested). + # TODO: also remove third_party/zlib. For now the compilation fails if we + # remove it (minizip-related). + + if use system-sqlite; then + remove_bundled_lib "third_party/sqlite/src" + remove_bundled_lib "third_party/sqlite/preprocessed" + fi + + if use system-v8; then + # Provide our own gyp file that links with the system v8. + # TODO: move this upstream. + cp "${FILESDIR}"/v8.gyp v8/tools/gyp || die + + remove_bundled_lib "v8" + + # The implementation files include v8 headers with full path, + # like #include "v8/include/v8.h". Make sure the system headers + # will be used. + # TODO: find a solution that can be upstreamed. + rmdir v8/include || die + ln -s /usr/include v8/include || die + fi +} + +src_configure() { + local myconf="" + + # Never tell the build system to "enable" SSE2, it has a few unexpected + # additions, bug #336871. + myconf+=" -Ddisable_sse2=1" + + # Use system-provided libraries. + # TODO: use_system_hunspell (upstream changes needed). + # TODO: use_system_ssl (need to consult upstream). + myconf+=" + -Duse_system_bzip2=1 + -Duse_system_ffmpeg=1 + -Duse_system_icu=1 + -Duse_system_libevent=1 + -Duse_system_libjpeg=1 + -Duse_system_libpng=1 + -Duse_system_libxml=1 + -Duse_system_zlib=1" + + if use system-sqlite; then + myconf+=" -Duse_system_sqlite=1" + fi + + # The dependency on cups is optional, see bug #324105. + if use cups; then + myconf+=" -Duse_cups=1" + else + myconf+=" -Duse_cups=0" + fi + + if use "gnome-keyring"; then + myconf+=" -Duse_gnome_keyring=1 -Dlinux_link_gnome_keyring=1" + else + # TODO: we should also disable code trying to dlopen + # gnome-keyring in that case. + myconf+=" -Duse_gnome_keyring=0 -Dlinux_link_gnome_keyring=0" + fi + + # 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 + + if use gecko-mediaplayer; then + # Disable hardcoded blacklist for gecko-mediaplayer. + # When www-plugins/gecko-mediaplayer is compiled with USE=gnome, it causes + # the browser to hang. We can handle the situation via dependencies, + # thus making it possible to use gecko-mediaplayer. + append-flags -DGENTOO_CHROMIUM_ENABLE_GECKO_MEDIAPLAYER + fi + + # Our system ffmpeg should support more codecs than the bundled one + # for Chromium. + myconf+=" -Dproprietary_codecs=1" + + # Use target arch detection logic from bug #296917. + local myarch="$ABI" + [[ $myarch = "" ]] && myarch="$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 + + if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then + myconf+=" -Dno_strict_aliasing=1 -Dgcc_version=44" + fi + + # Work around a likely GCC bug, see bug #331945. + if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then + append-flags -fno-ipa-cp + 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=" + + build/gyp_chromium --depth=. ${myconf} || die +} + +src_compile() { + emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die +} + +src_install() { + exeinto "${CHROMIUM_HOME}" + pax-mark m out/Release/chrome + doexe out/Release/chrome + doexe out/Release/chrome_sandbox || die + fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" + doexe out/Release/xdg-settings || die + doexe "${FILESDIR}"/chromium-launcher.sh || die + + 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 + + # chrome.1 is for chromium --help + newman out/Release/chrome.1 chrome.1 || die + newman out/Release/chrome.1 chromium.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 + + # Install icon and desktop entry. + newicon out/Release/product_logo_48.png ${PN}-browser.png || die + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die + make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \ + "MimeType=text/html;text/xml;application/xhtml+xml;" + sed -e "/^Exec/s/$/ %U/" -i "${D}"/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.xml || die + fi +} |