Date: Monday, October 17, 2022 @ 19:20:56
Author: felixonmars
Revision: 1329682
archrelease: copy trunk to community-any
Added:
python-pyx/repos/community-any/PKGBUILD
(from rev 1329681, python-pyx/trunk/PKGBUILD)
Deleted:
python-pyx/repos/community-any/PKGBUILD
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++--------------------
1 file changed, 40 insertions(+), 20 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-17 19:20:48 UTC (rev 1329681)
+++ PKGBUILD 2022-10-17 19:20:56 UTC (rev 1329682)
@@ -1,20 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: Douglas Soares de Andrade <[email protected]>
-# Contributor: William Rea <[email protected]>
-# Contributor: Stefan Husmann <[email protected]>
-
-pkgname=python-pyx
-pkgver=0.15
-pkgrel=6
-pkgdesc='Python library for the creation of PostScript and PDF files'
-arch=('any')
-url="http://pyx.sourceforge.net"
-license=('GPL')
-depends=('python' 'texlive-core')
-source=("https://pypi.io/packages/source/p/pyx/PyX-$pkgver.tar.gz")
-sha512sums=('c312b38b9f204b8a8832ab71da5be8c9afc417a095c8ccf242b3d3ebec63338a9d55abab4e548d1718abadf12ea7652cdad51731acdc8f6acd3d8608aa919919')
-
-package() {
- cd PyX-$pkgver
- python setup.py install -O1 --root="$pkgdir"
-}
Copied: python-pyx/repos/community-any/PKGBUILD (from rev 1329681,
python-pyx/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-17 19:20:56 UTC (rev 1329682)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Douglas Soares de Andrade <[email protected]>
+# Contributor: William Rea <[email protected]>
+# Contributor: Stefan Husmann <[email protected]>
+
+pkgname=python-pyx
+pkgver=0.16
+pkgrel=1
+pkgdesc='Python library for the creation of PostScript and PDF files'
+arch=('any')
+url="https://pyx-project.org/"
+license=('GPL')
+depends=('python' 'texlive-core')
+makedepends=('python-setuptools')
+checkdepends=('ghostscript' 'python-pillow' 'python-testfixtures')
+source=("https://github.com/pyx-project/pyx/archive/refs/tags/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('2d85ffb4e2bbf88be0a2c77ff0865593794b15fe26424e590e6b2152691c425d27d11a7af5a2e6211774d01a9feaa4c3c00f922862ca5ca42e119f748b0300c2')
+
+prepare() {
+ cd pyx-$pkgver/pyx/data
+ # https://github.com/pyx-project/pyx/issues/39
+ sed -i 's|methods = local internal pykpathsea kpsewhich|methods = local
internal recursivedir pykpathsea kpsewhich|' pyxrc
+ echo "recursivedir = /usr/share/texmf-dist/fonts/type1/public/amsfonts/" >>
pyxrc
+}
+
+build() {
+ cd pyx-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd pyx-$pkgver
+ # doctest disabled: sphinx_selective_exclude isn't available in our repos
+ make -C test unit functional svg
+}
+
+package() {
+ cd pyx-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+}