unitas/www-apps/lektor/lektor-3.1.2.ebuild

53 lines
1.0 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 )
#python_prepare_all() {
# local PATCHES=(
# "${FILESDIR}/publisher-rsync-python3.diff"
# )
# distutils-r1_python_prepare_all
#}
src_compile() {
emake
}
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
}