1 |
commit: 04dfa3b02bc59645281e2ef3d29f75f3e5935eaf |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 11 07:06:27 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 07:24:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04dfa3b0 |
7 |
|
8 |
media-libs/freetype: Removed old |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
media-libs/freetype/Manifest | 6 - |
14 |
.../freetype/files/freetype-2.7-enable-valid.patch | 20 -- |
15 |
media-libs/freetype/freetype-2.10.1.ebuild | 240 --------------------- |
16 |
media-libs/freetype/freetype-2.9.1-r3.ebuild | 237 -------------------- |
17 |
media-libs/freetype/freetype-2.9.1-r4.ebuild | 237 -------------------- |
18 |
5 files changed, 740 deletions(-) |
19 |
|
20 |
diff --git a/media-libs/freetype/Manifest b/media-libs/freetype/Manifest |
21 |
index 873a0ecf616..0576f7b5218 100644 |
22 |
--- a/media-libs/freetype/Manifest |
23 |
+++ b/media-libs/freetype/Manifest |
24 |
@@ -1,12 +1,6 @@ |
25 |
-DIST freetype-2.10.1.tar.xz 2378784 BLAKE2B 7c177d3ca9ad923dc9534719529686c4242d87d85bfbc32fa8a12d0be87aceb4960ec84b84e433413312de17ac24a8ed2a9d092efa25a39108d28e2051ada574 SHA512 c7a565b0ab3dce81927008a6965d5c7540f0dc973fcefdc1677c2e65add8668b4701c2958d25593cb41f706f4488765365d40b93da71dbfa72907394f28b2650 |
26 |
DIST freetype-2.10.2.tar.xz 2404456 BLAKE2B 866bd83c460f83fba93f58d0ae2270ac3833d6eb0b087f7eb860bd6e08f40ece1982b70bbd065b8978e47ff6fb2b46398307d461170cd10285d11f74a9fbadaa SHA512 cf45089bd8893d7de2cdcb59d91bbb300e13dd0f0a9ef80ed697464ba7aeaf46a5a81b82b59638e6b21691754d8f300f23e1f0d11683604541d77f0f581affaa |
27 |
DIST freetype-2.10.3.tar.xz 2416752 BLAKE2B 8ce360c07777ad5b031ff7a840ef0cec95f358e764897f1aea9e8fd40a21e8bada3610943dc70b279856116396e6703b5127a4d672fb6e0dc8e5fe7f9233265e SHA512 3f9d1a44cdae51ec4b13116aba5af1730e6be46132ddd9e49486e8d681b61756baa9897daaf0f06e79f00f2db0e57e0fa66d27f44d65735da1167d5b3c170373 |
28 |
-DIST freetype-2.9.1.tar.bz2 1926385 BLAKE2B f165d638e0f49749a2640aabba96aca20441c76028cc18bb2482fd620a29dd368bc55ea020c1e74fa6effe9fed3c59a53c7fdf2dd6021f445032b7007201948e SHA512 856766e1f3f4c7dc8afb2b5ee991138c8b642c6a6e5e007cd2bc04ae58bde827f082557cf41bf541d97e8485f7fd064d10390d1ee597f19d1daed6c152e27708 |
29 |
-DIST freetype-doc-2.10.1.tar.xz 2079092 BLAKE2B 7d2b8ccdfeba71f1dab57f31cfb96a21afbf628ad329f798e9ac25f6e57cc662db67040a9f7c63df2d43b1c0a169c37ca0cd82bfa2d95ef382b16066859dc5b3 SHA512 7260d0d6b1bd04f9940b456b20d8d8157fc528f5b6a5c2028fe57008bee3e8d0434bdf89589e2e521b04e3e2c43627155549091d3aaf06384b654f795458991e |
30 |
DIST freetype-doc-2.10.2.tar.xz 2078712 BLAKE2B 9d78d5d7c3806d83f5cb91daa88284445d36a75ce7b598177c83a9efc62faf5d8a0003f8cadee37eb6792711c87dc61d937fcb03f3c450c94276dfdf410c0aa1 SHA512 c54956a56920e651102b75c0efa07212e1d95f3bec219b8364b61d9a71171b11da492170cc861c36f3305f32ad1dee46d0d5a561ccdc6ca36591ae3f619a1d67 |
31 |
DIST freetype-doc-2.10.3.tar.xz 2079036 BLAKE2B fca0915a5f268ce4d5205822d712b451f73d891e00518b3db0dd7c431fd7bd6544fa36fc374344c94f43d731fe7a1076724c3fdd42c8143647aa5763b4736556 SHA512 135ae51706197d1bd208cb48d8d1881c14aeee5283dbdab88a7fa6864aed888613df43bd3deb24ff530fa767f94fe997f97dee10bf2be7763231211bf7d5225f |
32 |
-DIST freetype-doc-2.9.1.tar.bz2 2130292 BLAKE2B 667032fa447fbc28c0f753df3ade7a07a4f8d4d26cdd00fed2fa0e8098e9d6a083572608b7d06446ea91baa932e3c6d18beb1f86f6b549a8cd2c07a2df567da0 SHA512 1668f02f67e6e047df04e5e2fccb564cd9af780ec9b3c4878109868302a83eaec7b627390ff82c3e875122400e6f20fc690936a1e4964dfa65143e5309fa22d4 |
33 |
-DIST ft2demos-2.10.1.tar.xz 229228 BLAKE2B 015448f3f246fc7772b10f55037450866323e1b7410cf840fa15fa1da3e6a1c980167bfedbe197b6e6637a8e1dcef1f4fd83174e47f33f090d554fab2c40380c SHA512 f1c06fae3d5653d6d8f8d630e531d47b7be4429b122dc826c80791953e61df7374dfc151f90519fe110f78fcbf592d9dbd9e96c83200730a6f04e42760cc3142 |
34 |
DIST ft2demos-2.10.2.tar.xz 230672 BLAKE2B dd81e72bb1360f6a952874c183598fffe3eddb4bed4d07715a75810d2e81623b94082b1274f916bf7550615a66ba7a327c5413fca9d470111aeb1fa31ce4dd73 SHA512 912e3c3cbcdfd30fd918897d28240e04eb7248d130fc519e7d1613873a11d275d658ff247c6d517ebecf7a09de0d05f3dc10631411226015e1b147cba9a8a438 |
35 |
DIST ft2demos-2.10.3.tar.xz 235388 BLAKE2B c1c7e9d61fde441b2cc107a3ad8f1499c03ce8219a54b2bdc4ab7168a0d61a6c83c7e6e3d2de6a8ed0f09b29c398708618e4683d5ed24d6e8ae7505b8920770f SHA512 860fbeefd70caa4aa9483d90df5c3376ee2bef8fe93ab26010c4ca4f95cfd281870da461e2f335f42d3e6d2007f8e46c99d7834d2177b7806a2d92422ed08b41 |
36 |
-DIST ft2demos-2.9.1.tar.bz2 233462 BLAKE2B c689942b222b2c600b5ec3963791621ae87acefb9b01caa5dc35af52525d03e3a1094e48c0789d5eaabbce787bddd7c3055e12454e54ea3c7fae92bca47614de SHA512 38bee59184b20c2eb983deaa5c1f241e31c1b4793e47dc06b1b419601489cfece3b11fde4cf4fb6c5af12254ad0c1ce9a1547885c208e8e715655e9c48f22a46 |
37 |
|
38 |
diff --git a/media-libs/freetype/files/freetype-2.7-enable-valid.patch b/media-libs/freetype/files/freetype-2.7-enable-valid.patch |
39 |
deleted file mode 100644 |
40 |
index 76600aeb162..00000000000 |
41 |
--- a/media-libs/freetype/files/freetype-2.7-enable-valid.patch |
42 |
+++ /dev/null |
43 |
@@ -1,20 +0,0 @@ |
44 |
---- freetype-2.7/modules.cfg |
45 |
-+++ freetype-2.7/modules.cfg |
46 |
-@@ -120,7 +120,7 @@ |
47 |
- # TrueType GX/AAT table validation. Needs ftgxval.c below. |
48 |
- # |
49 |
- # No FT_CONFIG_OPTION_PIC support. |
50 |
--# AUX_MODULES += gxvalid |
51 |
-+AUX_MODULES += gxvalid |
52 |
- |
53 |
- # Support for streams compressed with gzip (files with suffix .gz). |
54 |
- # |
55 |
-@@ -143,7 +143,7 @@ |
56 |
- # OpenType table validation. Needs ftotval.c below. |
57 |
- # |
58 |
- # No FT_CONFIG_OPTION_PIC support. |
59 |
--# AUX_MODULES += otvalid |
60 |
-+AUX_MODULES += otvalid |
61 |
- |
62 |
- # Auxiliary PostScript driver component to share common code. |
63 |
- # |
64 |
|
65 |
diff --git a/media-libs/freetype/freetype-2.10.1.ebuild b/media-libs/freetype/freetype-2.10.1.ebuild |
66 |
deleted file mode 100644 |
67 |
index d6f5e68744d..00000000000 |
68 |
--- a/media-libs/freetype/freetype-2.10.1.ebuild |
69 |
+++ /dev/null |
70 |
@@ -1,240 +0,0 @@ |
71 |
-# Copyright 1999-2020 Gentoo Authors |
72 |
-# Distributed under the terms of the GNU General Public License v2 |
73 |
- |
74 |
-EAPI=7 |
75 |
- |
76 |
-inherit flag-o-matic libtool multilib-build multilib-minimal toolchain-funcs |
77 |
- |
78 |
-DESCRIPTION="A high-quality and portable font engine" |
79 |
-HOMEPAGE="https://www.freetype.org/" |
80 |
-IUSE="X +adobe-cff bindist bzip2 +cleartype_hinting debug fontforge harfbuzz infinality png static-libs utils" |
81 |
- |
82 |
-if [[ "${PV}" != 9999 ]] ; then |
83 |
- SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.xz |
84 |
- mirror://nongnu/freetype/${P/_/}.tar.xz |
85 |
- utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.xz |
86 |
- mirror://nongnu/freetype/ft2demos-${PV}.tar.xz ) |
87 |
- doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.xz |
88 |
- mirror://nongnu/freetype/${PN}-doc-${PV}.tar.xz )" |
89 |
- 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" |
90 |
- IUSE+=" doc" |
91 |
-else |
92 |
- inherit autotools git-r3 |
93 |
-fi |
94 |
- |
95 |
-LICENSE="|| ( FTL GPL-2+ )" |
96 |
-SLOT="2" |
97 |
-RESTRICT="!bindist? ( bindist )" # bug 541408 |
98 |
- |
99 |
-RDEPEND=" |
100 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
101 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
102 |
- harfbuzz? ( >=media-libs/harfbuzz-1.3.0[truetype,${MULTILIB_USEDEP}] ) |
103 |
- png? ( >=media-libs/libpng-1.2.51:0=[${MULTILIB_USEDEP}] ) |
104 |
- utils? ( |
105 |
- X? ( |
106 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
107 |
- >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}] |
108 |
- >=x11-libs/libXdmcp-1.1.1-r1[${MULTILIB_USEDEP}] |
109 |
- ) |
110 |
- )" |
111 |
-DEPEND="${RDEPEND}" |
112 |
-BDEPEND=" |
113 |
- virtual/pkgconfig |
114 |
-" |
115 |
-PDEPEND="infinality? ( media-libs/fontconfig-infinality )" |
116 |
- |
117 |
-PATCHES=( |
118 |
- "${FILESDIR}"/${PN}-2.4.11-sizeof-types.patch # 459966 |
119 |
-) |
120 |
- |
121 |
-_egit_repo_handler() { |
122 |
- if [[ "${PV}" == 9999 ]] ; then |
123 |
- local phase="${1}" |
124 |
- case ${phase} in |
125 |
- fetch|unpack) |
126 |
- :; |
127 |
- ;; |
128 |
- *) |
129 |
- die "Please use this function with either \"fetch\" or \"unpack\"" |
130 |
- ;; |
131 |
- esac |
132 |
- |
133 |
- local EGIT_REPO_URI |
134 |
- EGIT_REPO_URI="https://git.sv.nongnu.org/r/freetype/freetype2.git" |
135 |
- git-r3_src_${phase} |
136 |
- if use utils ; then |
137 |
- EGIT_REPO_URI="https://git.sv.nongnu.org/r/freetype/freetype2-demos.git" |
138 |
- local EGIT_CHECKOUT_DIR="${WORKDIR}/ft2demos-${PV}" |
139 |
- git-r3_src_${phase} |
140 |
- fi |
141 |
- else |
142 |
- default |
143 |
- fi |
144 |
-} |
145 |
- |
146 |
-src_fetch() { |
147 |
- _egit_repo_handler ${EBUILD_PHASE} |
148 |
-} |
149 |
- |
150 |
-src_unpack() { |
151 |
- _egit_repo_handler ${EBUILD_PHASE} |
152 |
-} |
153 |
- |
154 |
-src_prepare() { |
155 |
- if [[ "${PV}" == 9999 ]] ; then |
156 |
- # inspired by shipped autogen.sh script |
157 |
- eval $(sed -nf version.sed include/freetype/freetype.h) |
158 |
- pushd builds/unix &>/dev/null || die |
159 |
- sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \ |
160 |
- < configure.raw > configure.ac || die |
161 |
- # eautoheader produces broken ftconfig.in |
162 |
- eautoheader() { return 0 ; } |
163 |
- AT_M4DIR="." eautoreconf |
164 |
- unset freetype_major freetype_minor freetype_patch |
165 |
- popd &>/dev/null || die |
166 |
- fi |
167 |
- |
168 |
- default |
169 |
- |
170 |
- # This is the same as the 01 patch from infinality |
171 |
- sed '/AUX_MODULES += \(gx\|ot\)valid/s@^# @@' -i modules.cfg || die |
172 |
- |
173 |
- enable_option() { |
174 |
- sed -i -e "/#define $1/ { s:/\* ::; s: \*/:: }" \ |
175 |
- include/${PN}/config/ftoption.h \ |
176 |
- || die "unable to enable option $1" |
177 |
- } |
178 |
- |
179 |
- disable_option() { |
180 |
- sed -i -e "/#define $1/ { s:^:/* :; s:$: */: }" \ |
181 |
- include/${PN}/config/ftoption.h \ |
182 |
- || die "unable to disable option $1" |
183 |
- } |
184 |
- |
185 |
- # Will be the new default for >=freetype-2.7.0 |
186 |
- disable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
187 |
- |
188 |
- if use infinality && use cleartype_hinting; then |
189 |
- enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 )" |
190 |
- elif use infinality; then |
191 |
- enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 1" |
192 |
- elif use cleartype_hinting; then |
193 |
- enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
194 |
- fi |
195 |
- |
196 |
- # Can be disabled with FREETYPE_PROPERTIES="pcf:no-long-family-names=1" |
197 |
- # via environment (new since v2.8) |
198 |
- enable_option PCF_CONFIG_OPTION_LONG_FAMILY_NAMES |
199 |
- |
200 |
- if ! use bindist; then |
201 |
- # See http://freetype.org/patents.html |
202 |
- # ClearType is covered by several Microsoft patents in the US |
203 |
- enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING |
204 |
- fi |
205 |
- |
206 |
- if ! use adobe-cff; then |
207 |
- enable_option CFF_CONFIG_OPTION_OLD_ENGINE |
208 |
- fi |
209 |
- |
210 |
- if use debug; then |
211 |
- enable_option FT_DEBUG_LEVEL_TRACE |
212 |
- enable_option FT_DEBUG_MEMORY |
213 |
- fi |
214 |
- |
215 |
- if use utils; then |
216 |
- cd "${WORKDIR}/ft2demos-${PV}" || die |
217 |
- # Disable tests needing X11 when USE="-X". (bug #177597) |
218 |
- if ! use X; then |
219 |
- sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die |
220 |
- fi |
221 |
- cd "${S}" || die |
222 |
- fi |
223 |
- |
224 |
- # we need non-/bin/sh to run configure |
225 |
- if [[ -n ${CONFIG_SHELL} ]] ; then |
226 |
- sed -i -e "1s:^#![[:space:]]*/bin/sh:#!${CONFIG_SHELL}:" \ |
227 |
- "${S}"/builds/unix/configure || die |
228 |
- fi |
229 |
- |
230 |
- elibtoolize --patch-only |
231 |
-} |
232 |
- |
233 |
-multilib_src_configure() { |
234 |
- append-flags -fno-strict-aliasing |
235 |
- type -P gmake &> /dev/null && export GNUMAKE=gmake |
236 |
- |
237 |
- local myeconfargs=( |
238 |
- --disable-freetype-config |
239 |
- --enable-biarch-config |
240 |
- --enable-shared |
241 |
- $(use_with bzip2) |
242 |
- $(use_with harfbuzz) |
243 |
- $(use_with png) |
244 |
- $(use_enable static-libs static) |
245 |
- |
246 |
- # avoid using libpng-config |
247 |
- LIBPNG_CFLAGS="$($(tc-getPKG_CONFIG) --cflags libpng)" |
248 |
- LIBPNG_LDFLAGS="$($(tc-getPKG_CONFIG) --libs libpng)" |
249 |
- ) |
250 |
- |
251 |
- case ${CHOST} in |
252 |
- mingw*|*-mingw*) ;; |
253 |
- # Workaround windows mis-detection: bug #654712 |
254 |
- # Have to do it for both ${CHOST}-windres and windres |
255 |
- *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; |
256 |
- esac |
257 |
- |
258 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
259 |
-} |
260 |
- |
261 |
-multilib_src_compile() { |
262 |
- default |
263 |
- |
264 |
- if multilib_is_native_abi && use utils; then |
265 |
- einfo "Building utils" |
266 |
- # fix for Prefix, bug #339334 |
267 |
- emake \ |
268 |
- X11_PATH="${EPREFIX}/usr/$(get_libdir)" \ |
269 |
- FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" |
270 |
- fi |
271 |
-} |
272 |
- |
273 |
-multilib_src_install() { |
274 |
- default |
275 |
- |
276 |
- if multilib_is_native_abi && use utils; then |
277 |
- einfo "Installing utils" |
278 |
- rm "${WORKDIR}"/ft2demos-${PV}/bin/README || die |
279 |
- dodir /usr/bin #654780 |
280 |
- local ft2demo |
281 |
- for ft2demo in ../ft2demos-${PV}/bin/*; do |
282 |
- ./libtool --mode=install $(type -P install) -m 755 "${ft2demo}" \ |
283 |
- "${ED}"/usr/bin || die |
284 |
- done |
285 |
- fi |
286 |
-} |
287 |
- |
288 |
-multilib_src_install_all() { |
289 |
- if use fontforge; then |
290 |
- # Probably fontforge needs less but this way makes things simplier... |
291 |
- einfo "Installing internal headers required for fontforge" |
292 |
- local header |
293 |
- find src/truetype include/freetype/internal -name '*.h' | \ |
294 |
- while read header; do |
295 |
- mkdir -p "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
296 |
- cp ${header} "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
297 |
- done |
298 |
- fi |
299 |
- |
300 |
- dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,INSTALL.UNIX,*.txt,PROBLEMS,TODO} |
301 |
- if [[ "${PV}" != 9999 ]] && use doc ; then |
302 |
- docinto html |
303 |
- dodoc -r docs/* |
304 |
- fi |
305 |
- |
306 |
- find "${ED}" -name '*.la' -delete || die |
307 |
- if ! use static-libs ; then |
308 |
- find "${ED}" -name '*.a' -delete || die |
309 |
- fi |
310 |
-} |
311 |
|
312 |
diff --git a/media-libs/freetype/freetype-2.9.1-r3.ebuild b/media-libs/freetype/freetype-2.9.1-r3.ebuild |
313 |
deleted file mode 100644 |
314 |
index a44767d97c5..00000000000 |
315 |
--- a/media-libs/freetype/freetype-2.9.1-r3.ebuild |
316 |
+++ /dev/null |
317 |
@@ -1,237 +0,0 @@ |
318 |
-# Copyright 1999-2020 Gentoo Authors |
319 |
-# Distributed under the terms of the GNU General Public License v2 |
320 |
- |
321 |
-EAPI=6 |
322 |
- |
323 |
-inherit flag-o-matic libtool multilib multilib-build multilib-minimal toolchain-funcs |
324 |
- |
325 |
-DESCRIPTION="A high-quality and portable font engine" |
326 |
-HOMEPAGE="https://www.freetype.org/" |
327 |
-IUSE="X +adobe-cff bindist bzip2 +cleartype_hinting debug fontforge harfbuzz infinality png static-libs utils" |
328 |
- |
329 |
-if [[ "${PV}" != 9999 ]] ; then |
330 |
- SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2 |
331 |
- mirror://nongnu/freetype/${P/_/}.tar.bz2 |
332 |
- utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 |
333 |
- mirror://nongnu/freetype/ft2demos-${PV}.tar.bz2 ) |
334 |
- doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 |
335 |
- mirror://nongnu/freetype/${PN}-doc-${PV}.tar.bz2 )" |
336 |
- KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 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" |
337 |
- IUSE+=" doc" |
338 |
-else |
339 |
- inherit autotools git-r3 |
340 |
-fi |
341 |
- |
342 |
-LICENSE="|| ( FTL GPL-2+ )" |
343 |
-SLOT="2" |
344 |
-RESTRICT="!bindist? ( bindist )" # bug 541408 |
345 |
- |
346 |
-RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
347 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
348 |
- harfbuzz? ( >=media-libs/harfbuzz-1.3.0[truetype,${MULTILIB_USEDEP}] ) |
349 |
- png? ( >=media-libs/libpng-1.2.51:0=[${MULTILIB_USEDEP}] ) |
350 |
- utils? ( |
351 |
- X? ( |
352 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
353 |
- >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}] |
354 |
- >=x11-libs/libXdmcp-1.1.1-r1[${MULTILIB_USEDEP}] |
355 |
- ) |
356 |
- )" |
357 |
-DEPEND="${RDEPEND} |
358 |
- virtual/pkgconfig" |
359 |
-PDEPEND="infinality? ( media-libs/fontconfig-infinality )" |
360 |
- |
361 |
-PATCHES=( |
362 |
- # This is the same as the 01 patch from infinality |
363 |
- "${FILESDIR}"/${PN}-2.7-enable-valid.patch |
364 |
- |
365 |
- "${FILESDIR}"/${PN}-2.4.11-sizeof-types.patch # 459966 |
366 |
-) |
367 |
- |
368 |
-_egit_repo_handler() { |
369 |
- if [[ "${PV}" == 9999 ]] ; then |
370 |
- local phase="${1}" |
371 |
- case ${phase} in |
372 |
- fetch|unpack) |
373 |
- :; |
374 |
- ;; |
375 |
- *) |
376 |
- die "Please use this function with either \"fetch\" or \"unpack\"" |
377 |
- ;; |
378 |
- esac |
379 |
- |
380 |
- local EGIT_REPO_URI |
381 |
- EGIT_REPO_URI="https://git.sv.nongnu.org/r/freetype/freetype2.git" |
382 |
- git-r3_src_${phase} |
383 |
- if use utils ; then |
384 |
- EGIT_REPO_URI="https://git.sv.nongnu.org/r/freetype/freetype2-demos.git" |
385 |
- local EGIT_CHECKOUT_DIR="${WORKDIR}/ft2demos-${PV}" |
386 |
- git-r3_src_${phase} |
387 |
- fi |
388 |
- else |
389 |
- default |
390 |
- fi |
391 |
-} |
392 |
- |
393 |
-src_fetch() { |
394 |
- _egit_repo_handler fetch |
395 |
-} |
396 |
- |
397 |
-src_unpack() { |
398 |
- _egit_repo_handler unpack |
399 |
-} |
400 |
- |
401 |
-src_prepare() { |
402 |
- if [[ "${PV}" == 9999 ]] ; then |
403 |
- # inspired by shipped autogen.sh script |
404 |
- eval $(sed -nf version.sed include/freetype/freetype.h) |
405 |
- pushd builds/unix &>/dev/null || die |
406 |
- sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \ |
407 |
- < configure.raw > configure.ac || die |
408 |
- # eautoheader produces broken ftconfig.in |
409 |
- eautoheader() { return 0 ; } |
410 |
- AT_M4DIR="." eautoreconf |
411 |
- unset freetype_major freetype_minor freetype_patch |
412 |
- popd &>/dev/null || die |
413 |
- fi |
414 |
- |
415 |
- default |
416 |
- |
417 |
- enable_option() { |
418 |
- sed -i -e "/#define $1/ { s:/\* ::; s: \*/:: }" \ |
419 |
- include/${PN}/config/ftoption.h \ |
420 |
- || die "unable to enable option $1" |
421 |
- } |
422 |
- |
423 |
- disable_option() { |
424 |
- sed -i -e "/#define $1/ { s:^:/* :; s:$: */: }" \ |
425 |
- include/${PN}/config/ftoption.h \ |
426 |
- || die "unable to disable option $1" |
427 |
- } |
428 |
- |
429 |
- # Will be the new default for >=freetype-2.7.0 |
430 |
- disable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
431 |
- |
432 |
- if use infinality && use cleartype_hinting; then |
433 |
- enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 )" |
434 |
- elif use infinality; then |
435 |
- enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 1" |
436 |
- elif use cleartype_hinting; then |
437 |
- enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
438 |
- fi |
439 |
- |
440 |
- # Can be disabled with FREETYPE_PROPERTIES="pcf:no-long-family-names=1" |
441 |
- # via environment (new since v2.8) |
442 |
- enable_option PCF_CONFIG_OPTION_LONG_FAMILY_NAMES |
443 |
- |
444 |
- if ! use bindist; then |
445 |
- # See http://freetype.org/patents.html |
446 |
- # ClearType is covered by several Microsoft patents in the US |
447 |
- enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING |
448 |
- fi |
449 |
- |
450 |
- if ! use adobe-cff; then |
451 |
- enable_option CFF_CONFIG_OPTION_OLD_ENGINE |
452 |
- fi |
453 |
- |
454 |
- if use debug; then |
455 |
- enable_option FT_DEBUG_LEVEL_TRACE |
456 |
- enable_option FT_DEBUG_MEMORY |
457 |
- fi |
458 |
- |
459 |
- if use utils; then |
460 |
- cd "${WORKDIR}/ft2demos-${PV}" || die |
461 |
- # Disable tests needing X11 when USE="-X". (bug #177597) |
462 |
- if ! use X; then |
463 |
- sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die |
464 |
- fi |
465 |
- cd "${S}" || die |
466 |
- fi |
467 |
- |
468 |
- # we need non-/bin/sh to run configure |
469 |
- if [[ -n ${CONFIG_SHELL} ]] ; then |
470 |
- sed -i -e "1s:^#![[:space:]]*/bin/sh:#!$CONFIG_SHELL:" \ |
471 |
- "${S}"/builds/unix/configure || die |
472 |
- fi |
473 |
- |
474 |
- elibtoolize --patch-only |
475 |
-} |
476 |
- |
477 |
-multilib_src_configure() { |
478 |
- append-flags -fno-strict-aliasing |
479 |
- type -P gmake &> /dev/null && export GNUMAKE=gmake |
480 |
- |
481 |
- local myeconfargs=( |
482 |
- --enable-biarch-config |
483 |
- --enable-freetype-config |
484 |
- --enable-shared |
485 |
- $(use_with bzip2) |
486 |
- $(use_with harfbuzz) |
487 |
- $(use_with png) |
488 |
- $(use_enable static-libs static) |
489 |
- |
490 |
- # avoid using libpng-config |
491 |
- LIBPNG_CFLAGS="$($(tc-getPKG_CONFIG) --cflags libpng)" |
492 |
- LIBPNG_LDFLAGS="$($(tc-getPKG_CONFIG) --libs libpng)" |
493 |
- ) |
494 |
- |
495 |
- case ${CHOST} in |
496 |
- mingw*|*-mingw*) ;; |
497 |
- # Workaround windows mis-detection: bug #654712 |
498 |
- # Have to do it for both ${CHOST}-windres and windres |
499 |
- *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; |
500 |
- esac |
501 |
- |
502 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
503 |
-} |
504 |
- |
505 |
-multilib_src_compile() { |
506 |
- default |
507 |
- |
508 |
- if multilib_is_native_abi && use utils; then |
509 |
- einfo "Building utils" |
510 |
- # fix for Prefix, bug #339334 |
511 |
- emake \ |
512 |
- X11_PATH="${EPREFIX}/usr/$(get_libdir)" \ |
513 |
- FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" |
514 |
- fi |
515 |
-} |
516 |
- |
517 |
-multilib_src_install() { |
518 |
- default |
519 |
- |
520 |
- if multilib_is_native_abi && use utils; then |
521 |
- einfo "Installing utils" |
522 |
- rm "${WORKDIR}"/ft2demos-${PV}/bin/README || die |
523 |
- dodir /usr/bin #654780 |
524 |
- local ft2demo |
525 |
- for ft2demo in ../ft2demos-${PV}/bin/*; do |
526 |
- ./libtool --mode=install $(type -P install) -m 755 "${ft2demo}" \ |
527 |
- "${ED%/}"/usr/bin || die |
528 |
- done |
529 |
- fi |
530 |
-} |
531 |
- |
532 |
-multilib_src_install_all() { |
533 |
- if use fontforge; then |
534 |
- # Probably fontforge needs less but this way makes things simplier... |
535 |
- einfo "Installing internal headers required for fontforge" |
536 |
- local header |
537 |
- find src/truetype include/freetype/internal -name '*.h' | \ |
538 |
- while read header; do |
539 |
- mkdir -p "${ED%/}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
540 |
- cp ${header} "${ED%/}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
541 |
- done |
542 |
- fi |
543 |
- |
544 |
- dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,INSTALL.UNIX,*.txt,PROBLEMS,TODO} |
545 |
- if [[ "${PV}" != 9999 ]] && use doc ; then |
546 |
- docinto html |
547 |
- dodoc -r docs/* |
548 |
- fi |
549 |
- |
550 |
- find "${ED}" -name '*.la' -delete || die |
551 |
- if ! use static-libs ; then |
552 |
- find "${ED}" -name '*.a' -delete || die |
553 |
- fi |
554 |
-} |
555 |
|
556 |
diff --git a/media-libs/freetype/freetype-2.9.1-r4.ebuild b/media-libs/freetype/freetype-2.9.1-r4.ebuild |
557 |
deleted file mode 100644 |
558 |
index 159d8a07550..00000000000 |
559 |
--- a/media-libs/freetype/freetype-2.9.1-r4.ebuild |
560 |
+++ /dev/null |
561 |
@@ -1,237 +0,0 @@ |
562 |
-# Copyright 1999-2020 Gentoo Authors |
563 |
-# Distributed under the terms of the GNU General Public License v2 |
564 |
- |
565 |
-EAPI=6 |
566 |
- |
567 |
-inherit flag-o-matic libtool multilib multilib-build multilib-minimal toolchain-funcs |
568 |
- |
569 |
-DESCRIPTION="A high-quality and portable font engine" |
570 |
-HOMEPAGE="https://www.freetype.org/" |
571 |
-IUSE="X +adobe-cff bindist bzip2 +cleartype_hinting debug fontforge harfbuzz infinality png static-libs utils" |
572 |
- |
573 |
-if [[ "${PV}" != 9999 ]] ; then |
574 |
- SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2 |
575 |
- mirror://nongnu/freetype/${P/_/}.tar.bz2 |
576 |
- utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 |
577 |
- mirror://nongnu/freetype/ft2demos-${PV}.tar.bz2 ) |
578 |
- doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 |
579 |
- mirror://nongnu/freetype/${PN}-doc-${PV}.tar.bz2 )" |
580 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~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" |
581 |
- IUSE+=" doc" |
582 |
-else |
583 |
- inherit autotools git-r3 |
584 |
-fi |
585 |
- |
586 |
-LICENSE="|| ( FTL GPL-2+ )" |
587 |
-SLOT="2" |
588 |
-RESTRICT="!bindist? ( bindist )" # bug 541408 |
589 |
- |
590 |
-RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
591 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
592 |
- harfbuzz? ( >=media-libs/harfbuzz-1.3.0[truetype,${MULTILIB_USEDEP}] ) |
593 |
- png? ( >=media-libs/libpng-1.2.51:0=[${MULTILIB_USEDEP}] ) |
594 |
- utils? ( |
595 |
- X? ( |
596 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
597 |
- >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}] |
598 |
- >=x11-libs/libXdmcp-1.1.1-r1[${MULTILIB_USEDEP}] |
599 |
- ) |
600 |
- )" |
601 |
-DEPEND="${RDEPEND} |
602 |
- virtual/pkgconfig" |
603 |
-PDEPEND="infinality? ( media-libs/fontconfig-infinality )" |
604 |
- |
605 |
-PATCHES=( |
606 |
- # This is the same as the 01 patch from infinality |
607 |
- "${FILESDIR}"/${PN}-2.7-enable-valid.patch |
608 |
- |
609 |
- "${FILESDIR}"/${PN}-2.4.11-sizeof-types.patch # 459966 |
610 |
-) |
611 |
- |
612 |
-_egit_repo_handler() { |
613 |
- if [[ "${PV}" == 9999 ]] ; then |
614 |
- local phase="${1}" |
615 |
- case ${phase} in |
616 |
- fetch|unpack) |
617 |
- :; |
618 |
- ;; |
619 |
- *) |
620 |
- die "Please use this function with either \"fetch\" or \"unpack\"" |
621 |
- ;; |
622 |
- esac |
623 |
- |
624 |
- local EGIT_REPO_URI |
625 |
- EGIT_REPO_URI="https://git.sv.nongnu.org/r/freetype/freetype2.git" |
626 |
- git-r3_src_${phase} |
627 |
- if use utils ; then |
628 |
- EGIT_REPO_URI="https://git.sv.nongnu.org/r/freetype/freetype2-demos.git" |
629 |
- local EGIT_CHECKOUT_DIR="${WORKDIR}/ft2demos-${PV}" |
630 |
- git-r3_src_${phase} |
631 |
- fi |
632 |
- else |
633 |
- default |
634 |
- fi |
635 |
-} |
636 |
- |
637 |
-src_fetch() { |
638 |
- _egit_repo_handler fetch |
639 |
-} |
640 |
- |
641 |
-src_unpack() { |
642 |
- _egit_repo_handler unpack |
643 |
-} |
644 |
- |
645 |
-src_prepare() { |
646 |
- if [[ "${PV}" == 9999 ]] ; then |
647 |
- # inspired by shipped autogen.sh script |
648 |
- eval $(sed -nf version.sed include/freetype/freetype.h) |
649 |
- pushd builds/unix &>/dev/null || die |
650 |
- sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \ |
651 |
- < configure.raw > configure.ac || die |
652 |
- # eautoheader produces broken ftconfig.in |
653 |
- eautoheader() { return 0 ; } |
654 |
- AT_M4DIR="." eautoreconf |
655 |
- unset freetype_major freetype_minor freetype_patch |
656 |
- popd &>/dev/null || die |
657 |
- fi |
658 |
- |
659 |
- default |
660 |
- |
661 |
- enable_option() { |
662 |
- sed -i -e "/#define $1/ { s:/\* ::; s: \*/:: }" \ |
663 |
- include/${PN}/config/ftoption.h \ |
664 |
- || die "unable to enable option $1" |
665 |
- } |
666 |
- |
667 |
- disable_option() { |
668 |
- sed -i -e "/#define $1/ { s:^:/* :; s:$: */: }" \ |
669 |
- include/${PN}/config/ftoption.h \ |
670 |
- || die "unable to disable option $1" |
671 |
- } |
672 |
- |
673 |
- # Will be the new default for >=freetype-2.7.0 |
674 |
- disable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
675 |
- |
676 |
- if use infinality && use cleartype_hinting; then |
677 |
- enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 )" |
678 |
- elif use infinality; then |
679 |
- enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 1" |
680 |
- elif use cleartype_hinting; then |
681 |
- enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
682 |
- fi |
683 |
- |
684 |
- # Can be disabled with FREETYPE_PROPERTIES="pcf:no-long-family-names=1" |
685 |
- # via environment (new since v2.8) |
686 |
- enable_option PCF_CONFIG_OPTION_LONG_FAMILY_NAMES |
687 |
- |
688 |
- if ! use bindist; then |
689 |
- # See http://freetype.org/patents.html |
690 |
- # ClearType is covered by several Microsoft patents in the US |
691 |
- enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING |
692 |
- fi |
693 |
- |
694 |
- if ! use adobe-cff; then |
695 |
- enable_option CFF_CONFIG_OPTION_OLD_ENGINE |
696 |
- fi |
697 |
- |
698 |
- if use debug; then |
699 |
- enable_option FT_DEBUG_LEVEL_TRACE |
700 |
- enable_option FT_DEBUG_MEMORY |
701 |
- fi |
702 |
- |
703 |
- if use utils; then |
704 |
- cd "${WORKDIR}/ft2demos-${PV}" || die |
705 |
- # Disable tests needing X11 when USE="-X". (bug #177597) |
706 |
- if ! use X; then |
707 |
- sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die |
708 |
- fi |
709 |
- cd "${S}" || die |
710 |
- fi |
711 |
- |
712 |
- # we need non-/bin/sh to run configure |
713 |
- if [[ -n ${CONFIG_SHELL} ]] ; then |
714 |
- sed -i -e "1s:^#![[:space:]]*/bin/sh:#!$CONFIG_SHELL:" \ |
715 |
- "${S}"/builds/unix/configure || die |
716 |
- fi |
717 |
- |
718 |
- elibtoolize --patch-only |
719 |
-} |
720 |
- |
721 |
-multilib_src_configure() { |
722 |
- append-flags -fno-strict-aliasing |
723 |
- type -P gmake &> /dev/null && export GNUMAKE=gmake |
724 |
- |
725 |
- local myeconfargs=( |
726 |
- --disable-freetype-config |
727 |
- --enable-biarch-config |
728 |
- --enable-shared |
729 |
- $(use_with bzip2) |
730 |
- $(use_with harfbuzz) |
731 |
- $(use_with png) |
732 |
- $(use_enable static-libs static) |
733 |
- |
734 |
- # avoid using libpng-config |
735 |
- LIBPNG_CFLAGS="$($(tc-getPKG_CONFIG) --cflags libpng)" |
736 |
- LIBPNG_LDFLAGS="$($(tc-getPKG_CONFIG) --libs libpng)" |
737 |
- ) |
738 |
- |
739 |
- case ${CHOST} in |
740 |
- mingw*|*-mingw*) ;; |
741 |
- # Workaround windows mis-detection: bug #654712 |
742 |
- # Have to do it for both ${CHOST}-windres and windres |
743 |
- *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; |
744 |
- esac |
745 |
- |
746 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
747 |
-} |
748 |
- |
749 |
-multilib_src_compile() { |
750 |
- default |
751 |
- |
752 |
- if multilib_is_native_abi && use utils; then |
753 |
- einfo "Building utils" |
754 |
- # fix for Prefix, bug #339334 |
755 |
- emake \ |
756 |
- X11_PATH="${EPREFIX}/usr/$(get_libdir)" \ |
757 |
- FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" |
758 |
- fi |
759 |
-} |
760 |
- |
761 |
-multilib_src_install() { |
762 |
- default |
763 |
- |
764 |
- if multilib_is_native_abi && use utils; then |
765 |
- einfo "Installing utils" |
766 |
- rm "${WORKDIR}"/ft2demos-${PV}/bin/README || die |
767 |
- dodir /usr/bin #654780 |
768 |
- local ft2demo |
769 |
- for ft2demo in ../ft2demos-${PV}/bin/*; do |
770 |
- ./libtool --mode=install $(type -P install) -m 755 "${ft2demo}" \ |
771 |
- "${ED%/}"/usr/bin || die |
772 |
- done |
773 |
- fi |
774 |
-} |
775 |
- |
776 |
-multilib_src_install_all() { |
777 |
- if use fontforge; then |
778 |
- # Probably fontforge needs less but this way makes things simplier... |
779 |
- einfo "Installing internal headers required for fontforge" |
780 |
- local header |
781 |
- find src/truetype include/freetype/internal -name '*.h' | \ |
782 |
- while read header; do |
783 |
- mkdir -p "${ED%/}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
784 |
- cp ${header} "${ED%/}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
785 |
- done |
786 |
- fi |
787 |
- |
788 |
- dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,INSTALL.UNIX,*.txt,PROBLEMS,TODO} |
789 |
- if [[ "${PV}" != 9999 ]] && use doc ; then |
790 |
- docinto html |
791 |
- dodoc -r docs/* |
792 |
- fi |
793 |
- |
794 |
- find "${ED}" -name '*.la' -delete || die |
795 |
- if ! use static-libs ; then |
796 |
- find "${ED}" -name '*.a' -delete || die |
797 |
- fi |
798 |
-} |