diff options
author | 2013-02-22 14:25:03 +0000 | |
---|---|---|
committer | 2013-02-22 14:25:03 +0000 | |
commit | 459b92d73e0271dabc755e00e97c2d764b32ee93 (patch) | |
tree | d5619c73a587b6165b76bf3e86a60cb776777cee /www-client/chromium | |
parent | Version bump, thanks to Andreis Vinogradovs. Sync live ebuild (diff) | |
download | historical-459b92d73e0271dabc755e00e97c2d764b32ee93.tar.gz historical-459b92d73e0271dabc755e00e97c2d764b32ee93.tar.bz2 historical-459b92d73e0271dabc755e00e97c2d764b32ee93.zip |
Remove old
Package-Manager: portage-2.1.11.50/cvs/Linux x86_64
Manifest-Sign-Key: 0x7194459F
Diffstat (limited to 'www-client/chromium')
-rw-r--r-- | www-client/chromium/ChangeLog | 6 | ||||
-rw-r--r-- | www-client/chromium/Manifest | 36 | ||||
-rw-r--r-- | www-client/chromium/chromium-24.0.1312.56.ebuild | 515 | ||||
-rw-r--r-- | www-client/chromium/chromium-25.0.1364.68.ebuild | 529 | ||||
-rw-r--r-- | www-client/chromium/chromium-25.0.1364.84.ebuild | 529 |
5 files changed, 20 insertions, 1595 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index 6f13f1036bef..b7980a7ee5b2 100644 --- a/www-client/chromium/ChangeLog +++ b/www-client/chromium/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for www-client/chromium # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.812 2013/02/22 12:09:52 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.813 2013/02/22 14:24:57 ago Exp $ + + 22 Feb 2013; Agostino Sarubbo <ago@gentoo.org> -chromium-24.0.1312.56.ebuild, + -chromium-25.0.1364.68.ebuild, -chromium-25.0.1364.84.ebuild: + Remove old 22 Feb 2013; Agostino Sarubbo <ago@gentoo.org> chromium-25.0.1364.97.ebuild: Stable for x86, wrt bug #458644 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index 1624079031a0..a75830fd02d8 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX chromium-alignment-r0.patch 565 SHA256 c679dd4ea0ac6e8ac330372da63a5c821ec54ed704287c392195a4a60db41062 SHA512 a3c7626f8335fcb5b2fe4664916fa07bbd717b57088dafc7092fa11e9873a911162a146f3f5b8531c0ae338d794c669854d8672ee31f00ccf2313b4e663bb6e8 WHIRLPOOL 30003851a02fff863ae01a174cad95280a89fe866fc5af6e6c8cb8f66bdee3e5ad4f1def2b813a77430744b41ff8a753c23b5c1c1bae86e7c1dbe0e0ce23f8de AUX chromium-arm-r0.patch 554 SHA256 1031e3b6af80c85aabd752eefe26342269ba71c6e4abd0bc22519b337e6477b6 SHA512 8920b3a4a49a510132484dadcd9fa5d3c5015bc6995d35d6221ca6627cc9d40abe234e92e3bdfaa3435a31e7b5a51b568b7609ca83eecf6d0214e8da2b3cdbec WHIRLPOOL ddc52ae329b53fcc85ec68efb86fe9725b41499d970c8bb1d597c36cbe3f7d2a27a66748d3e28e7dfcf72aa65a8ab62dde5f9a53b80677aa2615619fc23ac28d @@ -34,36 +34,30 @@ AUX chromium-webkit-zlib-r0.patch 1750 SHA256 7a44c63d96b6fd4b12afcd06a81f410ff1 AUX chromium-zlib-r0.patch 511 SHA256 ec2795bfc47c516401fd2c9648caa3b06e64794392b41a11b2664d9968171534 SHA512 d06c7551d1976404b07f4cbcb5f385cbc565884d34d3fd49bd4c1c2b96e2b660f4d8f778c5f7ac9bd34d66ad46a1f1235d89f1c2b026fbc3bd9c2b7ab7087fc4 WHIRLPOOL a394e499ca1bb3304716087f1a7b6e91847fbc7425e6d0e1bad00acb9a0e8690559687726fe41d49031f51e3eccdcbcd290a27e366613dfce4d2e89aab92375d AUX chromium.default 147 SHA256 de16d72d77ac9fe04f781df4f50dfb714ba33574755932df950c1d9472b589d9 SHA512 26cdfd05da7f33ba94cd710ae52a1b345cdea4928500af791cff10ca8f9f44036497d9520f690d4d40be5774e77cf9be77f21233b7f804b1dee7d81b8382a9fa WHIRLPOOL 162deb65f97efca4db35dae64e46e0cd21d02a3dd1ae0ec6fa2f9ee7660fbeeb771a1afa3d07cb0d904cd8d7c16ff4b462bc6be3cf9a4143833e909ab89ac5fd AUX dot-gclient 253 SHA256 8c5750251ff681044cc584ef3768fe39c56c7877ade5fb9107298734126e62cf SHA512 96d4ffd01fec2773d7beaf2bc82b8eb969556f6e859e39136b4044521c5b8bfd36c13a7f2fcc64613935d4703d8ede8a56c7ce581a7732642cb8ee71039c801e WHIRLPOOL 6a65521487fa353a22f192c567b487c77a405e068c88898e0d8045b3de26bdd54ed736f104e495598e0cc8703d3f6abc80f8b2ea1e254007dfb18f50294e8c07 -DIST chromium-24.0.1312.56.tar.bz2 186319895 SHA256 120bc74c72498916f44efebe32703e2a52e45ba7e6c536f465144816270b2c11 SHA512 4446396da443daa408a7fa23c721ab0a8331b9bf2ecc11ad072e4e98a2aa6968dce47a5fa58521e08215a6ea35e66b6032a94103a1c2b0df40fb1de5816e7a8b WHIRLPOOL f6850adfa853e217bf33c43b8b15e5446a1688527f53ef31855d019c16092a524b6a31342db713d4af10cbed54d59dddfbc36c3c9f9b32eba87526b89cbfe593 -DIST chromium-25.0.1364.68-lite.tar.bz2 125813064 SHA256 06516106a90ec7e14fb70edb314a3b6d4456ba1b311e4e9449b512900e9eaea5 SHA512 889aabe3a21b5697c1d4054bda6290d12f0c4ff97894d56d02c6318d51ee7017838d3f395416fcbc10e9bd22aee9c5a2b3826699118b6415b5c1eddae014db5c WHIRLPOOL 7ee341518d9347b4402c29e9b3ee91a3ca6df854efdd426cbc07305d40a0900f49a11c8600c0658d9313a1d01d24fa782b414d314fa24a8d349b3d19645be475 -DIST chromium-25.0.1364.84-lite.tar.bz2 125683439 SHA256 1375f8d8856399c872f749a384d7ec51ba0e6e1e79b13c24edfe7933891f23b9 SHA512 1b8cb9c6fec938ad1c98460e6fd86d7cf80b4584db7fc3f0c35ccc28e20f88135de97154cf67fd09ba959c9a05b391b837e03922b3ea5fcb629a04e17c31eb77 WHIRLPOOL 3a7b690aad4446504a0166cdd92c87544cf663f8cf7ec1c46ebdaf017d3b57a3a58eed5efc01e7f3c2d0a89972ef3e6b98449cf51f14b3d25d916bb71715c96f DIST chromium-25.0.1364.97-lite.tar.bz2 125698044 SHA256 f39861718cc1a0bde0ffbe15ce7957404881f0881640eb3fd2f92e2f344a20d2 SHA512 7bc1f3cd31059aba3ed12e89b90139f2dfefb0b7a57557372602eb14281ff64d259f0b973c37d7c4e2d12af1698b3a701115c7d4b8ca3e6cc104d7edcbf2a5ba WHIRLPOOL 56dad03ffc44f25170d220794b46a545fb6a5ad19670ed5ef3d855a39e77aea917032838cfa4c377db716ef5cf2701bc7eb70bbf4c545317ccebc4f536222a8d DIST chromium-26.0.1403.0.tar.xz 140497404 SHA256 8eef12f629a22220e79797ed7c716a805f920092b46ca64b364fdb21db803d2e SHA512 a9160797e2996d2aa87d1f219ef323c43fddc3ea9db909e1d327c59fa7164f8f453fa0c381647daf09d78a1cc968a9a059a1ca700dfdf44e282934f7c364f16c WHIRLPOOL 6312ca67494008d23ce273d6f2572e949e734bf0b440954c53a3a9d7f4c194dcd7ade8f522824a142420779224b529fe26420d6a159bbb6a9249c6d8413d90b4 DIST chromium-26.0.1410.5.tar.xz 140737820 SHA256 235c2cceee85412459b8c80995777dd38f895210e8b68490a41fb94b7040acbf SHA512 f00a3b90fad051023b3e34b8b5ca248ccfd9e27b396ccc826a24a0e6ac6ca9548ab1c26b9b4d3d3462508c5dca58c53c00ccf5c81558b6040eaaab2d6ad2e994 WHIRLPOOL f08714b42391c55fa6719bab54200bdafdc4aaa9cc108ca40f8b046ddae544f315deebc09419dc34bb650ce098e013c6a4e0e64a889275b852c74faa918abefd -EBUILD chromium-24.0.1312.56.ebuild 15894 SHA256 2c424357982477c1abb83d0e9bd6debc5a3f63d86c457a3ca449ec1f4c65d698 SHA512 89699bacea4c51ad0e123d08a71358809cba030f1ae87b57c7eca2530b6b849b7118169c0c9fad485ccb637a0c8080633f6262bedbcd8b47c6eeb3d5c9deda6e WHIRLPOOL d01b505a2603d48bea2801f6b92ce1ab22a35b32ed43597e4bd772c243a5e6cb352572d6ec202f27dacee4b9533f788d27e31c02818de84729d8459e1ff7b980 -EBUILD chromium-25.0.1364.68.ebuild 16223 SHA256 2536b65035fa8ee2bc14ebd5370905359a9dd3c6982522a5e62b84cb498e671c SHA512 50ec63147c55df0f6cce44ddcdcf8d42d0b0291912f1d248b3382dc419404df93af536c357429164878f7225f0120c89423b8da14703d1bfa7238794be67c5d9 WHIRLPOOL cc3a2a7eb7e68511e4cfc94dc0a4c3c5200a0ab1fd2a728f41481a3fb07d49cc19c7abded6e072971ea10d9d6ac6fc192232111372fb86433c86ccec6545a505 -EBUILD chromium-25.0.1364.84.ebuild 16223 SHA256 38be592a68aa2714f5bc22fb3fdd83551dc674aea4f8219344069e3f7069fc2f SHA512 b20b069b6dea4bea89fa089279503495f06cef1ece277c4b2fd0934c4983cc8a823ee82f0b7dffe6141081f962da10309e500fb4079ec8b17317a57664fac6a0 WHIRLPOOL 969717ca5c5bd8b7ad8d096a050daa479750740bfe1f4968f9f931a3d534e6d666574470490961e5198fbc6cec62bcd4d8e824dc3c705f33bf307ffa2804fdd6 EBUILD chromium-25.0.1364.97.ebuild 16217 SHA256 e24e128b98d30457d34f87eea73cad3bad3149dfcb34ee27d59279fac277516d SHA512 5e718c82d9653719df8ec4bb23781ec593a25c349f68316cb2591f2797e3baa5674ccc22b8c6e5ac5eb6657ba62a3b422c8d9ec958a7eb8f7b7542c6a57921e0 WHIRLPOOL de343741d0bf1160b27abc02b65d971c4acb73c3aabf17215e20cf6bb3048d78f52c4ff634a66c2ee363b3b5285c21ecf0da7e0ba12be13f7cbc35140560c711 EBUILD chromium-26.0.1403.0.ebuild 15453 SHA256 6be653a9116e254f2c6f68eb03f1c378001cd2b5cd207986774f25a1bbbfb7a8 SHA512 57b7bf7690a538a9dda974a27f0a46f2ecfe200cd326ff72d26f5a14a44bd06a1766166fff3c2cb060182fc49653da23ab8ef61d925e35167ee4c362454d6932 WHIRLPOOL 4a78c59ead9c031b1c0d15e72e07d068589159f19e22974e3ae7af712c31561d862179ae62a4b935771d91c8c5a0c35eafdb5f21222630671b5a4bc77541076e EBUILD chromium-26.0.1410.5.ebuild 15659 SHA256 1e7c5510a77d8d4cf8ed27a5a986907ee8bc9c21c90544c26135e4862d552316 SHA512 642f9476092f95a13ff824f9c251d0f2eb10a0e2f0efec4f44712ec9833430477fdb16edc358cc1a12639fac7ed68b5b345b09c74ed539fcab160bbb0fdc541e WHIRLPOOL 77c9b8a000d3786494d3648ba76843686c94bf31670191bb07e8abcd24b53798486bc1d46db0fa9654fb6a0be330a5a7fbf1ec168ee07d26ae69c5b40a966ada EBUILD chromium-9999-r1.ebuild 17402 SHA256 c0f03749e881c716887a429a97e795bb3d058b35f02cb04c31acdf9f2d25ba6a SHA512 0330ba0a0a932bf7164d6bf3009310ab90d70d6d69f94df8480b095e3d218dc87b04270da5e86798d9958e81a62fc134be147bbb2ad1b1c342d45cbadd8dec6e WHIRLPOOL 539a7bed9f69a2ae4372741ccea2c7832dc84cb8604f66e607419d94fd43a6f9c0559c9921ada61e0a9ad2c4108252498457ee214a66e061a25dda2b079976f4 -MISC ChangeLog 54594 SHA256 c30ac471b804641bf2c334e96c6cadc76c9a8e69f8fc5eb05f1fa3f3afed2ab3 SHA512 d9d4d5c4c33780fe67afceb6ddad71ffd87238e3cd74437400fc171e9a118ceca123370d77a1e2a965b4426489ebc573aff637fbfbbf6451bdd94b11293e4571 WHIRLPOOL 082f22a2354f5dfa9c94720a1e334defba8ca4d717524955f92a2988acd153f75f166f66ddba82adf329b0eb0409304d357f813b9e8a510a7d2f36971afce86b +MISC ChangeLog 54752 SHA256 26875ffddfa5e5237521ed43eac1d16be5e6bfb6f26cbe6c90dbad1ad7e0c4a3 SHA512 8641e88749746d4edced79e178762bc4032f6af16f7370581e54da95312021e449539dabf6e3c010353810ff88a5e5e1616ea979d40145edbd9b6b31e817f3ee WHIRLPOOL 80495e5aeadcf2468aec7ae49c3ce35cba2270bebfbfb8f6010f32920e163c2ed377e57974705e40eacb33289c4790f53dd09c61ddc05582b51803d12a9b08e1 MISC ChangeLog-2011 114031 SHA256 e2c2c75785c5eaf78b6efe01e357279cbb7be0c89d00b4053f475e963916fa54 SHA512 8e14759348333bdbd7c338080472789d7bbb1ece1ca5817bac6306bdcb33dda1e23bf3055cbb3b7bcee9362b6900bba1ace7ba73f353570a74d3ed761c9198cc WHIRLPOOL 810b6423c53f892a4b0964380b8190dec2a8783d560a9cb0baec93a77d879186201055382ca05975ae242e16728529ae85445db003fdd425355292d17817157b MISC metadata.xml 516 SHA256 e5ca0cf3ef65ca054555c35bbb492d02b40138a907fae82aaa236f774fdef32f SHA512 580852722eb6ce8c660ea05b4b9a6a6ca04582c1438401e92425b6733e7a9423f048818153f59394081df6f89bee349da2b3c97a61e030f995df5ae00bc41b58 WHIRLPOOL 03ac4c1574b769bdeebe082281809af638223bdcbdea1bc2faef86f484e0f26298be769f6311023642257d49eb3d31f223c445b07dba5c6aa699775fcedff8ad -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCgAGBQJRJ2APAAoJELp701BxlEWf9M8P/A+qVIe7aioKDPLMbitNyVfK -2w54HESrZV3fS7DRS3q15coEb+ztwOrDyf3um8/voeloyDHfwrg2MCel3SSToO9L -oT4k/iNrAEXVzYmWE6/MzDaKj69INRLOCMT3ZT2K/3jFj14rbj7fNVM0OL0RswA7 -DQ9TNfk+roeAOaUdST4PGzq0kt2pI5J3P9tsMTarL+8VYsyb5ITxzTOipYo3PpsZ -1hDVxn/c4zbblfPIUh7FhAqxmS5/i6g0AgIxu1jnqYHE3QXaHX83mS9b0Z+KJD/r -eFos74wqThpkwqYj3b9f9vV1xGzuu/U4m5NLWwbWyEtX9p3zbtlC1cYiD61cg07w -olUql8+lM9VWe1I3aczS8qTAKaqhcKusQW8XwkafEcRtCRyLkm+TJ2xxOHlIhKt2 -7hm0v0Vmbzf/7ziVda+UsoJYzJldWD4whex14pU2wYEmyE9XjmcaF4F2UfGQeU2q -4JQPym5weYibWzj/PLf9GWhLTZGBZipNbFbztW7GeE0AgPcGu5MMPkkCJF/VzoLY -cT7+r1oBXjLsdSJcW3dzEfpqjOHaSpZJbtgKsrVLFVfwwRwtgsE+tO8AKF3T2s+d -h09vzM4dmXMQUPm5B4ux7ygCj+C3j2zTgCMC8YGajvJ9Dl7QtOgy8JaytDjMGuD/ -WC6Zx1YOLO4Q+0PUVLhY -=2TgC +iQIcBAEBCAAGBQJRJ3+9AAoJELp701BxlEWfMJQP/2LzBWly1Cos6V+fpbuZqwHk +r6dSjMs93Ey4pmxQ9vWZ8as48FU83RGKRO50CaTsJP/advh328L5xf/NYuIggMea +gzC8tzWSKEqwmk5mZUvxTHUMplVrX6y37PQIDS7ZrNmiHdpYZsY9lqEd9OHg83Yz +bkgEQv1a5XL0hzxiaeQ8UoyWZ9+3E2edhkDMkAU57SgnBJSegX4fPyAOGYEThU7B +WodrTf+RG4hysFrffDF5w3Zo0K1rYAK077GjolZbLDlYtvUydjYqyy8aVhOKDgMN +NXlHkBqXDCSkg2uvdhLASQ88hSpqRwooGLIW92zeLUUMWONoeVw/L5IYllJQFCB4 +ZHISu8t2MsxlE8ICJkZBFk0GDJursrcOW/qM4BBlhQ879V0MQc3TLjXmgpMJJEaA +PjWXn0fcsBrrVVqO3q0IQrgVBsk4f7D8cDH2mjg93HBLW2vr3R8BqdN30hSwTpV0 +5qa7A+CGc0gLZUGSYqYK2lffIkIVN98eYuzylBgpju5tLuotsoHqefrRtqwfVhLY +iA0YNVMScBeJsNYnLMcrb7xjGiG5buAIBq5HSMN6FuXFhEGQfpIEiyAqMM4YFMMQ +U3jYckL1658VlXldg3Mg3NgaMbUFPh3pvaRjSUHm7uJVfOapOg6shJV0JbG4pYDL +8Kg5GtGwNKpwLlH1k5Oa +=9h2Q -----END PGP SIGNATURE----- diff --git a/www-client/chromium/chromium-24.0.1312.56.ebuild b/www-client/chromium/chromium-24.0.1312.56.ebuild deleted file mode 100644 index 21c06089e86d..000000000000 --- a/www-client/chromium/chromium-24.0.1312.56.ebuild +++ /dev/null @@ -1,515 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-24.0.1312.56.ebuild,v 1.4 2013/02/06 03:47:06 floppym Exp $ - -EAPI="5" -PYTHON_DEPEND="2:2.6" - -CHROMIUM_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 ms nb nl pl pt_BR pt_PT ro ru sk sl sr - sv sw ta te th tr uk vi zh_CN zh_TW" - -inherit chromium eutils flag-o-matic multilib \ - pax-utils portability python toolchain-funcs versionator virtualx - -DESCRIPTION="Open-source version of Google Chrome web browser" -HOMEPAGE="http://chromium.org/" -SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux tcmalloc" - -RDEPEND="app-arch/bzip2 - cups? ( - dev-libs/libgcrypt - >=net-print/cups-1.3.11 - ) - >=dev-lang/v8-3.14.5:= - <dev-lang/v8-3.16.11 - >=dev-libs/elfutils-0.149 - dev-libs/expat - >=dev-libs/icu-49.1.1-r1 - >=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 - >=media-libs/libjpeg-turbo-1.2.0-r1 - media-libs/libpng - media-libs/libvpx - >=media-libs/libwebp-0.2.0_rc1 - media-libs/opus - media-libs/speex - pulseaudio? ( media-sound/pulseaudio ) - sys-apps/dbus - sys-libs/zlib[minizip] - virtual/udev - virtual/libusb:1 - x11-libs/gtk+:2 - x11-libs/libXinerama - x11-libs/libXScrnSaver - x11-libs/libXtst - kerberos? ( virtual/krb5 ) - selinux? ( - sec-policy/selinux-chromium - sys-libs/libselinux - )" -DEPEND="${RDEPEND} - !arm? ( - >=dev-lang/nacl-toolchain-newlib-0_p9093 - dev-lang/yasm - ) - dev-lang/perl - dev-python/ply - dev-python/simplejson - >=dev-util/gperf-3.0.3 - >=sys-devel/bison-2.4.3 - sys-devel/flex - >=sys-devel/make-3.81-r2 - virtual/pkgconfig - test? ( dev-python/pyftpdlib )" -RDEPEND+=" - !=www-client/chromium-9999 - x11-misc/xdg-utils - virtual/ttf-fonts" - -if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then - EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; -fi - -pkg_setup() { - if [[ "${SLOT}" == "0" ]]; then - CHROMIUM_SUFFIX="" - else - CHROMIUM_SUFFIX="-${SLOT}" - fi - CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" - - # 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 - - if ! use selinux; then - chromium_suid_sandbox_check_kernel_config - fi - - 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() { - if ! use arm; then - ebegin "Preparing NaCl newlib toolchain" - pushd "${T}" >/dev/null || die - mkdir sdk || die - cp -a /usr/$(get_libdir)/nacl-toolchain-newlib sdk/nacl-sdk || die - mkdir -p "${S}"/native_client/toolchain/.tars || die - tar czf "${S}"/native_client/toolchain/.tars/naclsdk_linux_x86.tgz sdk || die - popd >/dev/null || die - eend $? - fi - - # 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}.h || die - - epatch "${FILESDIR}/${PN}-arm-r0.patch" - - # Fix build without NaCl glibc toolchain. - epatch "${FILESDIR}/${PN}-ppapi-r0.patch" - - # Fix build without NaCl pnacl toolchain. - epatch "${FILESDIR}/${PN}-no-pnacl-r0.patch" - - # Missing gyp files in tarball. - # https://code.google.com/p/chromium/issues/detail?id=144823 - if [[ -e chrome/test/data/nacl/nacl_test_data.gyp ]]; then - die "tarball fixed, please remove workaround" - fi - - mkdir -p chrome/test/data/nacl - cat > chrome/test/data/nacl/nacl_test_data.gyp <<-EOF - { - 'targets': [ - { - 'target_name': 'nacl_tests', - 'type': 'none', - }, - ], - } - EOF - - 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/cros_system_api/*' \ - \! -path 'third_party/ffmpeg/*' \ - \! -path 'third_party/flac/flac.h' \ - \! -path 'third_party/flot/*' \ - \! -path 'third_party/gpsd/*' \ - \! -path 'third_party/harfbuzz/*' \ - \! -path 'third_party/harfbuzz-ng/*' \ - \! -path 'third_party/hunspell/*' \ - \! -path 'third_party/hyphen/*' \ - \! -path 'third_party/iccjpeg/*' \ - \! -path 'third_party/jsoncpp/*' \ - \! -path 'third_party/khronos/*' \ - \! -path 'third_party/leveldatabase/*' \ - \! -path 'third_party/libjingle/*' \ - \! -path 'third_party/libphonenumber/*' \ - \! -path 'third_party/libsrtp/*' \ - \! -path 'third_party/libusb/libusb.h' \ - \! -path 'third_party/libva/*' \ - \! -path 'third_party/libvpx/libvpx.h' \ - \! -path 'third_party/libxml/chromium/*' \ - \! -path 'third_party/libXNVCtrl/*' \ - \! -path 'third_party/libyuv/*' \ - \! -path 'third_party/lss/*' \ - \! -path 'third_party/mesa/*' \ - \! -path 'third_party/modp_b64/*' \ - \! -path 'third_party/mongoose/*' \ - \! -path 'third_party/mt19937ar/*' \ - \! -path 'third_party/npapi/*' \ - \! -path 'third_party/openmax/*' \ - \! -path 'third_party/opus/opus.h*' \ - \! -path 'third_party/ots/*' \ - \! -path 'third_party/protobuf/*' \ - \! -path 'third_party/pywebsocket/*' \ - \! -path 'third_party/qcms/*' \ - \! -path 'third_party/re2/*' \ - \! -path 'third_party/scons-2.0.1/*' \ - \! -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/trace-viewer/*' \ - \! -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/widevine/*' \ - -delete || die - - local v8_bundled="$(chromium_bundled_v8_version)" - local v8_installed="$(chromium_installed_v8_version)" - einfo "V8 version: bundled - ${v8_bundled}; installed - ${v8_installed}" - - # Remove bundled v8. - find v8 -type f \! -iname '*.gyp*' -delete || die - - # 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 -} - -src_configure() { - local myconf="" - - # Never tell the build system to "enable" SSE2, it has a few unexpected - # additions, bug #336871. - myconf+=" -Ddisable_sse2=1" - - # Optional tcmalloc. Note it causes problems with e.g. NVIDIA - # drivers, bug #413637. - myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)" - - # Disable glibc Native Client toolchain, we don't need it (bug #417019). - myconf+=" -Ddisable_glibc=1" - - # TODO: also build with pnacl - myconf+=" -Ddisable_pnacl=1" - - # Make it possible to remove third_party/adobe. - echo > "${T}/flapper_version.h" || die - myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" - - # Use system-provided libraries. - # TODO: use_system_ffmpeg - # TODO: use_system_hunspell (upstream changes needed). - # TODO: use_system_libsrtp (bug #348600). - # TODO: use_system_ssl (http://crbug.com/58087). - # TODO: use_system_sqlite (http://crbug.com/22208). - 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_libusb=1 - -Duse_system_libvpx=1 - -Duse_system_libwebp=1 - -Duse_system_libxml=1 - -Duse_system_minizip=1 - -Duse_system_opus=1 - -Duse_system_speex=1 - -Duse_system_v8=1 - -Duse_system_xdg_utils=1 - -Duse_system_yasm=1 - -Duse_system_zlib=1" - - # Optional dependencies. - # TODO: linux_link_kerberos, bug #381289. - myconf+=" - $(gyp_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) - $(gyp_use pulseaudio) - $(gyp_use selinux selinux)" - - # Use explicit library dependencies instead of dlopen. - # This makes breakages easier to detect by revdep-rebuild. - myconf+=" - -Dlinux_link_gsettings=1" - - if ! use selinux; then - # Enable SUID sandbox. - myconf+=" - -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox - -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" - fi - - # Never use bundled gold binary. Disable gold linker flags for now. - myconf+=" - -Dlinux_use_gold_binary=0 - -Dlinux_use_gold_flags=0" - - if ! use bindist; then - # Enable H.624 support in bundled ffmpeg. - myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome" - fi - - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . - # Note: these are for Gentoo use ONLY. For your own distribution, - # please get your own set of keys. Feel free to contact chromium@gentoo.org - # for more info. - myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc - -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com - -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu" - - 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: re-enable NaCl (NativeClient). - myconf+=" -Dtarget_arch=arm - -Darmv7=0 - -Darm_neon=0 - -Ddisable_nacl=1" - 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 CFLAGS problems, bug #352457, bug #390147. - if ! use custom-cflags; then - replace-flags "-Os" "-O2" - strip-flags - fi - - egyp_chromium ${myconf} || die -} - -src_compile() { - local test_targets - for x in base cacheinvalidation crypto \ - googleurl gpu media net printing sql; do - test_targets+=" ${x}_unittests" - done - - local make_targets="chrome chromedriver" - if ! use selinux; then - make_targets+=" chrome_sandbox" - fi - if use test; then - make_targets+=$test_targets - fi - - # See bug #410883 for more info about the .host mess. - emake ${make_targets} BUILDTYPE=Release V=1 \ - CC.host="$(tc-getCC)" CFLAGS.host="${CFLAGS}" \ - CXX.host="$(tc-getCXX)" CXXFLAGS.host="${CXXFLAGS}" \ - LINK.host="$(tc-getCXX)" LDFLAGS.host="${LDFLAGS}" \ - AR.host="$(tc-getAR)" || die - - pax-mark m out/Release/chrome - if use test; then - for x in $test_targets; do - pax-mark m out/Release/${x} - done - 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 - - runtest() { - local cmd=$1 - shift - local filter="--gtest_filter=$(IFS=:; echo "-${*}")" - einfo "${cmd}" "${filter}" - LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "${filter}" - } - - local excluded_base_unittests=( - "ICUStringConversionsTest.*" # bug #350347 - "MessagePumpLibeventTest.*" # bug #398591 - ) - runtest out/Release/base_unittests "${excluded_base_unittests[@]}" - - runtest out/Release/cacheinvalidation_unittests - runtest out/Release/crypto_unittests - runtest out/Release/googleurl_unittests - runtest out/Release/gpu_unittests - - # TODO: re-enable when we get the test data in a separate tarball. - # runtest out/Release/media_unittests - - # local excluded_net_unittests=( - # "NetUtilTest.IDNToUnicode*" # bug 361885 - # "NetUtilTest.FormatUrl*" # see above - # "DnsConfigServiceTest.GetSystemConfig" # bug #394883 - # "CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269 - # "URLFetcher*" # bug #425764 - # "HTTPSOCSPTest.*" # bug #426630 - # "HTTPSEVCRLSetTest.*" # see above - # "HTTPSCRLSetTest.*" # see above - #) - # runtest out/Release/net_unittests "${excluded_net_unittests[@]}" - - runtest out/Release/printing_unittests - runtest out/Release/sql_unittests -} - -src_install() { - exeinto "${CHROMIUM_HOME}" - doexe out/Release/chrome || die - - if ! use selinux; then - doexe out/Release/chrome_sandbox || die - fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" - fi - - doexe out/Release/chromedriver || die - - if ! use arm; then - doexe out/Release/nacl_helper{,_bootstrap} || die - insinto "${CHROMIUM_HOME}" - doins out/Release/nacl_irt_*.nexe || die - doins out/Release/libppGoogleNaClPluginChrome.so || die - fi - - newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die - if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then - sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \ - -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die - sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \ - -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die - sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \ - -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die - fi - - # 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${CHROMIUM_SUFFIX} || die - # keep the old symlink around for consistency - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die - - # Allow users to override command-line options, bug #357629. - dodir /etc/chromium || die - insinto /etc/chromium - newins "${FILESDIR}/chromium.default" "default" || die - - pushd out/Release/locales > /dev/null || die - chromium_remove_language_paks - popd - - insinto "${CHROMIUM_HOME}" - doins out/Release/*.pak || die - - doins -r out/Release/locales || die - doins -r out/Release/resources || die - - newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die - newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die - - doexe out/Release/libffmpegsumo.so || die - - # Install icons and desktop entry. - local branding size - for size in 16 22 24 32 48 64 128 256 ; do - case ${size} in - 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; - *) branding="chrome/app/theme/chromium" ;; - esac - newicon -s ${size} "${branding}/product_logo_${size}.png" \ - chromium-browser${CHROMIUM_SUFFIX}.png - done - - local mime_types="text/html;text/xml;application/xhtml+xml;" - mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 - mime_types+="x-scheme-handler/ftp;" # bug #412185 - mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 - make_desktop_entry \ - chromium-browser${CHROMIUM_SUFFIX} \ - "Chromium${CHROMIUM_SUFFIX}" \ - chromium-browser${CHROMIUM_SUFFIX} \ - "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 - newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die - if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then - sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ - "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml - fi - fi -} diff --git a/www-client/chromium/chromium-25.0.1364.68.ebuild b/www-client/chromium/chromium-25.0.1364.68.ebuild deleted file mode 100644 index d058e9dbaeaa..000000000000 --- a/www-client/chromium/chromium-25.0.1364.68.ebuild +++ /dev/null @@ -1,529 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-25.0.1364.68.ebuild,v 1.1 2013/02/06 02:32:42 floppym Exp $ - -EAPI="5" -PYTHON_DEPEND="2:2.6" - -CHROMIUM_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 ms nb nl pl pt_BR pt_PT ro ru sk sl sr - sv sw ta te th tr uk vi zh_CN zh_TW" - -inherit chromium eutils flag-o-matic multilib \ - pax-utils portability python toolchain-funcs versionator virtualx - -DESCRIPTION="Open-source version of Google Chrome web browser" -HOMEPAGE="http://chromium.org/" -SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}-lite.tar.bz2" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux system-ffmpeg tcmalloc" - -RDEPEND="app-accessibility/speech-dispatcher - app-arch/bzip2 - cups? ( - dev-libs/libgcrypt - >=net-print/cups-1.3.11 - ) - >=dev-lang/v8-3.15.11.1:= - >=dev-libs/elfutils-0.149 - dev-libs/expat - >=dev-libs/icu-49.1.1-r1 - >=dev-libs/libevent-1.4.13 - dev-libs/libxml2[icu] - dev-libs/libxslt - >=dev-libs/nss-3.12.3 - dev-libs/protobuf - 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 - media-libs/harfbuzz - >=media-libs/libjpeg-turbo-1.2.0-r1 - media-libs/libpng - media-libs/libvpx - >=media-libs/libwebp-0.2.0_rc1 - media-libs/opus - media-libs/speex - pulseaudio? ( media-sound/pulseaudio ) - system-ffmpeg? ( >=media-video/ffmpeg-1.0 ) - >=net-libs/libsrtp-1.4.4_p20121108 - sys-apps/dbus - sys-apps/pciutils - sys-libs/zlib[minizip] - virtual/udev - virtual/libusb:1 - x11-libs/gtk+:2 - x11-libs/libXinerama - x11-libs/libXScrnSaver - x11-libs/libXtst - kerberos? ( virtual/krb5 ) - selinux? ( - sec-policy/selinux-chromium - sys-libs/libselinux - )" -DEPEND="${RDEPEND} - !arm? ( - >=dev-lang/nacl-toolchain-newlib-0_p9093 - dev-lang/yasm - ) - dev-lang/perl - dev-python/ply - dev-python/simplejson - >=dev-util/gperf-3.0.3 - sys-apps/hwids - >=sys-devel/bison-2.4.3 - sys-devel/flex - >=sys-devel/make-3.81-r2 - virtual/pkgconfig - test? ( dev-python/pyftpdlib )" -RDEPEND+=" - !=www-client/chromium-9999 - x11-misc/xdg-utils - virtual/ttf-fonts" - -if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then - EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; -fi - -pkg_setup() { - if [[ "${SLOT}" == "0" ]]; then - CHROMIUM_SUFFIX="" - else - CHROMIUM_SUFFIX="-${SLOT}" - fi - CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" - - # 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 - - if ! use selinux; then - chromium_suid_sandbox_check_kernel_config - fi - - if use bindist && ! use system-ffmpeg; then - elog "bindist enabled: H.264 video support will be disabled." - fi - if ! use bindist; then - elog "bindist disabled: Resulting binaries may not be legal to re-distribute." - fi -} - -src_prepare() { - if ! use arm; then - ebegin "Preparing NaCl newlib toolchain" - pushd "${T}" >/dev/null || die - mkdir sdk || die - cp -a /usr/$(get_libdir)/nacl-toolchain-newlib sdk/nacl-sdk || die - mkdir -p "${S}"/native_client/toolchain/.tars || die - tar czf "${S}"/native_client/toolchain/.tars/naclsdk_linux_x86.tgz sdk || die - popd >/dev/null || die - eend $? - fi - - # Fix build without NaCl glibc toolchain. - epatch "${FILESDIR}/${PN}-ppapi-r0.patch" - - # Fix build without NaCl pnacl toolchain. - epatch "${FILESDIR}/${PN}-no-pnacl-r0.patch" - - # Backport a fix for libpng shim headers. - epatch "${FILESDIR}/${PN}-system-libpng-r0.patch" - - # Fix build with system opus, bug #439884. - epatch "${FILESDIR}/${PN}-system-opus-r0.patch" - - # Backport fix for test expectations, bug #444886. - epatch "${FILESDIR}/${PN}-icu50-tests-r0.patch" - - # Missing gyp files in tarball. - # https://code.google.com/p/chromium/issues/detail?id=144823 - if [[ -e chrome/test/data/nacl/nacl_test_data.gyp ]]; then - die "tarball fixed, please remove workaround" - fi - - mkdir -p chrome/test/data/nacl - cat > chrome/test/data/nacl/nacl_test_data.gyp <<-EOF - { - 'targets': [ - { - 'target_name': 'nacl_tests', - 'type': 'none', - }, - ], - } - EOF - - epatch "${FILESDIR}/${PN}-system-ffmpeg-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/cros_system_api/*' \ - \! -path 'third_party/ffmpeg/*' \ - \! -path 'third_party/flac/flac.h' \ - \! -path 'third_party/flot/*' \ - \! -path 'third_party/gpsd/*' \ - \! -path 'third_party/hunspell/*' \ - \! -path 'third_party/hyphen/*' \ - \! -path 'third_party/iccjpeg/*' \ - \! -path 'third_party/jsoncpp/*' \ - \! -path 'third_party/khronos/*' \ - \! -path 'third_party/leveldatabase/*' \ - \! -path 'third_party/libjingle/*' \ - \! -path 'third_party/libphonenumber/*' \ - \! -path 'third_party/libusb/libusb.h' \ - \! -path 'third_party/libvpx/libvpx.h' \ - \! -path 'third_party/libxml/chromium/*' \ - \! -path 'third_party/libXNVCtrl/*' \ - \! -path 'third_party/libyuv/*' \ - \! -path 'third_party/lss/*' \ - \! -path 'third_party/mesa/*' \ - \! -path 'third_party/modp_b64/*' \ - \! -path 'third_party/mongoose/*' \ - \! -path 'third_party/mt19937ar/*' \ - \! -path 'third_party/npapi/*' \ - \! -path 'third_party/openmax/*' \ - \! -path 'third_party/opus/opus.h' \ - \! -path 'third_party/ots/*' \ - \! -path 'third_party/pywebsocket/*' \ - \! -path 'third_party/qcms/*' \ - \! -path 'third_party/re2/*' \ - \! -path 'third_party/scons-2.0.1/*' \ - \! -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/trace-viewer/*' \ - \! -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/widevine/*' \ - -delete || die - - # Remove bundled v8. - find v8 -type f \! -iname '*.gyp*' -delete || die - - # 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 -} - -src_configure() { - local myconf="" - - # Never tell the build system to "enable" SSE2, it has a few unexpected - # additions, bug #336871. - myconf+=" -Ddisable_sse2=1" - - # Optional tcmalloc. Note it causes problems with e.g. NVIDIA - # drivers, bug #413637. - myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)" - - # Disable glibc Native Client toolchain, we don't need it (bug #417019). - myconf+=" -Ddisable_glibc=1" - - # TODO: also build with pnacl - myconf+=" -Ddisable_pnacl=1" - - # Make it possible to remove third_party/adobe. - echo > "${T}/flapper_version.h" || die - myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" - - # 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). - myconf+=" - -Duse_system_bzip2=1 - -Duse_system_flac=1 - -Duse_system_harfbuzz=1 - -Duse_system_icu=1 - -Duse_system_libevent=1 - -Duse_system_libjpeg=1 - -Duse_system_libpng=1 - -Duse_system_libsrtp=1 - -Duse_system_libusb=1 - -Duse_system_libvpx=1 - -Duse_system_libwebp=1 - -Duse_system_libxml=1 - -Duse_system_minizip=1 - -Duse_system_opus=1 - -Duse_system_protobuf=1 - -Duse_system_speex=1 - -Duse_system_v8=1 - -Duse_system_xdg_utils=1 - -Duse_system_yasm=1 - -Duse_system_zlib=1 - $(gyp_use system-ffmpeg use_system_ffmpeg)" - - # Optional dependencies. - # TODO: linux_link_kerberos, bug #381289. - myconf+=" - $(gyp_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) - $(gyp_use pulseaudio) - $(gyp_use selinux selinux)" - - # Use explicit library dependencies instead of dlopen. - # This makes breakages easier to detect by revdep-rebuild. - myconf+=" - -Dlinux_link_gsettings=1 - -Dlinux_link_libpci=1 - -Dlinux_link_libspeechd=1" - - # TODO: use the file at run time instead of effectively compiling it in. - myconf+=" - -Dusb_ids_path=/usr/share/misc/usb.ids" - - if ! use selinux; then - # Enable SUID sandbox. - myconf+=" - -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox - -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" - fi - - # Never use bundled gold binary. Disable gold linker flags for now. - myconf+=" - -Dlinux_use_gold_binary=0 - -Dlinux_use_gold_flags=0" - - if ! use bindist && ! use system-ffmpeg; then - # Enable H.624 support in bundled ffmpeg. - myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome" - fi - - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . - # Note: these are for Gentoo use ONLY. For your own distribution, - # please get your own set of keys. Feel free to contact chromium@gentoo.org - # for more info. - myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc - -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com - -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu" - - 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: re-enable NaCl (NativeClient). - myconf+=" -Dtarget_arch=arm - -Darmv7=0 - -Darm_neon=0 - -Ddisable_nacl=1" - 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 CFLAGS problems, bug #352457, bug #390147. - if ! use custom-cflags; then - replace-flags "-Os" "-O2" - strip-flags - fi - - egyp_chromium ${myconf} || die -} - -src_compile() { - local test_targets - for x in base cacheinvalidation crypto \ - googleurl gpu media net printing sql; do - test_targets+=" ${x}_unittests" - done - - local make_targets="chrome chromedriver" - if ! use selinux; then - make_targets+=" chrome_sandbox" - fi - if use test; then - make_targets+=$test_targets - fi - - # See bug #410883 for more info about the .host mess. - emake ${make_targets} BUILDTYPE=Release V=1 \ - CC.host="$(tc-getCC)" CFLAGS.host="${CFLAGS}" \ - CXX.host="$(tc-getCXX)" CXXFLAGS.host="${CXXFLAGS}" \ - LINK.host="$(tc-getCXX)" LDFLAGS.host="${LDFLAGS}" \ - AR.host="$(tc-getAR)" || die - - pax-mark m out/Release/chrome - if use test; then - for x in $test_targets; do - pax-mark m out/Release/${x} - done - 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 - - runtest() { - local cmd=$1 - shift - local filter="--gtest_filter=$(IFS=:; echo "-${*}")" - einfo "${cmd}" "${filter}" - LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "${filter}" - } - - local excluded_base_unittests=( - "ICUStringConversionsTest.*" # bug #350347 - "MessagePumpLibeventTest.*" # bug #398591 - ) - runtest out/Release/base_unittests "${excluded_base_unittests[@]}" - - runtest out/Release/cacheinvalidation_unittests - runtest out/Release/crypto_unittests - runtest out/Release/googleurl_unittests - runtest out/Release/gpu_unittests - - # TODO: re-enable when we get the test data in a separate tarball. - # runtest out/Release/media_unittests - - # local excluded_net_unittests=( - # "NetUtilTest.IDNToUnicode*" # bug 361885 - # "NetUtilTest.FormatUrl*" # see above - # "DnsConfigServiceTest.GetSystemConfig" # bug #394883 - # "CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269 - # "URLFetcher*" # bug #425764 - # "HTTPSOCSPTest.*" # bug #426630 - # "HTTPSEVCRLSetTest.*" # see above - # "HTTPSCRLSetTest.*" # see above - #) - # runtest out/Release/net_unittests "${excluded_net_unittests[@]}" - - runtest out/Release/printing_unittests - runtest out/Release/sql_unittests -} - -src_install() { - exeinto "${CHROMIUM_HOME}" - doexe out/Release/chrome || die - - if ! use selinux; then - doexe out/Release/chrome_sandbox || die - fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" - fi - - doexe out/Release/chromedriver || die - - if ! use arm; then - doexe out/Release/nacl_helper{,_bootstrap} || die - insinto "${CHROMIUM_HOME}" - doins out/Release/nacl_irt_*.nexe || die - doins out/Release/libppGoogleNaClPluginChrome.so || die - fi - - newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die - if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then - sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \ - -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die - sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \ - -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die - sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \ - -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die - fi - - # 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${CHROMIUM_SUFFIX} || die - # keep the old symlink around for consistency - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die - - # Allow users to override command-line options, bug #357629. - dodir /etc/chromium || die - insinto /etc/chromium - newins "${FILESDIR}/chromium.default" "default" || die - - pushd out/Release/locales > /dev/null || die - chromium_remove_language_paks - popd - - insinto "${CHROMIUM_HOME}" - doins out/Release/*.pak || die - - doins -r out/Release/locales || die - doins -r out/Release/resources || die - - newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die - newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die - - if ! use system-ffmpeg; then - doexe out/Release/libffmpegsumo.so || die - fi - - # Install icons and desktop entry. - local branding size - for size in 16 22 24 32 48 64 128 256 ; do - case ${size} in - 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; - *) branding="chrome/app/theme/chromium" ;; - esac - newicon -s ${size} "${branding}/product_logo_${size}.png" \ - chromium-browser${CHROMIUM_SUFFIX}.png - done - - local mime_types="text/html;text/xml;application/xhtml+xml;" - mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 - mime_types+="x-scheme-handler/ftp;" # bug #412185 - mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 - make_desktop_entry \ - chromium-browser${CHROMIUM_SUFFIX} \ - "Chromium${CHROMIUM_SUFFIX}" \ - chromium-browser${CHROMIUM_SUFFIX} \ - "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 - newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die - if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then - sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ - "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml - fi - fi -} diff --git a/www-client/chromium/chromium-25.0.1364.84.ebuild b/www-client/chromium/chromium-25.0.1364.84.ebuild deleted file mode 100644 index 11dc7efb724f..000000000000 --- a/www-client/chromium/chromium-25.0.1364.84.ebuild +++ /dev/null @@ -1,529 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-25.0.1364.84.ebuild,v 1.1 2013/02/15 02:11:35 floppym Exp $ - -EAPI="5" -PYTHON_DEPEND="2:2.6" - -CHROMIUM_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 ms nb nl pl pt_BR pt_PT ro ru sk sl sr - sv sw ta te th tr uk vi zh_CN zh_TW" - -inherit chromium eutils flag-o-matic multilib \ - pax-utils portability python toolchain-funcs versionator virtualx - -DESCRIPTION="Open-source version of Google Chrome web browser" -HOMEPAGE="http://chromium.org/" -SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}-lite.tar.bz2" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux system-ffmpeg tcmalloc" - -RDEPEND="app-accessibility/speech-dispatcher - app-arch/bzip2 - cups? ( - dev-libs/libgcrypt - >=net-print/cups-1.3.11 - ) - >=dev-lang/v8-3.15.11.1:= - >=dev-libs/elfutils-0.149 - dev-libs/expat - >=dev-libs/icu-49.1.1-r1 - >=dev-libs/libevent-1.4.13 - dev-libs/libxml2[icu] - dev-libs/libxslt - >=dev-libs/nss-3.12.3 - dev-libs/protobuf - 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 - media-libs/harfbuzz - >=media-libs/libjpeg-turbo-1.2.0-r1 - media-libs/libpng - media-libs/libvpx - >=media-libs/libwebp-0.2.0_rc1 - media-libs/opus - media-libs/speex - pulseaudio? ( media-sound/pulseaudio ) - system-ffmpeg? ( >=media-video/ffmpeg-1.0 ) - >=net-libs/libsrtp-1.4.4_p20121108 - sys-apps/dbus - sys-apps/pciutils - sys-libs/zlib[minizip] - virtual/udev - virtual/libusb:1 - x11-libs/gtk+:2 - x11-libs/libXinerama - x11-libs/libXScrnSaver - x11-libs/libXtst - kerberos? ( virtual/krb5 ) - selinux? ( - sec-policy/selinux-chromium - sys-libs/libselinux - )" -DEPEND="${RDEPEND} - !arm? ( - >=dev-lang/nacl-toolchain-newlib-0_p9093 - dev-lang/yasm - ) - dev-lang/perl - dev-python/ply - dev-python/simplejson - >=dev-util/gperf-3.0.3 - sys-apps/hwids - >=sys-devel/bison-2.4.3 - sys-devel/flex - >=sys-devel/make-3.81-r2 - virtual/pkgconfig - test? ( dev-python/pyftpdlib )" -RDEPEND+=" - !=www-client/chromium-9999 - x11-misc/xdg-utils - virtual/ttf-fonts" - -if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then - EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; -fi - -pkg_setup() { - if [[ "${SLOT}" == "0" ]]; then - CHROMIUM_SUFFIX="" - else - CHROMIUM_SUFFIX="-${SLOT}" - fi - CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" - - # 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 - - if ! use selinux; then - chromium_suid_sandbox_check_kernel_config - fi - - if use bindist && ! use system-ffmpeg; then - elog "bindist enabled: H.264 video support will be disabled." - fi - if ! use bindist; then - elog "bindist disabled: Resulting binaries may not be legal to re-distribute." - fi -} - -src_prepare() { - if ! use arm; then - ebegin "Preparing NaCl newlib toolchain" - pushd "${T}" >/dev/null || die - mkdir sdk || die - cp -a /usr/$(get_libdir)/nacl-toolchain-newlib sdk/nacl-sdk || die - mkdir -p "${S}"/native_client/toolchain/.tars || die - tar czf "${S}"/native_client/toolchain/.tars/naclsdk_linux_x86.tgz sdk || die - popd >/dev/null || die - eend $? - fi - - # Fix build without NaCl glibc toolchain. - epatch "${FILESDIR}/${PN}-ppapi-r0.patch" - - # Fix build without NaCl pnacl toolchain. - epatch "${FILESDIR}/${PN}-no-pnacl-r0.patch" - - # Backport a fix for libpng shim headers. - epatch "${FILESDIR}/${PN}-system-libpng-r0.patch" - - # Fix build with system opus, bug #439884. - epatch "${FILESDIR}/${PN}-system-opus-r0.patch" - - # Backport fix for test expectations, bug #444886. - epatch "${FILESDIR}/${PN}-icu50-tests-r0.patch" - - # Missing gyp files in tarball. - # https://code.google.com/p/chromium/issues/detail?id=144823 - if [[ -e chrome/test/data/nacl/nacl_test_data.gyp ]]; then - die "tarball fixed, please remove workaround" - fi - - mkdir -p chrome/test/data/nacl - cat > chrome/test/data/nacl/nacl_test_data.gyp <<-EOF - { - 'targets': [ - { - 'target_name': 'nacl_tests', - 'type': 'none', - }, - ], - } - EOF - - epatch "${FILESDIR}/${PN}-system-ffmpeg-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/cros_system_api/*' \ - \! -path 'third_party/ffmpeg/*' \ - \! -path 'third_party/flac/flac.h' \ - \! -path 'third_party/flot/*' \ - \! -path 'third_party/gpsd/*' \ - \! -path 'third_party/hunspell/*' \ - \! -path 'third_party/hyphen/*' \ - \! -path 'third_party/iccjpeg/*' \ - \! -path 'third_party/jsoncpp/*' \ - \! -path 'third_party/khronos/*' \ - \! -path 'third_party/leveldatabase/*' \ - \! -path 'third_party/libjingle/*' \ - \! -path 'third_party/libphonenumber/*' \ - \! -path 'third_party/libusb/libusb.h' \ - \! -path 'third_party/libvpx/libvpx.h' \ - \! -path 'third_party/libxml/chromium/*' \ - \! -path 'third_party/libXNVCtrl/*' \ - \! -path 'third_party/libyuv/*' \ - \! -path 'third_party/lss/*' \ - \! -path 'third_party/mesa/*' \ - \! -path 'third_party/modp_b64/*' \ - \! -path 'third_party/mongoose/*' \ - \! -path 'third_party/mt19937ar/*' \ - \! -path 'third_party/npapi/*' \ - \! -path 'third_party/openmax/*' \ - \! -path 'third_party/opus/opus.h' \ - \! -path 'third_party/ots/*' \ - \! -path 'third_party/pywebsocket/*' \ - \! -path 'third_party/qcms/*' \ - \! -path 'third_party/re2/*' \ - \! -path 'third_party/scons-2.0.1/*' \ - \! -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/trace-viewer/*' \ - \! -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/widevine/*' \ - -delete || die - - # Remove bundled v8. - find v8 -type f \! -iname '*.gyp*' -delete || die - - # 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 -} - -src_configure() { - local myconf="" - - # Never tell the build system to "enable" SSE2, it has a few unexpected - # additions, bug #336871. - myconf+=" -Ddisable_sse2=1" - - # Optional tcmalloc. Note it causes problems with e.g. NVIDIA - # drivers, bug #413637. - myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)" - - # Disable glibc Native Client toolchain, we don't need it (bug #417019). - myconf+=" -Ddisable_glibc=1" - - # TODO: also build with pnacl - myconf+=" -Ddisable_pnacl=1" - - # Make it possible to remove third_party/adobe. - echo > "${T}/flapper_version.h" || die - myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" - - # 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). - myconf+=" - -Duse_system_bzip2=1 - -Duse_system_flac=1 - -Duse_system_harfbuzz=1 - -Duse_system_icu=1 - -Duse_system_libevent=1 - -Duse_system_libjpeg=1 - -Duse_system_libpng=1 - -Duse_system_libsrtp=1 - -Duse_system_libusb=1 - -Duse_system_libvpx=1 - -Duse_system_libwebp=1 - -Duse_system_libxml=1 - -Duse_system_minizip=1 - -Duse_system_opus=1 - -Duse_system_protobuf=1 - -Duse_system_speex=1 - -Duse_system_v8=1 - -Duse_system_xdg_utils=1 - -Duse_system_yasm=1 - -Duse_system_zlib=1 - $(gyp_use system-ffmpeg use_system_ffmpeg)" - - # Optional dependencies. - # TODO: linux_link_kerberos, bug #381289. - myconf+=" - $(gyp_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) - $(gyp_use pulseaudio) - $(gyp_use selinux selinux)" - - # Use explicit library dependencies instead of dlopen. - # This makes breakages easier to detect by revdep-rebuild. - myconf+=" - -Dlinux_link_gsettings=1 - -Dlinux_link_libpci=1 - -Dlinux_link_libspeechd=1" - - # TODO: use the file at run time instead of effectively compiling it in. - myconf+=" - -Dusb_ids_path=/usr/share/misc/usb.ids" - - if ! use selinux; then - # Enable SUID sandbox. - myconf+=" - -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox - -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" - fi - - # Never use bundled gold binary. Disable gold linker flags for now. - myconf+=" - -Dlinux_use_gold_binary=0 - -Dlinux_use_gold_flags=0" - - if ! use bindist && ! use system-ffmpeg; then - # Enable H.624 support in bundled ffmpeg. - myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome" - fi - - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . - # Note: these are for Gentoo use ONLY. For your own distribution, - # please get your own set of keys. Feel free to contact chromium@gentoo.org - # for more info. - myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc - -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com - -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu" - - 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: re-enable NaCl (NativeClient). - myconf+=" -Dtarget_arch=arm - -Darmv7=0 - -Darm_neon=0 - -Ddisable_nacl=1" - 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 CFLAGS problems, bug #352457, bug #390147. - if ! use custom-cflags; then - replace-flags "-Os" "-O2" - strip-flags - fi - - egyp_chromium ${myconf} || die -} - -src_compile() { - local test_targets - for x in base cacheinvalidation crypto \ - googleurl gpu media net printing sql; do - test_targets+=" ${x}_unittests" - done - - local make_targets="chrome chromedriver" - if ! use selinux; then - make_targets+=" chrome_sandbox" - fi - if use test; then - make_targets+=$test_targets - fi - - # See bug #410883 for more info about the .host mess. - emake ${make_targets} BUILDTYPE=Release V=1 \ - CC.host="$(tc-getCC)" CFLAGS.host="${CFLAGS}" \ - CXX.host="$(tc-getCXX)" CXXFLAGS.host="${CXXFLAGS}" \ - LINK.host="$(tc-getCXX)" LDFLAGS.host="${LDFLAGS}" \ - AR.host="$(tc-getAR)" || die - - pax-mark m out/Release/chrome - if use test; then - for x in $test_targets; do - pax-mark m out/Release/${x} - done - 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 - - runtest() { - local cmd=$1 - shift - local filter="--gtest_filter=$(IFS=:; echo "-${*}")" - einfo "${cmd}" "${filter}" - LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "${filter}" - } - - local excluded_base_unittests=( - "ICUStringConversionsTest.*" # bug #350347 - "MessagePumpLibeventTest.*" # bug #398591 - ) - runtest out/Release/base_unittests "${excluded_base_unittests[@]}" - - runtest out/Release/cacheinvalidation_unittests - runtest out/Release/crypto_unittests - runtest out/Release/googleurl_unittests - runtest out/Release/gpu_unittests - - # TODO: re-enable when we get the test data in a separate tarball. - # runtest out/Release/media_unittests - - # local excluded_net_unittests=( - # "NetUtilTest.IDNToUnicode*" # bug 361885 - # "NetUtilTest.FormatUrl*" # see above - # "DnsConfigServiceTest.GetSystemConfig" # bug #394883 - # "CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269 - # "URLFetcher*" # bug #425764 - # "HTTPSOCSPTest.*" # bug #426630 - # "HTTPSEVCRLSetTest.*" # see above - # "HTTPSCRLSetTest.*" # see above - #) - # runtest out/Release/net_unittests "${excluded_net_unittests[@]}" - - runtest out/Release/printing_unittests - runtest out/Release/sql_unittests -} - -src_install() { - exeinto "${CHROMIUM_HOME}" - doexe out/Release/chrome || die - - if ! use selinux; then - doexe out/Release/chrome_sandbox || die - fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" - fi - - doexe out/Release/chromedriver || die - - if ! use arm; then - doexe out/Release/nacl_helper{,_bootstrap} || die - insinto "${CHROMIUM_HOME}" - doins out/Release/nacl_irt_*.nexe || die - doins out/Release/libppGoogleNaClPluginChrome.so || die - fi - - newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die - if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then - sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \ - -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die - sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \ - -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die - sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \ - -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die - fi - - # 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${CHROMIUM_SUFFIX} || die - # keep the old symlink around for consistency - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die - - # Allow users to override command-line options, bug #357629. - dodir /etc/chromium || die - insinto /etc/chromium - newins "${FILESDIR}/chromium.default" "default" || die - - pushd out/Release/locales > /dev/null || die - chromium_remove_language_paks - popd - - insinto "${CHROMIUM_HOME}" - doins out/Release/*.pak || die - - doins -r out/Release/locales || die - doins -r out/Release/resources || die - - newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die - newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die - - if ! use system-ffmpeg; then - doexe out/Release/libffmpegsumo.so || die - fi - - # Install icons and desktop entry. - local branding size - for size in 16 22 24 32 48 64 128 256 ; do - case ${size} in - 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; - *) branding="chrome/app/theme/chromium" ;; - esac - newicon -s ${size} "${branding}/product_logo_${size}.png" \ - chromium-browser${CHROMIUM_SUFFIX}.png - done - - local mime_types="text/html;text/xml;application/xhtml+xml;" - mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 - mime_types+="x-scheme-handler/ftp;" # bug #412185 - mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 - make_desktop_entry \ - chromium-browser${CHROMIUM_SUFFIX} \ - "Chromium${CHROMIUM_SUFFIX}" \ - chromium-browser${CHROMIUM_SUFFIX} \ - "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 - newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die - if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then - sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ - "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml - fi - fi -} |