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.3.7.ebuild
Date: Sun, 29 Jun 2008 17:50:07
Message-Id: E1KD12H-0004Dd-5U@stork.gentoo.org
1 dirtyepic 08/06/29 17:50:01
2
3 Modified: ChangeLog
4 Added: freetype-2.3.7.ebuild
5 Log:
6 Version bump. Mostly fixes for regressions in 2.3.6.
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc8 x86_64)
8
9 Revision Changes Path
10 1.189 media-libs/freetype/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.189&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.189&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/ChangeLog?r1=1.188&r2=1.189
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v
19 retrieving revision 1.188
20 retrieving revision 1.189
21 diff -u -r1.188 -r1.189
22 --- ChangeLog 29 Jun 2008 10:19:09 -0000 1.188
23 +++ ChangeLog 29 Jun 2008 17:50:00 -0000 1.189
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-libs/freetype
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.188 2008/06/29 10:19:09 tove Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.189 2008/06/29 17:50:00 dirtyepic Exp $
29 +
30 +*freetype-2.3.7 (29 Jun 2008)
31 +
32 + 29 Jun 2008; Ryan Hill <dirtyepic@g.o> +freetype-2.3.7.ebuild:
33 + Version bump. Mostly fixes for regressions in 2.3.6.
34
35 29 Jun 2008; Torsten Veller <tove@g.o>
36 freetype-1.4_pre20080316.ebuild:
37
38
39
40 1.1 media-libs/freetype/freetype-2.3.7.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/freetype-2.3.7.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/freetype/freetype-2.3.7.ebuild?rev=1.1&content-type=text/plain
44
45 Index: freetype-2.3.7.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.3.7.ebuild,v 1.1 2008/06/29 17:50:00 dirtyepic Exp $
50
51 inherit eutils flag-o-matic libtool
52
53 DESCRIPTION="A high-quality and portable font engine"
54 HOMEPAGE="http://www.freetype.org/"
55 SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2
56 utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 )
57 doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 )"
58
59 LICENSE="FTL GPL-2"
60 SLOT="2"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
62 IUSE="X bindist debug doc utils"
63
64 DEPEND="X? ( x11-libs/libX11
65 x11-libs/libXau
66 x11-libs/libXdmcp )"
67
68 # We also need a recent fontconfig version to prevent segfaults. #166029
69 # July 3 2007 dirtyepic
70 RDEPEND="${DEPEND}
71 !<media-libs/fontconfig-2.3.2-r2"
72
73 src_unpack() {
74 unpack ${A}
75 cd "${S}"
76
77 enable_option() {
78 sed -i -e "/#define $1/a #define $1" \
79 include/freetype/config/ftoption.h \
80 || die "unable to enable option $1"
81 }
82
83 disable_option() {
84 sed -i -e "/#define $1/ { s:^:/*:; s:$:*/: }" \
85 include/freetype/config/ftoption.h \
86 || die "unable to disable option $1"
87 }
88
89 if ! use bindist; then
90 # Bytecodes and subpixel hinting supports are patented
91 # in United States; for safety, disable them while building
92 # binaries, so that no risky code is distributed.
93 # See http://freetype.org/patents.html
94
95 enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING
96 enable_option TT_CONFIG_OPTION_BYTECODE_INTERPRETER
97 disable_option TT_CONFIG_OPTION_UNPATENTED_HINTING
98 fi
99
100 if use debug; then
101 enable_option FT_DEBUG_LEVEL_ERROR
102 enable_option FT_DEBUG_MEMORY
103 fi
104
105 enable_option FT_CONFIG_OPTION_INCREMENTAL
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
113
114 # Disable tests needing X11 when USE="-X". (bug #177597)
115 if ! use X; then
116 sed -i -e "/EXES\ +=\ ftview/ s:^:#:" Makefile
117 fi
118 fi
119
120 elibtoolize
121 epunt_cxx
122 }
123
124 src_compile() {
125 append-flags -fno-strict-aliasing
126
127 type -P gmake &> /dev/null && export GNUMAKE=gmake
128 econf || die "econf failed"
129 emake || die "emake failed"
130
131 if use utils; then
132 cd "${WORKDIR}"/ft2demos-${PV}
133 emake || die "ft2demos emake failed"
134 fi
135 }
136
137 src_install() {
138 emake DESTDIR="${D}" install || die "emake install failed"
139
140 dodoc ChangeLog README
141 dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PATENTS,TODO}
142
143 use doc && dohtml -r docs/*
144
145 if use utils; then
146 rm "${WORKDIR}"/ft2demos-${PV}/bin/README
147 for ft2demo in ../ft2demos-${PV}/bin/*; do
148 ./builds/unix/libtool --mode=install $(type -P install) -m 755 "$ft2demo" \
149 "${D}"/usr/bin
150 done
151 fi
152 }
153
154 pkg_postinst() {
155 echo
156 ewarn "After upgrading to freetype-2.3.5, it is necessary to rebuild"
157 ewarn "libXfont to avoid build errors in some packages."
158 echo
159 elog "The utilities and demos previously bundled with freetype are now"
160 elog "optional. Enable the utils USE flag if you would like them"
161 elog "to be installed."
162 echo
163 }
164
165
166
167 --
168 gentoo-commits@l.g.o mailing list