2020-05-23 11:15:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2020/05/23 09:15:13 rillig Exp $
|
2015-11-27 17:56:25 +01:00
|
|
|
|
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
|
2020-05-23 11:15:13 +02:00
|
|
|
PKGREVISION= 2
|
2015-11-27 22:22:27 +01:00
|
|
|
GITHUB_PROJECT= pelican
|
2015-11-27 17:56:25 +01:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
|
|
CATEGORIES= www textproc
|
2015-11-27 22:22:27 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=getpelican/}
|
2015-11-27 17:56:25 +01:00
|
|
|
|
|
|
|
MAINTAINER= nils@NetBSD.org
|
2017-09-03 10:53:04 +02:00
|
|
|
HOMEPAGE= https://blog.getpelican.com/
|
2015-11-27 17:56:25 +01:00
|
|
|
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
|
2017-02-03 10:59:41 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-feedgenerator>=1.9:../../www/py-feedgenerator
|
2015-11-27 17:56:25 +01:00
|
|
|
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
|
|
|
|
|
2020-05-23 11:15:13 +02:00
|
|
|
USE_TOOLS+= make:build sed:build
|
2015-11-27 17:56:25 +01:00
|
|
|
|
|
|
|
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
|
2015-11-27 17:56:25 +01:00
|
|
|
|
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'
|
2017-02-02 21:30:55 +01:00
|
|
|
|
2015-11-27 17:56:25 +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
|
2015-11-27 17:56:25 +01:00
|
|
|
|
|
|
|
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"
|
2015-11-27 17:56:25 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|