pkgsrc/www/py-pelican/Makefile

67 lines
2.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.11 2020/05/23 09:15:13 rillig Exp $
Updated www/py-pelican to 4.2.0. Upstream changes: 3.7.1 to 4.0: * Replace develop_server.sh script with pelican --listen * Improved copy/link behavior for large static files (e.g., videos) * New {static} syntax to link to static content; content linked to by * {static} and {attach} is automatically copied over even if not in * STATIC_PATHS * Pages can now have draft status * Show current settings via new --print-settings flag * New signals: feed_generated and page_generated_write_page * Replace Fabric with Invoke and fabfile.py template with tasks.py * New ARTICLE_TRANSLATION_ID and PAGE_TRANSLATION_ID settings to * specify metadata attributes used to identify/disable translations * HTML reader now parses multiple occurrences of metadata tags as a list * New Blogger XML backup importer * Wordpress importer now updates file links to point to local copies if the * files were downloaded with --wp-attach. * Many bug fixes, tweaks, and other enhancements 4.0 to 4.0.1: * Refactor pelican.server logging * Fix bug in which all static files were processed as "draft" * Bug fixes for Invoke/Makefile automation, Importer, and other miscellanea 4.0.1 to 4.1: * Live browser reload upon changed files (provided via Invoke task) * Add pyproject.toml, managed by Poetry * Support for invoking python -m pelican * Add relative source path attribute to content * Allow directories in EXTRA_PATH_METADATA * Add all_articles variable to period pages (for recent posts functionality) * Improve debug mode output * Remove blank or duplicate summaries from Atom feed * Fix bugs in pagination, pelican-import, pelican-quickstart, and feed importer 4.1 to 4.1.1: * Add AutoPub to auto-publish releases on PR merge * Add CSS classes for reStructuredText figures * Pass argv to Pelican main entrypoint * Set default content status to a blank string rather than None 4.1.1 to 4.1.2: * Fix pelican.settings.load_source to avoid caching issues 4.1.2 to 4.1.3: * Fix quick-start docs regarding pelican --listen * Set default listen address to 127.0.0.1 * Add extra/optional Markdown dependency to setup.py * Use correct SSH port syntax for rsync in tasks.py * Place all deprecated settings handling together * Add related project URLs for display on PyPI * Skip some tests on Windows that can't pass due to filesystem differences 4.1.3 to 4.2.0: * Support inline SVGs; don't treat titles in SVGs as HTML titles * Add category to feeds (in addition to tags) * Improve content metadata field docs * Add docs for including other Markdown/reST files in content Pkgsrc changes: * updated the way software version is brought to the documentation (upstream imports it from the software, but this prevents from building the package)
2020-04-19 22:17:55 +02:00
DISTNAME= pelican-4.2.0
PKGREVISION= 2
GITHUB_PROJECT= pelican
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=getpelican/}
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
USE_TOOLS+= 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
Updated www/py-pelican to 4.2.0. Upstream changes: 3.7.1 to 4.0: * Replace develop_server.sh script with pelican --listen * Improved copy/link behavior for large static files (e.g., videos) * New {static} syntax to link to static content; content linked to by * {static} and {attach} is automatically copied over even if not in * STATIC_PATHS * Pages can now have draft status * Show current settings via new --print-settings flag * New signals: feed_generated and page_generated_write_page * Replace Fabric with Invoke and fabfile.py template with tasks.py * New ARTICLE_TRANSLATION_ID and PAGE_TRANSLATION_ID settings to * specify metadata attributes used to identify/disable translations * HTML reader now parses multiple occurrences of metadata tags as a list * New Blogger XML backup importer * Wordpress importer now updates file links to point to local copies if the * files were downloaded with --wp-attach. * Many bug fixes, tweaks, and other enhancements 4.0 to 4.0.1: * Refactor pelican.server logging * Fix bug in which all static files were processed as "draft" * Bug fixes for Invoke/Makefile automation, Importer, and other miscellanea 4.0.1 to 4.1: * Live browser reload upon changed files (provided via Invoke task) * Add pyproject.toml, managed by Poetry * Support for invoking python -m pelican * Add relative source path attribute to content * Allow directories in EXTRA_PATH_METADATA * Add all_articles variable to period pages (for recent posts functionality) * Improve debug mode output * Remove blank or duplicate summaries from Atom feed * Fix bugs in pagination, pelican-import, pelican-quickstart, and feed importer 4.1 to 4.1.1: * Add AutoPub to auto-publish releases on PR merge * Add CSS classes for reStructuredText figures * Pass argv to Pelican main entrypoint * Set default content status to a blank string rather than None 4.1.1 to 4.1.2: * Fix pelican.settings.load_source to avoid caching issues 4.1.2 to 4.1.3: * Fix quick-start docs regarding pelican --listen * Set default listen address to 127.0.0.1 * Add extra/optional Markdown dependency to setup.py * Use correct SSH port syntax for rsync in tasks.py * Place all deprecated settings handling together * Add related project URLs for display on PyPI * Skip some tests on Windows that can't pass due to filesystem differences 4.1.3 to 4.2.0: * Support inline SVGs; don't treat titles in SVGs as HTML titles * Add category to feeds (in addition to tags) * Improve content metadata field docs * Add docs for including other Markdown/reST files in content Pkgsrc changes: * updated the way software version is brought to the documentation (upstream imports it from the software, but this prevents from building the package)
2020-04-19 22:17:55 +02:00
REPLACE_PYTHON+= pelican/tools/templates/publishconf.py.jinja2
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
Updated www/py-pelican to 4.2.0. Upstream changes: 3.7.1 to 4.0: * Replace develop_server.sh script with pelican --listen * Improved copy/link behavior for large static files (e.g., videos) * New {static} syntax to link to static content; content linked to by * {static} and {attach} is automatically copied over even if not in * STATIC_PATHS * Pages can now have draft status * Show current settings via new --print-settings flag * New signals: feed_generated and page_generated_write_page * Replace Fabric with Invoke and fabfile.py template with tasks.py * New ARTICLE_TRANSLATION_ID and PAGE_TRANSLATION_ID settings to * specify metadata attributes used to identify/disable translations * HTML reader now parses multiple occurrences of metadata tags as a list * New Blogger XML backup importer * Wordpress importer now updates file links to point to local copies if the * files were downloaded with --wp-attach. * Many bug fixes, tweaks, and other enhancements 4.0 to 4.0.1: * Refactor pelican.server logging * Fix bug in which all static files were processed as "draft" * Bug fixes for Invoke/Makefile automation, Importer, and other miscellanea 4.0.1 to 4.1: * Live browser reload upon changed files (provided via Invoke task) * Add pyproject.toml, managed by Poetry * Support for invoking python -m pelican * Add relative source path attribute to content * Allow directories in EXTRA_PATH_METADATA * Add all_articles variable to period pages (for recent posts functionality) * Improve debug mode output * Remove blank or duplicate summaries from Atom feed * Fix bugs in pagination, pelican-import, pelican-quickstart, and feed importer 4.1 to 4.1.1: * Add AutoPub to auto-publish releases on PR merge * Add CSS classes for reStructuredText figures * Pass argv to Pelican main entrypoint * Set default content status to a blank string rather than None 4.1.1 to 4.1.2: * Fix pelican.settings.load_source to avoid caching issues 4.1.2 to 4.1.3: * Fix quick-start docs regarding pelican --listen * Set default listen address to 127.0.0.1 * Add extra/optional Markdown dependency to setup.py * Use correct SSH port syntax for rsync in tasks.py * Place all deprecated settings handling together * Add related project URLs for display on PyPI * Skip some tests on Windows that can't pass due to filesystem differences 4.1.3 to 4.2.0: * Support inline SVGs; don't treat titles in SVGs as HTML titles * Add category to feeds (in addition to tags) * Improve content metadata field docs * Add docs for including other Markdown/reST files in content Pkgsrc changes: * updated the way software version is brought to the documentation (upstream imports it from the software, but this prevents from building the package)
2020-04-19 22:17:55 +02:00
SUBST_SED.version= -e 's,from pelican import __version__,__version__ = "${PKGVERSION_NOREV}",g'
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
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"