pkgsrc/www/py-pelican/Makefile

75 lines
2.7 KiB
Makefile
Raw Normal View History

2019-10-22 00:11:33 +02:00
# $NetBSD: Makefile,v 1.8 2019/10/21 22:11:34 adam Exp $
Updated www/pelican to 3.7.1 Upstream changes : 3.6.3 to 3.7.0 : Atom feeds output <content> in addition to <summary> Atom feeds use <published> for the original publication date and <updated> for modifications Simplify Atom feed ID generation and support URL fragments Produce category feeds with category-specific titles RSS feeds now default to summary instead of full content — set RSS_FEED_SUMMARY_ONLY = False to revert to previous behavior Replace MD_EXTENSIONS with MARKDOWN setting Replace JINJA_EXTENSIONS with more-robust JINJA_ENVIRONMENT setting Improve summary truncation logic to handle special characters and tags that span multiple lines, using HTML parser instead of regular expressions Include summary when looking for intra-site link substitutions Link to authors and index via {author}name and {index} syntax Override widget names via LINKS_WIDGET_NAME and SOCIAL_WIDGET_NAME Add INDEX_SAVE_AS option to override default index.html value Remove PAGES context variable for themes in favor of pages SLUG_SUBSTITUTIONS now accepts 3-tuple elements, allowing URL slugs to contain non-alphanumeric characters Tag and category slugs can be controlled with greater precision using the TAG_SUBSTITUTIONS and CATEGORY_SUBSTITUTIONS settings Author slugs can be controlled with greater precision using the AUTHOR_SUBSTITUTIONS setting DEFAULT_DATE can be defined as a string Use mtime instead of ctime when DEFAULT_DATE = 'fs' Add --fatal=errors|warnings option for use with continuous integration When using generator-level caching, ensure previously-cached files are processed instead of just new files Add Python and Pelican version information to debug output Improve compatibility with Python 3.5 Comply with and enforce PEP8 guidelines Replace tables in settings documentation with data:: directives 3.7.0 to 3.7.1 : Fix locale issues in Quickstart script Specify encoding for README and CHANGELOG in setup.py Pkgsrc changes : removed import of pelican in docs generation, which prevented building the package
2017-02-02 21:30:55 +01:00
DISTNAME= pelican-3.7.1
PKGREVISION= 1
GITHUB_PROJECT= pelican
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=getpelican/}
2015-11-27 23:14:57 +01:00
EXTRACT_SUFX= .zip
MAINTAINER= nils@NetBSD.org
2017-09-03 10:53:04 +02:00
HOMEPAGE= https://blog.getpelican.com/
COMMENT= Static site generator that supports Markdown and reST syntax
LICENSE= gnu-agpl-v3
DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
DEPENDS+= ${PYPKGPREFIX}-markdown-[0-9]*:../../textproc/py-markdown
DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.7:../../textproc/py-jinja2
DEPENDS+= ${PYPKGPREFIX}-pygments>=1.4:../../textproc/py-pygments
DEPENDS+= ${PYPKGPREFIX}-feedgenerator>=1.9:../../www/py-feedgenerator
DEPENDS+= ${PYPKGPREFIX}-pytz>=0a:../../time/py-pytz
DEPENDS+= ${PYPKGPREFIX}-blinker-[0-9]*:../../devel/py-blinker
DEPENDS+= ${PYPKGPREFIX}-Unidecode-[0-9]*:../../textproc/py-Unidecode
DEPENDS+= ${PYPKGPREFIX}-six>=1.4:../../lang/py-six
DEPENDS+= ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
2019-10-22 00:11:33 +02:00
PYTHON_VERSIONED_DEPENDENCIES= sphinx:build
Updated www/pelican to 3.7.1 Upstream changes : 3.6.3 to 3.7.0 : Atom feeds output <content> in addition to <summary> Atom feeds use <published> for the original publication date and <updated> for modifications Simplify Atom feed ID generation and support URL fragments Produce category feeds with category-specific titles RSS feeds now default to summary instead of full content — set RSS_FEED_SUMMARY_ONLY = False to revert to previous behavior Replace MD_EXTENSIONS with MARKDOWN setting Replace JINJA_EXTENSIONS with more-robust JINJA_ENVIRONMENT setting Improve summary truncation logic to handle special characters and tags that span multiple lines, using HTML parser instead of regular expressions Include summary when looking for intra-site link substitutions Link to authors and index via {author}name and {index} syntax Override widget names via LINKS_WIDGET_NAME and SOCIAL_WIDGET_NAME Add INDEX_SAVE_AS option to override default index.html value Remove PAGES context variable for themes in favor of pages SLUG_SUBSTITUTIONS now accepts 3-tuple elements, allowing URL slugs to contain non-alphanumeric characters Tag and category slugs can be controlled with greater precision using the TAG_SUBSTITUTIONS and CATEGORY_SUBSTITUTIONS settings Author slugs can be controlled with greater precision using the AUTHOR_SUBSTITUTIONS setting DEFAULT_DATE can be defined as a string Use mtime instead of ctime when DEFAULT_DATE = 'fs' Add --fatal=errors|warnings option for use with continuous integration When using generator-level caching, ensure previously-cached files are processed instead of just new files Add Python and Pelican version information to debug output Improve compatibility with Python 3.5 Comply with and enforce PEP8 guidelines Replace tables in settings documentation with data:: directives 3.7.0 to 3.7.1 : Fix locale issues in Quickstart script Specify encoding for README and CHANGELOG in setup.py Pkgsrc changes : removed import of pelican in docs generation, which prevented building the package
2017-02-02 21:30:55 +01:00
USE_TOOLS+= bash:run make:build sed:build
REPLACE_PYTHON+= pelican/tools/pelican_import.py
REPLACE_PYTHON+= pelican/tools/pelican_quickstart.py
REPLACE_PYTHON+= pelican/tools/pelican_themes.py
REPLACE_PYTHON+= pelican/tools/templates/pelicanconf.py.in
REPLACE_PYTHON+= pelican/tools/templates/publishconf.py.in
REPLACE_INTERPRETER+= bash
REPLACE.bash.old= /usr/bin/env bash
REPLACE.bash.new= ${TOOLS_PATH.bash}
REPLACE_FILES.bash= pelican/tools/templates/develop_server.sh.in
Updated www/pelican to 3.7.1 Upstream changes : 3.6.3 to 3.7.0 : Atom feeds output <content> in addition to <summary> Atom feeds use <published> for the original publication date and <updated> for modifications Simplify Atom feed ID generation and support URL fragments Produce category feeds with category-specific titles RSS feeds now default to summary instead of full content — set RSS_FEED_SUMMARY_ONLY = False to revert to previous behavior Replace MD_EXTENSIONS with MARKDOWN setting Replace JINJA_EXTENSIONS with more-robust JINJA_ENVIRONMENT setting Improve summary truncation logic to handle special characters and tags that span multiple lines, using HTML parser instead of regular expressions Include summary when looking for intra-site link substitutions Link to authors and index via {author}name and {index} syntax Override widget names via LINKS_WIDGET_NAME and SOCIAL_WIDGET_NAME Add INDEX_SAVE_AS option to override default index.html value Remove PAGES context variable for themes in favor of pages SLUG_SUBSTITUTIONS now accepts 3-tuple elements, allowing URL slugs to contain non-alphanumeric characters Tag and category slugs can be controlled with greater precision using the TAG_SUBSTITUTIONS and CATEGORY_SUBSTITUTIONS settings Author slugs can be controlled with greater precision using the AUTHOR_SUBSTITUTIONS setting DEFAULT_DATE can be defined as a string Use mtime instead of ctime when DEFAULT_DATE = 'fs' Add --fatal=errors|warnings option for use with continuous integration When using generator-level caching, ensure previously-cached files are processed instead of just new files Add Python and Pelican version information to debug output Improve compatibility with Python 3.5 Comply with and enforce PEP8 guidelines Replace tables in settings documentation with data:: directives 3.7.0 to 3.7.1 : Fix locale issues in Quickstart script Specify encoding for README and CHANGELOG in setup.py Pkgsrc changes : removed import of pelican in docs generation, which prevented building the package
2017-02-02 21:30:55 +01:00
SUBST_CLASSES+= version
SUBST_STAGE.version= pre-build
SUBST_MESSAGE.version= Removing useless import of pelican.
SUBST_FILES.version= docs/conf.py
SUBST_SED.version= -e 's,from pelican,\#from pelican,g'
SUBST_SED.version+= -e 's,release = __version__,release = "${PKGVERSION_NOREV}",g'
DOCDIR= ${PREFIX}/share/doc/pelican
INSTALLATION_DIRS+= ${PKGMANDIR}/man1/ ${DOCDIR}
MANPAGES= pelican-themes.1 pelican-theming.1 pelican.1
TXTDOCFILES= changelog.txt content.txt contribute.txt faq.txt \
importer.txt index.txt install.txt internals.txt \
pelican-themes.txt plugins.txt publish.txt quickstart.txt \
report.txt settings.txt themes.txt tips.txt
AUTO_MKDIRS= yes
post-build:
2019-10-22 00:11:33 +02:00
cd ${WRKSRC}/docs/ && make SPHINXBUILD=${PREFIX}/bin/sphinx-build-${PYVERSSUFFIX} text man
post-install:
.for f in ${MANPAGES}
${INSTALL_DATA} ${WRKSRC}/docs/_build/man/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
.endfor
.for i in ${TXTDOCFILES}
${INSTALL_DATA} ${WRKSRC}/docs/_build/text/${i} ${DESTDIR}${DOCDIR}/
.endfor
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
2019-10-22 00:11:33 +02:00
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"