1 |
lavajoe 11/09/28 17:43:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: povray-3.6.1-r5.ebuild |
5 |
Removed: povray-3.6.1-r4.ebuild |
6 |
Log: |
7 |
Require older libjpeg-6b for older povray-3.6.1 and use included static lib if not available (bug #382459); revert use of EROOT, etc., in povray-3.6.1 ebuild (not EAPI 3) |
8 |
|
9 |
(Portage version: 2.1.10.19/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.113 media-gfx/povray/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/ChangeLog?rev=1.113&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/ChangeLog?rev=1.113&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/ChangeLog?r1=1.112&r2=1.113 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v |
21 |
retrieving revision 1.112 |
22 |
retrieving revision 1.113 |
23 |
diff -u -r1.112 -r1.113 |
24 |
--- ChangeLog 24 Mar 2011 15:57:10 -0000 1.112 |
25 |
+++ ChangeLog 28 Sep 2011 17:43:12 -0000 1.113 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for media-gfx/povray |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.112 2011/03/24 15:57:10 jlec Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.113 2011/09/28 17:43:12 lavajoe Exp $ |
31 |
+ |
32 |
+*povray-3.6.1-r5 (28 Sep 2011) |
33 |
+ |
34 |
+ 28 Sep 2011; Joe Peterson <lavajoe@g.o> -povray-3.6.1-r4.ebuild, |
35 |
+ +povray-3.6.1-r5.ebuild, +files/povray-3.6.1-only-libjpeg-6b.patch: |
36 |
+ Require older libjpeg-6b for older povray-3.6.1 and use included static lib |
37 |
+ if not available (bug #382459); revert use of EROOT, etc., in povray-3.6.1 |
38 |
+ ebuild (not EAPI 3) |
39 |
|
40 |
24 Mar 2011; Justin Lecher <jlec@g.o> |
41 |
+files/3.7.0_rc3-user-conf.patch, povray-3.7.0_rc3.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 media-gfx/povray/povray-3.6.1-r5.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/povray-3.6.1-r5.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/povray-3.6.1-r5.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: povray-3.6.1-r5.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/povray-3.6.1-r5.ebuild,v 1.1 2011/09/28 17:43:12 lavajoe Exp $ |
55 |
|
56 |
inherit flag-o-matic eutils autotools |
57 |
|
58 |
DESCRIPTION="The Persistence Of Vision Ray Tracer" |
59 |
SRC_URI="ftp://ftp.povray.org/pub/povray/Official/Unix/${P}.tar.bz2" |
60 |
HOMEPAGE="http://www.povray.org/" |
61 |
|
62 |
LICENSE="povlegal-3.6" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
65 |
IUSE="svga tiff X" |
66 |
|
67 |
DEPEND=">=media-libs/libpng-1.4 |
68 |
tiff? ( >=media-libs/tiff-3.6.1 ) |
69 |
virtual/jpeg |
70 |
sys-libs/zlib |
71 |
X? ( x11-libs/libXaw ) |
72 |
svga? ( media-libs/svgalib )" |
73 |
RDEPEND="${DEPEND}" |
74 |
|
75 |
src_unpack() { |
76 |
unpack ${A} |
77 |
cd "${S}" |
78 |
|
79 |
epatch "${FILESDIR}"/${P}-libpng14.patch |
80 |
epatch "${FILESDIR}"/${P}-configure.patch |
81 |
epatch "${FILESDIR}"/${P}-find-egrep.patch |
82 |
|
83 |
# Check for an exact match to libjpeg-6b, |
84 |
# since newer versions do not work (bug #382459). |
85 |
epatch "${FILESDIR}"/${P}-only-libjpeg-6b.patch |
86 |
|
87 |
# Change some destination directories that cannot be adjusted via configure |
88 |
cp Makefile.am Makefile.am.orig |
89 |
sed -i -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" Makefile.am |
90 |
sed -i -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" Makefile.am |
91 |
sed -i -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" Makefile.am |
92 |
|
93 |
cd unix |
94 |
cp Makefile.am Makefile.am.orig |
95 |
sed -i -e 's:^ -DPOVLIBDIR=.*: -DPOVLIBDIR=\\"@datadir@/'"${PN}"'\\" \\:' Makefile.am |
96 |
sed -i -e 's:^ -DPOVCONFDIR=.*: -DPOVCONFDIR=\\"@sysconfdir@/'"${PN}"'\\" \\:' Makefile.am |
97 |
cd .. |
98 |
|
99 |
# Patch code that compares system lib versions to properly detect |
100 |
# newer versions. Also fix reference to old png call. (Bug #153538) |
101 |
epatch "${FILESDIR}"/${P}-use-system-libpng.patch |
102 |
|
103 |
# Also, to make sure no bundled static libs can be used, remove them |
104 |
# (but keep jpeg and tiff, since we need to use these old static versions |
105 |
# if libjpeg-6b is not found on system (bug #382459)). |
106 |
#rm -r libraries/jpeg |
107 |
rm -r libraries/png |
108 |
#rm -r libraries/tiff |
109 |
rm -r libraries/zlib |
110 |
|
111 |
AT_NO_RECURSIVE="yes" eautoreconf |
112 |
} |
113 |
|
114 |
src_compile() { |
115 |
# Fixes bug 71255 |
116 |
if [[ $(get-flag march) == k6-2 ]]; then |
117 |
filter-flags -fomit-frame-pointer |
118 |
fi |
119 |
|
120 |
econf \ |
121 |
COMPILED_BY="Portage (Gentoo `uname`) on `hostname -f`" \ |
122 |
$(use_with svga) \ |
123 |
$(use_with tiff) \ |
124 |
$(use_with X) |
125 |
|
126 |
emake || die |
127 |
} |
128 |
|
129 |
src_install() { |
130 |
emake DESTDIR="${D}" install || die |
131 |
} |
132 |
|
133 |
pkg_preinst() { |
134 |
# Copy the old config files if they are in the old location |
135 |
# but do not yet exist in the new location. |
136 |
# This way, they can be treated by CONFIG_PROTECT as normal. |
137 |
for conf_file in $(ls "${D}/etc/${PN}"); do |
138 |
if [ ! -e "${ROOT}etc/${PN}/${conf_file}" ]; then |
139 |
for version_dir in $(ls "${ROOT}etc/${PN}" | grep "^[0-9]" | sort -rn); do |
140 |
if [ -e "${ROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then |
141 |
mv "${ROOT}etc/${PN}/${version_dir}/${conf_file}" "${ROOT}etc/${PN}" |
142 |
elog "Note: ${conf_file} moved from ${ROOT}etc/povray/${version_dir}/ to ${ROOT}etc/povray/" |
143 |
break |
144 |
fi |
145 |
done |
146 |
fi |
147 |
done |
148 |
} |