]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
- invert clean logic foo=0 means do not remove it, undefined foo means do remove it
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 5 Jan 2012 23:03:13 +0000 (23:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chromium-browser.spec -> 1.167
    clean-source.sh -> 1.6

chromium-browser.spec
clean-source.sh

index d782737c0eee686843ba20f6fb459b8052a7589c..c4b2a1da34638051089c64414dfb698b3c2992bc 100644 (file)
@@ -209,7 +209,7 @@ cd src
 cd ..
 
 cd src
-sh -x clean-source.sh %{?with_system_v8:v8=1} %{?with_nacl:nacl=1}
+sh -x clean-source.sh %{!?with_system_v8:v8=0} %{!?with_nacl:nacl=0}
 
 %build
 cd src
index fceea353a6681850c9d62c4ab61834f596509923..aced5561e409f79813304a39c8d9d55bfb9e2992 100644 (file)
@@ -3,6 +3,8 @@ set -e
 set -x
 
 # import options
+# remove everything unless it's remove has been disabled with "0"
+# "v8=0" means "do not remove v8"
 eval "$@"
 
 # drop bundled libs, from gentoo
@@ -126,7 +128,7 @@ strip_system_dirs() {
        for dir in "$@"; do
                lib=${dir##*/}
                bcond=$(eval echo \$$lib)
-               [ "$bcond" = 0 ] && continue
+               [ "${bcond:-1}" = 0 ] && continue
 
                # skip already removed dirs
                test -d $dir || continue
@@ -175,7 +177,7 @@ strip_system_dirs \
 
 rm -vf third_party/expat/files/lib/expat.h
 
-if [ "$v8" = 1 ]; then
+if [ "${v8:-1}" != "0" ]; then
        # The implementation files include v8 headers with full path,
        # like #include "v8/include/v8.h". Make sure the system headers
        # will be used.
@@ -183,7 +185,7 @@ if [ "$v8" = 1 ]; then
        ln -s /usr/include v8/include
 fi
 
-if [ "$nacl" = 1 ]; then
+if [ "${nacl:-1}" != "0" ]; then
        # NOTE: here is always x86_64
        rm -rf native_client/toolchain/linux_x86_newlib
        ln -s /usr/x86_64-nacl-newlib native_client/toolchain/linux_x86_newlib
This page took 0.119042 seconds and 4 git commands to generate.