Gentoo Archives: gentoo-commits

From: "Luca Barbato (lu_zero)" <lu_zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/blender: ChangeLog blender-2.45.ebuild
Date: Fri, 21 Sep 2007 23:23:01
Message-Id: E1IYri5-0006Se-HU@stork.gentoo.org
1 lu_zero 07/09/21 23:14:57
2
3 Modified: ChangeLog
4 Added: blender-2.45.ebuild
5 Log:
6 New version see bug #193317
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.123 media-gfx/blender/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.123&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.123&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?r1=1.122&r2=1.123
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v
19 retrieving revision 1.122
20 retrieving revision 1.123
21 diff -u -r1.122 -r1.123
22 --- ChangeLog 19 Sep 2007 15:30:57 -0000 1.122
23 +++ ChangeLog 21 Sep 2007 23:14:57 -0000 1.123
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-gfx/blender
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.122 2007/09/19 15:30:57 lu_zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.123 2007/09/21 23:14:57 lu_zero Exp $
29 +
30 +*blender-2.45 (21 Sep 2007)
31 +
32 + 21 Sep 2007; Luca Barbato <lu_zero@g.o> +blender-2.45.ebuild:
33 + New version, as requested in bug #193317
34
35 19 Sep 2007; Luca Barbato <lu_zero@g.o> blender-2.44-r1.ebuild:
36 Update internal ffmpeg lib
37
38
39
40 1.1 media-gfx/blender/blender-2.45.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.45.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.45.ebuild?rev=1.1&content-type=text/plain
44
45 Index: blender-2.45.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.45.ebuild,v 1.1 2007/09/21 23:14:57 lu_zero Exp $
50
51 inherit multilib flag-o-matic eutils python
52
53 #IUSE="jpeg mozilla png sdl static truetype"
54 IUSE="blender-game ffmpeg jpeg nls openal openexr png sdl verse"
55 FFMPEG_SNAP="0.4.9-p20070616"
56 DESCRIPTION="3D Creation/Animation/Publishing System"
57 HOMEPAGE="http://www.blender.org/"
58 SRC_URI="http://download.blender.org/source/${P}.tar.gz"
59
60 SLOT="0"
61 LICENSE="|| ( GPL-2 BL )"
62 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
63
64 RDEPEND=">=dev-libs/openssl-0.9.6
65 ffmpeg? ( >=media-video/ffmpeg-${FFMPEG_SNAP/-/_}
66 >=media-libs/x264-svn-20061014 )
67 jpeg? ( media-libs/jpeg )
68 media-libs/tiff
69 >=dev-lang/python-2.4
70 nls? ( >=media-libs/freetype-2.0
71 virtual/libintl
72 >=media-libs/ftgl-2.1 )
73 openal? ( media-libs/openal
74 media-libs/freealut )
75 openexr? ( media-libs/openexr )
76 png? ( media-libs/libpng )
77 sdl? ( >=media-libs/libsdl-1.2 )
78 virtual/opengl"
79
80 DEPEND="dev-util/scons
81 x11-libs/libXt
82 ${RDEPEND}"
83
84 blend_with() {
85 local UWORD="$2"
86 if [ -z "${UWORD}" ]; then
87 UWORD="$1"
88 fi
89 if useq $1; then
90 echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \
91 >> ${S}/user-config.py
92 else
93 echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \
94 >> ${S}/user-config.py
95 fi
96 }
97
98 src_unpack() {
99 unpack ${A}
100 cd ${S}/release/plugins
101 chmod 755 bmake
102 cp -pPR ${S}/source/blender/blenpluginapi include
103
104 cd ${S}
105 epatch ${FILESDIR}/blender-2.37-dirs.patch
106 epatch ${FILESDIR}/blender-2.44-scriptsdir.patch
107 epatch ${FILESDIR}/blender-2.44-swscale.patch
108
109 if use ffmpeg ; then
110 cd ${S}/extern
111 rm -rf ffmpeg
112 fi
113 # pass compiler flags to the scons build system
114 # and set python version to current version in use
115 python_version
116 cat <<- EOF >> ${S}/user-config.py
117 CFLAGS += '${CFLAGS}'
118 BF_PYTHON_VERSION="${PYVER}"
119 BF_PYTHON_INC="/usr/include/python${PYVER}"
120 BF_PYTHON_BINARY="/usr/bin/python${PYVER}"
121 BF_PYTHON_LIB="python${PYVER}"
122 EOF
123
124 }
125
126 src_compile() {
127 for arg in 'openal' \
128 'openexr' \
129 'jpeg' \
130 'ffmpeg' \
131 'png' \
132 'verse' \
133 'nls international' \
134 'blender-game gameengine'; do
135 blend_with ${arg}
136 done
137
138 # scons uses -l differently -> remove it
139 scons ${MAKEOPTS/-l[0-9]} -h > scons.config
140 scons ${MAKEOPTS/-l[0-9]} || die \
141 "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org"
142
143 cd ${S}/release/plugins
144 emake || die
145 }
146
147 src_install() {
148 exeinto /usr/bin/
149 doexe ${WORKDIR}/install/linux2/blender
150
151 dodir /usr/share/${PN}
152
153 exeinto /usr/$(get_libdir)/${PN}/textures
154 doexe ${S}/release/plugins/texture/*.so
155 exeinto /usr/$(get_libdir)/${PN}/sequences
156 doexe ${S}/release/plugins/sequence/*.so
157 insinto /usr/include/${PN}
158 doins ${S}/release/plugins/include/*.h
159
160 if use nls ; then
161 mv ${WORKDIR}/install/linux2/.blender/{.Blanguages,.bfont.ttf} \
162 ${D}/usr/share/${PN}
163 mv ${WORKDIR}/install/linux2/.blender/locale \
164 ${D}/usr/share/locale
165 fi
166
167 mv ${WORKDIR}/install/linux2/.blender/scripts ${D}/usr/share/${PN}
168
169 insinto /usr/share/pixmaps
170 doins ${FILESDIR}/${PN}.png
171 insinto /usr/share/applications
172 doins ${FILESDIR}/${PN}.desktop
173
174 dodoc COPYING INSTALL README
175 }
176
177 pkg_preinst(){
178 if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ];
179 then
180 rm -f ${ROOT}/usr/$(get_libdir)/blender/plugins/include
181 fi
182 }
183
184
185
186 --
187 gentoo-commits@g.o mailing list