summaryrefslogtreecommitdiff
path: root/dev-python/python-efl/python-efl-1.18.0.ebuild
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2017-03-18 15:28:47 +0000
committerPatrice Clement <monsieurp@gentoo.org>2017-05-25 23:08:19 +0200
commitf710b83c668c8405368235e04f90dbacb91e8860 (patch)
tree01819525ac9685bb63cfd6951eddbdcba528dc99 /dev-python/python-efl/python-efl-1.18.0.ebuild
parente3e9a215d7b347d43ab8bb5ba4e3b3929acc0811 (diff)
downloadgentoo-f710b83c668c8405368235e04f90dbacb91e8860.tar.gz
gentoo-f710b83c668c8405368235e04f90dbacb91e8860.tar.bz2
gentoo-f710b83c668c8405368235e04f90dbacb91e8860.zip
dev-python/python-efl: version bump.
See: https://sourceforge.net/p/enlightenment/mailman/message/35295082/ Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/4238
Diffstat (limited to 'dev-python/python-efl/python-efl-1.18.0.ebuild')
-rw-r--r--dev-python/python-efl/python-efl-1.18.0.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/python-efl/python-efl-1.18.0.ebuild b/dev-python/python-efl/python-efl-1.18.0.ebuild
new file mode 100644
index 000000000000..cc8c0587849a
--- /dev/null
+++ b/dev-python/python-efl/python-efl-1.18.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+MY_P=${P/_/-}
+
+if [[ "${PV}" == "9999" ]]; then
+ EGIT_SUB_PROJECT="bindings/python"
+ EGIT_URI_APPEND="${PN}"
+ EGIT_REPO_URI="git://git.enlightenment.org/${EGIT_SUB_PROJECT}/${EGIT_URI_APPEND}.git"
+ inherit git-2
+else
+ SRC_URI="https://download.enlightenment.org/rel/bindings/python/${MY_P}.tar.xz"
+fi
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for Enlightenment Fundation Libraries"
+HOMEPAGE="http://www.enlightenment.org"
+
+LICENSE="|| ( GPL-3 LGPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+RDEPEND=">=dev-libs/efl-${PV}
+ >dev-python/dbus-python-0.83[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/cython-0.21[${PYTHON_USEDEP}]
+ doc? (
+ media-gfx/graphviz[python]
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ )
+ doc? ( >dev-python/sphinx-1.0[${PYTHON_USEDEP}] )"
+
+python_compile_all() {
+ if use doc; then
+ # Point sphinx to right location with built sources
+ sed -i 's|"../build/"+d|"'"${BUILD_DIR}"'/lib"|g' doc/conf.py || die
+ esetup.py build_doc --build-dir "${S}"/build/doc/
+ fi
+}
+
+python_test() {
+ cd "${S}"/tests || die
+ # violates sandbox
+ rm -f ecore/test_09_file_download.py || die
+ sed -i 's:verbosity=1:verbosity=3:' 00_run_all_tests.py || die
+ ${PYTHON} 00_run_all_tests.py --verbose || die "Tests failed with ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && DOCS=( "${S}"/build/doc/html )
+ use examples && EXAMPLES=( examples/. )
+ distutils-r1_python_install_all
+}