1 |
yngwin 13/06/02 07:41:04 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: freetype-2.4.12.ebuild |
5 |
Log: |
6 |
Version bump, with thanks to Mario Kicherer for his contributions in bug #469904 |
7 |
|
8 |
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0x2B2474AD43CE296E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.19 media-libs/freetype/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/metadata.xml?rev=1.19&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/metadata.xml?rev=1.19&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/metadata.xml?r1=1.18&r2=1.19 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/freetype/metadata.xml,v |
20 |
retrieving revision 1.18 |
21 |
retrieving revision 1.19 |
22 |
diff -u -r1.18 -r1.19 |
23 |
--- metadata.xml 27 May 2013 02:49:29 -0000 1.18 |
24 |
+++ metadata.xml 2 Jun 2013 07:41:04 -0000 1.19 |
25 |
@@ -12,6 +12,7 @@ |
26 |
<description>Handling the bugs related to multilib support in the package and related changes.</description> |
27 |
</maintainer> |
28 |
<use> |
29 |
+ <flag name="adobe-cff">Use Adobe CFF as default font-renderer</flag> |
30 |
<flag name="auto-hinter">Use the unpatented auto-hinter instead |
31 |
of the (recommended) TrueType bytecode interpreter</flag> |
32 |
<flag name="bzip2">Support bzip2 compressed PCF fonts.</flag> |
33 |
|
34 |
|
35 |
|
36 |
1.373 media-libs/freetype/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.373&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.373&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?r1=1.372&r2=1.373 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v |
45 |
retrieving revision 1.372 |
46 |
retrieving revision 1.373 |
47 |
diff -u -r1.372 -r1.373 |
48 |
--- ChangeLog 27 May 2013 02:49:29 -0000 1.372 |
49 |
+++ ChangeLog 2 Jun 2013 07:41:04 -0000 1.373 |
50 |
@@ -1,6 +1,14 @@ |
51 |
# ChangeLog for media-libs/freetype |
52 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.372 2013/05/27 02:49:29 patrick Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.373 2013/06/02 07:41:04 yngwin Exp $ |
55 |
+ |
56 |
+*freetype-2.4.12 (02 Jun 2013) |
57 |
+ |
58 |
+ 02 Jun 2013; Ben de Groot <yngwin@g.o> |
59 |
+ +files/freetype-2.4.12-set-adobe-cff-hinting-as-default.patch, |
60 |
+ +freetype-2.4.12.ebuild, metadata.xml: |
61 |
+ Version bump, with thanks to Mario Kicherer for his contributions in bug |
62 |
+ #469904 |
63 |
|
64 |
27 May 2013; Patrick Lauer <patrick@g.o> metadata.xml: |
65 |
Remove unneeded useflag from metadata |
66 |
|
67 |
|
68 |
|
69 |
1.1 media-libs/freetype/freetype-2.4.12.ebuild |
70 |
|
71 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/freetype-2.4.12.ebuild?rev=1.1&view=markup |
72 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/freetype-2.4.12.ebuild?rev=1.1&content-type=text/plain |
73 |
|
74 |
Index: freetype-2.4.12.ebuild |
75 |
=================================================================== |
76 |
# Copyright 1999-2013 Gentoo Foundation |
77 |
# Distributed under the terms of the GNU General Public License v2 |
78 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.4.12.ebuild,v 1.1 2013/06/02 07:41:04 yngwin Exp $ |
79 |
|
80 |
EAPI=5 |
81 |
|
82 |
inherit autotools-multilib flag-o-matic multilib |
83 |
|
84 |
DESCRIPTION="A high-quality and portable font engine" |
85 |
HOMEPAGE="http://www.freetype.org/" |
86 |
SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2 |
87 |
utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 ) |
88 |
doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 ) |
89 |
infinality? ( http://www.infinality.net/fedora/linux/zips/freetype-infinality-${PV}-20130514_01-x86_64.tar.bz2 )" |
90 |
|
91 |
LICENSE="|| ( FTL GPL-2+ )" |
92 |
SLOT="2" |
93 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh |
94 |
~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd |
95 |
~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos |
96 |
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris |
97 |
~x86-solaris ~x86-winnt" |
98 |
IUSE="X auto-hinter bindist bzip2 adobe-cff debug doc fontforge infinality |
99 |
static-libs utils" |
100 |
|
101 |
# Note: replace emul-linux dep when bzip2 becomes multilib-aware |
102 |
# (and all [${MULTILIB_USEDEP}] on it then!) |
103 |
DEPEND="sys-libs/zlib |
104 |
amd64? ( abi_x86_32? ( app-emulation/emul-linux-x86-baselibs ) ) |
105 |
bzip2? ( app-arch/bzip2 ) |
106 |
X? ( x11-libs/libX11 |
107 |
x11-libs/libXau |
108 |
x11-libs/libXdmcp )" |
109 |
RDEPEND="${DEPEND} |
110 |
infinality? ( media-libs/fontconfig-infinality ) |
111 |
abi_x86_32? ( !<=app-emulation/emul-linux-x86-xlibs-20130224 )" |
112 |
|
113 |
src_prepare() { |
114 |
enable_option() { |
115 |
sed -i -e "/#define $1/a #define $1" \ |
116 |
include/freetype/config/ftoption.h \ |
117 |
|| die "unable to enable option $1" |
118 |
} |
119 |
|
120 |
disable_option() { |
121 |
sed -i -e "/#define $1/ { s:^:/*:; s:$:*/: }" \ |
122 |
include/freetype/config/ftoption.h \ |
123 |
|| die "unable to disable option $1" |
124 |
} |
125 |
|
126 |
if use infinality; then |
127 |
epatch "${WORKDIR}"/freetype-entire-infinality-patchset-20130514-01.patch |
128 |
|
129 |
# FT_CONFIG_OPTION_SUBPIXEL_RENDERING is already enabled in |
130 |
# freetype-2.4.11 |
131 |
enable_option TT_CONFIG_OPTION_SUBPIXEL_HINTING |
132 |
fi |
133 |
|
134 |
if ! use bindist; then |
135 |
# See http://freetype.org/patents.html |
136 |
# ClearType is covered by several Microsoft patents in the US |
137 |
enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING |
138 |
fi |
139 |
|
140 |
if use auto-hinter; then |
141 |
disable_option TT_CONFIG_OPTION_BYTECODE_INTERPRETER |
142 |
enable_option TT_CONFIG_OPTION_UNPATENTED_HINTING |
143 |
fi |
144 |
|
145 |
if use adobe-cff; then |
146 |
epatch "${FILESDIR}"/${PN}-2.4.12-set-adobe-cff-hinting-as-default.patch |
147 |
fi |
148 |
|
149 |
if use debug; then |
150 |
enable_option FT_DEBUG_LEVEL_TRACE |
151 |
enable_option FT_DEBUG_MEMORY |
152 |
fi |
153 |
|
154 |
epatch "${FILESDIR}"/${PN}-2.3.2-enable-valid.patch |
155 |
|
156 |
epatch "${FILESDIR}"/${PN}-2.4.11-sizeof-types.patch # 459966 |
157 |
|
158 |
if use utils; then |
159 |
cd "${WORKDIR}/ft2demos-${PV}" || die |
160 |
# Disable tests needing X11 when USE="-X". (bug #177597) |
161 |
if ! use X; then |
162 |
sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die |
163 |
fi |
164 |
fi |
165 |
|
166 |
# we need non-/bin/sh to run configure |
167 |
[[ -n ${CONFIG_SHELL} ]] && \ |
168 |
sed -i -e "1s:^#![[:space:]]*/bin/sh:#!$CONFIG_SHELL:" \ |
169 |
"${S}"/builds/unix/configure |
170 |
|
171 |
autotools-utils_src_prepare |
172 |
} |
173 |
|
174 |
src_configure() { |
175 |
append-flags -fno-strict-aliasing |
176 |
type -P gmake &> /dev/null && export GNUMAKE=gmake |
177 |
|
178 |
local myeconfargs=( |
179 |
--enable-biarch-config |
180 |
$(use_with bzip2) |
181 |
) |
182 |
|
183 |
autotools-multilib_src_configure |
184 |
} |
185 |
|
186 |
src_compile() { |
187 |
autotools-multilib_src_compile |
188 |
|
189 |
if use utils; then |
190 |
einfo "Building utils" |
191 |
# fix for Prefix, bug #339334 |
192 |
multilib_for_best_abi autotools-utils_src_compile \ |
193 |
X11_PATH="${EPREFIX}/usr/$(get_libdir)" \ |
194 |
FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" |
195 |
fi |
196 |
} |
197 |
|
198 |
src_install() { |
199 |
autotools-multilib_src_install |
200 |
|
201 |
if use utils; then |
202 |
install_utils() { |
203 |
einfo "Installing utils" |
204 |
rm "${WORKDIR}"/ft2demos-${PV}/bin/README || die |
205 |
local ft2demo |
206 |
for ft2demo in ../ft2demos-${PV}/bin/*; do |
207 |
"${BUILD_DIR}"/libtool --mode=install $(type -P install) -m 755 "$ft2demo" \ |
208 |
"${ED}"/usr/bin || die |
209 |
done |
210 |
} |
211 |
multilib_for_best_abi install_utils |
212 |
fi |
213 |
|
214 |
if use fontforge; then |
215 |
# Probably fontforge needs less but this way makes things simplier... |
216 |
einfo "Installing internal headers required for fontforge" |
217 |
local header |
218 |
find src/truetype include/freetype/internal -name '*.h' | \ |
219 |
while read header; do |
220 |
mkdir -p "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
221 |
cp ${header} "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
222 |
done |
223 |
fi |
224 |
|
225 |
dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO} |
226 |
use doc && dohtml -r docs/* |
227 |
} |