aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/gitstats/APKBUILD47
-rw-r--r--testing/gitstats/output.patch15
2 files changed, 62 insertions, 0 deletions
diff --git a/testing/gitstats/APKBUILD b/testing/gitstats/APKBUILD
new file mode 100644
index 0000000000..5acd50a4fc
--- /dev/null
+++ b/testing/gitstats/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=gitstats
+git=ad7efbb9399e60cee6cb217c6b47e604174a8093
+pkgver=0
+pkgrel=0.${git:0:6}
+pkgdesc="Git history statistics generator"
+url="http://gitstats.sourceforge.net/"
+arch="noarch"
+license="GPL2+"
+depends="python gnuplot git"
+depends_dev=""
+makedepends=""
+install=""
+subpackages=""
+source="http://repo.or.cz/w/gitstats.git/snapshot/$git.tar.gz
+ output.patch"
+
+_builddir="$srcdir"/$pkgname
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+}
+
+package() {
+ cd "$_builddir"
+ install -m755 -D "$_builddir"/$pkgname \
+ "$pkgdir"/usr/sbin/$pkgname || return 1
+
+ for _file in gitstats.css sortable.js *.gif; do
+ install -Dm644 "$_builddir"/$_file \
+ "$pkgdir"/usr/share/$pkgname/$_file || return 1
+ done
+
+}
+
+md5sums="a5ae0f3c25aacea3b8f4656411791f07 ad7efbb9399e60cee6cb217c6b47e604174a8093.tar.gz
+fa02fcd794241fdb9748f98403b8cdf2 output.patch"
diff --git a/testing/gitstats/output.patch b/testing/gitstats/output.patch
new file mode 100644
index 0000000000..118a4cbb34
--- /dev/null
+++ b/testing/gitstats/output.patch
@@ -0,0 +1,15 @@
+--- gitstats/gitstats.orig
++++ gitstats/gitstats
+@@ -1376,10 +1376,8 @@
+ exectime_internal = time_end - time_start
+ print 'Execution time %.5f secs, %.5f secs (%.2f %%) in external commands)' % (exectime_internal, exectime_external, (100.0 * exectime_external) / exectime_internal)
+ if sys.stdin.isatty():
+- print 'You may now run:'
+- print
+- print ' sensible-browser \'%s\'' % os.path.join(outputpath, 'index.html').replace("'", "'\\''")
+- print
++ print 'The report is available at:'
++ print '\'%s\'' % os.path.join(outputpath, 'index.html').replace("'", "'\\''")
+
+ if __name__=='__main__':
+ g = GitStats()