Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/graphite2/, media-gfx/graphite2/files/
Date: Wed, 29 Dec 2021 15:42:08
Message-Id: 1640792481.276052ffa3b61771cd7a07549c24148ff1659789.asturm@gentoo
1 commit: 276052ffa3b61771cd7a07549c24148ff1659789
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 28 16:57:51 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 29 15:41:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=276052ff
7
8 media-gfx/graphite2: Add 1.3.14_p20210810 snapshot
9
10 The only relevant change is commit 5c181c316ee0399d720efe1e75be702f1ca95b66
11 but requires further patches to fix tests subsequently, which does involve
12 at least one binary patch. A snapshot is the cleaner way to to then.
13
14 Package-Manager: Portage-3.0.30, Repoman-3.0.3
15 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
16
17 media-gfx/graphite2/Manifest | 1 +
18 ...e2-1.3.14-fix-inaccurate-slice-range-calc.patch | 34 ----------------------
19 ...r2.ebuild => graphite2-1.3.14_p20210810.ebuild} | 9 +++---
20 3 files changed, 5 insertions(+), 39 deletions(-)
21
22 diff --git a/media-gfx/graphite2/Manifest b/media-gfx/graphite2/Manifest
23 index ae90df1b9678..c8a6a1cb288e 100644
24 --- a/media-gfx/graphite2/Manifest
25 +++ b/media-gfx/graphite2/Manifest
26 @@ -1 +1,2 @@
27 DIST graphite2-1.3.14.tgz 6630061 BLAKE2B 72bf6736aaa8476a89e44ef53c5b6c94f45d815fe1a451ba6b3696bfe023971210975dee4a9c8cb3042f36442e4efecf5baf171ef4230ad2b10694a89865f918 SHA512 14b5eb2ba8158b8b62ffa7fb142100a0af1de0f0c45b2673801b636714a106b46fcd423b05c722d963c9543fafcf10fec811975308211a54f20a3ba322d7b295
28 +DIST graphite2-1.3.14_p20210810.tar.gz 6656693 BLAKE2B 63a7d96b58f2779d8a4a353e1a986212b884fdf780fedcb83b22dcef2f7678d44c88c14ece2d09dc745df505a4a3825ce61d7c84bd05fd4e98c23d6e86e9326d SHA512 be54c1386578970cf65c1860336a113268181753c1e2a139e37ceeafcfa76e3162086879c54094d70cd0d36ad5852a95390aaa69572d875921e9481f1ae508ff
29
30 diff --git a/media-gfx/graphite2/files/graphite2-1.3.14-fix-inaccurate-slice-range-calc.patch b/media-gfx/graphite2/files/graphite2-1.3.14-fix-inaccurate-slice-range-calc.patch
31 deleted file mode 100644
32 index 32e01535838f..000000000000
33 --- a/media-gfx/graphite2/files/graphite2-1.3.14-fix-inaccurate-slice-range-calc.patch
34 +++ /dev/null
35 @@ -1,34 +0,0 @@
36 -From 5c181c316ee0399d720efe1e75be702f1ca95b66 Mon Sep 17 00:00:00 2001
37 -From: Martin Hosken <martin_hosken@×××.org>
38 -Date: Thu, 20 May 2021 13:53:29 +0700
39 -Subject: [PATCH] Fix inaccurate slice range calculation for bases with
40 - diacritics
41 -
42 ----
43 - src/Pass.cpp | 9 +++++++--
44 - 1 file changed, 7 insertions(+), 2 deletions(-)
45 -
46 -diff --git a/src/Pass.cpp b/src/Pass.cpp
47 -index db31c22d..47ae2064 100644
48 ---- a/src/Pass.cpp
49 -+++ b/src/Pass.cpp
50 -@@ -1056,12 +1056,17 @@ float Pass::resolveKern(Segment *seg, Slot *slotFix, GR_MAYBE_UNUSED Slot *start
51 - ymin = min(by + bbb.bl.y, ymin);
52 - for (nbor = slotFix->next(); nbor; nbor = nbor->next())
53 - {
54 -- if (nbor->isChildOf(base))
55 -- continue;
56 - if (!gc.check(nbor->gid()))
57 - return 0.;
58 - const Rect &bb = seg->theGlyphBBoxTemporary(nbor->gid());
59 - SlotCollision *cNbor = seg->collisionInfo(nbor);
60 -+ const float nby = nbor->origin().y + cNbor->shift().y;
61 -+ if (nbor->isChildOf(base))
62 -+ {
63 -+ ymax = max(nby + bb.tr.y, ymax);
64 -+ ymin = min(nby + bb.bl.y, ymin);
65 -+ continue;
66 -+ }
67 - if ((bb.bl.y == 0.f && bb.tr.y == 0.f) || (cNbor->flags() & SlotCollision::COLL_ISSPACE))
68 - {
69 - if (m_kernColls == InWord)
70
71 diff --git a/media-gfx/graphite2/graphite2-1.3.14-r2.ebuild b/media-gfx/graphite2/graphite2-1.3.14_p20210810.ebuild
72 similarity index 92%
73 rename from media-gfx/graphite2/graphite2-1.3.14-r2.ebuild
74 rename to media-gfx/graphite2/graphite2-1.3.14_p20210810.ebuild
75 index 5fcd5521f24a..47a0ef22b350 100644
76 --- a/media-gfx/graphite2/graphite2-1.3.14-r2.ebuild
77 +++ b/media-gfx/graphite2/graphite2-1.3.14_p20210810.ebuild
78 @@ -3,13 +3,15 @@
79
80 EAPI=8
81
82 +COMMIT=80c52493ef42e6fe605a69dcddd2a691cd8a1380
83 GENTOO_DEPEND_ON_PERL="no"
84 PYTHON_COMPAT=( python3_{8..10} )
85 inherit perl-module python-any-r1 cmake-multilib
86
87 DESCRIPTION="Library providing rendering capabilities for complex non-Roman writing systems"
88 HOMEPAGE="https://scripts.sil.org/cms/scripts/page.php?site_id=projects&item_id=graphite_home"
89 -SRC_URI="mirror://sourceforge/silgraphite/${PN}/${P}.tgz"
90 +SRC_URI="https://github.com/silnrsi/graphite/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
91 +S="${WORKDIR}/graphite-${COMMIT}"
92
93 LICENSE="LGPL-2.1"
94 SLOT="0"
95 @@ -36,13 +38,10 @@ BDEPEND="
96 "
97
98 PATCHES=(
99 - # downstream:
100 "${FILESDIR}/${PN}-1.3.5-includes-libs-perl.patch"
101 "${FILESDIR}/${PN}-1.35-fix-gcc-linking.patch"
102 "${FILESDIR}/${PN}-1.3.14-fix-cmake-files-libdir.patch"
103 - "${FILESDIR}/${P}-no-libtool-file.patch"
104 - # git master:
105 - "${FILESDIR}/${P}-fix-inaccurate-slice-range-calc.patch"
106 + "${FILESDIR}/${PN}-1.3.14-no-libtool-file.patch"
107 )
108
109 pkg_setup() {