x11-plugins/purple-facebook/files/purple-facebook-20210226-no-hg-while-compile.patch
author gabriel
Fri, 26 Feb 2021 17:59:45 +0000
changeset 25 50604c9253b9
permissions -rw-r--r--
Change ebuild to snapshot as live ebuild isn't suitable
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
     1
--- a/update.sh
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
     2
+++ b/update.sh
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
     3
@@ -2,29 +2,11 @@
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
     4
 
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
     5
 set -e
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
     6
 
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
     7
-URL="https://keep.imfreedom.org/pidgin/pidgin"
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
     8
-HASHG=$(_TMP_=$(type hg 2>&1); echo $?)
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
     9
-
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    10
-if test "$HASHG" != "0"; then
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    11
-    echo "hg (mercurial) not found in PATH" >&2
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    12
-    exit $HASHG
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    13
-fi
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    14
-
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    15
 test -z "$srcdir" && srcdir=$(dirname "$0")
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    16
 test -z "$srcdir" && srcdir=.
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    17
 test -z "$pidgindir" && pidgindir=.pidgin
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    18
 
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    19
 cd "$srcdir"
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    20
-REVISION=$(cat VERSION)
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    21
-
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    22
-if ! test -d "$pidgindir/.hg"; then
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    23
-    rm -rf "$pidgindir"
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    24
-    hg clone "$URL" "$pidgindir"
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    25
-fi
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    26
-
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    27
-hg -R "$pidgindir" -v pull
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    28
-hg -R "$pidgindir" -v update -C "$REVISION"
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    29
-rm -rf pidgin
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    30
 
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    31
 for FILE in $(cat MANIFEST_PIDGIN); do
50604c9253b9 Change ebuild to snapshot as live ebuild isn't suitable
gabriel
parents:
diff changeset
    32
     mkdir -p $(dirname "pidgin/$FILE")