mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-27 06:21:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			58 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Isaac Dunham <ibid.ag@gmail.com>
 | |
| # Maintainer: Isaac Dunham <ibid.ag@gmail.com>
 | |
| pkgname=py-matplotlib
 | |
| pkgver=1.5.1
 | |
| pkgrel=0
 | |
| pkgdesc="A Python library for plots"
 | |
| url="http://matplotlib.org"
 | |
| arch="all"
 | |
| license="custom"
 | |
| depends="python py-numpy py-tkinter py-dateutil py-parsing py-tz py-cycler"
 | |
| depends_dev=""
 | |
| makedepends="$depends python-dev gfortran py-numpy-dev freetype-dev
 | |
| 	libpng-dev tk-dev py-setuptools"
 | |
| 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="b22dc4962f36aab919a7125b3b35953b  matplotlib-1.5.1.tar.gz"
 | |
| sha256sums="64c9f7cce4075d05c2602108ee1795aa6455c2c1d8e4329c95c83465e3806887  matplotlib-1.5.1.tar.gz"
 | |
| sha512sums="da99fffcb4fb600ed4386ce89e61725768d4209f3bd4ab174e0d8474c24b2736516a4299ceaa0714b276d7d02c3e33e39a6204e014569ec3f6249085b1ba7a0d  matplotlib-1.5.1.tar.gz"
 |