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_beta25-r1.ebuild povray-3.6.1-r3.ebuild
Date: Wed, 28 May 2008 21:52:49
Message-Id: E1K1TZe-0008S4-IF@stork.gentoo.org
1 lavajoe 08/05/28 21:52:46
2
3 Modified: ChangeLog povray-3.7.0_beta25-r1.ebuild
4 Added: povray-3.6.1-r3.ebuild
5 Log:
6 Backport location changes to 3.6.1; fix up some autoconf stuff
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.74 media-gfx/povray/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/ChangeLog?rev=1.74&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/ChangeLog?rev=1.74&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/ChangeLog?r1=1.73&r2=1.74
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v
19 retrieving revision 1.73
20 retrieving revision 1.74
21 diff -u -r1.73 -r1.74
22 --- ChangeLog 10 May 2008 17:22:29 -0000 1.73
23 +++ ChangeLog 28 May 2008 21:52:46 -0000 1.74
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-gfx/povray
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.73 2008/05/10 17:22:29 lavajoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.74 2008/05/28 21:52:46 lavajoe Exp $
29 +
30 +*povray-3.6.1-r3 (28 May 2008)
31 +
32 + 28 May 2008; Joe Peterson <lavajoe@g.o> +povray-3.6.1-r3.ebuild,
33 + povray-3.7.0_beta25-r1.ebuild:
34 + Backport location changes to 3.6.1; fix up some autoconf stuff
35
36 10 May 2008; Joe Peterson <lavajoe@g.o> -povray-3.6.1-r1.ebuild:
37 Remove old
38
39
40
41 1.2 media-gfx/povray/povray-3.7.0_beta25-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/povray-3.7.0_beta25-r1.ebuild?rev=1.2&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/povray-3.7.0_beta25-r1.ebuild?rev=1.2&content-type=text/plain
45 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/povray-3.7.0_beta25-r1.ebuild?r1=1.1&r2=1.2
46
47 Index: povray-3.7.0_beta25-r1.ebuild
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.7.0_beta25-r1.ebuild,v
50 retrieving revision 1.1
51 retrieving revision 1.2
52 diff -u -r1.1 -r1.2
53 --- povray-3.7.0_beta25-r1.ebuild 9 May 2008 13:06:07 -0000 1.1
54 +++ povray-3.7.0_beta25-r1.ebuild 28 May 2008 21:52:46 -0000 1.2
55 @@ -1,6 +1,6 @@
56 # Copyright 1999-2008 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.7.0_beta25-r1.ebuild,v 1.1 2008/05/09 13:06:07 lavajoe Exp $
59 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.7.0_beta25-r1.ebuild,v 1.2 2008/05/28 21:52:46 lavajoe Exp $
60
61 inherit eutils autotools flag-o-matic versionator
62
63 @@ -30,19 +30,9 @@
64
65 S="${WORKDIR}/${PN}-${MY_PV}"
66
67 -src_compile() {
68 - # Fixes bug 71255
69 - if [[ $(get-flag march) == k6-2 ]]; then
70 - filter-flags -fomit-frame-pointer
71 - fi
72 -
73 - # The config files are installed correctly (e.g. povray.conf),
74 - # but the code compiles using incorrect [default] paths
75 - # (based on /usr/local...), so povray will not find the system
76 - # config files without the following fix:
77 - MY_MAIN_VER=$(get_version_component_range 1-2)
78 - append-flags -DPOVLIBDIR=\\\"${ROOT}usr/share/${PN}\\\"
79 - append-flags -DPOVCONFDIR=\\\"${ROOT}etc/${PN}\\\"
80 +src_unpack() {
81 + unpack ${A}
82 + cd "${S}"
83
84 # Change some destination directories that cannot be adjusted via configure
85 cp configure.ac configure.ac.orig
86 @@ -55,10 +45,24 @@
87 sed -i -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" Makefile.am
88 sed -i -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" Makefile.am
89
90 - autoreconf
91 + eautoreconf
92 +}
93 +
94 +src_compile() {
95 + # Fixes bug 71255
96 + if [[ $(get-flag march) == k6-2 ]]; then
97 + filter-flags -fomit-frame-pointer
98 + fi
99 +
100 + # The config files are installed correctly (e.g. povray.conf),
101 + # but the code compiles using incorrect [default] paths
102 + # (based on /usr/local...), so povray will not find the system
103 + # config files without the following fix:
104 + append-flags -DPOVLIBDIR=\\\"${ROOT}usr/share/${PN}\\\"
105 + append-flags -DPOVCONFDIR=\\\"${ROOT}etc/${PN}\\\"
106
107 econf \
108 - COMPILED_BY="${USER} <${USER}@`uname -n`>" \
109 + COMPILED_BY="Portage (Gentoo `uname`) on `hostname -f`" \
110 $(use_with svga) \
111 $(use_with tiff) \
112 $(use_with X) \
113
114
115
116 1.1 media-gfx/povray/povray-3.6.1-r3.ebuild
117
118 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/povray-3.6.1-r3.ebuild?rev=1.1&view=markup
119 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/povray-3.6.1-r3.ebuild?rev=1.1&content-type=text/plain
120
121 Index: povray-3.6.1-r3.ebuild
122 ===================================================================
123 # Copyright 1999-2008 Gentoo Foundation
124 # Distributed under the terms of the GNU General Public License v2
125 # $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.6.1-r3.ebuild,v 1.1 2008/05/28 21:52:46 lavajoe Exp $
126
127 inherit flag-o-matic eutils autotools
128
129 DESCRIPTION="The Persistence Of Vision Ray Tracer"
130 SRC_URI="ftp://ftp.povray.org/pub/povray/Official/Unix/${P}.tar.bz2"
131 HOMEPAGE="http://www.povray.org/"
132
133 LICENSE="povlegal-3.6"
134 SLOT="0"
135 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
136 IUSE="svga tiff X"
137
138 DEPEND="media-libs/libpng
139 tiff? ( >=media-libs/tiff-3.6.1 )
140 media-libs/jpeg
141 sys-libs/zlib
142 X? ( x11-libs/libXaw )
143 svga? ( media-libs/svgalib )"
144
145 src_unpack() {
146 unpack ${A}
147 cd "${S}"
148
149 epatch "${FILESDIR}"/${P}-configure.patch
150 epatch "${FILESDIR}"/${P}-find-egrep.patch
151
152 # Change some destination directories that cannot be adjusted via configure
153 cp Makefile.am Makefile.am.orig
154 sed -i -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" Makefile.am
155 sed -i -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" Makefile.am
156 sed -i -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" Makefile.am
157
158 cd unix
159 cp Makefile.am Makefile.am.orig
160 sed -i -e 's:^ -DPOVLIBDIR=.*: -DPOVLIBDIR=\\"@datadir@/'"${PN}"'\\" \\:' Makefile.am
161 sed -i -e 's:^ -DPOVCONFDIR=.*: -DPOVCONFDIR=\\"@sysconfdir@/'"${PN}"'\\" \\:' Makefile.am
162 cd ..
163
164 # Use of "automake" below will cause a QA warning,
165 # but eautoreconf does not work for this source.
166 eaclocal
167 eautoconf
168 automake
169 }
170
171 src_compile() {
172 # Fixes bug 71255
173 if [[ $(get-flag march) == k6-2 ]]; then
174 filter-flags -fomit-frame-pointer
175 fi
176
177 econf \
178 COMPILED_BY="Portage (Gentoo `uname`) on `hostname -f`" \
179 $(use_with svga) \
180 $(use_with tiff) \
181 $(use_with X) \
182 || die
183
184 emake || die
185 }
186
187 src_install() {
188 emake DESTDIR="${D}" install || die
189 }
190
191 pkg_preinst() {
192 # Copy the old config files if they are in the old location
193 # but do not yet exist in the new location.
194 # This way, they can be treated by CONFIG_PROTECT as normal.
195 for conf_file in $(ls "${D}/etc/${PN}"); do
196 if [ ! -e "${ROOT}etc/${PN}/${conf_file}" ]; then
197 for version_dir in $(ls "${ROOT}etc/${PN}" | grep "^[0-9]" | sort -rn); do
198 if [ -e "${ROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then
199 mv "${ROOT}etc/${PN}/${version_dir}/${conf_file}" "${ROOT}etc/${PN}"
200 elog "Note: ${conf_file} moved from ${ROOT}etc/povray/${version_dir}/ to ${ROOT}etc/povray/"
201 break
202 fi
203 done
204 fi
205 done
206 }
207
208
209
210 --
211 gentoo-commits@l.g.o mailing list