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
Date: Fri, 09 May 2008 13:06:11
Message-Id: E1JuSIa-0001Zj-8L@stork.gentoo.org
1 lavajoe 08/05/09 13:06:08
2
3 Modified: ChangeLog
4 Added: povray-3.7.0_beta25-r1.ebuild
5 Log:
6 Adjust locations of /usr/share files, docs, and config files
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.72 media-gfx/povray/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/ChangeLog?rev=1.72&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/ChangeLog?rev=1.72&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/ChangeLog?r1=1.71&r2=1.72
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v
19 retrieving revision 1.71
20 retrieving revision 1.72
21 diff -u -r1.71 -r1.72
22 --- ChangeLog 4 Apr 2008 05:03:16 -0000 1.71
23 +++ ChangeLog 9 May 2008 13:06:07 -0000 1.72
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.71 2008/04/04 05:03:16 lavajoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.72 2008/05/09 13:06:07 lavajoe Exp $
29 +
30 +*povray-3.7.0_beta25-r1 (09 May 2008)
31 +
32 + 09 May 2008; Joe Peterson <lavajoe@g.o>
33 + +povray-3.7.0_beta25-r1.ebuild:
34 + Adjust locations of /usr/share files, docs, and config files
35
36 *povray-3.7.0_beta25 (04 Apr 2008)
37
38
39
40
41 1.1 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.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/povray/povray-3.7.0_beta25-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: povray-3.7.0_beta25-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $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 $
51
52 inherit eutils autotools flag-o-matic versionator
53
54 MY_PV=$(get_version_component_range 1-3)
55 MY_MINOR_VER=$(get_version_component_range 4)
56 if [ -n "$MY_MINOR_VER" ]; then
57 MY_MINOR_VER=${MY_MINOR_VER/beta/beta.}
58 MY_PV="${MY_PV}.${MY_MINOR_VER}b"
59 fi
60
61 DESCRIPTION="The Persistence of Vision Raytracer"
62 HOMEPAGE="http://www.povray.org/"
63 SRC_URI="http://www.povray.org/beta/source/${PN}-src-${MY_PV}.tar.bz2"
64
65 LICENSE="povlegal-3.6"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
68 IUSE="svga tiff X"
69
70 DEPEND="media-libs/libpng
71 tiff? ( >=media-libs/tiff-3.6.1 )
72 media-libs/jpeg
73 sys-libs/zlib
74 X? ( x11-libs/libXaw )
75 svga? ( media-libs/svgalib )
76 >=dev-libs/boost-1.33"
77
78 S="${WORKDIR}/${PN}-${MY_PV}"
79
80 src_compile() {
81 # Fixes bug 71255
82 if [[ $(get-flag march) == k6-2 ]]; then
83 filter-flags -fomit-frame-pointer
84 fi
85
86 # The config files are installed correctly (e.g. povray.conf),
87 # but the code compiles using incorrect [default] paths
88 # (based on /usr/local...), so povray will not find the system
89 # config files without the following fix:
90 MY_MAIN_VER=$(get_version_component_range 1-2)
91 append-flags -DPOVLIBDIR=\\\"${ROOT}usr/share/${PN}\\\"
92 append-flags -DPOVCONFDIR=\\\"${ROOT}etc/${PN}\\\"
93
94 # Change some destination directories that cannot be adjusted via configure
95 cp configure.ac configure.ac.orig
96 sed -i -e 's:${povsysconfdir}/$PACKAGE/$VERSION_BASE:${povsysconfdir}/'${PN}':g' configure.ac
97 sed -i -e 's:${povdatadir}/$PACKAGE-$VERSION_BASE:${povdatadir}/'${PN}':g' configure.ac
98 sed -i -e 's:${povdatadir}/doc/$PACKAGE-$VERSION_BASE:${povdatadir}/doc/'${PF}':g' configure.ac
99
100 cp Makefile.am Makefile.am.orig
101 sed -i -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" Makefile.am
102 sed -i -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" Makefile.am
103 sed -i -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" Makefile.am
104
105 autoreconf
106
107 econf \
108 COMPILED_BY="${USER} <${USER}@`uname -n`>" \
109 $(use_with svga) \
110 $(use_with tiff) \
111 $(use_with X) \
112 || die
113
114 emake || die
115 }
116
117 src_install() {
118 emake DESTDIR="${D}" install || die
119 }
120
121 pkg_preinst() {
122 # Copy the old config files if they are in the old location
123 # but do not yet exist in the new location.
124 # This way, they can be treated by CONFIG_PROTECT as normal.
125 for conf_file in $(ls "${D}/etc/${PN}"); do
126 if [ ! -e "${ROOT}etc/${PN}/${conf_file}" ]; then
127 for version_dir in $(ls "${ROOT}etc/${PN}" | grep "^[0-9]" | sort -rn); do
128 if [ -e "${ROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then
129 mv "${ROOT}etc/${PN}/${version_dir}/${conf_file}" "${ROOT}etc/${PN}"
130 elog "Note: ${conf_file} moved from ${ROOT}etc/povray/${version_dir}/ to ${ROOT}etc/povray/"
131 break
132 fi
133 done
134 fi
135 done
136 }
137
138
139
140 --
141 gentoo-commits@l.g.o mailing list