Permalink
Browse files

WeasyPrint 0.8

  • Loading branch information...
1 parent 76a937c commit d9d5daac2cc49f6e515123fd8b8063b2857d9751 @SimonSapin SimonSapin committed May 9, 2012
View
@@ -1,6 +1,6 @@
# Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
pkgname='python-cairosvg'
-pkgver=0.3.1
+pkgver=0.4.2
pkgrel=1
pkgdesc="A Simple SVG Converter for Cairo"
arch=('any')
@@ -9,7 +9,7 @@ license=('LGPL3')
source=("http://pypi.python.org/packages/source/C/CairoSVG/CairoSVG-${pkgver}.tar.gz")
makedepends=('python')
depends=('python' 'python-cairo')
-md5sums=('51359fa55bc73a6bed788050cae015b5')
+md5sums=('668ee530e51d48dbe4387b874974a07e')
package() {
View
@@ -0,0 +1,20 @@
+# Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
+_pypi_name='cssselect'
+pkgver=0.6.1
+pkgrel=1
+pkgdesc="Parses CSS3 Selectors and translates them to XPath 1.0."
+license=('BSD')
+arch=('any')
+depends=('python')
+
+pkgname="python-${_pypi_name}"
+_pypi_name_inital=$(echo ${_pypi_name}|cut -c1)
+source=("http://pypi.python.org/packages/source/${_pypi_name_inital}/${_pypi_name}/${_pypi_name}-${pkgver}.tar.gz")
+url="http://packages.python.org/${_pypi_name}/"
+md5sums=('2f3732963f30de5578a7594df0d06700')
+
+
+package() {
+ cd "${srcdir}/${_pypi_name}-${pkgver}"
+ python3 setup.py install --root="${pkgdir}/" --optimize=1
+}
View
@@ -0,0 +1,21 @@
+# Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
+_pypi_name='tinycss'
+pkgver=0.2
+pkgrel=1
+pkgdesc="A complete yet simple CSS parser for Python."
+license=('BSD')
+arch=('i686' 'x86_64')
+makedepends=('python' 'python-distribute' 'cython')
+depends=('python')
+
+pkgname="python-${_pypi_name}"
+_pypi_name_inital=$(echo ${_pypi_name}|cut -c1)
+source=("http://pypi.python.org/packages/source/${_pypi_name_inital}/${_pypi_name}/${_pypi_name}-${pkgver}.tar.gz")
+url="http://packages.python.org/${_pypi_name}/"
+md5sums=('55321a08a0fa60894b798b24a3300940')
+
+
+package() {
+ cd "${srcdir}/${_pypi_name}-${pkgver}"
+ python3 setup.py install --root="${pkgdir}/" --optimize=1
+}
View
@@ -1,17 +1,20 @@
# Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
-pkgname='python-weasyprint'
-pkgver=0.6.1
-pkgrel=3
+_pypi_name='WeasyPrint'
+pkgver=0.8
+pkgrel=1
pkgdesc="Converts web documents (HTML, CSS, SVG, ...) to PDF."
+license=('BSD')
arch=('any')
url="http://weasyprint.org/"
-license=('AGPL3')
-source=("http://pypi.python.org/packages/source/W/WeasyPrint/WeasyPrint-${pkgver}.tar.gz")
-makedepends=('python')
+makedepends=('python' 'python-distribute')
depends=('python' 'pango>=1.29.3' 'python-gobject' 'python-cairo'
- 'python-lxml' 'python-pystacia' 'python-cssutils>=0.9.9'
- 'python-cairosvg>=0.3')
-md5sums=('6f401b5787719f5a8f60dd5fcbf8c519')
+ 'python-lxml' 'python-pystacia' 'python-cairosvg>=0.4.1'
+ 'python-tinycss>=0.2' 'python-cssselect>=0.6')
+
+pkgname="python-weasyprint"
+_pypi_name_inital=$(echo ${_pypi_name}|cut -c1)
+source=("http://pypi.python.org/packages/source/${_pypi_name_inital}/${_pypi_name}/${_pypi_name}-${pkgver}.tar.gz")
+md5sums=('5bb64f03ea6ccc5d1036bf4455944fda')
package() {
@@ -1,6 +1,6 @@
# Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
pkgname='python2-cairosvg'
-pkgver=0.3.1
+pkgver=0.4.2
pkgrel=1
pkgdesc="A Simple SVG Converter for Cairo"
arch=('any')
@@ -9,7 +9,7 @@ license=('LGPL3')
source=("http://pypi.python.org/packages/source/C/CairoSVG/CairoSVG-${pkgver}.tar.gz")
makedepends=('python2')
depends=('python2' 'python2-cairo')
-md5sums=('51359fa55bc73a6bed788050cae015b5')
+md5sums=('668ee530e51d48dbe4387b874974a07e')
package() {
View
@@ -0,0 +1,20 @@
+# Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
+_pypi_name='cssselect'
+pkgver=0.6.1
+pkgrel=1
+pkgdesc="Parses CSS3 Selectors and translates them to XPath 1.0."
+license=('BSD')
+arch=('any')
+depends=('python2')
+
+pkgname="python2-${_pypi_name}"
+_pypi_name_inital=$(echo ${_pypi_name}|cut -c1)
+source=("http://pypi.python.org/packages/source/${_pypi_name_inital}/${_pypi_name}/${_pypi_name}-${pkgver}.tar.gz")
+url="http://packages.python.org/${_pypi_name}/"
+md5sums=('2f3732963f30de5578a7594df0d06700')
+
+
+package() {
+ cd "${srcdir}/${_pypi_name}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+}
View
@@ -0,0 +1,21 @@
+# Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
+_pypi_name='tinycss'
+pkgver=0.2
+pkgrel=1
+pkgdesc="A complete yet simple CSS parser for Python."
+license=('BSD')
+arch=('i686' 'x86_64')
+makedepends=('python2' 'python2-distribute' 'cython2')
+depends=('python2')
+
+pkgname="python2-${_pypi_name}"
+_pypi_name_inital=$(echo ${_pypi_name}|cut -c1)
+source=("http://pypi.python.org/packages/source/${_pypi_name_inital}/${_pypi_name}/${_pypi_name}-${pkgver}.tar.gz")
+url="http://packages.python.org/${_pypi_name}/"
+md5sums=('55321a08a0fa60894b798b24a3300940')
+
+
+package() {
+ cd "${srcdir}/${_pypi_name}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+}
@@ -1,22 +1,24 @@
# Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
-pkgname='python2-weasyprint'
-pkgver=0.6.1
-pkgrel=3
+_pypi_name='WeasyPrint'
+pkgver=0.8
+pkgrel=2
pkgdesc="Converts web documents (HTML, CSS, SVG, ...) to PDF."
+license=('BSD')
arch=('any')
url="http://weasyprint.org/"
-license=('AGPL3')
-source=("http://pypi.python.org/packages/source/W/WeasyPrint/WeasyPrint-${pkgver}.tar.gz")
-makedepends=('python2')
+makedepends=('python2' 'python2-distribute')
depends=('python2' 'pango>=1.29.3' 'python2-gobject' 'python2-cairo'
- 'python2-lxml' 'python2-pystacia' 'python2-cssutils>=0.9.9'
- 'python2-cairosvg>=0.3')
-md5sums=('6f401b5787719f5a8f60dd5fcbf8c519')
+ 'python2-lxml' 'python2-pystacia' 'python2-cairosvg>=0.4.1'
+ 'python2-tinycss>=0.2' 'python2-cssselect>=0.6')
+
+pkgname="python2-weasyprint"
+_pypi_name_inital=$(echo ${_pypi_name}|cut -c1)
+source=("http://pypi.python.org/packages/source/${_pypi_name_inital}/${_pypi_name}/${_pypi_name}-${pkgver}.tar.gz")
+md5sums=('5bb64f03ea6ccc5d1036bf4455944fda')
package() {
cd "$srcdir/WeasyPrint-$pkgver"
python2 setup.py install --root="$pkgdir/" --optimize=1
- script="$pkgdir/usr/bin/weasyprint"
- mv "$script" "${script}2" # Avoid a conflict with python-weasyprint
+ rm -rf "$pkgdir/usr/bin" # Avoid a conflict: only keep the Py3 executable.
}

0 comments on commit d9d5daa

Please sign in to comment.