From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CED851384B4 for ; Sat, 2 Jan 2016 17:42:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B6AC21C010; Sat, 2 Jan 2016 17:42:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CBB4A21C001 for ; Sat, 2 Jan 2016 17:42:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D941C33E5E4 for ; Sat, 2 Jan 2016 17:42:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5A651CEE for ; Sat, 2 Jan 2016 17:42:09 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1451756520.104550b95288c8006f02c3867e1cefdcb5283e4e.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/visual/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/visual/visual-5.74-r1.ebuild X-VCS-Directories: dev-python/visual/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 104550b95288c8006f02c3867e1cefdcb5283e4e X-VCS-Branch: master Date: Sat, 2 Jan 2016 17:42:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: eb27134e-53d0-4c70-b020-08fe6610153c X-Archives-Hash: debaa6cc7b4a248dfa4c1382ddeaf770 commit: 104550b95288c8006f02c3867e1cefdcb5283e4e Author: Justin Lecher gentoo org> AuthorDate: Sat Jan 2 17:42:00 2016 +0000 Commit: Justin Lecher gentoo org> CommitDate: Sat Jan 2 17:42:00 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=104550b9 dev-python/visual: Bump to EAPI=5 and python-single-r1.eclass Fix for libsigc++-2.6 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=570618 Package-Manager: portage-2.2.26 Signed-off-by: Justin Lecher gentoo.org> dev-python/visual/visual-5.74-r1.ebuild | 72 +++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/dev-python/visual/visual-5.74-r1.ebuild b/dev-python/visual/visual-5.74-r1.ebuild new file mode 100644 index 0000000..a2d6d23 --- /dev/null +++ b/dev-python/visual/visual-5.74-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic multilib python-single-r1 versionator + +MY_P="${PN}-$(delete_version_separator 2)_release" + +DESCRIPTION="Real-time 3D graphics library for Python" +HOMEPAGE="http://www.vpython.org/" +SRC_URI="http://www.vpython.org/contents/download/${MY_P}.tar.bz2" + +LICENSE="HPND Boost-1.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc examples" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=dev-cpp/gtkglextmm-1.2 + dev-cpp/libglademm + >=dev-libs/boost-1.48[python,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/polygon:2[${PYTHON_USEDEP}] + dev-python/ttfquery[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Verbose build. + sed -i \ + -e 's/2\?>>[[:space:]]*\$(LOGFILE).*//' \ + src/Makefile.in || die + + epatch "${FILESDIR}/${P}-boost-1.50.patch" + + sed \ + -e "s/-lboost_python/-lboost_python-${EPYTHON#python}/" \ + -e "s/libboost_python/libboost_python-${EPYTHON#python}/" \ + -i src/Makefile.in src/gtk2/makefile || die +} + +src_configure() { + BOOST_PKG="$(best_version ">=dev-libs/boost-1.48")" + BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")" + BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")" + BOOST_INC="${EPREFIX}/usr/include/boost-${BOOST_VER}" + BOOST_LIB="${EPREFIX}/usr/$(get_libdir)/boost-${BOOST_VER}" + + # Specify the include and lib directory for Boost. + append-cxxflags -I${BOOST_INC} -std=c++11 + append-ldflags -L${BOOST_LIB} + + econf \ + --with-example-dir="${EPREFIX}/usr/share/doc/${PF}/examples" \ + --with-html-dir="${EPREFIX}/usr/share/doc/${PF}/html" \ + $(use_enable doc docs) \ + $(use_enable examples) +} + +src_install() { + default + + dodoc authors.txt HACKING.txt NEWS.txt +}