52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
|
|
|
|
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
|
|
net-libs/nodejs[npm]
|
|
dev-python/Babel
|
|
dev-python/click
|
|
dev-python/exifread
|
|
dev-python/flask
|
|
dev-python/jinja
|
|
dev-python/mistune
|
|
dev-python/pip
|
|
dev-python/python-inifile
|
|
dev-python/requests
|
|
dev-python/watchdog"
|
|
RDEPEND=""
|
|
|
|
DOCS=( CHANGES LICENSE README.md )
|
|
|
|
src_compile() {
|
|
# unpack static webcontent, pre-compiled with:
|
|
# ebuild ${P}.ebuild unpack
|
|
# cd cd /var/tmp/portage/www-apps/${P}/work/${P}
|
|
# 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
|
|
distutils-r1_python_install_all
|
|
}
|