[arch-commits] Commit in pelican/repos (3 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 16 07:36:47 UTC 2020


    Date: Monday, November 16, 2020 @ 07:36:47
  Author: felixonmars
Revision: 755155

archrelease: copy trunk to community-staging-any

Added:
  pelican/repos/community-staging-any/
  pelican/repos/community-staging-any/0001-MANIFEST.in-include-jinja2-templates.patch
    (from rev 755154, pelican/trunk/0001-MANIFEST.in-include-jinja2-templates.patch)
  pelican/repos/community-staging-any/PKGBUILD
    (from rev 755154, pelican/trunk/PKGBUILD)

-------------------------------------------------+
 0001-MANIFEST.in-include-jinja2-templates.patch |   21 +++++++
 PKGBUILD                                        |   64 ++++++++++++++++++++++
 2 files changed, 85 insertions(+)

Copied: pelican/repos/community-staging-any/0001-MANIFEST.in-include-jinja2-templates.patch (from rev 755154, pelican/trunk/0001-MANIFEST.in-include-jinja2-templates.patch)
===================================================================
--- community-staging-any/0001-MANIFEST.in-include-jinja2-templates.patch	                        (rev 0)
+++ community-staging-any/0001-MANIFEST.in-include-jinja2-templates.patch	2020-11-16 07:36:47 UTC (rev 755155)
@@ -0,0 +1,21 @@
+From 3565094b10b74217f0b78d9c1f2f06f2c1cf61ea Mon Sep 17 00:00:00 2001
+From: Jiachen Yang <farseerfc at gmail.com>
+Date: Mon, 24 Aug 2020 22:34:02 +0900
+Subject: [PATCH] MANIFEST.in include jinja2 templates
+
+---
+ MANIFEST.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/MANIFEST.in b/MANIFEST.in
+index 138c8f00..469f6fff 100644
+--- a/MANIFEST.in
++++ b/MANIFEST.in
+@@ -1,3 +1,3 @@
+ include *.rst
+-recursive-include pelican *.html *.css *png *.rst *.markdown *.md *.mkd *.xml *.py
++recursive-include pelican *.html *.css *png *.rst *.markdown *.md *.mkd *.xml *.py *.jinja2
+ include LICENSE THANKS docs/changelog.rst pyproject.toml
+-- 
+2.28.0
+

Copied: pelican/repos/community-staging-any/PKGBUILD (from rev 755154, pelican/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-16 07:36:47 UTC (rev 755155)
@@ -0,0 +1,64 @@
+# 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=4.5.1
+pkgrel=2
+pkgdesc="A tool to generate a static blog, with restructured text (or markdown) input files."
+arch=('any')
+url="https://blog.getpelican.com/"
+license=('AGPL3')
+makedepends=('python-sphinx')
+depends=('python-jinja' 'python-pygments' 'python-feedgenerator' 'python-pytz'
+         'python-docutils' 'python-blinker' 'python-unidecode' 'python-six'
+         'python-dateutil')
+checkdepends=('python-setuptools' 'python-lxml' 'git' 'python-nose' 'python-feedparser' 'python-markdown' 'python-typogrify')
+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'
+            'pandoc: for pelican-import auto convert'
+	    '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=('cb27399d3c280981d1e8cd01dbfd54b1a8bd11d9b87c4717226a2a467d73c3ad4e038a8e544534289a73e9e3cc64b4414e2b3bbf2cdd05b917d02df79ab40b5a')
+
+build() {
+    # sphinx tried to import pelican, make it happy
+    cd "$srcdir/$pkgname-$pkgver/docs"
+    PYTHONPATH=".." make man
+    PYTHONPATH=".." make text
+}
+
+package() {
+    cd "$srcdir/$pkgname-$pkgver"
+
+    LANG=en_US.UTF-8 python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+    cd "docs"
+
+    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"
+    ## TODO: fix upstream tests
+    ##  --exclude="test_log_filter" # will only work with normal logger instead of nosetests logger
+    ##  --exclude="test_basic_generation_works" # will only work with python-pygments==2.6.1
+    ##  --exclude="test_custom_generation_works" # will only work with python-pygments==2.6.1
+    LANG=en_US.UTF-8 nosetests \
+      --exclude="test_log_filter" \
+      --exclude="test_basic_generation_works" \
+      --exclude="test_custom_generation_works"
+}



More information about the arch-commits mailing list