x11-plugins/purple-facebook/files/purple-facebook-20210226-no-hg-while-compile.patch
changeset 25 50604c9253b9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/x11-plugins/purple-facebook/files/purple-facebook-20210226-no-hg-while-compile.patch	Fri Feb 26 17:59:45 2021 +0000
@@ -0,0 +1,32 @@
+--- a/update.sh
++++ b/update.sh
+@@ -2,29 +2,11 @@
+ 
+ set -e
+ 
+-URL="https://keep.imfreedom.org/pidgin/pidgin"
+-HASHG=$(_TMP_=$(type hg 2>&1); echo $?)
+-
+-if test "$HASHG" != "0"; then
+-    echo "hg (mercurial) not found in PATH" >&2
+-    exit $HASHG
+-fi
+-
+ test -z "$srcdir" && srcdir=$(dirname "$0")
+ test -z "$srcdir" && srcdir=.
+ test -z "$pidgindir" && pidgindir=.pidgin
+ 
+ cd "$srcdir"
+-REVISION=$(cat VERSION)
+-
+-if ! test -d "$pidgindir/.hg"; then
+-    rm -rf "$pidgindir"
+-    hg clone "$URL" "$pidgindir"
+-fi
+-
+-hg -R "$pidgindir" -v pull
+-hg -R "$pidgindir" -v update -C "$REVISION"
+-rm -rf pidgin
+ 
+ for FILE in $(cat MANIFEST_PIDGIN); do
+     mkdir -p $(dirname "pidgin/$FILE")