1 |
commit: faaa069db93d3cad9a1141fec15c1806b09f2818 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 9 08:00:33 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 9 08:13:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faaa069d |
7 |
|
8 |
media-libs/freetype: Bump to version 2.9 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
media-libs/freetype/Manifest | 3 + |
13 |
media-libs/freetype/freetype-2.9.ebuild | 180 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 183 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/freetype/Manifest b/media-libs/freetype/Manifest |
17 |
index 14be8b203aa..f5e5d1b54cf 100644 |
18 |
--- a/media-libs/freetype/Manifest |
19 |
+++ b/media-libs/freetype/Manifest |
20 |
@@ -1,6 +1,9 @@ |
21 |
DIST freetype-2.8.1.tar.bz2 1886443 BLAKE2B d53aa77ae9cdc9ca404187e1fdc66be0a766f3f91a591bbbada0a374dd1862c4a8ebfc4be0bb0e823fb45df1e79941c1dd037734b87212a5a5fd97d9a1ca285f SHA512 ca59e47f0fceeeb9b8032be2671072604d0c79094675df24187829c05e99757d0a48a0f8062d4d688e056f783aa8f6090d732ad116562e94784fccf1339eb823 |
22 |
DIST freetype-2.8.tar.bz2 1873526 BLAKE2B c2336a3774cee0334bd342f4323524063a982c8a46dc5623a420be1a0ccb76ed5adc710673ea2401b0013f80a5c22bbc07e2adb4e842a0763ee1b0afc3cedb82 SHA512 3842c34bf6100a8c9b78258146b2ff35e9bb4c993937d3ef09982c1e2552dfd15f8849ddd8a1e84edf08b5a5fb918b68cf7b1584545c5900e22a00bfa1c89ff5 |
23 |
+DIST freetype-2.9.tar.bz2 1915013 BLAKE2B 6474230507a0bcf9408846cf45d8e0c69314783e38ed71de6ce69031da9b418fe513056068768e4b350a93dd13dadfe8363d72b1d20d5347d5ce1d30d9d9fe08 SHA512 28465f3453baf9a187529432118389de8f1b85273c9fb787d2c8f0feee8ab64b387ddd936b4e67ec58dcf71e33884e7e25f01169b737824221ab143839a9161a |
24 |
DIST freetype-doc-2.8.1.tar.bz2 2128376 BLAKE2B b552010341c359666974c4208fe436b4414e73b59d17b2adedb9bc747ff857788bffddc98e53a5f5212ab70792211c754a5a80093bc1e6a7ae894d499a7b3da9 SHA512 386f3e2f123e60e697eb446d667bdcdf184d354a7a9a7bcc42767ea7964cd5a89e5ef42a234838c03e7ce926d3e92d763acb84983afdaf9f6977c028d55f2806 |
25 |
DIST freetype-doc-2.8.tar.bz2 2127740 BLAKE2B 891b43a7a6b0eae4a0f91110367b47c1c0ebd05a2d1a309669415f98fa08736738504b243d315a100a385074888382c6767f0741dd79814f5783cd215a716ca5 SHA512 3a970a7dd6f0ba580c9f8084b271c11e6e87111ab9a5b6a3148eb1087e45ee18e998aa7e36a4311067a3b674cb784b1e827cf8c3a853e380078219be3eccce06 |
26 |
+DIST freetype-doc-2.9.tar.bz2 2128135 BLAKE2B a192237e9f2cd0b14cf081ba09d58d6e42793d7c8034815d9d8a11a7abf5775bc9181f960405c7f2b12c6994329f8caee3c3ae62cc8b08fbbc3fd285f76922b8 SHA512 0ffd38541f8fd0ae6efb97025bb585209580b964d632e15c66944bc2549e2b0e6c375a141df5061621e8c32eeaed017834530169addc4daa2e83399f88efde2f |
27 |
DIST ft2demos-2.8.1.tar.bz2 228934 BLAKE2B a8ff102ec9e526791a83bed42eb5fc289b96f030ebcdbe5bdb4508676d81074ff16120664adeaf95e9d04004e2aba5c86a2b3f5410133344d1ebaf5d4c33cb46 SHA512 f3a3216448df7b9bebb875a69587f31d0548f4b7e1b1bd70b0f06b3c4a43b3f5ca99ac2fcfecb32909b16b32a466fff24d1a6407e5fd6c2145fd64d2a156429a |
28 |
DIST ft2demos-2.8.tar.bz2 225274 BLAKE2B b8b02b8b03b84709b7d274d1c8dff323051051ceb3f77762f2fad51ec7a21d34cdbc35a6e828d1755b374d05801d11b0f9968361a34efbb6a6239769b8cd730a SHA512 dffdf6a493e8145c6513be34b57734a9a99c61f758a0e1ea691ef4284cee4c274ad7c3a8120a8ec425d86e33a70cd879d9db258e9c67b6a4db79c3243d4c9fb3 |
29 |
+DIST ft2demos-2.9.tar.bz2 230926 BLAKE2B 8c8e02101243468d52953aeeee7ad985a5aa3fabc82c19a3404ce301348fd32e5f89aa56798613658d5d29a8c3a6c7d4a70eae038ef6095005f8c10354b3f288 SHA512 3dfaf97619d585d6e4db20002c69f9c46cb8991c4faf86d9d92884a80001235ef01010148156cb4879d7869e6121fc27ef03c13288af011df26fe85c3fb7e6a1 |
30 |
|
31 |
diff --git a/media-libs/freetype/freetype-2.9.ebuild b/media-libs/freetype/freetype-2.9.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..7c6cfcd26bf |
34 |
--- /dev/null |
35 |
+++ b/media-libs/freetype/freetype-2.9.ebuild |
36 |
@@ -0,0 +1,180 @@ |
37 |
+# Copyright 1999-2018 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=6 |
41 |
+ |
42 |
+inherit flag-o-matic libtool multilib multilib-build multilib-minimal toolchain-funcs |
43 |
+ |
44 |
+INFINALITY_PATCH="03-infinality-2.6.3-2016.03.26.patch" |
45 |
+ |
46 |
+DESCRIPTION="A high-quality and portable font engine" |
47 |
+HOMEPAGE="http://www.freetype.org/" |
48 |
+SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2 |
49 |
+ mirror://nongnu/freetype/${P/_/}.tar.bz2 |
50 |
+ utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 |
51 |
+ mirror://nongnu/freetype/ft2demos-${PV}.tar.bz2 ) |
52 |
+ doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 |
53 |
+ mirror://nongnu/freetype/${PN}-doc-${PV}.tar.bz2 )" |
54 |
+ |
55 |
+LICENSE="|| ( FTL GPL-2+ )" |
56 |
+SLOT="2" |
57 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
58 |
+IUSE="X +adobe-cff bindist bzip2 +cleartype_hinting debug doc fontforge harfbuzz |
59 |
+ infinality png static-libs utils" |
60 |
+RESTRICT="!bindist? ( bindist )" # bug 541408 |
61 |
+ |
62 |
+CDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
63 |
+ bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
64 |
+ harfbuzz? ( >=media-libs/harfbuzz-0.9.19[truetype,${MULTILIB_USEDEP}] ) |
65 |
+ png? ( >=media-libs/libpng-1.2.51:=[${MULTILIB_USEDEP}] ) |
66 |
+ utils? ( |
67 |
+ X? ( |
68 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
69 |
+ >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}] |
70 |
+ >=x11-libs/libXdmcp-1.1.1-r1[${MULTILIB_USEDEP}] |
71 |
+ ) |
72 |
+ )" |
73 |
+DEPEND="${CDEPEND} |
74 |
+ virtual/pkgconfig" |
75 |
+RDEPEND="${CDEPEND} |
76 |
+ abi_x86_32? ( utils? ( !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)] ) )" |
77 |
+PDEPEND="infinality? ( media-libs/fontconfig-infinality )" |
78 |
+ |
79 |
+PATCHES=( |
80 |
+ # This is the same as the 01 patch from infinality |
81 |
+ "${FILESDIR}"/${PN}-2.7-enable-valid.patch |
82 |
+ |
83 |
+ "${FILESDIR}"/${PN}-2.4.11-sizeof-types.patch # 459966 |
84 |
+ |
85 |
+ # patches from upstream (can be removed with the next version bump) |
86 |
+) |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ enable_option() { |
90 |
+ sed -i -e "/#define $1/ { s:/\* ::; s: \*/:: }" \ |
91 |
+ include/${PN}/config/ftoption.h \ |
92 |
+ || die "unable to enable option $1" |
93 |
+ } |
94 |
+ |
95 |
+ disable_option() { |
96 |
+ sed -i -e "/#define $1/ { s:^:/* :; s:$: */: }" \ |
97 |
+ include/${PN}/config/ftoption.h \ |
98 |
+ || die "unable to disable option $1" |
99 |
+ } |
100 |
+ |
101 |
+ default |
102 |
+ |
103 |
+ # Will be the new default for >=freetype-2.7.0 |
104 |
+ disable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
105 |
+ |
106 |
+ if use infinality && use cleartype_hinting; then |
107 |
+ enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 )" |
108 |
+ elif use infinality; then |
109 |
+ enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 1" |
110 |
+ elif use cleartype_hinting; then |
111 |
+ enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" |
112 |
+ fi |
113 |
+ |
114 |
+ # Can be disabled with FREETYPE_PROPERTIES="pcf:no-long-family-names=1" |
115 |
+ # via environment (new since v2.8) |
116 |
+ enable_option PCF_CONFIG_OPTION_LONG_FAMILY_NAMES |
117 |
+ |
118 |
+ if ! use bindist; then |
119 |
+ # See http://freetype.org/patents.html |
120 |
+ # ClearType is covered by several Microsoft patents in the US |
121 |
+ enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING |
122 |
+ fi |
123 |
+ |
124 |
+ if ! use adobe-cff; then |
125 |
+ enable_option CFF_CONFIG_OPTION_OLD_ENGINE |
126 |
+ fi |
127 |
+ |
128 |
+ if use debug; then |
129 |
+ enable_option FT_DEBUG_LEVEL_TRACE |
130 |
+ enable_option FT_DEBUG_MEMORY |
131 |
+ fi |
132 |
+ |
133 |
+ if use utils; then |
134 |
+ cd "${WORKDIR}/ft2demos-${PV}" || die |
135 |
+ # Disable tests needing X11 when USE="-X". (bug #177597) |
136 |
+ if ! use X; then |
137 |
+ sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die |
138 |
+ fi |
139 |
+ cd "${S}" || die |
140 |
+ fi |
141 |
+ |
142 |
+ # we need non-/bin/sh to run configure |
143 |
+ if [[ -n ${CONFIG_SHELL} ]] ; then |
144 |
+ sed -i -e "1s:^#![[:space:]]*/bin/sh:#!$CONFIG_SHELL:" \ |
145 |
+ "${S}"/builds/unix/configure || die |
146 |
+ fi |
147 |
+ |
148 |
+ elibtoolize --patch-only |
149 |
+} |
150 |
+ |
151 |
+multilib_src_configure() { |
152 |
+ append-flags -fno-strict-aliasing |
153 |
+ type -P gmake &> /dev/null && export GNUMAKE=gmake |
154 |
+ |
155 |
+ local myeconfargs=( |
156 |
+ --enable-biarch-config |
157 |
+ --enable-shared |
158 |
+ $(use_with bzip2) |
159 |
+ $(use_with harfbuzz) |
160 |
+ $(use_with png) |
161 |
+ $(use_enable static-libs static) |
162 |
+ |
163 |
+ # avoid using libpng-config |
164 |
+ LIBPNG_CFLAGS="$($(tc-getPKG_CONFIG) --cflags libpng)" |
165 |
+ LIBPNG_LDFLAGS="$($(tc-getPKG_CONFIG) --libs libpng)" |
166 |
+ ) |
167 |
+ |
168 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
169 |
+} |
170 |
+ |
171 |
+multilib_src_compile() { |
172 |
+ default |
173 |
+ |
174 |
+ if multilib_is_native_abi && use utils; then |
175 |
+ einfo "Building utils" |
176 |
+ # fix for Prefix, bug #339334 |
177 |
+ emake \ |
178 |
+ X11_PATH="${EPREFIX}/usr/$(get_libdir)" \ |
179 |
+ FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" |
180 |
+ fi |
181 |
+} |
182 |
+ |
183 |
+multilib_src_install() { |
184 |
+ default |
185 |
+ |
186 |
+ if multilib_is_native_abi && use utils; then |
187 |
+ einfo "Installing utils" |
188 |
+ rm "${WORKDIR}"/ft2demos-${PV}/bin/README || die |
189 |
+ local ft2demo |
190 |
+ for ft2demo in ../ft2demos-${PV}/bin/*; do |
191 |
+ ./libtool --mode=install $(type -P install) -m 755 "$ft2demo" \ |
192 |
+ "${ED%/}"/usr/bin || die |
193 |
+ done |
194 |
+ fi |
195 |
+} |
196 |
+ |
197 |
+multilib_src_install_all() { |
198 |
+ if use fontforge; then |
199 |
+ # Probably fontforge needs less but this way makes things simplier... |
200 |
+ einfo "Installing internal headers required for fontforge" |
201 |
+ local header |
202 |
+ find src/truetype include/freetype/internal -name '*.h' | \ |
203 |
+ while read header; do |
204 |
+ mkdir -p "${ED%/}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
205 |
+ cp ${header} "${ED%/}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die |
206 |
+ done |
207 |
+ fi |
208 |
+ |
209 |
+ dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,INSTALL.UNIX,*.txt,PROBLEMS,TODO} |
210 |
+ if use doc ; then |
211 |
+ docinto html |
212 |
+ dodoc -r docs/* |
213 |
+ fi |
214 |
+ |
215 |
+ prune_libtool_files --all |
216 |
+} |