diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-06-18 10:16:15 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-06-18 10:16:15 +0000 |
commit | 61a07aba8a25edf442a2ed444cef7bd3b983669b (patch) | |
tree | 11f8a1bc930b3c1faea135eaa025d65e9bfd5ea2 /dev-python/visual | |
parent | Support building mozart on PPC with 3.x kernels. Closes #421055 (diff) | |
download | gentoo-2-61a07aba8a25edf442a2ed444cef7bd3b983669b.tar.gz gentoo-2-61a07aba8a25edf442a2ed444cef7bd3b983669b.tar.bz2 gentoo-2-61a07aba8a25edf442a2ed444cef7bd3b983669b.zip |
Bump
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/visual')
-rw-r--r-- | dev-python/visual/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/visual/visual-5.74.ebuild | 92 |
2 files changed, 98 insertions, 1 deletions
diff --git a/dev-python/visual/ChangeLog b/dev-python/visual/ChangeLog index b1152e4ab229..01ce88fce5ff 100644 --- a/dev-python/visual/ChangeLog +++ b/dev-python/visual/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/visual # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/ChangeLog,v 1.58 2012/06/14 18:43:35 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/ChangeLog,v 1.59 2012/06/18 10:16:15 patrick Exp $ + +*visual-5.74 (18 Jun 2012) + + 18 Jun 2012; Patrick Lauer <patrick@gentoo.org> +visual-5.74.ebuild: + Bump 14 Jun 2012; Jeff Horelick <jdhore@gentoo.org> visual-5.72-r2.ebuild: marked x86 per bug 413815 diff --git a/dev-python/visual/visual-5.74.ebuild b/dev-python/visual/visual-5.74.ebuild new file mode 100644 index 000000000000..48ae46acb07a --- /dev/null +++ b/dev-python/visual/visual-5.74.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/visual-5.74.ebuild,v 1.1 2012/06/18 10:16:15 patrick Exp $ + +EAPI="4" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.5 3.* *-jython 2.7-pypy-*" +PYTHON_EXPORT_PHASE_FUNCTIONS="1" + +inherit flag-o-matic multilib python 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="visual" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +RDEPEND=">=dev-cpp/gtkglextmm-1.2 + dev-cpp/libglademm + >=dev-libs/boost-1.48[python] + dev-python/numpy + dev-python/polygon:2 + dev-python/ttfquery" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Delete redundant file, which causes compilation failure. + rm -f src/gtk2/random_device.cpp + sed -i \ + -e "s/ random_device.l\?o//" \ + src/Makefile.in src/gtk2/makefile || die + + # Verbose build. + sed -i \ + -e 's/2\?>>[[:space:]]*\$(LOGFILE).*//' \ + src/Makefile.in || die + + python_clean_py-compile_files + python_src_prepare + + preparation() { + sed -i \ + -e "s/-lboost_python/-lboost_python-${PYTHON_ABI}/" \ + -e "s/libboost_python/libboost_python-${PYTHON_ABI}/" \ + src/Makefile.in src/gtk2/makefile + } + python_execute_function -s preparation +} + +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} + append-ldflags -L${BOOST_LIB} + + python_src_configure \ + --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() { + python_src_install + python_clean_installation_image + + dodoc authors.txt HACKING.txt NEWS.txt + + # Don't install useless vpython script. + rm -fr "${ED}usr/bin" +} + +pkg_postinst() { + python_mod_optimize vis visual +} + +pkg_postrm() { + python_mod_cleanup vis visual +} |