From: | "Sebastien Fabbro (bicatali)" <bicatali@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/visual: ChangeLog visual-5.72.ebuild |
Date: | Thu, 05 Jan 2012 17:37:34 |
Message-Id: | 20120105173715.31CAD2004B@flycatcher.gentoo.org |
1 | bicatali 12/01/05 17:37:15 |
2 | |
3 | Modified: ChangeLog |
4 | Added: visual-5.72.ebuild |
5 | Log: |
6 | Tentative bump. Dropped ppc with xarthisius blessing |
7 | |
8 | (Portage version: 2.1.10.41/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.49 dev-python/visual/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/visual/ChangeLog?rev=1.49&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/visual/ChangeLog?rev=1.49&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/visual/ChangeLog?r1=1.48&r2=1.49 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-python/visual/ChangeLog,v |
20 | retrieving revision 1.48 |
21 | retrieving revision 1.49 |
22 | diff -u -r1.48 -r1.49 |
23 | --- ChangeLog 15 Jan 2011 18:21:07 -0000 1.48 |
24 | +++ ChangeLog 5 Jan 2012 17:37:14 -0000 1.49 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-python/visual |
27 | -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/ChangeLog,v 1.48 2011/01/15 18:21:07 arfrever Exp $ |
29 | +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/visual/ChangeLog,v 1.49 2012/01/05 17:37:14 bicatali Exp $ |
31 | + |
32 | +*visual-5.72 (05 Jan 2012) |
33 | + |
34 | + 05 Jan 2012; Sébastien Fabbro <bicatali@g.o> +visual-5.72.ebuild: |
35 | + Tentative bump. Dropped ppc with xarthisius blessing |
36 | |
37 | 15 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
38 | -visual-5.3.2.ebuild: |
39 | |
40 | |
41 | |
42 | 1.1 dev-python/visual/visual-5.72.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/visual/visual-5.72.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/visual/visual-5.72.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: visual-5.72.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2012 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/dev-python/visual/visual-5.72.ebuild,v 1.1 2012/01/05 17:37:14 bicatali Exp $ |
52 | |
53 | EAPI="3" |
54 | PYTHON_DEPEND="2" |
55 | SUPPORT_PYTHON_ABIS="1" |
56 | PYTHON_EXPORT_PHASE_FUNCTIONS="1" |
57 | |
58 | inherit flag-o-matic python versionator |
59 | |
60 | MY_P="${PN}-$(delete_version_separator 2)_release" |
61 | |
62 | DESCRIPTION="Real-time 3D graphics library for Python" |
63 | HOMEPAGE="http://www.vpython.org/" |
64 | SRC_URI="http://www.vpython.org/contents/download/${MY_P}.tar.bz2" |
65 | |
66 | IUSE="doc examples" |
67 | SLOT="0" |
68 | KEYWORDS="~amd64 ~x86" |
69 | LICENSE="visual" |
70 | |
71 | RDEPEND=">=dev-libs/boost-1.41.0[python] |
72 | dev-cpp/libglademm |
73 | >=dev-cpp/gtkglextmm-1.2 |
74 | dev-python/numpy |
75 | dev-python/polygon |
76 | dev-python/ttfquery" |
77 | DEPEND="${RDEPEND} |
78 | dev-util/pkgconfig" |
79 | |
80 | S="${WORKDIR}/${MY_P}" |
81 | |
82 | src_prepare() { |
83 | # redundant file |
84 | rm src/gtk2/random_device.cpp || die |
85 | sed -i \ |
86 | -e 's/random_device.lo//g' \ |
87 | src/Makefile.in src/gtk2/makefile || die |
88 | # verbose build |
89 | sed -i -e 's/2\?>> \?\$(LOGFILE).*//' src/Makefile.in || die |
90 | |
91 | echo "#!/bin/bash" > py-compile |
92 | python_src_prepare |
93 | } |
94 | |
95 | src_configure() { |
96 | BOOST_PKG="$(best_version ">=dev-libs/boost-1.41.0")" |
97 | BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")" |
98 | BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")" |
99 | BOOST_INC="${EPREFIX}/usr/include/boost-${BOOST_VER}" |
100 | BOOST_LIB="${EPREFIX}/usr/$(get_libdir)/boost-${BOOST_VER}" |
101 | |
102 | # hack to specify the include and lib directory for boost |
103 | append-cxxflags -I${BOOST_INC} |
104 | append-ldflags -L${BOOST_LIB} |
105 | |
106 | python_src_configure \ |
107 | --with-html-dir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
108 | --with-example-dir="${EPREFIX}/usr/share/doc/${PF}/examples" \ |
109 | $(use_enable doc docs) \ |
110 | $(use_enable examples) |
111 | } |
112 | |
113 | src_install() { |
114 | python_src_install |
115 | python_clean_installation_image |
116 | dodoc authors.txt HACKING.txt NEWS.txt || die "dodoc failed" |
117 | # Don't install useless vpython script. |
118 | rm -fr "${ED}usr/bin" |
119 | } |
120 | |
121 | pkg_postinst() { |
122 | python_mod_optimize vis visual |
123 | } |
124 | |
125 | pkg_postrm() { |
126 | python_mod_cleanup vis visual |
127 | } |