[arch-commits] Commit in python-cvxopt/repos (4 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 16:13:52 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:13:52
  Author: foutrelis
Revision: 140910

archrelease: copy trunk to community-staging-x86_64, community-staging-i686

Added:
  python-cvxopt/repos/community-staging-i686/
  python-cvxopt/repos/community-staging-i686/PKGBUILD
    (from rev 140909, python-cvxopt/trunk/PKGBUILD)
  python-cvxopt/repos/community-staging-x86_64/
  python-cvxopt/repos/community-staging-x86_64/PKGBUILD
    (from rev 140909, python-cvxopt/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   59 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   59 ++++++++++++++++++++++++++++++++++++
 2 files changed, 118 insertions(+)

Copied: python-cvxopt/repos/community-staging-i686/PKGBUILD (from rev 140909, python-cvxopt/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-19 16:13:52 UTC (rev 140910)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: BinkyTheClown <binky_at_archlinux_dot_us>
+# Contributor: Julien Ugon <bzklrm at gmail dot com>
+# Contributor: Lex Black <autumn-wind at web dot de>
+# Contributor: Gustavao A. Gomez Farhat <gustavo_gomez_farhat_at_gmail_dot_com>
+
+pkgbase=python-cvxopt
+pkgname=('python2-cvxopt' 'python-cvxopt')
+pkgver=1.1.7
+pkgrel=4
+pkgdesc="A free software package for convex optimization written in Python"
+url="http://cvxopt.org/"
+arch=('x86_64' 'i686')
+license=('GPL3')
+makedepends=('gsl fftw glpk dsdp python python2 lapack')
+optdepends=('gsl: for custom random number generators'
+            'fftw: for FFTW interface'
+            'glpk: solver for linear cone and PWL programming problems'
+            'dsdp: solver for linear cone semidefinite programming problems')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/cvxopt/cvxopt/archive/${pkgver}.tar.gz")
+sha1sums=('199ae22f7175be8e46b277993eea7c39e30da1f1')
+
+prepare() {
+  cd "$srcdir"
+  cp -a cvxopt-${pkgver} cvxopt-py2-${pkgver}
+}
+
+build() {
+  cd "$srcdir"/cvxopt-$pkgver
+
+  for lib in GSL FFTW GLPK DSDP; do
+    eval "export $'CVXOPT_BUILD_$lib'=1"
+  done
+
+  msg "Building Python2"
+  cd "$srcdir"/cvxopt-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/cvxopt-${pkgver}
+  python setup.py build
+}
+
+package_python2-cvxopt() {
+  depends=("python2" "lapack")
+
+  cd "$srcdir"/cvxopt-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
+
+package_python-cvxopt() {
+  depends=("python" "lapack")
+
+  cd "$srcdir"/cvxopt-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+}

Copied: python-cvxopt/repos/community-staging-x86_64/PKGBUILD (from rev 140909, python-cvxopt/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-19 16:13:52 UTC (rev 140910)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: BinkyTheClown <binky_at_archlinux_dot_us>
+# Contributor: Julien Ugon <bzklrm at gmail dot com>
+# Contributor: Lex Black <autumn-wind at web dot de>
+# Contributor: Gustavao A. Gomez Farhat <gustavo_gomez_farhat_at_gmail_dot_com>
+
+pkgbase=python-cvxopt
+pkgname=('python2-cvxopt' 'python-cvxopt')
+pkgver=1.1.7
+pkgrel=4
+pkgdesc="A free software package for convex optimization written in Python"
+url="http://cvxopt.org/"
+arch=('x86_64' 'i686')
+license=('GPL3')
+makedepends=('gsl fftw glpk dsdp python python2 lapack')
+optdepends=('gsl: for custom random number generators'
+            'fftw: for FFTW interface'
+            'glpk: solver for linear cone and PWL programming problems'
+            'dsdp: solver for linear cone semidefinite programming problems')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/cvxopt/cvxopt/archive/${pkgver}.tar.gz")
+sha1sums=('199ae22f7175be8e46b277993eea7c39e30da1f1')
+
+prepare() {
+  cd "$srcdir"
+  cp -a cvxopt-${pkgver} cvxopt-py2-${pkgver}
+}
+
+build() {
+  cd "$srcdir"/cvxopt-$pkgver
+
+  for lib in GSL FFTW GLPK DSDP; do
+    eval "export $'CVXOPT_BUILD_$lib'=1"
+  done
+
+  msg "Building Python2"
+  cd "$srcdir"/cvxopt-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/cvxopt-${pkgver}
+  python setup.py build
+}
+
+package_python2-cvxopt() {
+  depends=("python2" "lapack")
+
+  cd "$srcdir"/cvxopt-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
+
+package_python-cvxopt() {
+  depends=("python" "lapack")
+
+  cd "$srcdir"/cvxopt-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list