Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/freetype: ChangeLog freetype-2.4.8.ebuild freetype-2.4.6.ebuild
Date: Thu, 17 Nov 2011 01:28:30
Message-Id: 20111117012821.0D4F72004B@flycatcher.gentoo.org
1 dirtyepic 11/11/17 01:28:21
2
3 Modified: ChangeLog
4 Added: freetype-2.4.8.ebuild
5 Removed: freetype-2.4.6.ebuild
6 Log:
7 Version bump for CVE-2011-3439, bug #390623. Remove old version.
8
9 (Portage version: 2.2.0_alpha74/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.314 media-libs/freetype/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.314&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.314&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?r1=1.313&r2=1.314
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v
21 retrieving revision 1.313
22 retrieving revision 1.314
23 diff -u -r1.313 -r1.314
24 --- ChangeLog 23 Oct 2011 08:29:06 -0000 1.313
25 +++ ChangeLog 17 Nov 2011 01:28:20 -0000 1.314
26 @@ -1,6 +1,12 @@
27 # ChangeLog for media-libs/freetype
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.313 2011/10/23 08:29:06 xarthisius Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.314 2011/11/17 01:28:20 dirtyepic Exp $
31 +
32 +*freetype-2.4.8 (17 Nov 2011)
33 +
34 + 17 Nov 2011; Ryan Hill <dirtyepic@g.o> -freetype-2.4.6.ebuild,
35 + +freetype-2.4.8.ebuild:
36 + Version bump for CVE-2011-3439, bug #390623. Remove old version.
37
38 23 Oct 2011; Kacper Kowalik <xarthisius@g.o> freetype-2.4.7.ebuild:
39 ppc/ppc64 stable wrt #387535
40
41
42
43 1.1 media-libs/freetype/freetype-2.4.8.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/freetype-2.4.8.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/freetype-2.4.8.ebuild?rev=1.1&content-type=text/plain
47
48 Index: freetype-2.4.8.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.4.8.ebuild,v 1.1 2011/11/17 01:28:20 dirtyepic Exp $
53
54 EAPI="4"
55
56 inherit autotools autotools-utils eutils flag-o-matic libtool multilib
57
58 DESCRIPTION="A high-quality and portable font engine"
59 HOMEPAGE="http://www.freetype.org/"
60 SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2
61 utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 )
62 doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 )"
63
64 LICENSE="FTL GPL-2"
65 SLOT="2"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
67 IUSE="X auto-hinter bindist bzip2 debug doc fontforge static-libs utils"
68
69 DEPEND="sys-libs/zlib
70 bzip2? ( app-arch/bzip2 )
71 X? ( x11-libs/libX11
72 x11-libs/libXau
73 x11-libs/libXdmcp )"
74
75 RDEPEND="${DEPEND}"
76
77 src_prepare() {
78 enable_option() {
79 sed -i -e "/#define $1/a #define $1" \
80 include/freetype/config/ftoption.h \
81 || die "unable to enable option $1"
82 }
83
84 disable_option() {
85 sed -i -e "/#define $1/ { s:^:/*:; s:$:*/: }" \
86 include/freetype/config/ftoption.h \
87 || die "unable to disable option $1"
88 }
89
90 if ! use bindist; then
91 # See http://freetype.org/patents.html
92 # ClearType is covered by several Microsoft patents in the US
93 enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING
94 fi
95
96 if use auto-hinter; then
97 disable_option TT_CONFIG_OPTION_BYTECODE_INTERPRETER
98 enable_option TT_CONFIG_OPTION_UNPATENTED_HINTING
99 fi
100
101 if use debug; then
102 enable_option FT_DEBUG_LEVEL_TRACE
103 enable_option FT_DEBUG_MEMORY
104 fi
105
106 disable_option FT_CONFIG_OPTION_OLD_INTERNALS
107
108 epatch "${FILESDIR}"/${PN}-2.3.2-enable-valid.patch
109
110 if use utils; then
111 cd "${WORKDIR}/ft2demos-${PV}"
112 sed -i -e "s:\.\.\/freetype2$:../freetype-${PV}:" Makefile || die
113 # Disable tests needing X11 when USE="-X". (bug #177597)
114 if ! use X; then
115 sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die
116 fi
117 fi
118
119 if use prefix; then
120 cd "${S}"/builds/unix
121 eautoreconf
122 else
123 elibtoolize
124 fi
125 epunt_cxx
126 }
127
128 src_configure() {
129 append-flags -fno-strict-aliasing
130 type -P gmake &> /dev/null && export GNUMAKE=gmake
131
132 # we need non-/bin/sh to run configure
133 [[ -n ${CONFIG_SHELL} ]] && \
134 sed -i -e "1s:^#![[:space:]]*/bin/sh:#!$CONFIG_SHELL:" \
135 "${S}"/builds/unix/configure
136
137 econf \
138 $(use_enable static-libs static) \
139 $(use_with bzip2)
140 }
141
142 src_compile() {
143 emake
144
145 if use utils; then
146 cd "${WORKDIR}/ft2demos-${PV}"
147 # fix for Prefix, bug #339334
148 emake X11_PATH="${EPREFIX}/usr/$(get_libdir)"
149 fi
150 }
151
152 src_install() {
153 emake DESTDIR="${D}" install
154
155 dodoc ChangeLog README
156 dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO}
157
158 use doc && dohtml -r docs/*
159
160 if use utils; then
161 rm "${WORKDIR}"/ft2demos-${PV}/bin/README
162 for ft2demo in ../ft2demos-${PV}/bin/*; do
163 ./builds/unix/libtool --mode=install $(type -P install) -m 755 "$ft2demo" \
164 "${ED}"/usr/bin
165 done
166 fi
167
168 if use fontforge; then
169 # Probably fontforge needs less but this way makes things simplier...
170 einfo "Installing internal headers required for fontforge"
171 find src/truetype include/freetype/internal -name '*.h' | \
172 while read header; do
173 mkdir -p "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})"
174 cp ${header} "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})"
175 done
176 fi
177
178 if ! use static-libs; then
179 remove_libtool_files || die "failed removing libtool files"
180 fi
181 }
182
183 pkg_postinst() {
184 elog "The TrueType bytecode interpreter is no longer patented and thus no"
185 elog "longer controlled by the bindist USE flag. Enable the auto-hinter"
186 elog "USE flag if you want the old USE="bindist" hinting behavior."
187 }