[arch-commits] Commit in gource/repos (6 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sun Oct 9 20:23:57 UTC 2016
Date: Sunday, October 9, 2016 @ 20:23:57
Author: bpiotrowski
Revision: 191742
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
gource/repos/community-staging-i686/
gource/repos/community-staging-i686/PKGBUILD
(from rev 191741, gource/trunk/PKGBUILD)
gource/repos/community-staging-i686/gource-gcc6.patch
(from rev 191741, gource/trunk/gource-gcc6.patch)
gource/repos/community-staging-x86_64/
gource/repos/community-staging-x86_64/PKGBUILD
(from rev 191741, gource/trunk/PKGBUILD)
gource/repos/community-staging-x86_64/gource-gcc6.patch
(from rev 191741, gource/trunk/gource-gcc6.patch)
--------------------------------------------+
community-staging-i686/PKGBUILD | 36 +++++++++++++++++++++++++++
community-staging-i686/gource-gcc6.patch | 11 ++++++++
community-staging-x86_64/PKGBUILD | 36 +++++++++++++++++++++++++++
community-staging-x86_64/gource-gcc6.patch | 11 ++++++++
4 files changed, 94 insertions(+)
Copied: gource/repos/community-staging-i686/PKGBUILD (from rev 191741, gource/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-10-09 20:23:57 UTC (rev 191742)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
+# Contributor: Olivier Ramonat <olivier at ramonat dot fr>
+pkgname=gource
+pkgver=0.43
+pkgrel=11
+pkgdesc="software version control visualization"
+license=(GPL3)
+arch=(i686 x86_64)
+url=http://code.google.com/p/gource/
+depends=('ftgl' 'sdl2' 'sdl2_image' 'pcre' 'glew' 'boost-libs')
+makedepends=('boost' 'glm' 'mesa')
+source=(https://github.com/acaudwell/Gource/releases/download/gource-${pkgver}/gource-${pkgver}.tar.gz gource-gcc6.patch)
+md5sums=('d2b601782692301f6d8ecc97dc85d3f7'
+ '4cfabcea55fe8bc71ebcf0ac06d89f29')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # Fix build with GCC 6 (Fedora)
+ patch -p0 -i ../gource-gcc6.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+}
+# vim: ts=2:sw=2 et:
Copied: gource/repos/community-staging-i686/gource-gcc6.patch (from rev 191741, gource/trunk/gource-gcc6.patch)
===================================================================
--- community-staging-i686/gource-gcc6.patch (rev 0)
+++ community-staging-i686/gource-gcc6.patch 2016-10-09 20:23:57 UTC (rev 191742)
@@ -0,0 +1,11 @@
+--- src/dirnode.cpp~ 2014-10-15 22:23:22.000000000 -0400
++++ src/dirnode.cpp 2016-02-25 10:11:26.838675629 -0500
+@@ -582,7 +582,7 @@
+ //this->dir_radius_sqrt = sqrt(dir_radius); //dir_radius_sqrt is not used
+
+ // this->parent_radius = std::max(1.0, parent_circ / PI);
+- this->parent_radius = std::max(1.0, sqrt(total_file_area) * gGourceDirPadding);
++ this->parent_radius = (1.0) > (sqrt(total_file_area) * gGourceDirPadding) ? (1.0) : (sqrt(total_file_area) * gGourceDirPadding);
+ }
+
+ float RDirNode::distanceToParent() const{
Copied: gource/repos/community-staging-x86_64/PKGBUILD (from rev 191741, gource/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-10-09 20:23:57 UTC (rev 191742)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
+# Contributor: Olivier Ramonat <olivier at ramonat dot fr>
+pkgname=gource
+pkgver=0.43
+pkgrel=11
+pkgdesc="software version control visualization"
+license=(GPL3)
+arch=(i686 x86_64)
+url=http://code.google.com/p/gource/
+depends=('ftgl' 'sdl2' 'sdl2_image' 'pcre' 'glew' 'boost-libs')
+makedepends=('boost' 'glm' 'mesa')
+source=(https://github.com/acaudwell/Gource/releases/download/gource-${pkgver}/gource-${pkgver}.tar.gz gource-gcc6.patch)
+md5sums=('d2b601782692301f6d8ecc97dc85d3f7'
+ '4cfabcea55fe8bc71ebcf0ac06d89f29')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # Fix build with GCC 6 (Fedora)
+ patch -p0 -i ../gource-gcc6.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+}
+# vim: ts=2:sw=2 et:
Copied: gource/repos/community-staging-x86_64/gource-gcc6.patch (from rev 191741, gource/trunk/gource-gcc6.patch)
===================================================================
--- community-staging-x86_64/gource-gcc6.patch (rev 0)
+++ community-staging-x86_64/gource-gcc6.patch 2016-10-09 20:23:57 UTC (rev 191742)
@@ -0,0 +1,11 @@
+--- src/dirnode.cpp~ 2014-10-15 22:23:22.000000000 -0400
++++ src/dirnode.cpp 2016-02-25 10:11:26.838675629 -0500
+@@ -582,7 +582,7 @@
+ //this->dir_radius_sqrt = sqrt(dir_radius); //dir_radius_sqrt is not used
+
+ // this->parent_radius = std::max(1.0, parent_circ / PI);
+- this->parent_radius = std::max(1.0, sqrt(total_file_area) * gGourceDirPadding);
++ this->parent_radius = (1.0) > (sqrt(total_file_area) * gGourceDirPadding) ? (1.0) : (sqrt(total_file_area) * gGourceDirPadding);
+ }
+
+ float RDirNode::distanceToParent() const{
More information about the arch-commits
mailing list