Files
gentoo-zh/dev-python/google-appengine/google-appengine-1.7.4.ebuild
T
2017-07-06 17:36:55 +08:00

56 lines
1.4 KiB
Bash

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1
DESCRIPTION="Google App Engine SDK for Python"
HOMEPAGE="http://appengine.google.com/"
SRC_URI="http://${PN/-/}.googlecode.com/files/${PN/-/_}_${PV}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
RDEPEND="
dev-python/mysql-python[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/imaging[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pycrypto[${PYTHON_USEDEP}]
dev-python/django[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/markupsafe[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/webob[${PYTHON_USEDEP}]
media-libs/libpng:1.2
${PYTHON_DEPS}
"
S="${WORKDIR}/${PN/-/_}"
src_prepare(){
sed -i -e "s#^DIR_PATH = .*\$#DIR_PATH = '/opt/${PN}'#" \
-e 's#/usr/bin/env python#/usr/bin/python2#' *.py \
|| die "sed failed"
find -name "*.jpg" -exec rm -f {} \;
find -name "*.png" -exec rm -f {} \;
}
src_install(){
insinto /opt/${PN}
doins -r google lib || die "install failed"
if use examples ; then
insinto /opt/${PN}/examples
doins -r demos new_project_template || die "install examples failed"
fi
dobin *.py
dodoc BUGS README RELEASE_NOTES
}