2019-10-08 19:17:40 +02:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
2020-06-02 11:57:03 +02:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_6,3_7,3_8} )
|
2019-10-08 19:17:40 +02:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="A CMS to generate a static websites"
|
|
|
|
HOMEPAGE="https://www.getlektor.com/"
|
|
|
|
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="AGPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 x86"
|
|
|
|
IUSE="examples"
|
|
|
|
|
|
|
|
DEPEND="media-gfx/imagemagick
|
2020-06-03 16:06:11 +02:00
|
|
|
<net-libs/nodejs-14[npm]
|
2020-06-02 12:04:21 +02:00
|
|
|
dev-python/Babel[${PYTHON_USEDEP}]
|
|
|
|
dev-python/click[${PYTHON_USEDEP}]
|
|
|
|
dev-python/exifread[${PYTHON_USEDEP}]
|
|
|
|
dev-python/flask[${PYTHON_USEDEP}]
|
|
|
|
dev-python/jinja[${PYTHON_USEDEP}]
|
|
|
|
dev-python/mistune[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pip[${PYTHON_USEDEP}]
|
|
|
|
dev-python/python-inifile[${PYTHON_USEDEP}]
|
|
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
|
|
|
dev-python/watchdog[${PYTHON_USEDEP}]"
|
2019-10-08 19:17:40 +02:00
|
|
|
RDEPEND=""
|
|
|
|
|
|
|
|
DOCS=( CHANGES LICENSE README.md )
|
|
|
|
|
2020-06-02 13:17:04 +02:00
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
|
2019-10-08 19:17:40 +02:00
|
|
|
# unpack static webcontent, pre-compiled with:
|
|
|
|
# ebuild ${P}.ebuild unpack
|
2020-06-02 13:17:04 +02:00
|
|
|
# cd /var/tmp/portage/www-apps/${P}/work/${P}
|
2019-10-08 19:17:40 +02:00
|
|
|
# su -s /bin/bash -c "make build-js" portage
|
|
|
|
# tar cfvz /var/lib/layman/unitas/www-apps/lektor/files/${PN}-static-${PV}.tar.gz lektor/admin/static
|
|
|
|
unpack ${FILESDIR}/${PN}-static-${PV}.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
|
|
|
if use examples; then
|
|
|
|
insinto "/usr/share/doc/${PF}"
|
|
|
|
docompress -x "/usr/share/doc/${PF}/example"
|
|
|
|
doins -r example
|
|
|
|
fi
|
2020-06-03 20:11:03 +02:00
|
|
|
rm -rf lektor/admin
|
|
|
|
cp -rf ../lektor/admin lektor/
|
2019-10-08 19:17:40 +02:00
|
|
|
distutils-r1_python_install_all
|
|
|
|
}
|