Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/cgkit: cgkit-2.0.0.ebuild ChangeLog
Date: Thu, 06 Jun 2013 05:07:50
Message-Id: 20130606050745.156C22171D@flycatcher.gentoo.org
1 floppym 13/06/06 05:07:45
2
3 Modified: ChangeLog
4 Added: cgkit-2.0.0.ebuild
5 Log:
6 Version bump. Convert to distutils-r1. Enable python3.
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
9
10 Revision Changes Path
11 1.39 dev-python/cgkit/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cgkit/ChangeLog?rev=1.39&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cgkit/ChangeLog?rev=1.39&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cgkit/ChangeLog?r1=1.38&r2=1.39
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/cgkit/ChangeLog,v
20 retrieving revision 1.38
21 retrieving revision 1.39
22 diff -u -r1.38 -r1.39
23 --- ChangeLog 5 Jun 2013 23:49:38 -0000 1.38
24 +++ ChangeLog 6 Jun 2013 05:07:44 -0000 1.39
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/cgkit
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/cgkit/ChangeLog,v 1.38 2013/06/05 23:49:38 floppym Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cgkit/ChangeLog,v 1.39 2013/06/06 05:07:44 floppym Exp $
30 +
31 +*cgkit-2.0.0 (06 Jun 2013)
32 +
33 + 06 Jun 2013; Mike Gilbert <floppym@g.o> +cgkit-2.0.0.ebuild,
34 + +files/cgkit-py2k-pillow.patch, +files/cgkit-py3k-pillow.patch:
35 + Version bump. Convert to distutils-r1. Enable python3.
36
37 05 Jun 2013; Mike Gilbert <floppym@g.o> metadata.xml:
38 Fix encoding.
39
40
41
42 1.1 dev-python/cgkit/cgkit-2.0.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cgkit/cgkit-2.0.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cgkit/cgkit-2.0.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cgkit-2.0.0.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/cgkit/cgkit-2.0.0.ebuild,v 1.1 2013/06/06 05:07:44 floppym Exp $
52
53 EAPI="5"
54 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
55
56 inherit distutils-r1 eutils scons-utils toolchain-funcs
57
58 MY_P="${P/_/}"
59
60 DESCRIPTION="Python library for creating 3D images"
61 HOMEPAGE="http://cgkit.sourceforge.net"
62 SRC_URI="$(python_gen_cond_dep mirror://sourceforge/${PN}/${PN}/${P}/${P}-py2k.tar.gz 'python2*')
63 $(python_gen_cond_dep mirror://sourceforge/${PN}/${PN}/${P}/${P}-py3k.tar.gz 'python3*')"
64
65 LICENSE="LGPL-2.1 MPL-1.1 GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~x86"
68 IUSE="3ds"
69
70 PY2_USEDEP=$(python_gen_usedep 'python2*')
71 RDEPEND=">=dev-libs/boost-1.48[python,${PYTHON_USEDEP}]
72 $(python_gen_cond_dep dev-python/pyprotocols[${PY2_USEDEP}] 'python2*')
73 dev-python/pyopengl[${PYTHON_USEDEP}]
74 dev-python/pygame[${PYTHON_USEDEP}]
75 virtual/python-imaging[${PYTHON_USEDEP}]
76 3ds? ( media-libs/lib3ds )"
77 DEPEND="${RDEPEND}
78 dev-util/scons"
79
80 DISTUTILS_IN_SOURCE_BUILD=1
81
82 cgkit_unpack() {
83 local tarball
84 if [[ ${EPYTHON} == python3* ]]; then
85 tarball=${P}-py3k.tar.gz
86 else
87 tarball=${P}-py2k.tar.gz
88 fi
89 mkdir "${BUILD_DIR}" || die
90 tar -C "${BUILD_DIR}" -x --strip-components 1 -f "${DISTDIR}/${tarball}" || die
91 }
92
93 src_unpack() {
94 python_parallel_foreach_impl cgkit_unpack
95 mkdir "${S}" || die
96 }
97
98 python_prepare_all() {
99 return 0
100 }
101
102 python_prepare() {
103 if [[ ${EPYTHON} == python3* ]]; then
104 epatch "${FILESDIR}/${PN}-py3k-pillow.patch"
105 else
106 epatch "${FILESDIR}/${PN}-py2k-pillow.patch"
107 fi
108 [[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
109
110 sed -e "s/fPIC/fPIC\",\"${CFLAGS// /\",\"}/" -i supportlib/SConstruct
111 cp config_template.cfg config.cfg
112 echo "BOOST_LIB = 'boost_python-${EPYTHON#python}'" >> config.cfg
113 echo "LIBS += ['GL', 'GLU', 'glut']" >> config.cfg
114 if use 3ds; then
115 echo "LIB3DS_AVAILABLE = True" >> config.cfg
116 fi
117
118 sed -e "s:INC_DIRS = \[\]:INC_DIRS = \['/usr/include'\]:" -i setup.py
119
120 # Remove invalid test
121 rm -f unittests/test_pointcloud.py || die
122 }
123
124 python_compile() {
125 pushd supportlib > /dev/null || die
126 escons
127 popd > /dev/null || die
128 distutils-r1_python_compile
129 }
130
131 python_test() {
132 pushd unittests > /dev/null || die
133 mkdir tmp || die
134 "${PYTHON}" all.py || die "Testing failed with ${EPYTHON}"
135 popd > /dev/null || die
136 }