36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'pelican'
|
|
pkgname=pelican
|
|
version=4.5.1
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-setuptools python3-feedgenerator python3-Jinja2 python3-Pygments
|
|
python3-docutils python3-pytz python3-blinker python3-Unidecode python3-six
|
|
python3-dateutil"
|
|
checkdepends="$depends git python3-lxml python3-BeautifulSoup4 python3-Markdown"
|
|
short_desc="Static site generator written in Python"
|
|
maintainer="Lugubris <lugubris@disroot.org>"
|
|
license="AGPL-3.0-or-later"
|
|
homepage="https://getpelican.com/"
|
|
changelog="https://raw.githubusercontent.com/getpelican/pelican/${version}/docs/changelog.rst"
|
|
# xbps-src check fails alot with PYPI tarball
|
|
# with github tarball, there is one failure on test_error_on_warning
|
|
# We can live with it.
|
|
# distfiles="${PYPI_SITE}/p/pelican/pelican-${version}.tar.gz"
|
|
distfiles="https://github.com/getpelican/pelican/archive/${version}.tar.gz"
|
|
checksum=b47c65f663bf6f2513b8ebc1f096e51f4d7865c17b36c370f83eadd80b6ba702
|
|
|
|
case "$XBPS_MACHINE" in
|
|
x86_64*|i686|ppc64le) checkdepends+=" pandoc";;
|
|
esac
|
|
|
|
post_extract() {
|
|
# This test is problematic,
|
|
# but this test is not important, judging from its content
|
|
rm pelican/tests/test_testsuite.py
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|