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 metadata.xml freetype-2.3.5-r2.ebuild
Date: Thu, 04 Oct 2007 01:16:37
Message-Id: E1IdFBW-0001XR-0J@stork.gentoo.org
1 dirtyepic 07/10/04 01:07:26
2
3 Modified: ChangeLog metadata.xml
4 Added: freetype-2.3.5-r2.ebuild
5 Log:
6 - made ft2demos optional with utils USE flag (Bug #182905 by kerzol)
7 - always use system zlib
8 - remove ancient RDEPEND blockers
9 (Portage version: 2.1.3.11)
10
11 Revision Changes Path
12 1.159 media-libs/freetype/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.159&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.159&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/ChangeLog?r1=1.158&r2=1.159
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v
21 retrieving revision 1.158
22 retrieving revision 1.159
23 diff -u -r1.158 -r1.159
24 --- ChangeLog 1 Oct 2007 05:37:54 -0000 1.158
25 +++ ChangeLog 4 Oct 2007 01:07:25 -0000 1.159
26 @@ -1,6 +1,14 @@
27 # ChangeLog for media-libs/freetype
28 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.158 2007/10/01 05:37:54 dirtyepic Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.159 2007/10/04 01:07:25 dirtyepic Exp $
31 +
32 +*freetype-2.3.5-r2 (04 Oct 2007)
33 +
34 + 04 Oct 2007; Ryan Hill <dirtyepic@g.o> metadata.xml,
35 + +freetype-2.3.5-r2.ebuild:
36 + - made ft2demos optional with utils USE flag (Bug #182905 by kerzol)
37 + - always use system zlib
38 + - remove ancient RDEPEND blockers
39
40 01 Oct 2007; Ryan Hill <dirtyepic@g.o> -freetype-1.3.1-r4.ebuild,
41 -freetype-2.3.5.ebuild:
42
43
44
45 1.7 media-libs/freetype/metadata.xml
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/metadata.xml?rev=1.7&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/metadata.xml?rev=1.7&content-type=text/plain
49 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/metadata.xml?r1=1.6&r2=1.7
50
51 Index: metadata.xml
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/media-libs/freetype/metadata.xml,v
54 retrieving revision 1.6
55 retrieving revision 1.7
56 diff -u -r1.6 -r1.7
57 --- metadata.xml 29 Apr 2007 01:40:06 -0000 1.6
58 +++ metadata.xml 4 Oct 2007 01:07:25 -0000 1.7
59 @@ -1,8 +1,5 @@
60 <?xml version="1.0" encoding="UTF-8"?>
61 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
62 <pkgmetadata>
63 -<herd>fonts</herd>
64 -<maintainer>
65 - <email>foser@g.o</email>
66 -</maintainer>
67 + <herd>fonts</herd>
68 </pkgmetadata>
69
70
71
72 1.1 media-libs/freetype/freetype-2.3.5-r2.ebuild
73
74 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/freetype-2.3.5-r2.ebuild?rev=1.1&view=markup
75 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/freetype-2.3.5-r2.ebuild?rev=1.1&content-type=text/plain
76
77 Index: freetype-2.3.5-r2.ebuild
78 ===================================================================
79 # Copyright 1999-2007 Gentoo Foundation
80 # Distributed under the terms of the GNU General Public License v2
81 # $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.3.5-r2.ebuild,v 1.1 2007/10/04 01:07:25 dirtyepic Exp $
82
83 inherit eutils flag-o-matic libtool
84
85 DESCRIPTION="A high-quality and portable font engine"
86 HOMEPAGE="http://www.freetype.org/"
87 SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2
88 utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 )
89 doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 )"
90
91 LICENSE="FTL GPL-2"
92 SLOT="2"
93 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
94 IUSE="X bindist debug doc utils"
95
96 DEPEND="X? ( x11-libs/libX11
97 x11-libs/libXau
98 x11-libs/libXdmcp )"
99
100 # We also need a recent fontconfig version to prevent segfaults. #166029
101 # July 3 2007 dirtyepic
102 RDEPEND="${DEPEND}
103 !<media-libs/fontconfig-2.3.2-r2"
104
105 src_unpack() {
106 unpack ${A}
107 cd "${S}"
108
109 enable_option() {
110 sed -i -e "/#define $1/a #define $1" \
111 include/freetype/config/ftoption.h \
112 || die "unable to enable option $1"
113 }
114
115 disable_option() {
116 sed -i -e "/#define $1/ { s:^:/*:; s:$:*/: }" \
117 include/freetype/config/ftoption.h \
118 || die "unable to disable option $1"
119 }
120
121 if ! use bindist; then
122 # Bytecodes and subpixel hinting supports are patented
123 # in United States; for safety, disable them while building
124 # binaries, so that no risky code is distributed.
125 # See http://freetype.org/patents.html
126
127 enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING
128 enable_option TT_CONFIG_OPTION_BYTECODE_INTERPRETER
129 disable_option TT_CONFIG_OPTION_UNPATENTED_HINTING
130 fi
131
132 if use debug; then
133 enable_option FT_DEBUG_LEVEL_ERROR
134 enable_option FT_DEBUG_MEMORY
135 fi
136
137 enable_option FT_CONFIG_OPTION_INCREMENTAL
138 disable_option FT_CONFIG_OPTION_OLD_INTERNALS
139
140 epatch "${FILESDIR}"/${PN}-2.3.2-enable-valid.patch
141 epatch "${FILESDIR}"/${PN}-2.3.5-crossbuild.patch # bug #185681
142
143 if use utils; then
144 cd "${WORKDIR}"/ft2demos-${PV}
145 sed -i -e "s:\.\.\/freetype2$:../freetype-${PV}:" Makefile
146
147 # Disable tests needing X11 when USE="-X". (bug #177597)
148 if ! use X; then
149 sed -i -e "/EXES\ +=\ ftview/ s:^:#:" Makefile
150 fi
151 fi
152
153 elibtoolize
154 epunt_cxx
155 }
156
157 src_compile() {
158 append-flags -fno-strict-aliasing
159
160 type -P gmake &> /dev/null && export GNUMAKE=gmake
161 econf || die "econf failed"
162 emake || die "emake failed"
163
164 if use utils; then
165 cd "${WORKDIR}"/ft2demos-${PV}
166 emake || die "ft2demos emake failed"
167 fi
168 }
169
170 src_install() {
171 emake DESTDIR="${D}" install || die "emake install failed"
172
173 dodoc ChangeLog README
174 dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PATENTS,TODO}
175
176 use doc && dohtml -r docs/*
177
178 if use utils; then
179 rm "${WORKDIR}"/ft2demos-${PV}/bin/README
180 for ft2demo in ../ft2demos-${PV}/bin/*; do
181 ./builds/unix/libtool --mode=install $(type -P install) -m 755 "$ft2demo" \
182 "${D}"/usr/bin
183 done
184 fi
185 }
186
187 pkg_postinst() {
188 echo
189 ewarn "After upgrading to freetype-2.3.5, it is necessary to rebuild"
190 ewarn "libXfont to avoid build errors in some packages."
191 echo
192 elog "The utilities and demos previously bundled with freetype are now"
193 elog "optional. Enable the utils USE flag if you would like them"
194 elog "to be installed."
195 echo
196 }
197
198
199
200 --
201 gentoo-commits@g.o mailing list