1 |
mgorny 13/02/25 22:20:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freetype-2.4.11-r1.ebuild |
5 |
Log: |
6 |
Convert to autotools-multilib. Acked by lu_zero, bug #455070. |
7 |
|
8 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.362 media-libs/freetype/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.362&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?rev=1.362&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/ChangeLog?r1=1.361&r2=1.362 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v |
20 |
retrieving revision 1.361 |
21 |
retrieving revision 1.362 |
22 |
diff -u -r1.361 -r1.362 |
23 |
--- ChangeLog 18 Feb 2013 01:04:52 -0000 1.361 |
24 |
+++ ChangeLog 25 Feb 2013 22:20:29 -0000 1.362 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for media-libs/freetype |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.361 2013/02/18 01:04:52 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.362 2013/02/25 22:20:29 mgorny Exp $ |
30 |
+ |
31 |
+*freetype-2.4.11-r1 (25 Feb 2013) |
32 |
+ |
33 |
+ 25 Feb 2013; Michał Górny <mgorny@g.o> +freetype-2.4.11-r1.ebuild: |
34 |
+ Convert to autotools-multilib. Acked by lu_zero, bug #455070. |
35 |
|
36 |
18 Feb 2013; Zac Medico <zmedico@g.o> freetype-2.4.11.ebuild: |
37 |
Add ~arm-linux keyword. |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-libs/freetype/freetype-2.4.11-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/freetype-2.4.11-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/freetype/freetype-2.4.11-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: freetype-2.4.11-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.4.11-r1.ebuild,v 1.1 2013/02/25 22:20:29 mgorny Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
inherit autotools-multilib flag-o-matic multilib |
55 |
|
56 |
DESCRIPTION="A high-quality and portable font engine" |
57 |
HOMEPAGE="http://www.freetype.org/" |
58 |
SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2 |
59 |
utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 ) |
60 |
doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 ) |
61 |
infinality? ( http://dev.gentoo.org/~polynomial-c/${P}-infinality-patches.tar.xz )" |
62 |
|
63 |
LICENSE="FTL GPL-2" |
64 |
SLOT="2" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~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" |
66 |
IUSE="X auto-hinter bindist bzip2 debug doc fontforge infinality static-libs utils" |
67 |
|
68 |
# Note: replace emul-linux dep when bzip2 becomes multilib-aware |
69 |
# (and all [${MULTILIB_USEDEP}] on it then!) |
70 |
DEPEND="sys-libs/zlib |
71 |
amd64? ( abi_x86_32? ( app-emulation/emul-linux-x86-baselibs ) ) |
72 |
bzip2? ( app-arch/bzip2 ) |
73 |
X? ( x11-libs/libX11 |
74 |
x11-libs/libXau |
75 |
x11-libs/libXdmcp )" |
76 |
RDEPEND="${DEPEND} |
77 |
infinality? ( media-libs/fontconfig-infinality ) |
78 |
abi_x86_32? ( !<=app-emulation/emul-linux-x86-xlibs-20130224 )" |
79 |
|
80 |
src_prepare() { |
81 |
enable_option() { |
82 |
sed -i -e "/#define $1/a #define $1" \ |
83 |
include/freetype/config/ftoption.h \ |
84 |
|| die "unable to enable option $1" |
85 |
} |
86 |
|
87 |
disable_option() { |
88 |
sed -i -e "/#define $1/ { s:^:/*:; s:$:*/: }" \ |
89 |
include/freetype/config/ftoption.h \ |
90 |
|| die "unable to disable option $1" |
91 |
} |
92 |
|
93 |
if ! use bindist; then |
94 |
# See http://freetype.org/patents.html |
95 |
# ClearType is covered by several Microsoft patents in the US |
96 |
enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING |
97 |
fi |
98 |
|
99 |
if use auto-hinter; then |
100 |
disable_option TT_CONFIG_OPTION_BYTECODE_INTERPRETER |
101 |
enable_option TT_CONFIG_OPTION_UNPATENTED_HINTING |
102 |
fi |
103 |
|
104 |
if use debug; then |
105 |
enable_option FT_DEBUG_LEVEL_TRACE |
106 |
enable_option FT_DEBUG_MEMORY |
107 |
fi |
108 |
|
109 |
disable_option FT_CONFIG_OPTION_OLD_INTERNALS |
110 |
|
111 |
if use infinality; then |
112 |
epatch "${WORKDIR}"/patches/freetype-enable-subpixel-hinting-infinality.patch |
113 |
epatch "${WORKDIR}"/patches/freetype-entire-infinality-patchset.patch |
114 |
|
115 |
# FT_CONFIG_OPTION_SUBPIXEL_RENDERING is already enabled in |
116 |
# freetype-2.4.11 |
117 |
enable_option TT_CONFIG_OPTION_SUBPIXEL_HINTING |
118 |
fi |
119 |
|
120 |
epatch "${FILESDIR}"/${PN}-2.3.2-enable-valid.patch |
121 |
|
122 |
epatch "${FILESDIR}"/${P}-auto-hinter_compile_fix.patch # 453956 |
123 |
|
124 |
# for our variable use, includedir needs to go after libdir |
125 |
# so swap the two lines |
126 |
sed -i -n -e '/@includedir@/{x;n;p;x};p' builds/unix/freetype-config.in || die |
127 |
|
128 |
if use utils; then |
129 |
cd "${WORKDIR}/ft2demos-${PV}" |
130 |
sed -i -e "s:\.\.\/freetype2$:../freetype-${PV}:" Makefile || die |
131 |
# Disable tests needing X11 when USE="-X". (bug #177597) |
132 |
if ! use X; then |
133 |
sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die |
134 |
fi |
135 |
fi |
136 |
|
137 |
autotools-utils_src_prepare |
138 |
} |
139 |
|
140 |
src_configure() { |
141 |
append-flags -fno-strict-aliasing |
142 |
type -P gmake &> /dev/null && export GNUMAKE=gmake |
143 |
|
144 |
# we need non-/bin/sh to run configure |
145 |
[[ -n ${CONFIG_SHELL} ]] && \ |
146 |
sed -i -e "1s:^#![[:space:]]*/bin/sh:#!$CONFIG_SHELL:" \ |
147 |
"${S}"/builds/unix/configure |
148 |
|
149 |
|
150 |
local myeconfargs=( |
151 |
# expanded by make |
152 |
--includedir='${libdir}/freetype2/include' |
153 |
$(use_with bzip2) |
154 |
) |
155 |
|
156 |
autotools-multilib_src_configure |
157 |
} |
158 |
|
159 |
src_compile() { |
160 |
autotools-multilib_src_compile |
161 |
|
162 |
if use utils; then |
163 |
einfo "Building utils" |
164 |
cd "${WORKDIR}/ft2demos-${PV}" |
165 |
# fix for Prefix, bug #339334 |
166 |
emake X11_PATH="${EPREFIX}/usr/$(get_libdir)" |
167 |
fi |
168 |
} |
169 |
|
170 |
src_install() { |
171 |
autotools-multilib_src_install |
172 |
|
173 |
if use utils; then |
174 |
einfo "Installing utils" |
175 |
rm "${WORKDIR}"/ft2demos-${PV}/bin/README |
176 |
for ft2demo in ../ft2demos-${PV}/bin/*; do |
177 |
./builds/unix/libtool --mode=install $(type -P install) -m 755 "$ft2demo" \ |
178 |
"${ED}"/usr/bin |
179 |
done |
180 |
fi |
181 |
|
182 |
if use fontforge; then |
183 |
# Probably fontforge needs less but this way makes things simplier... |
184 |
einfo "Installing internal headers required for fontforge" |
185 |
find src/truetype include/freetype/internal -name '*.h' | \ |
186 |
while read header; do |
187 |
mkdir -p "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" |
188 |
cp ${header} "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" |
189 |
done |
190 |
fi |
191 |
|
192 |
dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO} |
193 |
use doc && dohtml -r docs/* |
194 |
} |