aboutsummaryrefslogtreecommitdiffstats
path: root/main/graphviz/ungit-autogen.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-01-04 23:43:29 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-01-05 01:14:28 +0100
commitc0bcdbcab937f8b80c4dedb82f7b298ab16a160b (patch)
tree51d0e611699dc2a1d411c66e863187fd29b30a82 /main/graphviz/ungit-autogen.patch
parente51b91cb37349472ee59670afb1478bd8ee7c2a5 (diff)
downloadaports-c0bcdbcab937f8b80c4dedb82f7b298ab16a160b.tar.bz2
aports-c0bcdbcab937f8b80c4dedb82f7b298ab16a160b.tar.xz
main/graphviz: fix source tarball, old one is N/A anymore
URL http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.40.1.tar.gz does not work anymore. :( The new tarball does not contain generated configure.sh script etc.
Diffstat (limited to 'main/graphviz/ungit-autogen.patch')
-rw-r--r--main/graphviz/ungit-autogen.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/graphviz/ungit-autogen.patch b/main/graphviz/ungit-autogen.patch
new file mode 100644
index 0000000000..419a4da27c
--- /dev/null
+++ b/main/graphviz/ungit-autogen.patch
@@ -0,0 +1,24 @@
+--- a/autogen.sh
++++ b/autogen.sh
+@@ -1,20 +1,6 @@
+ #! /bin/sh
+
+-if ! GRAPHVIZ_GIT_DATE=$( git log -n 1 --format=%ci ) ; then
+- GRAPHVIZ_VERSION_DATE="0"
+- echo "Warning: build not started in a Git clone, or Git is not installed: setting version date to 0." >&2
+-else
+- if ! GRAPHVIZ_VERSION_DATE=$( date -u +%Y%m%d.%H%M -d "$GRAPHVIZ_GIT_DATE" 2>/dev/null ) ; then
+- # try date with FreeBSD syntax
+- if ! GRAPHVIZ_VERSION_DATE=$( date -u -j -f "%Y-%m-%d %H:%M:%S %z" "$GRAPHVIZ_GIT_DATE" +%Y%m%d.%H%M ); then
+- echo "Warning: we do not know how to invoke date correctly." >&2
+- fi
+- fi
+- echo "Graphviz: version date is based on time of last commit: $GRAPHVIZ_VERSION_DATE"
+-
+- GRAPHVIZ_VERSION_COMMIT=$( git log -n 1 --format=%h )
+- echo "Graphviz: abbreviated hash of last commit: $GRAPHVIZ_VERSION_COMMIT"
+-fi
++GRAPHVIZ_VERSION_DATE=0
+
+ # initialize version for a "stable" build
+ cat >./version.m4 <<EOF