X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id B825EDC039B for ; Tue, 9 Sep 2014 05:23:02 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id hz1so7242569pad.7 for ; Mon, 08 Sep 2014 22:22:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TSFmMHrasVPYi4lYsnNZVhWrxJFqX5HYL/tGS/LyD7U=; b=j/bOBrIXcSJCkbc8V5tLmaZRK0P7mm8N86ZXHAhOejgJJ2tLZOG/qSpMmcLEh3O0bn tZcdhNJuCBUdYnkrNBwVhVrknxdik7M+U4jIdll6y7z3+a/NslLoRPE5U5ZXnMbeDkR5 l1ODzd3+e824IPVzO1OXzg6UWPkZpkj8oFuYDq9l0iQZkYHMgtjoz6ElaYf583u6VIHg PszF0gTt6a4SqRz2Ly/AGwffw1nvZ1IQH883IpPMPdxeCGN8MmpV7Ta338gxPTWiF/Xa LNDiMAVAoG3W71pm+XLl6I1HRBbsg8sPdHFwAKSXWCOtgh834idOVEcKPGQZBi5hmKzp Dbmg== X-Received: by 10.66.176.97 with SMTP id ch1mr47361367pac.101.1410240164625; Mon, 08 Sep 2014 22:22:44 -0700 (PDT) Received: from localhost.localdomain ([50.0.225.234]) by mx.google.com with ESMTPSA id ic5sm10365499pbb.3.2014.09.08.22.22.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Sep 2014 22:22:44 -0700 (PDT) From: Isaac Dunham To: alpine-devel@lists.alpinelinux.org Cc: Isaac Dunham Subject: [alpine-devel] [PATCH 2/2] testing/py-matplotlib: new aport Date: Mon, 8 Sep 2014 22:22:29 -0700 Message-Id: <1410240149-6592-2-git-send-email-ibid.ag@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1410240149-6592-1-git-send-email-ibid.ag@gmail.com> References: <1410240149-6592-1-git-send-email-ibid.ag@gmail.com> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: A Python library for preparing plots. --- testing/py-matplotlib/APKBUILD | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 testing/py-matplotlib/APKBUILD diff --git a/testing/py-matplotlib/APKBUILD b/testing/py-matplotlib/APKBUILD new file mode 100644 index 0000000..7f336af --- /dev/null +++ b/testing/py-matplotlib/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Isaac Dunham +# Maintainer: Isaac Dunham +pkgname=py-matplotlib +pkgver=1.3.1 +pkgrel=0 +pkgdesc="A Python library for plots" +url="http://matplotlib.org" +arch="all" +license="custom" +depends="python py-numpy py-tkinter" +depends_dev="" +makedepends="$depends python-dev gfortran py-numpy-dev freetype-dev + libpng-dev tk-dev" +install="" +subpackages="$pkgname-doc $pkgname-tests" +source="matplotlib-$pkgver.tar.gz::https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz" + +_builddir="$srcdir"/matplotlib-$pkgver +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" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 + install -m755 -d "$pkgdir"/usr/share/licenses/custom/$pkgname + install -m644 LICENSE/* "$pkgdir"/usr/share/licenses/custom/$pkgname/ +} + +tests() { + pkgdesc="Tests for matplotlib" + arch="noarch" + depends="$depends py-nose" + cd "$pkgdir"/usr/lib || return 1 + export _pysub="`ls`" && test -n "$_pysub" || return 1 + mkdir -p "$subpkgdir"/usr/lib/"$_pysub"/site-packages/matplotlib \ + || return 1 + mv "$_pysub"/site-packages/matplotlib/tests \ + "$subpkgdir"/usr/lib/"$_pysub"/site-packages/matplotlib \ + || return 1 + +} + +md5sums="d90d1f84140fc924ecb8f8610affd665 matplotlib-1.3.1.tar.gz" +sha256sums="144125c941f72d900fcd2d1d676bfd47c9043af74ed62b87341dc12a55ec1454 matplotlib-1.3.1.tar.gz" +sha512sums="f178e61f2133078daec2cd7bc05411a26da36121607a72115a991052dd002c72daaf8a7a60513b861ac50aabf0524db155cd748925abae23e2311a98b704ee2b matplotlib-1.3.1.tar.gz" -- 2.1.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---