summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxantares2015-06-08 23:08:57 +0200
committerxantares2015-06-08 23:08:57 +0200
commit24f19f2b6be8714984a503d50788ce3fdaa0a6bc (patch)
treefbf915d81d971e501bd598c7f9d88ef236cda5d2
downloadaur-24f19f2b6be8714984a503d50788ce3fdaa0a6bc.tar.gz
Initial import
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD39
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a649eab30e6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = openturns
+ pkgdesc = Uncertainty treatment library in C++/Python
+ pkgver = 1.5
+ pkgrel = 1
+ url = http://www.openturns.org/
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = python
+ makedepends = python-sphinx
+ makedepends = r
+ makedepends = cmake
+ makedepends = gcc-fortran
+ makedepends = swig
+ makedepends = boost
+ depends = libxml2
+ depends = muparser
+ depends = intel-tbb
+ depends = hmat-oss
+ depends = python
+ optdepends = r: plotting, linear model, truncated normal distribution estimation and statistical tests
+ optdepends = python-matplotlib: nicer plotting
+ backup = etc/openturns/openturns.conf
+ source = http://downloads.sourceforge.net/sourceforge/openturns/openturns/openturns-1.5.tar.bz2
+ md5sums = 2622a0c0884014bf59cb6f34c48e7ff7
+
+pkgname = openturns
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ff25a6075d2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+pkgname=openturns
+pkgver=1.5
+pkgrel=1
+pkgdesc="Uncertainty treatment library in C++/Python"
+license=('LGPL')
+arch=('i686' 'x86_64')
+url="http://www.openturns.org/"
+depends=('libxml2' 'muparser' 'intel-tbb' 'hmat-oss' 'python')
+optdepends=('r: plotting, linear model, truncated normal distribution estimation and statistical tests'
+ 'python-matplotlib: nicer plotting')
+makedepends=('python' 'python-sphinx' 'r' 'cmake' 'gcc-fortran' 'swig' 'boost')
+backup=('etc/openturns/openturns.conf')
+source=("http://downloads.sourceforge.net/sourceforge/openturns/openturns/openturns-$pkgver.tar.bz2")
+md5sums=('2622a0c0884014bf59cb6f34c48e7ff7')
+
+prepare() {
+ cd $pkgname-$pkgver
+ 2to3 --no-diffs -w python/test/t_*.py
+}
+
+build() {
+ cd $pkgname-$pkgver
+ R CMD INSTALL --library=$PWD utils/rot_1.4.5.tar.gz
+ export R_LIBS=$PWD
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DUSE_HMAT=OFF \ # ot 1.5 cannot use latest hmat 107
+ -DOPENTURNS_SYSCONFIG_PATH=/etc .
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ install -d "$pkgdir"/usr/lib/R/library/
+ cp -r rot "$pkgdir"/usr/lib/R/library/
+ make DESTDIR="$pkgdir" install
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ install -m644 "$srcdir"/openturns-$pkgver/COPYING* $pkgdir/usr/share/licenses/$pkgname
+}
+