www-client/chromium: replace host_binary function with a loop
authorMike Gilbert <floppym@gentoo.org>
Sun, 10 Dec 2017 23:17:49 +0000 (18:17 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sun, 10 Dec 2017 23:18:11 +0000 (18:18 -0500)
Package-Manager: Portage-2.3.17, Repoman-2.3.6_p24

www-client/chromium/chromium-63.0.3239.84.ebuild
www-client/chromium/chromium-64.0.3282.14.ebuild

index a23443e9896f78cba62e6d095d8b2e49b69cb1ad..be37d445c4f14ad13382cad2c20ddcbc60bd9863 100644 (file)
@@ -537,9 +537,10 @@ src_configure() {
        "$@" || die
 }
 
-host_binary() {
+src_compile() {
+       # Build mksnapshot and pax-mark it.
        local x
-       for x; do
+       for x in mksnapshot v8_context_snapshot_generator; do
                if tc-is-cross-compiler; then
                        eninja -C out/Release "host/${x}"
                        pax-mark m "out/Release/host/${x}"
@@ -548,11 +549,6 @@ host_binary() {
                        pax-mark m "out/Release/${x}"
                fi
        done
-}
-
-src_compile() {
-       # Build mksnapshot and pax-mark it.
-       host_binary mksnapshot v8_context_snapshot_generator
 
        # Work around circular dep issue
        # https://chromium-review.googlesource.com/c/chromium/src/+/617768
index e436cbd1b5995c28b37e2d9095d958a313d425ef..c0f32ba37a4131809ab7844451b9543655b1f2be 100644 (file)
@@ -539,9 +539,13 @@ src_configure() {
        "$@" || die
 }
 
-host_binary() {
+src_compile() {
+       # Calling this here supports resumption via FEATURES=keepwork
+       python_setup
+
+       # Build mksnapshot and pax-mark it.
        local x
-       for x; do
+       for x in mksnapshot v8_context_snapshot_generator; do
                if tc-is-cross-compiler; then
                        eninja -C out/Release "host/${x}"
                        pax-mark m "out/Release/host/${x}"
@@ -550,14 +554,6 @@ host_binary() {
                        pax-mark m "out/Release/${x}"
                fi
        done
-}
-
-src_compile() {
-       # Calling this here supports resumption via FEATURES=keepwork
-       python_setup
-
-       # Build mksnapshot and pax-mark it.
-       host_binary mksnapshot v8_context_snapshot_generator
 
        # Work around circular dep issue
        # https://chromium-review.googlesource.com/c/chromium/src/+/617768