# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=6 PYTHON_COMPAT=( python2_7 ) inherit distutils-r1 user if [[ "${PV}" == "9999" ]]; then inherit git-r3 EGIT_REPO_URI="git://github.com/thumbor/thumbor.git" SRC_URI="" else SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" fi DESCRIPTION="An an open-source photo thumbnail service" HOMEPAGE="https://github.com/thumbor/thumbor https://pypi.python.org/pypi/thumbor" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test" RDEPEND=" >=dev-python/derpconf-0.2.0[${PYTHON_USEDEP}] dev-python/futures[${PYTHON_USEDEP}] >=dev-python/libthumbor-1.3.2[${PYTHON_USEDEP}] >=dev-python/pexif-0.15[${PYTHON_USEDEP}] =dev-python/pillow-3.0.0[${PYTHON_USEDEP}] =dev-python/pycrypto-2.1.0[${PYTHON_USEDEP}] >=dev-python/pycurl-7.19.0[${PYTHON_USEDEP}] =dev-python/statsd-3.0.1[${PYTHON_USEDEP}] media-libs/opencv[python_single_target_python2_7] >=www-servers/tornado-4.1.0[${PYTHON_USEDEP}] "${ED}etc/${PN}/${PN}.conf" || die "Failed to run thumbor-config" mkdir -p "${ED}var/lib/${PN}" || die "Failed to make ${EPREFIX}/var/lib/${PN}" chown -R "${PN}:${PN}" "${ED}etc/${PN}" "${ED}var/lib/${PN}" || die "Failed to chown ${PN}:${PN}" }