[arch-commits] Commit in pelican/repos/community-any (PKGBUILD PKGBUILD)

Jiachen Yang farseerfc at archlinux.org
Mon Dec 19 10:15:05 UTC 2016


    Date: Monday, December 19, 2016 @ 10:15:04
  Author: farseerfc
Revision: 200287

archrelease: copy trunk to community-any

Added:
  pelican/repos/community-any/PKGBUILD
    (from rev 200286, pelican/trunk/PKGBUILD)
Deleted:
  pelican/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  106 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 59 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-12-19 10:14:14 UTC (rev 200286)
+++ PKGBUILD	2016-12-19 10:15:04 UTC (rev 200287)
@@ -1,47 +0,0 @@
-# Maintainer: Jiachen Yang <farseerfc at gmail.com>
-# AUR Maintainer: Stefan Tatschner <rumpelsepp at sevenbyte.org>
-# Contributor: David Runge <dave at sleepmap.de>
-
-pkgname=pelican
-pkgver=3.6.3
-pkgrel=5
-pkgdesc="A tool to generate a static blog, with restructured text (or markdown) input files."
-arch=('any')
-url="http://getpelican.com"
-license=('AGPL3')
-makedepends=('python-sphinx' 'python-blinker')
-depends=('python-jinja' 'python-pygments' 'python-feedgenerator' 'python-pytz'
-         'python-docutils' 'python-blinker' 'python-unidecode' 'python-six'
-         'python-dateutil')
-optdepends=('python-markdown: Markdown support'
-            'asciidoc: AsciiDoc support'
-            'python-beautifulsoup4: importing from wordpress/dotclear/posterous'
-            'python-feedparser: importing from feeds'
-#            'python-rst2pdf: PDF generation' # FS#48890
-            'openssh: uploading through SSH'
-            'rsync: uploading through rsync+SSH'
-            'lftp: uploading through FTP'
-            's3cmd: uploading through S3'
-            'python-ghp-import: uploading through gh-pages'
-            'python-typogrify: typographical enhancements'
-            'python-mdx-video: easier embedding of youtube videos in markdown')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/getpelican/pelican/archive/$pkgver.tar.gz")
-sha256sums=('d19bc7df61afc5b68eba028f0cf0832ee2a12a04a01d7fe11bdfdd847ddd417b')
-
-build() {
-    cd "$srcdir/$pkgname-$pkgver/docs/"
-    make man
-    make text
-}
-
-package() {
-    cd "$srcdir/$pkgname-$pkgver"
-
-    install -d "$pkgdir/usr/share/man/man1/"
-    install -Dm644 docs/_build/man/*.1 "$pkgdir/usr/share/man/man1/"
-
-    install -d "$pkgdir/usr/share/doc/pelican/"
-    install -Dm644 docs/_build/text/*.txt "$pkgdir/usr/share/doc/pelican/"
-
-    python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-}

Copied: pelican/repos/community-any/PKGBUILD (from rev 200286, pelican/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-12-19 10:15:04 UTC (rev 200287)
@@ -0,0 +1,59 @@
+# Maintainer: Jiachen Yang <farseerfc at gmail.com>
+# AUR Maintainer: Stefan Tatschner <rumpelsepp at sevenbyte.org>
+# Contributor: David Runge <dave at sleepmap.de>
+
+pkgname=pelican
+pkgver=3.7.0
+pkgrel=1
+pkgdesc="A tool to generate a static blog, with restructured text (or markdown) input files."
+arch=('any')
+url="http://getpelican.com"
+license=('AGPL3')
+makedepends=('python-sphinx' 'python-blinker')
+depends=('python-jinja' 'python-pygments' 'python-feedgenerator' 'python-pytz'
+         'python-docutils' 'python-blinker' 'python-unidecode' 'python-six'
+         'python-dateutil')
+checkdepends=('python-tox' 'python-setuptools' 'python-lxml' 'git')
+optdepends=('python-markdown: Markdown support'
+            'asciidoc: AsciiDoc support'
+            'python-beautifulsoup4: importing from wordpress/dotclear/posterous'
+            'python-feedparser: importing from feeds'
+#            'python-rst2pdf: PDF generation' # FS#48890
+            'openssh: uploading through SSH'
+            'rsync: uploading through rsync+SSH'
+            'lftp: uploading through FTP'
+            's3cmd: uploading through S3'
+            'python-ghp-import: uploading through gh-pages'
+            'python-typogrify: typographical enhancements'
+	    'python-mdx-video: easier embedding of youtube videos in markdown')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/getpelican/pelican/archive/$pkgver.tar.gz")
+sha512sums=('e4b8a771737a8f6fab109b0f4544229f09141f38210b502f605ae449be7ba12bb43db6637592d2e9060255e923f092c6cfe8dc7bbeec1431d5b625f3a9b8222d')
+
+prepare() {
+    cd "$srcdir/$pkgname-$pkgver"
+
+    # fixing encoding error
+    # pending issue https://github.com/getpelican/pelican/pull/2067
+    sed -i "s|docs/changelog\.rst'|docs/changelog\.rst','r',encoding='utf-8'|" setup.py
+}
+
+package() {
+    cd "$srcdir/$pkgname-$pkgver"
+
+    LC_LANG=en_US.UTF-8 python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+    cd "$srcdir/$pkgname-$pkgver/docs/"
+    PYTHONPATH="$pkgdir/usr/lib/python$(python -c "import platform;print('.'.join(platform.python_version_tuple()[0:2]))")/site-packages/" make man
+    PYTHONPATH="$pkgdir/usr/lib/python$(python -c "import platform;print('.'.join(platform.python_version_tuple()[0:2]))")/site-packages/" make text
+
+    install -d "$pkgdir/usr/share/man/man1/"
+    install -Dm644 _build/man/*.1 "$pkgdir/usr/share/man/man1/"
+
+    install -d "$pkgdir/usr/share/doc/pelican/"
+    install -Dm644 _build/text/*.txt "$pkgdir/usr/share/doc/pelican/"
+}
+
+check() {
+    cd "$srcdir/$pkgname-$pkgver"
+    tox -e py35
+}



More information about the arch-commits mailing list