Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/files/, dev-util/psautohint/
Date: Tue, 28 Feb 2023 10:09:20
Message-Id: 1677578880.9337863685018665215cab86673d7ef926c02f45.cybertailor@gentoo
1 commit: 9337863685018665215cab86673d7ef926c02f45
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Tue Feb 28 09:16:17 2023 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Tue Feb 28 10:08:00 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=93378636
7
8 dev-util/psautohint: enable py3.11
9
10 I moved C library into a separate package.
11
12 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
13
14 dev-util/psautohint/Manifest | 2 +-
15 .../files/psautohint-2.3.0-no-build-library.patch | 5 +-
16 .../files/psautohint-2.3.0-no-werror.patch | 11 ---
17 ...ath.diff => psautohint-2.3.0-system-libs.patch} | 0
18 dev-util/psautohint/psautohint-2.4.0-r1.ebuild | 68 +++++++++++++++
19 dev-util/psautohint/psautohint-2.4.0.ebuild | 97 ----------------------
20 6 files changed, 71 insertions(+), 112 deletions(-)
21
22 diff --git a/dev-util/psautohint/Manifest b/dev-util/psautohint/Manifest
23 index a0367e173..f8e805189 100644
24 --- a/dev-util/psautohint/Manifest
25 +++ b/dev-util/psautohint/Manifest
26 @@ -1,2 +1,2 @@
27 +DIST psautohint-2.4.0-testdata.gh.tar.gz 21949984 BLAKE2B a5da67eb4b9f3d0ce5d86469bc0a5f771fa743198836db35121e9c62b66c8b8df00fef6e40e8832e33aee065fe3bdd0a24d1b590bce6fb66d7c43f6719236242 SHA512 03d4962958d3551ffdf99463d28723f6b43d42029843da1b40493b0bfc2e586ebf40db3a2497b36b5fde345de4b6998cfc1131c6fb4e8352b05fb59fc4e90e7f
28 DIST psautohint-2.4.0.gh.tar.gz 181009 BLAKE2B bb6ed5ae6b800742d8d1061004bfb49a84e3b9c99977a653ef8eeccf38d9c03261be5b735df20ee93dcf712b8b6ade7a2391937f327206fc2e01f2b5bcbe9022 SHA512 dfc29d020bedf8bd546e395743befb390e9fb01a3025aa10357a32724c9a78236acd57e05300aa26be630c9d43edab8bda731dc4f51c0a07d0bef79112d952aa
29 -DIST psautohint-testdata-1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23.gh.tar.gz 21949984 BLAKE2B a5da67eb4b9f3d0ce5d86469bc0a5f771fa743198836db35121e9c62b66c8b8df00fef6e40e8832e33aee065fe3bdd0a24d1b590bce6fb66d7c43f6719236242 SHA512 03d4962958d3551ffdf99463d28723f6b43d42029843da1b40493b0bfc2e586ebf40db3a2497b36b5fde345de4b6998cfc1131c6fb4e8352b05fb59fc4e90e7f
30
31 diff --git a/dev-util/psautohint/files/psautohint-2.3.0-no-build-library.patch b/dev-util/psautohint/files/psautohint-2.3.0-no-build-library.patch
32 index 44698b6af..2245a901e 100644
33 --- a/dev-util/psautohint/files/psautohint-2.3.0-no-build-library.patch
34 +++ b/dev-util/psautohint/files/psautohint-2.3.0-no-build-library.patch
35 @@ -1,6 +1,5 @@
36 -diff '--color=auto' -ru psautohint-2.3.0/setup.py /var/tmp/portage/dev-util/psautohint-2.3.0/work/psautohint-2.3.0/setup.py
37 ---- psautohint-2.3.0/setup.py 2021-06-18 02:49:14.569282664 +0200
38 -+++ /var/tmp/portage/dev-util/psautohint-2.3.0/work/psautohint-2.3.0/setup.py 2021-06-18 02:51:12.569250040 +0200
39 +--- a/setup.py
40 ++++ b/setup.py
41 @@ -192,7 +192,7 @@
42 # If we were asked to build any C/C++ libraries, make sure that the
43 # directory where we put them is in the library search path for
44
45 diff --git a/dev-util/psautohint/files/psautohint-2.3.0-no-werror.patch b/dev-util/psautohint/files/psautohint-2.3.0-no-werror.patch
46 deleted file mode 100644
47 index 5032e5782..000000000
48 --- a/dev-util/psautohint/files/psautohint-2.3.0-no-werror.patch
49 +++ /dev/null
50 @@ -1,11 +0,0 @@
51 -diff '--color=auto' -ru psautohint-2.3.0/libpsautohint/meson.build /var/tmp/portage/dev-util/psautohint-2.3.0/work/psautohint-2.3.0/libpsautohint/meson.build
52 ---- psautohint-2.3.0/libpsautohint/meson.build 2021-06-18 02:49:14.557282566 +0200
53 -+++ /var/tmp/portage/dev-util/psautohint-2.3.0/work/psautohint-2.3.0/libpsautohint/meson.build 2021-06-18 02:54:34.873912737 +0200
54 -@@ -21,7 +21,6 @@
55 - '-Wstringop-truncation',
56 - '-Wunreachable-code-break',
57 - '-Wunused-macros',
58 -- '-Werror',
59 - ]
60 -
61 - add_global_arguments(cc.get_supported_arguments(cflags), language : 'c')
62
63 diff --git a/dev-util/psautohint/files/psautohint-bininpath.diff b/dev-util/psautohint/files/psautohint-2.3.0-system-libs.patch
64 similarity index 100%
65 rename from dev-util/psautohint/files/psautohint-bininpath.diff
66 rename to dev-util/psautohint/files/psautohint-2.3.0-system-libs.patch
67
68 diff --git a/dev-util/psautohint/psautohint-2.4.0-r1.ebuild b/dev-util/psautohint/psautohint-2.4.0-r1.ebuild
69 new file mode 100644
70 index 000000000..26fb2b5d8
71 --- /dev/null
72 +++ b/dev-util/psautohint/psautohint-2.4.0-r1.ebuild
73 @@ -0,0 +1,68 @@
74 +# Copyright 1999-2023 Gentoo Authors
75 +# Distributed under the terms of the GNU General Public License v2
76 +
77 +EAPI=8
78 +
79 +PYTHON_COMPAT=( python3_{9..11} )
80 +DISTUTILS_USE_PEP517=setuptools
81 +inherit meson distutils-r1
82 +
83 +COMMIT="1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23"
84 +DESCRIPTION="Python wrapper for Adobe's PostScript autohinter"
85 +HOMEPAGE="
86 + https://pypi.org/project/psautohint/
87 + https://github.com/adobe-type-tools/psautohint
88 +"
89 +SRC_URI="
90 + https://github.com/adobe-type-tools/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
91 + test? (
92 + https://github.com/adobe-type-tools/${PN}-testdata/archive/${COMMIT}.tar.gz -> ${P}-testdata.gh.tar.gz
93 + )
94 +"
95 +
96 +KEYWORDS="~amd64"
97 +LICENSE="Apache-2.0"
98 +SLOT="0"
99 +
100 +DEPEND="media-gfx/libpsautohint"
101 +RDEPEND="
102 + ${DEPEND}
103 + >=dev-python/fonttools-4.20[${PYTHON_USEDEP}]
104 + dev-python/fs[${PYTHON_USEDEP}]
105 +"
106 +BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]"
107 +
108 +DOCS=( doc {NEWS,README}.md )
109 +
110 +PATCHES=(
111 + "${FILESDIR}/${PN}-2.3.0-system-libs.patch"
112 + "${FILESDIR}/${PN}-2.3.0-no-build-library.patch"
113 +)
114 +
115 +EPYTEST_DESELECT=(
116 + tests/integration/test_hint.py::test_hashmap_old_version
117 + "tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/CJKSparseVar.subset.hinted.otf]"
118 +)
119 +
120 +distutils_enable_tests pytest
121 +
122 +src_unpack() {
123 + default
124 +
125 + if use test; then
126 + mv "${WORKDIR}"/psautohint-testdata-${COMMIT}/* "${S}"/tests/integration/data || die
127 + fi
128 +}
129 +
130 +src_prepare() {
131 + distutils-r1_src_prepare
132 +
133 + rm -r libpsautohint || die
134 + mkdir -p libpsautohint/src || die
135 +
136 + rm pytest.ini || die
137 +}
138 +
139 +src_configure() {
140 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
141 +}
142
143 diff --git a/dev-util/psautohint/psautohint-2.4.0.ebuild b/dev-util/psautohint/psautohint-2.4.0.ebuild
144 deleted file mode 100644
145 index 0b1181eae..000000000
146 --- a/dev-util/psautohint/psautohint-2.4.0.ebuild
147 +++ /dev/null
148 @@ -1,97 +0,0 @@
149 -# Copyright 1999-2022 Gentoo Authors
150 -# Distributed under the terms of the GNU General Public License v2
151 -
152 -EAPI=8
153 -
154 -COMMIT="1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23"
155 -DISTUTILS_IN_SOURCE_BUILD=1
156 -EMESON_SOURCE="${S}/libpsautohint"
157 -PYTHON_COMPAT=( python3_{8..10} )
158 -
159 -inherit edo meson distutils-r1
160 -
161 -DESCRIPTION="A standalone version of AFDKO autohinter"
162 -HOMEPAGE="
163 - https://github.com/adobe-type-tools/psautohint
164 - https://pypi.org/project/psautohint/
165 -"
166 -SRC_URI="
167 - https://github.com/adobe-type-tools/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
168 - test? (
169 - https://github.com/adobe-type-tools/${PN}-testdata/archive/${COMMIT}.tar.gz -> psautohint-testdata-${COMMIT}.gh.tar.gz
170 - )
171 -"
172 -KEYWORDS="~amd64"
173 -LICENSE="Apache-2.0"
174 -SLOT="0"
175 -
176 -# lxml, fs are indirect dependecies
177 -RDEPEND="
178 - >=dev-python/fonttools-4.20[${PYTHON_USEDEP}]
179 -
180 - dev-python/fs[${PYTHON_USEDEP}]
181 - dev-python/lxml[${PYTHON_USEDEP}]
182 -"
183 -
184 -PATCHES=(
185 - "${FILESDIR}/${PN}-bininpath.diff"
186 - "${FILESDIR}/${PN}-2.3.0-no-build-library.patch"
187 - "${FILESDIR}/${PN}-2.3.0-no-werror.patch"
188 -)
189 -
190 -EPYTEST_DESELECT=(
191 - tests/integration/test_hint.py::test_hashmap_old_version
192 - tests/integration/test_hint.py::test_mute_tx_msgs
193 - tests/integration/test_hint.py::test_type1_supported
194 - tests/integration/test_mmhint.py::test_vfotf
195 - tests/integration/test_cli.py::test_multi_outpath
196 - tests/integration/test_cli.py::test_multi_different_formats
197 -)
198 -
199 -distutils_enable_tests pytest
200 -
201 -pkg_setup() {
202 - local _v=$(ver_cut 4)
203 - _v="$(ver_cut 1-3)${_v:0:1}$(ver_cut 5)"
204 - export SETUPTOOLS_SCM_PRETEND_VERSION="${_v/p/.post}"
205 -}
206 -
207 -src_unpack() {
208 - default
209 - use test && edo mv "${WORKDIR}"/psautohint-testdata-${COMMIT}/* "${S}"/tests/integration/data
210 -}
211 -
212 -python_prepare_all() {
213 - # error: unrecognized arguments: -n
214 - sed "/^ /d" -i pytest.ini || die
215 -
216 - distutils-r1_python_prepare_all
217 -}
218 -
219 -src_configure() {
220 - MESON_BUILD_DIR="${WORKDIR}/${P}-build"
221 - BUILD_DIR="${MESON_BUILD_DIR}" meson_src_configure
222 - distutils-r1_src_configure
223 -}
224 -
225 -src_compile() {
226 - BUILD_DIR="${MESON_BUILD_DIR}" meson_src_compile
227 - distutils-r1_src_compile
228 -}
229 -
230 -python_compile() {
231 - esetup.py build_py build_ext --library-dirs "${MESON_BUILD_DIR}"
232 -}
233 -
234 -src_install() {
235 - BUILD_DIR="${MESON_BUILD_DIR}" meson_src_install
236 - distutils-r1_src_install
237 - dodoc doc/*
238 -}
239 -
240 -python_test() {
241 - local -x PATH="${BUILD_DIR}/test/scripts:${MESON_BUILD_DIR}l:${PATH}"
242 - local -x LD_LIBRARY_PATH="${MESON_BUILD_DIR}"
243 - distutils_install_for_testing
244 - epytest
245 -}