1 |
commit: 45a9bbbac1dc12d4b39d8498fa23431f21d32d0a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 9 20:28:15 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 9 20:29:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45a9bbba |
7 |
|
8 |
media-libs/freetype: Bump to version 2.10.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
media-libs/freetype/Manifest | 3 + |
14 |
media-libs/freetype/freetype-2.10.2.ebuild | 240 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 243 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/freetype/Manifest b/media-libs/freetype/Manifest |
18 |
index 8883fcd7599..d01f6fcae72 100644 |
19 |
--- a/media-libs/freetype/Manifest |
20 |
+++ b/media-libs/freetype/Manifest |
21 |
@@ -1,9 +1,12 @@ |
22 |
DIST freetype-2.10.0.tar.bz2 2743740 BLAKE2B def3e6393a4a26cd063df1cdfa676677547a9f68a95b8f246c79a7ff88d3da842b214770cd60e359d42692d6c002ba4effab03905034aa67a841af4c5d7a7157 SHA512 dfad66f419ea9577f09932e0730c0c887bdcbdbc8152fa7477a0c39d69a5b68476761deed6864ddcc5cf18d100a7a3f728049768e24afcb04b1a74b25b6acf7e |
23 |
DIST freetype-2.10.1.tar.xz 2378784 BLAKE2B 7c177d3ca9ad923dc9534719529686c4242d87d85bfbc32fa8a12d0be87aceb4960ec84b84e433413312de17ac24a8ed2a9d092efa25a39108d28e2051ada574 SHA512 c7a565b0ab3dce81927008a6965d5c7540f0dc973fcefdc1677c2e65add8668b4701c2958d25593cb41f706f4488765365d40b93da71dbfa72907394f28b2650 |
24 |
+DIST freetype-2.10.2.tar.xz 2404456 BLAKE2B 866bd83c460f83fba93f58d0ae2270ac3833d6eb0b087f7eb860bd6e08f40ece1982b70bbd065b8978e47ff6fb2b46398307d461170cd10285d11f74a9fbadaa SHA512 cf45089bd8893d7de2cdcb59d91bbb300e13dd0f0a9ef80ed697464ba7aeaf46a5a81b82b59638e6b21691754d8f300f23e1f0d11683604541d77f0f581affaa |
25 |
DIST freetype-2.9.1.tar.bz2 1926385 BLAKE2B f165d638e0f49749a2640aabba96aca20441c76028cc18bb2482fd620a29dd368bc55ea020c1e74fa6effe9fed3c59a53c7fdf2dd6021f445032b7007201948e SHA512 856766e1f3f4c7dc8afb2b5ee991138c8b642c6a6e5e007cd2bc04ae58bde827f082557cf41bf541d97e8485f7fd064d10390d1ee597f19d1daed6c152e27708 |
26 |
DIST freetype-doc-2.10.0.tar.bz2 2130601 BLAKE2B 7814b8ad53343dc72f0b11b29224f9755686e504d099c53b76faefd9b38d207222c092ea549b25c7842956f13067a09cce460d33cfff1aace537f0044df627ac SHA512 e0902983030b7b67443ca88f29a8bb72662de706ddff81309c66b6738b26c5d11dbd00eb75795851ddcd9f93ce05981623884afad096c0defd08bd544f5266d6 |
27 |
DIST freetype-doc-2.10.1.tar.xz 2079092 BLAKE2B 7d2b8ccdfeba71f1dab57f31cfb96a21afbf628ad329f798e9ac25f6e57cc662db67040a9f7c63df2d43b1c0a169c37ca0cd82bfa2d95ef382b16066859dc5b3 SHA512 7260d0d6b1bd04f9940b456b20d8d8157fc528f5b6a5c2028fe57008bee3e8d0434bdf89589e2e521b04e3e2c43627155549091d3aaf06384b654f795458991e |
28 |
+DIST freetype-doc-2.10.2.tar.xz 2078712 BLAKE2B 9d78d5d7c3806d83f5cb91daa88284445d36a75ce7b598177c83a9efc62faf5d8a0003f8cadee37eb6792711c87dc61d937fcb03f3c450c94276dfdf410c0aa1 SHA512 c54956a56920e651102b75c0efa07212e1d95f3bec219b8364b61d9a71171b11da492170cc861c36f3305f32ad1dee46d0d5a561ccdc6ca36591ae3f619a1d67 |
29 |
DIST freetype-doc-2.9.1.tar.bz2 2130292 BLAKE2B 667032fa447fbc28c0f753df3ade7a07a4f8d4d26cdd00fed2fa0e8098e9d6a083572608b7d06446ea91baa932e3c6d18beb1f86f6b549a8cd2c07a2df567da0 SHA512 1668f02f67e6e047df04e5e2fccb564cd9af780ec9b3c4878109868302a83eaec7b627390ff82c3e875122400e6f20fc690936a1e4964dfa65143e5309fa22d4 |
30 |
DIST ft2demos-2.10.0.tar.bz2 237599 BLAKE2B 722e586f412059b8b29a26c832037a860dc1b26afed85b8b0aa5fc71245293f45d19b379c54993f64ba4b8de329799834656d00fc4b6f6610ddd0b08cfd05449 SHA512 d48cbabd5cc673e0af2e0c4056dba95cee8e08092f881958c6908ea2d4da7104ca81b701d47a17640ac36cbdfd8aa274cc26353bb43f026f55c00d565f2ad641 |
31 |
DIST ft2demos-2.10.1.tar.xz 229228 BLAKE2B 015448f3f246fc7772b10f55037450866323e1b7410cf840fa15fa1da3e6a1c980167bfedbe197b6e6637a8e1dcef1f4fd83174e47f33f090d554fab2c40380c SHA512 f1c06fae3d5653d6d8f8d630e531d47b7be4429b122dc826c80791953e61df7374dfc151f90519fe110f78fcbf592d9dbd9e96c83200730a6f04e42760cc3142 |
32 |
+DIST ft2demos-2.10.2.tar.xz 230672 BLAKE2B dd81e72bb1360f6a952874c183598fffe3eddb4bed4d07715a75810d2e81623b94082b1274f916bf7550615a66ba7a327c5413fca9d470111aeb1fa31ce4dd73 SHA512 912e3c3cbcdfd30fd918897d28240e04eb7248d130fc519e7d1613873a11d275d658ff247c6d517ebecf7a09de0d05f3dc10631411226015e1b147cba9a8a438 |
33 |
DIST ft2demos-2.9.1.tar.bz2 233462 BLAKE2B c689942b222b2c600b5ec3963791621ae87acefb9b01caa5dc35af52525d03e3a1094e48c0789d5eaabbce787bddd7c3055e12454e54ea3c7fae92bca47614de SHA512 38bee59184b20c2eb983deaa5c1f241e31c1b4793e47dc06b1b419601489cfece3b11fde4cf4fb6c5af12254ad0c1ce9a1547885c208e8e715655e9c48f22a46 |
34 |
|
35 |
diff --git a/media-libs/freetype/freetype-2.10.2.ebuild b/media-libs/freetype/freetype-2.10.2.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000000..d6f5e68744d |
38 |
--- /dev/null |
39 |
+++ b/media-libs/freetype/freetype-2.10.2.ebuild |
40 |
@@ -0,0 +1,240 @@ |
41 |
+# Copyright 1999-2020 Gentoo Authors |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=7 |
45 |
+ |
46 |
+inherit flag-o-matic libtool multilib-build multilib-minimal toolchain-funcs |
47 |
+ |
48 |
+DESCRIPTION="A high-quality and portable font engine" |
49 |
+HOMEPAGE="https://www.freetype.org/" |
50 |
+IUSE="X +adobe-cff bindist bzip2 +cleartype_hinting debug fontforge harfbuzz infinality png static-libs utils" |
51 |
+ |
52 |
+if [[ "${PV}" != 9999 ]] ; then |
53 |
+ SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.xz |
54 |
+ mirror://nongnu/freetype/${P/_/}.tar.xz |
55 |
+ utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.xz |
56 |
+ mirror://nongnu/freetype/ft2demos-${PV}.tar.xz ) |
57 |
+ doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.xz |
58 |
+ mirror://nongnu/freetype/${PN}-doc-${PV}.tar.xz )" |
59 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
60 |
+ IUSE+=" doc" |
61 |
+else |
62 |
+ inherit autotools git-r3 |
63 |
+fi |
64 |
+ |
65 |
+LICENSE="|| ( FTL GPL-2+ )" |
66 |
+SLOT="2" |
67 |
+RESTRICT="!bindist? ( bindist )" # bug 541408 |
68 |
+ |
69 |
+RDEPEND=" |
70 |
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
71 |
+ bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
72 |
+ harfbuzz? ( >=media-libs/harfbuzz-1.3.0[truetype,${MULTILIB_USEDEP}] ) |
73 |
+ png? ( >=media-libs/libpng-1.2.51:0=[${MULTILIB_USEDEP}] ) |
74 |
+ utils? ( |
75 |
+ X? ( |
76 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
77 |
+ >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}] |
78 |
+ >=x11-libs/libXdmcp-1.1.1-r1[${MULTILIB_USEDEP}] |
79 |
+ ) |
80 |
+ )" |
81 |
+DEPEND="${RDEPEND}" |
82 |
+BDEPEND=" |
83 |
+ virtual/pkgconfig |
84 |
+" |
85 |
+PDEPEND="infinality? ( media-libs/fontconfig-infinality )" |
86 |
+ |
87 |
+PATCHES=( |
88 |
+ "${FILESDIR}"/${PN}-2.4.11-sizeof-types.patch # 459966 |
89 |
+) |
90 |
+ |
91 |
+_egit_repo_handler() { |
92 |
+ if [[ "${PV}" == 9999 ]] ; then |
93 |
+ local phase="${1}" |
94 |
+ case ${phase} in |
95 |
+ fetch|unpack) |
96 |
+ :; |
97 |
+ ;; |
98 |
+ *) |
99 |
+ die "Please use this function with either \"fetch\" or \"unpack\"" |
100 |
+ ;; |
101 |
+ esac |
102 |
+ |
103 |
+ local EGIT_REPO_URI |
104 |
+ EGIT_REPO_URI="https://git.sv.nongnu.org/r/freetype/freetype2.git" |
105 |
+ git-r3_src_${phase} |
106 |
+ if use utils ; then |
107 |
+ EGIT_REPO_URI="https://git.sv.nongnu.org/r/freetype/freetype2-demos.git" |
108 |
+ local EGIT_CHECKOUT_DIR="${WORKDIR}/ft2demos-${PV}" |
109 |
+ git-r3_src_${phase} |
110 |
+ fi |
111 |
+ else |
112 |
+ default |
113 |
+ fi |
114 |
+} |
115 |
+ |
116 |
+src_fetch() { |
117 |
+ _egit_repo_handler ${EBUILD_PHASE} |
118 |
+} |
119 |
+ |
120 |
+src_unpack() { |
121 |
+ _egit_repo_handler ${EBUILD_PHASE} |
122 |
+} |
123 |
+ |
124 |
+src_prepare() { |
125 |
+ if [[ "${PV}" == 9999 ]] ; then |
126 |
+ # inspired by shipped autogen.sh script |
127 |
+ eval $(sed -nf version.sed include/freetype/freetype.h) |
128 |
+ pushd builds/unix &>/dev/null || die |
129 |
+ sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \ |
130 |
+ < configure.raw > configure.ac || die |
131 |
+ # eautoheader produces broken ftconfig.in |
132 |
+ eautoheader() { return 0 ; } |
133 |
+ AT_M4DIR="." eautoreconf |
134 |
+ unset freetype_major freetype_minor freetype_patch |
135 |
+ popd &>/dev/null || die |
136 |
+ fi |
137 |
+ |
138 |
+ default |
139 |
+ |
140 |
+ # This is the same as the 01 patch from infinality |
141 |
+ sed '/AUX_MODULES += \(gx\|ot\)valid/s@^# @@' -i modules.cfg || die |
142 |
+ |
143 |
+ enable_option() { |
144 |
+ sed -i -e "/#define $1/ { s:/\* ::; s: \*/:: }" \ |
145 |
+ include/${PN}/config/ftoption.h \ |
146 |
+ || die "unable to enable option $1" |
147 |
+ } |
148 |
+ |
149 |
+ disable_option() { |
150 |
+ sed -i -e "/#define $1/ { s:^:/* :; s:$: */: }" \ |
151 |
+ include/${PN}/config/ftoption.h \ |
152 |
+ || die "unable to disable option $1" |
153 |
+ } |
154 |
+ |
155 |
+ # Will be the new default for >=freetype-2.7.0 |
156 |
+ disable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
157 |
+ |
158 |
+ if use infinality && use cleartype_hinting; then |
159 |
+ enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 )" |
160 |
+ elif use infinality; then |
161 |
+ enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 1" |
162 |
+ elif use cleartype_hinting; then |
163 |
+ enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
164 |
+ fi |
165 |
+ |
166 |
+ # Can be disabled with FREETYPE_PROPERTIES="pcf:no-long-family-names=1" |
167 |
+ # via environment (new since v2.8) |
168 |
+ enable_option PCF_CONFIG_OPTION_LONG_FAMILY_NAMES |
169 |
+ |
170 |
+ if ! use bindist; then |
171 |
+ # See http://freetype.org/patents.html |
172 |
+ # ClearType is covered by several Microsoft patents in the US |
173 |
+ enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING |
174 |
+ fi |
175 |
+ |
176 |
+ if ! use adobe-cff; then |
177 |
+ enable_option CFF_CONFIG_OPTION_OLD_ENGINE |
178 |
+ fi |
179 |
+ |
180 |
+ if use debug; then |
181 |
+ enable_option FT_DEBUG_LEVEL_TRACE |
182 |
+ enable_option FT_DEBUG_MEMORY |
183 |
+ fi |
184 |
+ |
185 |
+ if use utils; then |
186 |
+ cd "${WORKDIR}/ft2demos-${PV}" || die |
187 |
+ # Disable tests needing X11 when USE="-X". (bug #177597) |
188 |
+ if ! use X; then |
189 |
+ sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die |
190 |
+ fi |
191 |
+ cd "${S}" || die |
192 |
+ fi |
193 |
+ |
194 |
+ # we need non-/bin/sh to run configure |
195 |
+ if [[ -n ${CONFIG_SHELL} ]] ; then |
196 |
+ sed -i -e "1s:^#![[:space:]]*/bin/sh:#!${CONFIG_SHELL}:" \ |
197 |
+ "${S}"/builds/unix/configure || die |
198 |
+ fi |
199 |
+ |
200 |
+ elibtoolize --patch-only |
201 |
+} |
202 |
+ |
203 |
+multilib_src_configure() { |
204 |
+ append-flags -fno-strict-aliasing |
205 |
+ type -P gmake &> /dev/null && export GNUMAKE=gmake |
206 |
+ |
207 |
+ local myeconfargs=( |
208 |
+ --disable-freetype-config |
209 |
+ --enable-biarch-config |
210 |
+ --enable-shared |
211 |
+ $(use_with bzip2) |
212 |
+ $(use_with harfbuzz) |
213 |
+ $(use_with png) |
214 |
+ $(use_enable static-libs static) |
215 |
+ |
216 |
+ # avoid using libpng-config |
217 |
+ LIBPNG_CFLAGS="$($(tc-getPKG_CONFIG) --cflags libpng)" |
218 |
+ LIBPNG_LDFLAGS="$($(tc-getPKG_CONFIG) --libs libpng)" |
219 |
+ ) |
220 |
+ |
221 |
+ case ${CHOST} in |
222 |
+ mingw*|*-mingw*) ;; |
223 |
+ # Workaround windows mis-detection: bug #654712 |
224 |
+ # Have to do it for both ${CHOST}-windres and windres |
225 |
+ *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; |
226 |
+ esac |
227 |
+ |
228 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
229 |
+} |
230 |
+ |
231 |
+multilib_src_compile() { |
232 |
+ default |
233 |
+ |
234 |
+ if multilib_is_native_abi && use utils; then |
235 |
+ einfo "Building utils" |
236 |
+ # fix for Prefix, bug #339334 |
237 |
+ emake \ |
238 |
+ X11_PATH="${EPREFIX}/usr/$(get_libdir)" \ |
239 |
+ FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" |
240 |
+ fi |
241 |
+} |
242 |
+ |
243 |
+multilib_src_install() { |
244 |
+ default |
245 |
+ |
246 |
+ if multilib_is_native_abi && use utils; then |
247 |
+ einfo "Installing utils" |
248 |
+ rm "${WORKDIR}"/ft2demos-${PV}/bin/README || die |
249 |
+ dodir /usr/bin #654780 |
250 |
+ local ft2demo |
251 |
+ for ft2demo in ../ft2demos-${PV}/bin/*; do |
252 |
+ ./libtool --mode=install $(type -P install) -m 755 "${ft2demo}" \ |
253 |
+ "${ED}"/usr/bin || die |
254 |
+ done |
255 |
+ fi |
256 |
+} |
257 |
+ |
258 |
+multilib_src_install_all() { |
259 |
+ if use fontforge; then |
260 |
+ # Probably fontforge needs less but this way makes things simplier... |
261 |
+ einfo "Installing internal headers required for fontforge" |
262 |
+ local header |
263 |
+ find src/truetype include/freetype/internal -name '*.h' | \ |
264 |
+ while read header; do |
265 |
+ mkdir -p "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
266 |
+ cp ${header} "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
267 |
+ done |
268 |
+ fi |
269 |
+ |
270 |
+ dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,INSTALL.UNIX,*.txt,PROBLEMS,TODO} |
271 |
+ if [[ "${PV}" != 9999 ]] && use doc ; then |
272 |
+ docinto html |
273 |
+ dodoc -r docs/* |
274 |
+ fi |
275 |
+ |
276 |
+ find "${ED}" -name '*.la' -delete || die |
277 |
+ if ! use static-libs ; then |
278 |
+ find "${ED}" -name '*.a' -delete || die |
279 |
+ fi |
280 |
+} |