Gentoo Archives: gentoo-commits

From: "Joe Peterson (lavajoe)" <lavajoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/povray: ChangeLog povray-3.7.0_rc3.ebuild povray-3.6.1-r4.ebuild povray-3.7.0_beta35.ebuild povray-3.7.0_beta38.ebuild
Date: Fri, 28 Jan 2011 19:01:42
Message-Id: 20110128190132.9978420054@flycatcher.gentoo.org
1 lavajoe 11/01/28 19:01:32
2
3 Modified: ChangeLog povray-3.6.1-r4.ebuild
4 Added: povray-3.7.0_rc3.ebuild
5 Removed: povray-3.7.0_beta35.ebuild
6 povray-3.7.0_beta38.ebuild
7 Log:
8 Add new 3.7.9_rc3; remove old
9
10 (Portage version: 2.1.9.34/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.109 media-gfx/povray/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/ChangeLog?rev=1.109&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/ChangeLog?rev=1.109&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/ChangeLog?r1=1.108&r2=1.109
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v
22 retrieving revision 1.108
23 retrieving revision 1.109
24 diff -u -r1.108 -r1.109
25 --- ChangeLog 20 Dec 2010 14:24:17 -0000 1.108
26 +++ ChangeLog 28 Jan 2011 19:01:32 -0000 1.109
27 @@ -1,6 +1,15 @@
28 # ChangeLog for media-gfx/povray
29 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.108 2010/12/20 14:24:17 jlec Exp $
31 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
32 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.109 2011/01/28 19:01:32 lavajoe Exp $
33 +
34 +*povray-3.7.0_rc3 (28 Jan 2011)
35 +
36 + 28 Jan 2011; Joe Peterson <lavajoe@g.o> -povray-3.7.0_beta35.ebuild,
37 + -povray-3.7.0_beta38.ebuild, +povray-3.7.0_rc3.ebuild,
38 + -files/povray-3.7.0_beta35-configure-allow-libpng14.patch,
39 + -files/povray-3.7.0_beta35-libpng14.patch,
40 + -files/povray-3.7.0_beta35-print-extend-expiration-info.patch:
41 + Add new 3.7.9_rc3; remove old
42
43 *povray-3.7.0_beta40 (20 Dec 2010)
44
45
46
47
48 1.12 media-gfx/povray/povray-3.6.1-r4.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/povray-3.6.1-r4.ebuild?rev=1.12&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/povray-3.6.1-r4.ebuild?rev=1.12&content-type=text/plain
52 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/povray-3.6.1-r4.ebuild?r1=1.11&r2=1.12
53
54 Index: povray-3.6.1-r4.ebuild
55 ===================================================================
56 RCS file: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.6.1-r4.ebuild,v
57 retrieving revision 1.11
58 retrieving revision 1.12
59 diff -u -r1.11 -r1.12
60 --- povray-3.6.1-r4.ebuild 14 Nov 2010 14:40:52 -0000 1.11
61 +++ povray-3.6.1-r4.ebuild 28 Jan 2011 19:01:32 -0000 1.12
62 @@ -1,6 +1,6 @@
63 -# Copyright 1999-2010 Gentoo Foundation
64 +# Copyright 1999-2011 Gentoo Foundation
65 # Distributed under the terms of the GNU General Public License v2
66 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.6.1-r4.ebuild,v 1.11 2010/11/14 14:40:52 jlec Exp $
67 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.6.1-r4.ebuild,v 1.12 2011/01/28 19:01:32 lavajoe Exp $
68
69 inherit flag-o-matic eutils autotools
70
71
72
73
74 1.1 media-gfx/povray/povray-3.7.0_rc3.ebuild
75
76 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/povray-3.7.0_rc3.ebuild?rev=1.1&view=markup
77 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/povray-3.7.0_rc3.ebuild?rev=1.1&content-type=text/plain
78
79 Index: povray-3.7.0_rc3.ebuild
80 ===================================================================
81 # Copyright 1999-2011 Gentoo Foundation
82 # Distributed under the terms of the GNU General Public License v2
83 # $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.7.0_rc3.ebuild,v 1.1 2011/01/28 19:01:32 lavajoe Exp $
84
85 EAPI="3"
86
87 inherit autotools eutils flag-o-matic versionator
88
89 POVRAY_MAJOR_VER=$(get_version_component_range 1-3)
90 POVRAY_MINOR_VER=$(get_version_component_range 4)
91 if [ -n "$POVRAY_MINOR_VER" ]; then
92 POVRAY_MINOR_VER=${POVRAY_MINOR_VER/rc/RC}
93 MY_PV="${POVRAY_MAJOR_VER}.${POVRAY_MINOR_VER}"
94 else
95 MY_PV=${POVRAY_MAJOR_VER}
96 fi
97
98 DESCRIPTION="The Persistence of Vision Raytracer"
99 HOMEPAGE="http://www.povray.org/"
100 SRC_URI="http://www.povray.org/redirect/www.povray.org/beta/source/${PN}-${MY_PV}.tar.bz2"
101
102 LICENSE="povlegal-3.6"
103 SLOT="0"
104 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
105 IUSE="debug mkl openexr tiff X"
106
107 DEPEND="
108 >=dev-libs/boost-1.41
109 media-libs/jpeg
110 media-libs/libpng
111 sys-libs/zlib
112 openexr? (
113 media-libs/ilmbase
114 media-libs/openexr )
115 mkl? ( sci-libs/mkl )
116 tiff? ( >=media-libs/tiff-3.6.1 )
117 X? ( media-libs/libsdl )"
118 RDEPEND="${DEPEND}"
119
120 S="${WORKDIR}/${PN}-${MY_PV}"
121
122 src_prepare() {
123 # Change some destination directories that cannot be adjusted via configure
124 cp configure.ac configure.ac.orig
125 sed \
126 -e 's:${povsysconfdir}/$PACKAGE/$VERSION_BASE:${povsysconfdir}/'${PN}':g' \
127 -e 's:${povdatadir}/$PACKAGE-$VERSION_BASE:${povdatadir}/'${PN}':g' \
128 -e 's:${povdatadir}/doc/$PACKAGE-$VERSION_BASE:${povdatadir}/doc/'${PF}':g' \
129 -i configure.ac || die
130
131 cp Makefile.am Makefile.am.orig
132 sed \
133 -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" \
134 -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" \
135 -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" \
136 -i Makefile.am || die
137
138 # The "+p" option on the test command line causes a pause and
139 # prompts the user to interact, so remove it.
140 sed -i -e "s:biscuit.pov -f +d +p:biscuit.pov -f +d:" Makefile.am || die
141
142 eautoreconf
143 }
144
145 src_configure() {
146 local non_redist_conf
147
148 # Fixes bug 71255
149 if [[ $(get-flag march) == k6-2 ]]; then
150 filter-flags -fomit-frame-pointer
151 fi
152
153 # The config files are installed correctly (e.g. povray.conf),
154 # but the code compiles using incorrect [default] paths
155 # (based on /usr/local...), so povray will not find the system
156 # config files without the following fix:
157 append-flags -DPOVLIBDIR=\\\"${EROOT}usr/share/${PN}\\\"
158 append-flags -DPOVCONFDIR=\\\"${EROOT}etc/${PN}\\\"
159
160 if ! use tiff ; then
161 non_redist_conf="NON_REDISTRIBUTABLE_BUILD=yes"
162 else
163 non_redist_conf=""
164 fi
165
166 econf \
167 ${non_redist_conf} \
168 COMPILED_BY="Portage (Gentoo `uname`) on `hostname -f`" \
169 $(use_enable debug) \
170 $(use_with openexr) \
171 $(use_with mkl libmkl) \
172 $(use_with tiff libtiff) \
173 $(use_with X libsdl) \
174 $(use_with X x) \
175 --disable-strip \
176 --disable-optimiz \
177 --disable-optimiz-arch \
178 --with-boost-libdir="${EPREFIX}/usr/$(get_libdir)"
179 }
180
181 src_test() {
182 # For the beta releases, we generate a license extension in case needed
183 POVRAY_BETA=`./unix/povray --betacode 2>&1` emake check || die "Test failed"
184 }
185
186 src_install() {
187 emake DESTDIR="${D}" install || die
188 }
189
190 pkg_preinst() {
191 # Copy the old config files if they are in the old location
192 # but do not yet exist in the new location.
193 # This way, they can be treated by CONFIG_PROTECT as normal.
194 for conf_file in $(ls "${ED}/etc/${PN}"); do
195 if [ ! -e "${EROOT}etc/${PN}/${conf_file}" ]; then
196 for version_dir in $(ls "${EROOT}etc/${PN}" | grep "^[0-9]" | sort -rn); do
197 if [ -e "${EROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then
198 mv "${EROOT}etc/${PN}/${version_dir}/${conf_file}" "${EROOT}etc/${PN}"
199 elog "Note: ${conf_file} moved from ${EROOT}etc/povray/${version_dir}/ to ${EROOT}etc/povray/"
200 break
201 fi
202 done
203 fi
204 done
205 }