diff options
author | Paweł Hajdan <phajdan.jr@gentoo.org> | 2010-10-01 08:34:59 +0000 |
---|---|---|
committer | Paweł Hajdan <phajdan.jr@gentoo.org> | 2010-10-01 08:34:59 +0000 |
commit | 429b0fb6361a88c7d55a0366489d32ce097020d7 (patch) | |
tree | c176790fd656ba90f306a0aab31dc24766be273c /www-client | |
parent | Respect LDFLAGS. Bug #337273 (diff) | |
download | historical-429b0fb6361a88c7d55a0366489d32ce097020d7.tar.gz historical-429b0fb6361a88c7d55a0366489d32ce097020d7.tar.bz2 historical-429b0fb6361a88c7d55a0366489d32ce097020d7.zip |
Version bump for dev channel release. Add an option to build with system-provided sqlite library. Re-enable tcmalloc support. Minor ebuild cleanups. Remove old versions.
Package-Manager: portage-2.1.8.3/cvs/Linux i686
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/chromium/ChangeLog | 13 | ||||
-rw-r--r-- | www-client/chromium/Manifest | 15 | ||||
-rw-r--r-- | www-client/chromium/chromium-6.0.472.59.ebuild | 226 | ||||
-rw-r--r-- | www-client/chromium/chromium-6.0.472.62-r1.ebuild | 223 | ||||
-rw-r--r-- | www-client/chromium/chromium-6.0.472.63-r1.ebuild | 223 | ||||
-rw-r--r-- | www-client/chromium/chromium-7.0.536.2.ebuild (renamed from www-client/chromium/chromium-7.0.517.13.ebuild) | 33 | ||||
-rw-r--r-- | www-client/chromium/chromium-9999.ebuild | 32 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-system-sqlite-r0.patch | 50 | ||||
-rw-r--r-- | www-client/chromium/metadata.xml | 4 |
9 files changed, 107 insertions, 712 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index c4919c416cb5..6983e19247f5 100644 --- a/www-client/chromium/ChangeLog +++ b/www-client/chromium/ChangeLog @@ -1,6 +1,17 @@ # 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.191 2010/09/29 09:54:08 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.192 2010/10/01 08:34:59 phajdan.jr Exp $ + +*chromium-7.0.536.2 (01 Oct 2010) + + 01 Oct 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> + +files/chromium-system-sqlite-r0.patch, -chromium-6.0.472.59.ebuild, + -chromium-6.0.472.62-r1.ebuild, -chromium-6.0.472.63-r1.ebuild, + -chromium-7.0.517.13.ebuild, +chromium-7.0.536.2.ebuild, + chromium-9999.ebuild, metadata.xml: + Version bump for dev channel release. Add an option to build with + system-provided sqlite library. Re-enable tcmalloc support. Minor ebuild + cleanups. Remove old versions. *chromium-7.0.517.24 (29 Sep 2010) diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index ad6e53df643c..cb4fd56343ef 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -2,19 +2,16 @@ AUX chromium-gnome-keyring-r0.patch 2842 RMD160 1ac9a6e2785954a7a4f7f60988c8d7c1 AUX chromium-launcher.sh 1097 RMD160 6a35819d6ae463d1614ecd5976fe8aeae1a3519e SHA1 93b8259fe9ddf6914faa9a4cdbaf451a97031228 SHA256 9d16e2afe508c33aa987001a0442696eaefd5cf91e7a6c9eeb900bc9824390c9 AUX chromium-make-3.82-compatibility-r0.patch 867 RMD160 d6fd01bcd32460678e1503ca9fbeb78ed16e8213 SHA1 9964cbe8063140312dd1217327f3648dfaf71284 SHA256 339f8022d0a2ff733d779ba8c4a3cf09a28633afccc0106d86289ef497f2f401 AUX chromium-plugins-path-r0.patch 1043 RMD160 698a8562c866e046b1adf8553894ee08afb53a10 SHA1 0c41adad38478c4a12970af774e782ebb208a048 SHA256 3ba3bf1c3184fb2a0c7f493947d620fd1678efdd3661ac36be3d1cb00146d108 +AUX chromium-system-sqlite-r0.patch 1802 RMD160 7e796e63a2415b98b7192f466481ea00d86d5ddf SHA1 13bb913c620b813f5a5436864a002374b2da9b7b SHA256 c34e65648c1593d3c693db643d342c192056d2bf5c19b45129ac29ea2862ccf0 AUX chromium.xml 390 RMD160 6b2f901da76555a7112f71a6f9dae6e2e3307324 SHA1 81148a0b094bc697ff2c9d33efe976b1bffb72a3 SHA256 a81c6257346eaa4f6389fc9ea8834fd2dd3b006cf4e9e999028aca812d76fe9a -DIST chromium-6.0.472.59.tar.bz2 123988791 RMD160 90ea863301b6f65d9559749ff77287cfbc39f3f0 SHA1 6f46e63f24d7540ea86b066ee55351fe775a1f0f SHA256 90473e06242ba52c2e73f2a9729ad830e2baac0af1b2823e3b25ef0c83031999 DIST chromium-6.0.472.62.tar.bz2 123969547 RMD160 874411802d0aa4d7ed83967f2c6873682b764ba6 SHA1 960bdac068b9265fbc9cff41a773f9c0740d09bb SHA256 518400874f0b801a8a7954d3f90b2060c620979bab219237dc1fc56d8dcafeb6 DIST chromium-6.0.472.63.tar.bz2 123990097 RMD160 7931846fd581f76ba2039f82b64156a100614d44 SHA1 82045b1685706edc7be9182b99f2bcedb4b06da9 SHA256 029bb4f4a706fcb83e80c20b960415cd1fb01e5c634d72f0271e79c60bdec228 -DIST chromium-7.0.517.13.tar.bz2 231796785 RMD160 92d7bb87520720f96e7037233df21495d11651ac SHA1 f26b7d73b8cd6d1cc7c8d3177c0181abe2acf5f8 SHA256 6509cd01aae24fd20d23e849be524da2c9b90a90c12d5f170f0c9f66ca3c3e9d DIST chromium-7.0.517.24.tar.bz2 132373901 RMD160 c2251d3bf0ef8df0c16fb35e9b645e9049dd137c SHA1 39616cf5e224b2b742600f3f237b43a37ac5275f SHA256 5b7d0d0c577841d0d54799de377338813d118ceb3781135ed426a3eed6173c72 -EBUILD chromium-6.0.472.59.ebuild 6911 RMD160 37bb727178622b4dd73741378818fa5cda6f97f1 SHA1 c7b5077c9e850144c2299fec7cec673220039533 SHA256 f6803b7758eff412aed55b5b37f09b14f6fa59ba4ed5dbe64b85a6b3b2b7abb4 -EBUILD chromium-6.0.472.62-r1.ebuild 6877 RMD160 f6b2c50701755af7eb4d4c375e58f88775693191 SHA1 08154d77162153d8991eb66bd998d951d390080e SHA256 b97281c6767438b64e0cb2ad6a9a74e44f4d17d3f78b11090e5f8ba5756141aa +DIST chromium-7.0.536.2.tar.bz2 133853858 RMD160 4868dc4883eee054e2c7a088b41800665a3d88b9 SHA1 c9702dc88b5f3834696134c8ece4d136667558fd SHA256 25603f5ed54c5b1c4443d54e75a054736080aa1a9669a560f1249693f0d1095e EBUILD chromium-6.0.472.62.ebuild 6869 RMD160 4f789a1c899d639aed4f69a831dcd932ec690903 SHA1 07c983a01ba282fe0f9684c3a264de81e4623a16 SHA256 14d395f2840efe6d81b5f4225284af9084087c4ac429fcdbb0ddd05a3a0f9ffd -EBUILD chromium-6.0.472.63-r1.ebuild 6877 RMD160 fcfa60450162bea6a6b242719df2b24acec90b3f SHA1 a0c0b653ed66fbd1e576b9a310efda604daaf8d2 SHA256 858972e6d411f6631ce611f423f8254c7296624525079199878a9283edea4a86 EBUILD chromium-6.0.472.63.ebuild 6875 RMD160 868088280a7e82a3016c6feee15c61ea8e4b3237 SHA1 9f2a03a0592b51530595f35f24eea41b48a3a275 SHA256 54b9433c933f4faa90e1057baa29dd461e639931d2cacdb963996ed28f7e995c -EBUILD chromium-7.0.517.13.ebuild 6611 RMD160 5665ac4076f62ebb0c27293ea3c24f61f6ccd1d9 SHA1 07abd4100e462a86d5eead2656af3a1493d10133 SHA256 b669a85fcc2fe1bda59b5fb7c8b123403fc9c68d887f78616fe9053edbc3aef9 EBUILD chromium-7.0.517.24.ebuild 6611 RMD160 6a276a416a19c3a78a33112c25c87aed7bdd4a0b SHA1 508ad38752f50ce75efafea8e18fef052a8ba978 SHA256 7f941e6775455807469bf28cb1a3069a270e098c2f1ed248c084f47521d6a2c2 -EBUILD chromium-9999.ebuild 8194 RMD160 3b086928413004c0e69bfd669dda908b90ffb7df SHA1 26ea8eedabc5f3e1851d0322bd49092b3716b7f1 SHA256 99067c0bb6841a3b883215fceb5565e611b09c873aa33997ff68b641eb1e1a43 -MISC ChangeLog 41671 RMD160 5bc4d8b567e41516b8e4bf3a0249345661dbb10e SHA1 9f4e48f11abee233f655738e9eee657408ffaee6 SHA256 5e41426873cbfd552775cce307f3502ebc32d6af4c634344ad013a83c3533149 -MISC metadata.xml 267 RMD160 3a166415fec415d539c1b7c32ed40b188488b9fb SHA1 5c3d71a9cea27175cbe8c98369b42b79c8643c6c SHA256 4e6afae33f60d6752cacf2785f7f9a396b8711cce605b73d0d752a4af7d01fc8 +EBUILD chromium-7.0.536.2.ebuild 6596 RMD160 3781d3f8410b1322d3af8f1225b3336dda47fdd8 SHA1 6e3e10259b7a8ab4c15621bec4f8a11aa903399b SHA256 64681d6700a2ac87a8642e192d2a092ff4f0dcdc15c891ccf1676092f39fa076 +EBUILD chromium-9999.ebuild 8304 RMD160 6df667071aae9974fb976cdca740eafeed1d94c1 SHA1 306242aa316e67f1e160fe5cda624cc9789cac30 SHA256 b481c9b34b69ef0f56941bd51c907ea9db449762be03e5fcb60cddd098be1ddc +MISC ChangeLog 42172 RMD160 bfab89597d518026874638c8a5e658deb1f633fa SHA1 8ac5631380a118b12485676d2a26712937580999 SHA256 2ce24c04178316a704ef23242f30fecdbc09b0231b5cb7c526b49f94c9f45b15 +MISC metadata.xml 406 RMD160 d09b00979942b334a50d93a97fc0c871d9c12533 SHA1 6109fea03404526e0b794b2d3ab7a86cd2db0798 SHA256 1b13e11f0612543177e8def6184c785553183b77b6724d249a7557c64b6ead2a diff --git a/www-client/chromium/chromium-6.0.472.59.ebuild b/www-client/chromium/chromium-6.0.472.59.ebuild deleted file mode 100644 index d19f7156b31f..000000000000 --- a/www-client/chromium/chromium-6.0.472.59.ebuild +++ /dev/null @@ -1,226 +0,0 @@ -# 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-6.0.472.59.ebuild,v 1.3 2010/09/18 09:56:11 hwoarang Exp $ - -EAPI="2" - -inherit eutils flag-o-matic multilib pax-utils 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 gnome-keyring sse2" - -RDEPEND="app-arch/bzip2 - >=dev-libs/libevent-1.4.13 - >=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 - media-libs/jpeg:0 - media-libs/libpng - 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 - >=gnome-base/gnome-keyring-2.28.2 - sys-devel/flex" -RDEPEND+=" - || ( - x11-themes/gnome-icon-theme - x11-themes/oxygen-molecule - x11-themes/tango-icon-theme - x11-themes/xfce4-icon-theme - ) - x11-apps/xmessage - x11-misc/xdg-utils - virtual/ttf-fonts" - -get_chromium_home() { - echo "/usr/$(get_libdir)/chromium-browser" -} - -remove_bundled_lib() { - einfo "Removing bundled library $1 ..." - local out - out="$(find $1 -mindepth 1 \! -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 -} - -src_prepare() { - # Fix compilation, bug #332131. - epatch "${FILESDIR}"/${PN}-make-3.82-compatibility-r0.patch - - # Add Gentoo plugin paths. - epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch - - remove_bundled_lib "third_party/bzip2" - remove_bundled_lib "third_party/codesighs" - remove_bundled_lib "third_party/cros" - 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/lzma_sdk" - remove_bundled_lib "third_party/molokocacao" - remove_bundled_lib "third_party/ocmock" - remove_bundled_lib "third_party/py" - remove_bundled_lib "third_party/pyftpdlib" - remove_bundled_lib "third_party/simplejson" - remove_bundled_lib "third_party/tlslite" - # TODO: also remove third_party/libxml and third_party/libxslt when - # http://crbug.com/29333 is fixed. - # TODO: also remove third_party/zlib. For now the compilation fails if we - # remove it (minizip-related). -} - -src_configure() { - local myconf="" - - # Make it possible to build chromium on non-sse2 systems. - if use sse2; then - myconf="${myconf} -Ddisable_sse2=0" - else - myconf="${myconf} -Ddisable_sse2=1" - fi - - # Use system-provided libraries. - # TODO: use_system_ffmpeg (http://crbug.com/50678). - # TODO: use_system_libxml (http://crbug.com/29333). - # TODO: use_system_sqlite (http://crbug.com/22208). - # TODO: use_system_icu, use_system_hunspell (upstream changes needed). - # TODO: use_system_ssl when we have a recent enough system NSS. - myconf="${myconf} - -Duse_system_bzip2=1 - -Duse_system_libevent=1 - -Duse_system_libjpeg=1 - -Duse_system_libpng=1 - -Duse_system_zlib=1" - - # The dependency on cups is optional, see bug #324105. - if use cups; then - myconf="${myconf} -Duse_cups=1" - else - myconf="${myconf} -Duse_cups=0" - fi - - if use "gnome-keyring"; then - myconf="${myconf} -Dlinux_link_gnome_keyring=1" - else - # TODO: we should also disable code trying to dlopen - # gnome-keyring in that case. - myconf="${myconf} -Dlinux_link_gnome_keyring=0" - fi - - # Enable sandbox. - myconf="${myconf} - -Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox - -Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome" - - # Disable the V8 snapshot. It breaks the build on hardened (bug #301880), - # and the performance gain isn't worth it. - myconf="${myconf} -Dv8_use_snapshot=0" - - # Disable tcmalloc memory allocator. It causes problems, - # for example bug #320419. - myconf="${myconf} -Dlinux_use_tcmalloc=0" - - # Disable gpu rendering, it is incompatible with nvidia-drivers, - # bug #319331. - myconf="${myconf} -Denable_gpu=0" - - # Use target arch detection logic from bug #296917. - local myarch="$ABI" - [[ $myarch = "" ]] && myarch="$ARCH" - - if [[ $myarch = amd64 ]] ; then - myconf="${myconf} -Dtarget_arch=x64" - elif [[ $myarch = x86 ]] ; then - myconf="${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="${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="${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="${myconf} -Dwerror=" - - build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" -} - -src_compile() { - emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ - rootdir="${S}" \ - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - RANLIB="$(tc-getRANLIB)" \ - || die "compilation failed" -} - -src_install() { - dodir "$(get_chromium_home)" - - exeinto "$(get_chromium_home)" - pax-mark m out/Release/chrome - doexe out/Release/chrome - doexe out/Release/chrome_sandbox - fperms 4755 "$(get_chromium_home)/chrome_sandbox" - doexe out/Release/xdg-settings - doexe "${FILESDIR}"/chromium-launcher.sh - - insinto "$(get_chromium_home)" - doins out/Release/chrome.pak || die "installing chrome.pak failed" - doins out/Release/resources.pak || die "installing resources.pak failed" - - doins -r out/Release/locales - doins -r out/Release/resources - - # chrome.1 is for chromium --help - newman out/Release/chrome.1 chrome.1 - newman out/Release/chrome.1 chromium.1 - - doexe out/Release/ffmpegsumo_nolink || die - doexe out/Release/libffmpegsumo.so || die - - # Install icon and desktop entry. - newicon out/Release/product_logo_48.png ${PN}-browser.png - dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium - 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 "desktop file sed failed" - - # Install GNOME default application entry (bug #303100). - dodir /usr/share/gnome-control-center/default-apps - insinto /usr/share/gnome-control-center/default-apps - doins "${FILESDIR}"/chromium.xml -} diff --git a/www-client/chromium/chromium-6.0.472.62-r1.ebuild b/www-client/chromium/chromium-6.0.472.62-r1.ebuild deleted file mode 100644 index 09dac581122d..000000000000 --- a/www-client/chromium/chromium-6.0.472.62-r1.ebuild +++ /dev/null @@ -1,223 +0,0 @@ -# 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-6.0.472.62-r1.ebuild,v 1.2 2010/09/22 08:33:24 phajdan.jr Exp $ - -EAPI="2" - -inherit eutils flag-o-matic multilib pax-utils 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 gnome-keyring" - -RDEPEND="app-arch/bzip2 - >=dev-libs/libevent-1.4.13 - >=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 - media-libs/jpeg:0 - media-libs/libpng - cups? ( >=net-print/cups-1.4.4 ) - 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 - >=gnome-base/gnome-keyring-2.28.2 - sys-devel/flex" -RDEPEND+=" - || ( - x11-themes/gnome-icon-theme - x11-themes/oxygen-molecule - x11-themes/tango-icon-theme - x11-themes/xfce4-icon-theme - ) - x11-apps/xmessage - x11-misc/xdg-utils - virtual/ttf-fonts" - -get_chromium_home() { - echo "/usr/$(get_libdir)/chromium-browser" -} - -remove_bundled_lib() { - einfo "Removing bundled library $1 ..." - local out - out="$(find $1 -mindepth 1 \! -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 -} - -src_prepare() { - # Fix compilation, bug #332131. - epatch "${FILESDIR}"/${PN}-make-3.82-compatibility-r0.patch - - # Add Gentoo plugin paths. - epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch - - remove_bundled_lib "third_party/bzip2" - remove_bundled_lib "third_party/codesighs" - remove_bundled_lib "third_party/cros" - 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/lzma_sdk" - remove_bundled_lib "third_party/molokocacao" - remove_bundled_lib "third_party/ocmock" - remove_bundled_lib "third_party/py" - remove_bundled_lib "third_party/pyftpdlib" - remove_bundled_lib "third_party/simplejson" - remove_bundled_lib "third_party/tlslite" - # TODO: also remove third_party/libxml and third_party/libxslt when - # http://crbug.com/29333 is fixed. - # TODO: also remove third_party/zlib. For now the compilation fails if we - # remove it (minizip-related). -} - -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_ffmpeg (http://crbug.com/50678). - # TODO: use_system_libxml (http://crbug.com/29333). - # TODO: use_system_sqlite (http://crbug.com/22208). - # TODO: use_system_icu, use_system_hunspell (upstream changes needed). - # TODO: use_system_ssl when we have a recent enough system NSS. - myconf="${myconf} - -Duse_system_bzip2=1 - -Duse_system_libevent=1 - -Duse_system_libjpeg=1 - -Duse_system_libpng=1 - -Duse_system_zlib=1" - - # The dependency on cups is optional, see bug #324105. - if use cups; then - myconf="${myconf} -Duse_cups=1" - else - myconf="${myconf} -Duse_cups=0" - fi - - if use "gnome-keyring"; then - myconf="${myconf} -Dlinux_link_gnome_keyring=1" - else - # TODO: we should also disable code trying to dlopen - # gnome-keyring in that case. - myconf="${myconf} -Dlinux_link_gnome_keyring=0" - fi - - # Enable sandbox. - myconf="${myconf} - -Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox - -Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome" - - # Disable the V8 snapshot. It breaks the build on hardened (bug #301880), - # and the performance gain isn't worth it. - myconf="${myconf} -Dv8_use_snapshot=0" - - # Disable tcmalloc memory allocator. It causes problems, - # for example bug #320419. - myconf="${myconf} -Dlinux_use_tcmalloc=0" - - # Disable gpu rendering, it is incompatible with nvidia-drivers, - # bug #319331. - myconf="${myconf} -Denable_gpu=0" - - # Use target arch detection logic from bug #296917. - local myarch="$ABI" - [[ $myarch = "" ]] && myarch="$ARCH" - - if [[ $myarch = amd64 ]] ; then - myconf="${myconf} -Dtarget_arch=x64" - elif [[ $myarch = x86 ]] ; then - myconf="${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="${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="${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="${myconf} -Dwerror=" - - build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" -} - -src_compile() { - emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ - rootdir="${S}" \ - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - RANLIB="$(tc-getRANLIB)" \ - || die "compilation failed" -} - -src_install() { - dodir "$(get_chromium_home)" - - exeinto "$(get_chromium_home)" - pax-mark m out/Release/chrome - doexe out/Release/chrome - doexe out/Release/chrome_sandbox - fperms 4755 "$(get_chromium_home)/chrome_sandbox" - doexe out/Release/xdg-settings - doexe "${FILESDIR}"/chromium-launcher.sh - - insinto "$(get_chromium_home)" - doins out/Release/chrome.pak || die "installing chrome.pak failed" - doins out/Release/resources.pak || die "installing resources.pak failed" - - doins -r out/Release/locales - doins -r out/Release/resources - - # chrome.1 is for chromium --help - newman out/Release/chrome.1 chrome.1 - newman out/Release/chrome.1 chromium.1 - - doexe out/Release/ffmpegsumo_nolink || die - doexe out/Release/libffmpegsumo.so || die - - # Install icon and desktop entry. - newicon out/Release/product_logo_48.png ${PN}-browser.png - dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium - 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 "desktop file sed failed" - - # Install GNOME default application entry (bug #303100). - dodir /usr/share/gnome-control-center/default-apps - insinto /usr/share/gnome-control-center/default-apps - doins "${FILESDIR}"/chromium.xml -} diff --git a/www-client/chromium/chromium-6.0.472.63-r1.ebuild b/www-client/chromium/chromium-6.0.472.63-r1.ebuild deleted file mode 100644 index 25061fd82442..000000000000 --- a/www-client/chromium/chromium-6.0.472.63-r1.ebuild +++ /dev/null @@ -1,223 +0,0 @@ -# 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-6.0.472.63-r1.ebuild,v 1.1 2010/09/23 12:28:23 phajdan.jr Exp $ - -EAPI="2" - -inherit eutils flag-o-matic multilib pax-utils 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 gnome-keyring" - -RDEPEND="app-arch/bzip2 - >=dev-libs/libevent-1.4.13 - >=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 - media-libs/jpeg:0 - media-libs/libpng - cups? ( >=net-print/cups-1.4.4 ) - 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 - >=gnome-base/gnome-keyring-2.28.2 - sys-devel/flex" -RDEPEND+=" - || ( - x11-themes/gnome-icon-theme - x11-themes/oxygen-molecule - x11-themes/tango-icon-theme - x11-themes/xfce4-icon-theme - ) - x11-apps/xmessage - x11-misc/xdg-utils - virtual/ttf-fonts" - -get_chromium_home() { - echo "/usr/$(get_libdir)/chromium-browser" -} - -remove_bundled_lib() { - einfo "Removing bundled library $1 ..." - local out - out="$(find $1 -mindepth 1 \! -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 -} - -src_prepare() { - # Fix compilation, bug #332131. - epatch "${FILESDIR}"/${PN}-make-3.82-compatibility-r0.patch - - # Add Gentoo plugin paths. - epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch - - remove_bundled_lib "third_party/bzip2" - remove_bundled_lib "third_party/codesighs" - remove_bundled_lib "third_party/cros" - 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/lzma_sdk" - remove_bundled_lib "third_party/molokocacao" - remove_bundled_lib "third_party/ocmock" - remove_bundled_lib "third_party/py" - remove_bundled_lib "third_party/pyftpdlib" - remove_bundled_lib "third_party/simplejson" - remove_bundled_lib "third_party/tlslite" - # TODO: also remove third_party/libxml and third_party/libxslt when - # http://crbug.com/29333 is fixed. - # TODO: also remove third_party/zlib. For now the compilation fails if we - # remove it (minizip-related). -} - -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_ffmpeg (http://crbug.com/50678). - # TODO: use_system_libxml (http://crbug.com/29333). - # TODO: use_system_sqlite (http://crbug.com/22208). - # TODO: use_system_icu, use_system_hunspell (upstream changes needed). - # TODO: use_system_ssl when we have a recent enough system NSS. - myconf="${myconf} - -Duse_system_bzip2=1 - -Duse_system_libevent=1 - -Duse_system_libjpeg=1 - -Duse_system_libpng=1 - -Duse_system_zlib=1" - - # The dependency on cups is optional, see bug #324105. - if use cups; then - myconf="${myconf} -Duse_cups=1" - else - myconf="${myconf} -Duse_cups=0" - fi - - if use "gnome-keyring"; then - myconf="${myconf} -Dlinux_link_gnome_keyring=1" - else - # TODO: we should also disable code trying to dlopen - # gnome-keyring in that case. - myconf="${myconf} -Dlinux_link_gnome_keyring=0" - fi - - # Enable sandbox. - myconf="${myconf} - -Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox - -Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome" - - # Disable the V8 snapshot. It breaks the build on hardened (bug #301880), - # and the performance gain isn't worth it. - myconf="${myconf} -Dv8_use_snapshot=0" - - # Disable tcmalloc memory allocator. It causes problems, - # for example bug #320419. - myconf="${myconf} -Dlinux_use_tcmalloc=0" - - # Disable gpu rendering, it is incompatible with nvidia-drivers, - # bug #319331. - myconf="${myconf} -Denable_gpu=0" - - # Use target arch detection logic from bug #296917. - local myarch="$ABI" - [[ $myarch = "" ]] && myarch="$ARCH" - - if [[ $myarch = amd64 ]] ; then - myconf="${myconf} -Dtarget_arch=x64" - elif [[ $myarch = x86 ]] ; then - myconf="${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="${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="${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="${myconf} -Dwerror=" - - build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" -} - -src_compile() { - emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ - rootdir="${S}" \ - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - RANLIB="$(tc-getRANLIB)" \ - || die "compilation failed" -} - -src_install() { - dodir "$(get_chromium_home)" - - exeinto "$(get_chromium_home)" - pax-mark m out/Release/chrome - doexe out/Release/chrome - doexe out/Release/chrome_sandbox - fperms 4755 "$(get_chromium_home)/chrome_sandbox" - doexe out/Release/xdg-settings - doexe "${FILESDIR}"/chromium-launcher.sh - - insinto "$(get_chromium_home)" - doins out/Release/chrome.pak || die "installing chrome.pak failed" - doins out/Release/resources.pak || die "installing resources.pak failed" - - doins -r out/Release/locales - doins -r out/Release/resources - - # chrome.1 is for chromium --help - newman out/Release/chrome.1 chrome.1 - newman out/Release/chrome.1 chromium.1 - - doexe out/Release/ffmpegsumo_nolink || die - doexe out/Release/libffmpegsumo.so || die - - # Install icon and desktop entry. - newicon out/Release/product_logo_48.png ${PN}-browser.png - dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium - 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 "desktop file sed failed" - - # Install GNOME default application entry (bug #303100). - dodir /usr/share/gnome-control-center/default-apps - insinto /usr/share/gnome-control-center/default-apps - doins "${FILESDIR}"/chromium.xml -} diff --git a/www-client/chromium/chromium-7.0.517.13.ebuild b/www-client/chromium/chromium-7.0.536.2.ebuild index 55e513ab7781..269a18d281ff 100644 --- a/www-client/chromium/chromium-7.0.517.13.ebuild +++ b/www-client/chromium/chromium-7.0.536.2.ebuild @@ -1,6 +1,6 @@ # 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-7.0.517.13.ebuild,v 1.1 2010/09/27 09:53:11 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-7.0.536.2.ebuild,v 1.1 2010/10/01 08:34:59 phajdan.jr Exp $ EAPI="2" @@ -13,9 +13,10 @@ SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" -IUSE="cups gnome gnome-keyring" +IUSE="cups gnome gnome-keyring system-sqlite" RDEPEND="app-arch/bzip2 + system-sqlite? ( >=dev-db/sqlite-3.6.23.1[fts3,secure-delete] ) >=dev-libs/icu-4.4.1 >=dev-libs/libevent-1.4.13 dev-libs/libxml2 @@ -64,8 +65,9 @@ src_prepare() { # Add Gentoo plugin paths. epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch - # Make compile-time dependency on gnome-keyring optional, bug #332411. - epatch "${FILESDIR}"/${PN}-gnome-keyring-r0.patch + # Small fixes to the system-provided sqlite support, + # to be upstreamed. + epatch "${FILESDIR}"/${PN}-system-sqlite-r0.patch remove_bundled_lib "third_party/bzip2" remove_bundled_lib "third_party/codesighs" @@ -86,6 +88,11 @@ src_prepare() { remove_bundled_lib "third_party/tlslite" # 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 } src_configure() { @@ -97,7 +104,6 @@ src_configure() { # Use system-provided libraries. # TODO: use_system_ffmpeg (http://crbug.com/50678). - # TODO: use_system_sqlite (http://crbug.com/22208). # TODO: use_system_hunspell (upstream changes needed). # TODO: use_system_ssl when we have a recent enough system NSS. myconf+=" @@ -109,6 +115,10 @@ src_configure() { -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" @@ -133,10 +143,6 @@ src_configure() { # and the performance gain isn't worth it. myconf+=" -Dv8_use_snapshot=0" - # Disable tcmalloc memory allocator. It causes problems, - # for example bug #320419. - myconf+=" -Dlinux_use_tcmalloc=0" - # Use target arch detection logic from bug #296917. local myarch="$ABI" [[ $myarch = "" ]] && myarch="$ARCH" @@ -169,16 +175,11 @@ src_configure() { # the build to fail because of that. myconf+=" -Dwerror=" - build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die + build/gyp_chromium --depth=. ${myconf} || die } src_compile() { - emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - RANLIB="$(tc-getRANLIB)" \ - || die + emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die } src_install() { diff --git a/www-client/chromium/chromium-9999.ebuild b/www-client/chromium/chromium-9999.ebuild index 6dc49ff3f20e..5da0c86f5569 100644 --- a/www-client/chromium/chromium-9999.ebuild +++ b/www-client/chromium/chromium-9999.ebuild @@ -1,6 +1,6 @@ # 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-9999.ebuild,v 1.86 2010/09/23 12:31:25 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.87 2010/10/01 08:34:59 phajdan.jr Exp $ EAPI="2" @@ -15,9 +15,10 @@ EGCLIENT_REPO_URI="http://src.chromium.org/svn/trunk/src/" LICENSE="BSD" SLOT="0" KEYWORDS="" -IUSE="cups gnome gnome-keyring" +IUSE="cups gnome gnome-keyring system-sqlite" RDEPEND="app-arch/bzip2 + system-sqlite? ( >=dev-db/sqlite-3.6.23.1[fts3,secure-delete] ) >=dev-libs/icu-4.4.1 >=dev-libs/libevent-1.4.13 dev-libs/libxml2 @@ -109,6 +110,10 @@ src_prepare() { # Add Gentoo plugin paths. epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch + # Small fixes to the system-provided sqlite support, + # to be upstreamed. + epatch "${FILESDIR}"/${PN}-system-sqlite-r0.patch + remove_bundled_lib "third_party/bzip2" remove_bundled_lib "third_party/codesighs" remove_bundled_lib "third_party/cros" @@ -128,6 +133,11 @@ src_prepare() { remove_bundled_lib "third_party/tlslite" # 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 } src_configure() { @@ -139,7 +149,6 @@ src_configure() { # Use system-provided libraries. # TODO: use_system_ffmpeg (http://crbug.com/50678). - # TODO: use_system_sqlite (http://crbug.com/22208). # TODO: use_system_hunspell (upstream changes needed). # TODO: use_system_ssl when we have a recent enough system NSS. myconf+=" @@ -151,6 +160,10 @@ src_configure() { -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" @@ -175,10 +188,6 @@ src_configure() { # and the performance gain isn't worth it. myconf+=" -Dv8_use_snapshot=0" - # Disable tcmalloc memory allocator. It causes problems, - # for example bug #320419. - myconf+=" -Dlinux_use_tcmalloc=0" - # Use target arch detection logic from bug #296917. local myarch="$ABI" [[ $myarch = "" ]] && myarch="$ARCH" @@ -211,16 +220,11 @@ src_configure() { # the build to fail because of that. myconf+=" -Dwerror=" - build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die + build/gyp_chromium --depth=. ${myconf} || die } src_compile() { - emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - RANLIB="$(tc-getRANLIB)" \ - || die + emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die } src_install() { diff --git a/www-client/chromium/files/chromium-system-sqlite-r0.patch b/www-client/chromium/files/chromium-system-sqlite-r0.patch new file mode 100644 index 000000000000..1fa919769731 --- /dev/null +++ b/www-client/chromium/files/chromium-system-sqlite-r0.patch @@ -0,0 +1,50 @@ +--- third_party/sqlite/sqlite3.h.orig 2010-09-30 13:13:26.000000000 +0200 ++++ third_party/sqlite/sqlite3.h 2010-09-30 13:13:37.000000000 +0200 +@@ -14,7 +14,7 @@ + + // A no-op implementation of database preloading (not available + // when using system sqlite). +-int sqlite3Preload(sqlite3 *db) { return SQLITE_OK; } ++int sqlite3Preload(sqlite3 *db); + #else + #include "third_party/sqlite/preprocessed/sqlite3.h" + #endif +--- third_party/sqlite/sqlite.gyp.orig 2010-09-30 11:49:48.000000000 +0200 ++++ third_party/sqlite/sqlite.gyp 2010-09-30 11:51:38.000000000 +0200 +@@ -32,7 +32,7 @@ + }, + }], + ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and use_system_sqlite', { +- 'type': 'settings', ++ 'type': '<(library)', + 'direct_dependent_settings': { + 'cflags': [ + # This next command produces no output but it it will fail (and +@@ -54,6 +54,9 @@ + '<!@(pkg-config --libs-only-l sqlite3)', + ], + }, ++ 'sources': [ ++ 'stubs.cc', ++ ], + }, { # else: OS != "linux" or ! use_system_sqlite + 'product_name': 'sqlite3', + 'type': '<(library)', +--- /dev/null 2010-09-03 08:04:12.886666449 +0200 ++++ third_party/sqlite/stubs.cc 2010-09-30 11:53:35.000000000 +0200 +@@ -0,0 +1,5 @@ ++#include <sqlite3.h> ++ ++int sqlite3Preload(sqlite3 *db) { ++ return SQLITE_OK; ++} +--- chrome/chrome.gyp.orig 2010-10-01 06:57:23.000000000 +0200 ++++ chrome/chrome.gyp 2010-10-01 06:58:09.000000000 +0200 +@@ -1018,6 +1018,7 @@ + '_USE_32BIT_TIME_T', + ], + 'dependencies': [ ++ 'common', + '../skia/skia.gyp:skia', + '../third_party/libjingle/libjingle.gyp:libjingle', + 'browser/sync/protocol/sync_proto.gyp:sync_proto_cpp', diff --git a/www-client/chromium/metadata.xml b/www-client/chromium/metadata.xml index 47002a437f00..593fb01b9ed4 100644 --- a/www-client/chromium/metadata.xml +++ b/www-client/chromium/metadata.xml @@ -3,4 +3,8 @@ <pkgmetadata> <herd>chromium</herd> <longdescription>Chromium is the open-source web browser project behind Google Chrome</longdescription> + <use> + <flag name="system-sqlite">Use the system-wide <pkg>dev-db/sqlite</pkg> + installation with secure-delete enabled</flag> + </use> </pkgmetadata> |