1 |
commit: 90ac5a509565a54d762ad85de93a1733309bf137 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 3 08:51:10 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 3 09:42:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90ac5a50 |
7 |
|
8 |
media-gfx/graphite2: Bump to version 1.3.12 |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
media-gfx/graphite2/Manifest | 1 + |
13 |
media-gfx/graphite2/graphite2-1.3.12.ebuild | 118 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 119 insertions(+) |
15 |
|
16 |
diff --git a/media-gfx/graphite2/Manifest b/media-gfx/graphite2/Manifest |
17 |
index c9b67d1761e..d72b1a8688b 100644 |
18 |
--- a/media-gfx/graphite2/Manifest |
19 |
+++ b/media-gfx/graphite2/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST graphite2-1.3.10.tgz 3889647 BLAKE2B c6db80950ed5f81d5ecf77003e23e6545c2824948bdc04aa3111747c0eb1ef074b09fe4c3ec20b68b00f75958ea39c5945a7fbe2fecde55ff32d22e517c91156 SHA512 d6d578feaa2d9304dc9bcd3926958070b8c23b27437a9fcb801e08e62f33a5549b7a6aa9636c7f8eb80a2a2c6d5cac97d58050fb30fd102b9fd0f8c558f4252b |
22 |
DIST graphite2-1.3.11.tgz 4236760 BLAKE2B d02c98cb387eec1d7b238de550554384f25c873e84d6e2a14dbe352c3f1f8420fa06130c5fd9083e442994b88c483a1a9ca8dcaa0a2c632314f1847e432a7f3b SHA512 fd5e997a30492a7668ad7afd78889e40cb37195cb8e11f42817ee00901b699d6a591e8230bf7a40abd1b218ae26588948a92b23e48c9fd03164fd5e2f4031afe |
23 |
+DIST graphite2-1.3.12.tgz 6667293 BLAKE2B 5008cdc6336af6d846b7d14640b1b8987eb46ff8ff25ee518f2b5cd0576dff2430fb6c83527a6ead6759e73d26fb706b98488aadacefc01f3d6138a91c32b541 SHA512 fdb5a08a64dba1bc6e830e6b7a079daaa7ee009571d159ff0edf6bcfb7dd668f60773b872f1c8636bc70e6559e1a870e1649008b4764b02e12dad0add504e664 |
24 |
|
25 |
diff --git a/media-gfx/graphite2/graphite2-1.3.12.ebuild b/media-gfx/graphite2/graphite2-1.3.12.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..2eef1c68568 |
28 |
--- /dev/null |
29 |
+++ b/media-gfx/graphite2/graphite2-1.3.12.ebuild |
30 |
@@ -0,0 +1,118 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 ) |
37 |
+ |
38 |
+GENTOO_DEPEND_ON_PERL="no" |
39 |
+inherit perl-module python-any-r1 cmake-multilib |
40 |
+ |
41 |
+DESCRIPTION="Library providing rendering capabilities for complex non-Roman writing systems" |
42 |
+HOMEPAGE="http://graphite.sil.org/" |
43 |
+SRC_URI="mirror://sourceforge/silgraphite/${PN}/${P}.tgz" |
44 |
+ |
45 |
+LICENSE="LGPL-2.1" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" |
48 |
+IUSE="perl test" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ perl? ( dev-lang/perl:= ) |
52 |
+" |
53 |
+DEPEND="${RDEPEND} |
54 |
+ perl? ( |
55 |
+ dev-perl/Module-Build |
56 |
+ dev-perl/Locale-Maketext-Lexicon |
57 |
+ ) |
58 |
+ test? ( |
59 |
+ dev-libs/glib:2 |
60 |
+ media-libs/fontconfig |
61 |
+ $(python_gen_any_dep ' |
62 |
+ dev-python/fonttools[${PYTHON_USEDEP}] |
63 |
+ ') |
64 |
+ ${PYTHON_DEPS} |
65 |
+ perl? ( virtual/perl-Test-Simple ) |
66 |
+ ) |
67 |
+" |
68 |
+ |
69 |
+PATCHES=( |
70 |
+ "${FILESDIR}/${PN}-1.3.5-includes-libs-perl.patch" |
71 |
+) |
72 |
+ |
73 |
+pkg_setup() { |
74 |
+ use perl && perl_set_version |
75 |
+ use test && python-any-r1_pkg_setup |
76 |
+} |
77 |
+ |
78 |
+python_check_deps() { |
79 |
+ has_version "dev-python/fonttools[${PYTHON_USEDEP}]" |
80 |
+} |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ cmake-utils_src_prepare |
84 |
+ |
85 |
+ # make tests optional |
86 |
+ if ! use test; then |
87 |
+ sed -i \ |
88 |
+ -e '/tests/d' \ |
89 |
+ CMakeLists.txt || die |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+multilib_src_configure() { |
94 |
+ local mycmakeargs=( |
95 |
+ "-DVM_MACHINE_TYPE=direct" |
96 |
+ # https://sourceforge.net/p/silgraphite/bugs/49/ |
97 |
+ $([[ ${CHOST} == powerpc*-apple* ]] && \ |
98 |
+ echo "-DGRAPHITE2_NSEGCACHE:BOOL=ON") |
99 |
+ ) |
100 |
+ |
101 |
+ cmake-utils_src_configure |
102 |
+ |
103 |
+ # fix perl linking |
104 |
+ if multilib_is_native_abi && use perl; then |
105 |
+ # we rely on the fact that cmake-utils_src_configure sets BUILD_DIR |
106 |
+ sed -i \ |
107 |
+ -e "s:@BUILD_DIR@:\"${BUILD_DIR}/src\":" \ |
108 |
+ "${S}"/contrib/perl/Build.PL || die |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ cmake-multilib_src_compile |
114 |
+ if use perl; then |
115 |
+ cd contrib/perl || die |
116 |
+ perl-module_src_configure |
117 |
+ perl-module_src_compile |
118 |
+ fi |
119 |
+} |
120 |
+ |
121 |
+multilib_src_test() { |
122 |
+ if multilib_is_native_abi; then |
123 |
+ cmake-utils_src_test |
124 |
+ else |
125 |
+ einfo Cannot test since python is not multilib. |
126 |
+ fi |
127 |
+} |
128 |
+ |
129 |
+src_test() { |
130 |
+ cmake-multilib_src_test |
131 |
+ if use perl; then |
132 |
+ # Perl tests fail due to missing POD coverage... |
133 |
+ perl_rm_files "contrib/perl/t/pod.t" "contrib/perl/t/pod-coverage.t" |
134 |
+ cd contrib/perl || die |
135 |
+ perl-module_src_test |
136 |
+ fi |
137 |
+} |
138 |
+ |
139 |
+src_install() { |
140 |
+ cmake-multilib_src_install |
141 |
+ if use perl; then |
142 |
+ cd contrib/perl || die |
143 |
+ perl-module_src_install |
144 |
+ perl_delete_localpod |
145 |
+ fi |
146 |
+ |
147 |
+ find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die |
148 |
+} |