diff options
author | Vinícius dos Santos Oliveira | 2015-06-14 02:10:53 -0300 |
---|---|---|
committer | Vinícius dos Santos Oliveira | 2015-06-14 02:10:53 -0300 |
commit | 30bc37929ed6d6859c7d3fd20bd18b246c153e31 (patch) | |
tree | a8a92ba0d2687b8a4d34288e0f6eb971ae5ca157 | |
download | aur-30bc37929ed6d6859c7d3fd20bd18b246c153e31.tar.gz |
Genesis commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | fix.patch | 70 |
3 files changed, 125 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..89aaf658c28b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = lib2geom + pkgdesc = a library developed to provide a robust computational geometry framework + pkgver = 0.2.0 + pkgrel = 1 + url = http://lib2geom.sourceforge.net/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + makedepends = boost + depends = gtkmm + depends = gsl + depends = blas + depends = boost-libs + source = http://downloads.sourceforge.net/project/lib2geom/lib2geom/0.2/lib2geom-0.2.0.tar.gz + source = fix.patch + md5sums = 983941e4b115a3af9ee95ab2d9cc35e5 + md5sums = eaf3e1f1739cd96a179d25ad23502b36 + +pkgname = lib2geom + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f4f851c79717 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Vinícius dos Santos Oliveira <vini.ipsmaker@gmail.com> +pkgname=lib2geom +pkgver=0.2.0 +pkgrel=1 +pkgdesc="a library developed to provide a robust computational geometry framework" +arch=(i686 x86_64) +url="http://lib2geom.sourceforge.net/" +license=('GPL') +depends=(gtkmm gsl blas boost-libs) +makedepends=(cmake boost) +source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver/%\.[0-9]/}/lib2geom-${pkgver}.tar.gz" + "fix.patch") +md5sums=('983941e4b115a3af9ee95ab2d9cc35e5' + 'eaf3e1f1739cd96a179d25ad23502b36') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 -i "$srcdir/fix.patch" +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + mkdir -p build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -D2GEOM_BOOST_PYTHON=NO \ + -D2GEOM_BUILD_SHARED=YES -D2GEOM_TOYS=NO \ + -DCMAKE_BUILD_TYPE=Release + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver/build" + make DESTDIR="$pkgdir/" install +} diff --git a/fix.patch b/fix.patch new file mode 100644 index 000000000000..41b491015ea0 --- /dev/null +++ b/fix.patch @@ -0,0 +1,70 @@ +diff -ru old/src/2geom/sbasis-math.cpp new/src/2geom/sbasis-math.cpp +--- old/src/2geom/sbasis-math.cpp 2013-08-09 21:48:31.294925000 -0300 ++++ new/src/2geom/sbasis-math.cpp 2013-08-09 21:50:31.641730914 -0300 +@@ -38,12 +38,12 @@ + //#define ZERO 1e-3 + + +-namespace Geom { +- +- + #include <stdio.h> + #include <math.h> + ++namespace Geom { ++ ++ + //-|x|----------------------------------------------------------------------- + /** Return the absolute value of a function pointwise. + \param f function +Only in new/src/2geom: .#utils.cpp +diff -ru old/src/2geom/utils.cpp new/src/2geom/utils.cpp +--- old/src/2geom/utils.cpp 2013-08-09 22:00:41.292540903 -0300 ++++ new/src/2geom/utils.cpp 2013-08-09 22:04:49.403191178 -0300 +@@ -37,27 +37,27 @@ + { + + // return a vector that contains all the binomial coefficients of degree n +-void binomial_coefficients(std::vector<size_t>& bc, size_t n) ++void binomial_coefficients(std::vector<std::size_t>& bc, std::size_t n) + { +- size_t s = n+1; ++ std::size_t s = n+1; + bc.clear(); + bc.resize(s); + bc[0] = 1; +- size_t k; +- for (size_t i = 1; i < n; ++i) ++ std::size_t k; ++ for (std::size_t i = 1; i < n; ++i) + { + k = i >> 1; + if (i & 1u) + { + bc[k+1] = bc[k] << 1; + } +- for (size_t j = k; j > 0; --j) ++ for (std::size_t j = k; j > 0; --j) + { + bc[j] += bc[j-1]; + } + } + s >>= 1; +- for (size_t i = 0; i < s; ++i) ++ for (std::size_t i = 0; i < s; ++i) + { + bc[n-i] = bc[i]; + } +Only in new/src/2geom: .#utils.h +diff -ru old/src/2geom/utils.h new/src/2geom/utils.h +--- old/src/2geom/utils.h 2013-08-09 21:58:02.340283241 -0300 ++++ new/src/2geom/utils.h 2013-08-09 21:58:32.088482082 -0300 +@@ -80,7 +80,7 @@ + } + + +-void binomial_coefficients(std::vector<size_t>& bc, size_t n); ++void binomial_coefficients(std::vector<std::size_t>& bc, std::size_t n); + + } + |