[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/files/, dev-util/psautohint/

2023-02-28 Thread Anna Vyalkova
commit: 9337863685018665215cab86673d7ef926c02f45
Author: Anna (cybertailor) Vyalkova  sysrq  in>
AuthorDate: Tue Feb 28 09:16:17 2023 +
Commit: Anna Vyalkova  sysrq  in>
CommitDate: Tue Feb 28 10:08:00 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=93378636

dev-util/psautohint: enable py3.11

I moved C library into a separate package.

Signed-off-by: Anna (cybertailor) Vyalkova  sysrq.in>

 dev-util/psautohint/Manifest   |  2 +-
 .../files/psautohint-2.3.0-no-build-library.patch  |  5 +-
 .../files/psautohint-2.3.0-no-werror.patch | 11 ---
 ...ath.diff => psautohint-2.3.0-system-libs.patch} |  0
 dev-util/psautohint/psautohint-2.4.0-r1.ebuild | 68 +++
 dev-util/psautohint/psautohint-2.4.0.ebuild| 97 --
 6 files changed, 71 insertions(+), 112 deletions(-)

diff --git a/dev-util/psautohint/Manifest b/dev-util/psautohint/Manifest
index a0367e173..f8e805189 100644
--- a/dev-util/psautohint/Manifest
+++ b/dev-util/psautohint/Manifest
@@ -1,2 +1,2 @@
+DIST psautohint-2.4.0-testdata.gh.tar.gz 21949984 BLAKE2B 
a5da67eb4b9f3d0ce5d86469bc0a5f771fa743198836db35121e9c62b66c8b8df00fef6e40e8832e33aee065fe3bdd0a24d1b590bce6fb66d7c43f6719236242
 SHA512 
03d4962958d3551ffdf99463d28723f6b43d42029843da1b40493b0bfc2e586ebf40db3a2497b36b5fde345de4b6998cfc1131c6fb4e8352b05fb59fc4e90e7f
 DIST psautohint-2.4.0.gh.tar.gz 181009 BLAKE2B 
bb6ed5ae6b800742d8d1061004bfb49a84e3b9c99977a653ef8eeccf38d9c03261be5b735df20ee93dcf712b8b6ade7a2391937f327206fc2e01f2b5bcbe9022
 SHA512 
dfc29d020bedf8bd546e395743befb390e9fb01a3025aa10357a32724c9a78236acd57e05300aa26be630c9d43edab8bda731dc4f51c0a07d0bef79112d952aa
-DIST psautohint-testdata-1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23.gh.tar.gz 
21949984 BLAKE2B 
a5da67eb4b9f3d0ce5d86469bc0a5f771fa743198836db35121e9c62b66c8b8df00fef6e40e8832e33aee065fe3bdd0a24d1b590bce6fb66d7c43f6719236242
 SHA512 
03d4962958d3551ffdf99463d28723f6b43d42029843da1b40493b0bfc2e586ebf40db3a2497b36b5fde345de4b6998cfc1131c6fb4e8352b05fb59fc4e90e7f

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
index 44698b6af..2245a901e 100644
--- 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
@@ -1,6 +1,5 @@
-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
 psautohint-2.3.0/setup.py  2021-06-18 02:49:14.569282664 +0200
-+++ /var/tmp/portage/dev-util/psautohint-2.3.0/work/psautohint-2.3.0/setup.py  
2021-06-18 02:51:12.569250040 +0200
+--- a/setup.py
 b/setup.py
 @@ -192,7 +192,7 @@
  # If we were asked to build any C/C++ libraries, make sure that the
  # directory where we put them is in the library search path for

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
deleted file mode 100644
index 5032e5782..0
--- a/dev-util/psautohint/files/psautohint-2.3.0-no-werror.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-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
 psautohint-2.3.0/libpsautohint/meson.build 2021-06-18 02:49:14.557282566 
+0200
-+++ 
/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
-@@ -21,7 +21,6 @@
-   '-Wstringop-truncation',
-   '-Wunreachable-code-break',
-   '-Wunused-macros',
--  '-Werror',
- ]
- 
- add_global_arguments(cc.get_supported_arguments(cflags), language : 'c')

diff --git a/dev-util/psautohint/files/psautohint-bininpath.diff 
b/dev-util/psautohint/files/psautohint-2.3.0-system-libs.patch
similarity index 100%
rename from dev-util/psautohint/files/psautohint-bininpath.diff
rename to dev-util/psautohint/files/psautohint-2.3.0-system-libs.patch

diff --git a/dev-util/psautohint/psautohint-2.4.0-r1.ebuild 
b/dev-util/psautohint/psautohint-2.4.0-r1.ebuild
new file mode 100644
index 0..26fb2b5d8
--- /dev/null
+++ b/dev-util/psautohint/psautohint-2.4.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_USE_PEP517=setuptools
+inherit meson distutils-r1
+
+COMMIT="1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23"
+DESCRIPTION="Python wrapper for Adobe's PostScript autohinter"
+HOMEPAGE="
+   https://pypi.org/project/psautohint/
+   https://github.com/adobe-type-tools/psautohint
+"
+SRC_URI="
+   
https://github.com/adobe-type-tools/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz
+   test? (
+   

[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/

2022-06-02 Thread Alessandro Barbieri
commit: 8c96b338bbc6f354318c4263d4a0d55366567cfd
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Thu Jun  2 08:13:16 2022 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Thu Jun  2 08:13:16 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8c96b338

dev-util/psautohint: move testdata only when USE="test"

Closes: https://bugs.gentoo.org/849230
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-util/psautohint/Manifest| 2 +-
 dev-util/psautohint/psautohint-2.4.0.ebuild | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-util/psautohint/Manifest b/dev-util/psautohint/Manifest
index 1463268e7..a0367e173 100644
--- a/dev-util/psautohint/Manifest
+++ b/dev-util/psautohint/Manifest
@@ -1,2 +1,2 @@
 DIST psautohint-2.4.0.gh.tar.gz 181009 BLAKE2B 
bb6ed5ae6b800742d8d1061004bfb49a84e3b9c99977a653ef8eeccf38d9c03261be5b735df20ee93dcf712b8b6ade7a2391937f327206fc2e01f2b5bcbe9022
 SHA512 
dfc29d020bedf8bd546e395743befb390e9fb01a3025aa10357a32724c9a78236acd57e05300aa26be630c9d43edab8bda731dc4f51c0a07d0bef79112d952aa
-DIST psautohint-testdata-1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23.tar.gz 
21949984 BLAKE2B 
a5da67eb4b9f3d0ce5d86469bc0a5f771fa743198836db35121e9c62b66c8b8df00fef6e40e8832e33aee065fe3bdd0a24d1b590bce6fb66d7c43f6719236242
 SHA512 
03d4962958d3551ffdf99463d28723f6b43d42029843da1b40493b0bfc2e586ebf40db3a2497b36b5fde345de4b6998cfc1131c6fb4e8352b05fb59fc4e90e7f
+DIST psautohint-testdata-1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23.gh.tar.gz 
21949984 BLAKE2B 
a5da67eb4b9f3d0ce5d86469bc0a5f771fa743198836db35121e9c62b66c8b8df00fef6e40e8832e33aee065fe3bdd0a24d1b590bce6fb66d7c43f6719236242
 SHA512 
03d4962958d3551ffdf99463d28723f6b43d42029843da1b40493b0bfc2e586ebf40db3a2497b36b5fde345de4b6998cfc1131c6fb4e8352b05fb59fc4e90e7f

diff --git a/dev-util/psautohint/psautohint-2.4.0.ebuild 
b/dev-util/psautohint/psautohint-2.4.0.ebuild
index 9d1dc2d01..0b1181eae 100644
--- a/dev-util/psautohint/psautohint-2.4.0.ebuild
+++ b/dev-util/psautohint/psautohint-2.4.0.ebuild
@@ -8,7 +8,7 @@ DISTUTILS_IN_SOURCE_BUILD=1
 EMESON_SOURCE="${S}/libpsautohint"
 PYTHON_COMPAT=( python3_{8..10} )
 
-inherit meson distutils-r1
+inherit edo meson distutils-r1
 
 DESCRIPTION="A standalone version of AFDKO autohinter"
 HOMEPAGE="
@@ -18,7 +18,7 @@ HOMEPAGE="
 SRC_URI="

https://github.com/adobe-type-tools/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz
test? (
-   
https://github.com/adobe-type-tools/${PN}-testdata/archive/${COMMIT}.tar.gz -> 
psautohint-testdata-${COMMIT}.tar.gz
+   
https://github.com/adobe-type-tools/${PN}-testdata/archive/${COMMIT}.tar.gz -> 
psautohint-testdata-${COMMIT}.gh.tar.gz
)
 "
 KEYWORDS="~amd64"
@@ -58,7 +58,7 @@ pkg_setup() {
 
 src_unpack() {
default
-   mv "${WORKDIR}"/psautohint-testdata-${COMMIT}/* 
"${S}"/tests/integration/data || die
+   use test && edo mv "${WORKDIR}"/psautohint-testdata-${COMMIT}/* 
"${S}"/tests/integration/data
 }
 
 python_prepare_all() {



[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/

2022-05-29 Thread Alessandro Barbieri
commit: c52dee3cd3c99f6f6c449163428bb7c9ada743c5
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun May 29 20:57:36 2022 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sun May 29 21:04:52 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c52dee3c

dev-util/psautohint: drop 2.3.0

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-util/psautohint/Manifest|  1 -
 dev-util/psautohint/psautohint-2.3.0.ebuild | 81 -
 2 files changed, 82 deletions(-)

diff --git a/dev-util/psautohint/Manifest b/dev-util/psautohint/Manifest
index e77c073e2..34b1b4a4e 100644
--- a/dev-util/psautohint/Manifest
+++ b/dev-util/psautohint/Manifest
@@ -1,3 +1,2 @@
-DIST psautohint-2.3.0.tar.gz 181570 BLAKE2B 
20127221ccbe890b363aba944ca19f6b126ba7c61f0b5e668288a12f93aebfe3541257e576f2ffce9bd935886f5cb9b4eb5c0dc08c0a8b1953484660fef8868a
 SHA512 
943ac93ea4b0c188135cf2146803c36a3e5aa5b2e14924252281f22f6fc4190b935bdd72785107bbaf36d7503f48fc952fb32cd6965791c4ebebc699c0d7c5f5
 DIST psautohint-2.4.0.tar.gz 181009 BLAKE2B 
bb6ed5ae6b800742d8d1061004bfb49a84e3b9c99977a653ef8eeccf38d9c03261be5b735df20ee93dcf712b8b6ade7a2391937f327206fc2e01f2b5bcbe9022
 SHA512 
dfc29d020bedf8bd546e395743befb390e9fb01a3025aa10357a32724c9a78236acd57e05300aa26be630c9d43edab8bda731dc4f51c0a07d0bef79112d952aa
 DIST psautohint-testdata-1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23.tar.gz 
21949984 BLAKE2B 
a5da67eb4b9f3d0ce5d86469bc0a5f771fa743198836db35121e9c62b66c8b8df00fef6e40e8832e33aee065fe3bdd0a24d1b590bce6fb66d7c43f6719236242
 SHA512 
03d4962958d3551ffdf99463d28723f6b43d42029843da1b40493b0bfc2e586ebf40db3a2497b36b5fde345de4b6998cfc1131c6fb4e8352b05fb59fc4e90e7f

diff --git a/dev-util/psautohint/psautohint-2.3.0.ebuild 
b/dev-util/psautohint/psautohint-2.3.0.ebuild
deleted file mode 100644
index ba1cda307..0
--- a/dev-util/psautohint/psautohint-2.3.0.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-COMMIT="1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23"
-DISTUTILS_IN_SOURCE_BUILD=1
-EMESON_SOURCE="${S}/libpsautohint"
-PYTHON_COMPAT=( python3_{8..9} )
-
-inherit meson distutils-r1
-
-SRC_URI="
-   
https://github.com/adobe-type-tools/psautohint/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz
-   test? (
-   
https://github.com/adobe-type-tools/psautohint-testdata/archive/${COMMIT}.tar.gz
 -> psautohint-testdata-${COMMIT}.tar.gz
-   )
-"
-KEYWORDS="~amd64 ~x86"
-DESCRIPTION="A standalone version of AFDKO autohinter"
-HOMEPAGE="https://github.com/adobe-type-tools/psautohint;
-LICENSE="Apache-2.0"
-SLOT="0"
-
-RDEPEND=">=dev-python/fonttools-4.20[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-bininpath.diff"
-   "${FILESDIR}/${P}-no-build-library.patch"
-   "${FILESDIR}/${P}-no-werror.patch"
-)
-
-distutils_enable_tests pytest
-
-pkg_setup() {
-   local _v=$(ver_cut 4)
-   _v="$(ver_cut 1-3)${_v:0:1}$(ver_cut 5)"
-   export SETUPTOOLS_SCM_PRETEND_VERSION="${_v/p/.post}"
-}
-
-src_unpack() {
-   default
-   if [ -d "${WORKDIR}/psautohint-testdata-${COMMIT}" ]; then
-   mv "${WORKDIR}/psautohint-testdata-${COMMIT}"/* 
"${S}/tests/integration/data/" || die
-   fi
-}
-
-src_configure() {
-   MESON_BUILD_DIR="${WORKDIR}/${P}-build"
-   BUILD_DIR="${MESON_BUILD_DIR}" meson_src_configure
-   distutils-r1_src_configure
-}
-
-src_compile() {
-   BUILD_DIR="${MESON_BUILD_DIR}" meson_src_compile
-   distutils-r1_src_compile
-}
-
-python_compile() {
-   esetup.py build_py build_ext --library-dirs "${MESON_BUILD_DIR}"
-}
-
-src_install() {
-   BUILD_DIR="${MESON_BUILD_DIR}" meson_src_install
-   distutils-r1_src_install
-   dodoc doc/*
-}
-
-python_test() {
-   local -x PATH="${BUILD_DIR}/test/scripts:${MESON_BUILD_DIR}l:${PATH}"
-   local -x LD_LIBRARY_PATH="${MESON_BUILD_DIR}"
-   distutils_install_for_testing
-   epytest -vv \
-   --deselect 
tests/integration/test_hint.py::test_hashmap_old_version \
-   --deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/CJKSparseVar.subset.hinted.otf]
 \
-   --deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/bug816.hinted.otf]
 \
-   --deselect tests/integration/test_cli.py::test_multi_outpath \
-   --deselect 
tests/integration/test_cli.py::test_multi_different_formats \
-   || die
-}



[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/

2022-05-29 Thread Alessandro Barbieri
commit: 57799acd79bc137d82f5dbe206414577055fd23a
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun May 29 20:58:33 2022 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sun May 29 21:04:52 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=57799acd

dev-util/psautohint: enable py3.10

Closes: https://bugs.gentoo.org/848369
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-util/psautohint/psautohint-2.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/psautohint/psautohint-2.4.0.ebuild 
b/dev-util/psautohint/psautohint-2.4.0.ebuild
index 34273f758..675b06317 100644
--- a/dev-util/psautohint/psautohint-2.4.0.ebuild
+++ b/dev-util/psautohint/psautohint-2.4.0.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 COMMIT="1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23"
 DISTUTILS_IN_SOURCE_BUILD=1
 EMESON_SOURCE="${S}/libpsautohint"
-PYTHON_COMPAT=( python3_{8..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit meson distutils-r1
 



[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/

2022-03-18 Thread Alessandro Barbieri
commit: c28f06fc3ebcfe19d90b90996c9dd66e780db328
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sat Mar 19 01:34:56 2022 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sat Mar 19 01:34:56 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c28f06fc

dev-util/psautohint: add 2.4.0

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-util/psautohint/Manifest|  1 +
 dev-util/psautohint/psautohint-2.4.0.ebuild | 90 +
 2 files changed, 91 insertions(+)

diff --git a/dev-util/psautohint/Manifest b/dev-util/psautohint/Manifest
index a96fc7348..e77c073e2 100644
--- a/dev-util/psautohint/Manifest
+++ b/dev-util/psautohint/Manifest
@@ -1,2 +1,3 @@
 DIST psautohint-2.3.0.tar.gz 181570 BLAKE2B 
20127221ccbe890b363aba944ca19f6b126ba7c61f0b5e668288a12f93aebfe3541257e576f2ffce9bd935886f5cb9b4eb5c0dc08c0a8b1953484660fef8868a
 SHA512 
943ac93ea4b0c188135cf2146803c36a3e5aa5b2e14924252281f22f6fc4190b935bdd72785107bbaf36d7503f48fc952fb32cd6965791c4ebebc699c0d7c5f5
+DIST psautohint-2.4.0.tar.gz 181009 BLAKE2B 
bb6ed5ae6b800742d8d1061004bfb49a84e3b9c99977a653ef8eeccf38d9c03261be5b735df20ee93dcf712b8b6ade7a2391937f327206fc2e01f2b5bcbe9022
 SHA512 
dfc29d020bedf8bd546e395743befb390e9fb01a3025aa10357a32724c9a78236acd57e05300aa26be630c9d43edab8bda731dc4f51c0a07d0bef79112d952aa
 DIST psautohint-testdata-1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23.tar.gz 
21949984 BLAKE2B 
a5da67eb4b9f3d0ce5d86469bc0a5f771fa743198836db35121e9c62b66c8b8df00fef6e40e8832e33aee065fe3bdd0a24d1b590bce6fb66d7c43f6719236242
 SHA512 
03d4962958d3551ffdf99463d28723f6b43d42029843da1b40493b0bfc2e586ebf40db3a2497b36b5fde345de4b6998cfc1131c6fb4e8352b05fb59fc4e90e7f

diff --git a/dev-util/psautohint/psautohint-2.4.0.ebuild 
b/dev-util/psautohint/psautohint-2.4.0.ebuild
new file mode 100644
index 0..34273f758
--- /dev/null
+++ b/dev-util/psautohint/psautohint-2.4.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+COMMIT="1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23"
+DISTUTILS_IN_SOURCE_BUILD=1
+EMESON_SOURCE="${S}/libpsautohint"
+PYTHON_COMPAT=( python3_{8..9} )
+
+inherit meson distutils-r1
+
+DESCRIPTION="A standalone version of AFDKO autohinter"
+HOMEPAGE="
+   https://github.com/adobe-type-tools/psautohint
+   https://pypi.org/project/psautohint/
+"
+SRC_URI="
+   
https://github.com/adobe-type-tools/psautohint/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz
+   test? (
+   
https://github.com/adobe-type-tools/psautohint-testdata/archive/${COMMIT}.tar.gz
 -> psautohint-testdata-${COMMIT}.tar.gz
+   )
+"
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+# lxml, fs are indirect dependecies
+RDEPEND="
+   >=dev-python/fonttools-4.20[${PYTHON_USEDEP}]
+
+   dev-python/fs[${PYTHON_USEDEP}]
+   dev-python/lxml[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-bininpath.diff"
+   "${FILESDIR}/${PN}-2.3.0-no-build-library.patch"
+   "${FILESDIR}/${PN}-2.3.0-no-werror.patch"
+)
+
+distutils_enable_tests pytest
+
+pkg_setup() {
+   local _v=$(ver_cut 4)
+   _v="$(ver_cut 1-3)${_v:0:1}$(ver_cut 5)"
+   export SETUPTOOLS_SCM_PRETEND_VERSION="${_v/p/.post}"
+}
+
+src_unpack() {
+   default
+   if [ -d "${WORKDIR}/psautohint-testdata-${COMMIT}" ]; then
+   mv "${WORKDIR}/psautohint-testdata-${COMMIT}"/* 
"${S}/tests/integration/data/" || die
+   fi
+}
+
+src_configure() {
+   MESON_BUILD_DIR="${WORKDIR}/${P}-build"
+   BUILD_DIR="${MESON_BUILD_DIR}" meson_src_configure
+   distutils-r1_src_configure
+}
+
+src_compile() {
+   BUILD_DIR="${MESON_BUILD_DIR}" meson_src_compile
+   distutils-r1_src_compile
+}
+
+python_compile() {
+   esetup.py build_py build_ext --library-dirs "${MESON_BUILD_DIR}"
+}
+
+src_install() {
+   BUILD_DIR="${MESON_BUILD_DIR}" meson_src_install
+   distutils-r1_src_install
+   dodoc doc/*
+}
+
+python_test() {
+   local -x PATH="${BUILD_DIR}/test/scripts:${MESON_BUILD_DIR}l:${PATH}"
+   local -x LD_LIBRARY_PATH="${MESON_BUILD_DIR}"
+   distutils_install_for_testing
+   epytest -vv \
+   --deselect 
tests/integration/test_hint.py::test_hashmap_old_version \
+   --deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/CJKSparseVar.subset.hinted.otf]
 \
+   --deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/bug816.hinted.otf]
 \
+   --deselect tests/integration/test_cli.py::test_multi_outpath \
+   --deselect 
tests/integration/test_cli.py::test_multi_different_formats \
+   || die
+}



[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/

2021-10-03 Thread Alessandro Barbieri
commit: bad291cb81735352fc59051d381930e923e34971
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun Oct  3 22:48:25 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sun Oct  3 22:48:25 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bad291cb

dev-util/psautohint: deselect another test

Closes: https://bugs.gentoo.org/801028
Package-Manager: Portage-3.0.26, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-util/psautohint/psautohint-2.3.0.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-util/psautohint/psautohint-2.3.0.ebuild 
b/dev-util/psautohint/psautohint-2.3.0.ebuild
index 325ca9894..ba1cda307 100644
--- a/dev-util/psautohint/psautohint-2.3.0.ebuild
+++ b/dev-util/psautohint/psautohint-2.3.0.ebuild
@@ -76,5 +76,6 @@ python_test() {
--deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/CJKSparseVar.subset.hinted.otf]
 \
--deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/bug816.hinted.otf]
 \
--deselect tests/integration/test_cli.py::test_multi_outpath \
+   --deselect 
tests/integration/test_cli.py::test_multi_different_formats \
|| die
 }



[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/

2021-07-05 Thread Alessandro Barbieri
commit: b111fe7c378b9bac95f06beb189ab7de06d0bc31
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Tue Jul  6 01:07:33 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Tue Jul  6 01:08:14 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b111fe7c

dev-util/psautohint: deselect failing test

Closes: https://bugs.gentoo.org/800629
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-util/psautohint/psautohint-2.3.0.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-util/psautohint/psautohint-2.3.0.ebuild 
b/dev-util/psautohint/psautohint-2.3.0.ebuild
index 90713fbb3..325ca9894 100644
--- a/dev-util/psautohint/psautohint-2.3.0.ebuild
+++ b/dev-util/psautohint/psautohint-2.3.0.ebuild
@@ -75,5 +75,6 @@ python_test() {
--deselect 
tests/integration/test_hint.py::test_hashmap_old_version \
--deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/CJKSparseVar.subset.hinted.otf]
 \
--deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/bug816.hinted.otf]
 \
+   --deselect tests/integration/test_cli.py::test_multi_outpath \
|| die
 }



[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/

2021-06-19 Thread Alessandro Barbieri
commit: ed8ca21bb96e45138914ac1999525de31f01e545
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sat Jun 19 20:15:53 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sat Jun 19 21:53:04 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ed8ca21b

dev-util/psautohint: enable py3.9

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-util/psautohint/metadata.xml| 7 ++-
 dev-util/psautohint/psautohint-2.3.0.ebuild | 4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dev-util/psautohint/metadata.xml b/dev-util/psautohint/metadata.xml
index 6f49eba8f..a992e2a31 100644
--- a/dev-util/psautohint/metadata.xml
+++ b/dev-util/psautohint/metadata.xml
@@ -1,5 +1,10 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-
+
+
+
https://github.com/adobe-type-tools/psautohint/issues
+adobe-type-tools/psautohint
+psautohint
+
 

diff --git a/dev-util/psautohint/psautohint-2.3.0.ebuild 
b/dev-util/psautohint/psautohint-2.3.0.ebuild
index 0d30488bf..90713fbb3 100644
--- a/dev-util/psautohint/psautohint-2.3.0.ebuild
+++ b/dev-util/psautohint/psautohint-2.3.0.ebuild
@@ -6,7 +6,7 @@ EAPI=7
 COMMIT="1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23"
 DISTUTILS_IN_SOURCE_BUILD=1
 EMESON_SOURCE="${S}/libpsautohint"
-PYTHON_COMPAT=( python3_8 )
+PYTHON_COMPAT=( python3_{8..9} )
 
 inherit meson distutils-r1
 
@@ -37,7 +37,6 @@ pkg_setup() {
local _v=$(ver_cut 4)
_v="$(ver_cut 1-3)${_v:0:1}$(ver_cut 5)"
export SETUPTOOLS_SCM_PRETEND_VERSION="${_v/p/.post}"
-   MESON_BUILD_DIR="${WORKDIR}/${P}-build"
 }
 
 src_unpack() {
@@ -48,6 +47,7 @@ src_unpack() {
 }
 
 src_configure() {
+   MESON_BUILD_DIR="${WORKDIR}/${P}-build"
BUILD_DIR="${MESON_BUILD_DIR}" meson_src_configure
distutils-r1_src_configure
 }



[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/, dev-util/psautohint/files/

2021-06-17 Thread Alessandro Barbieri
commit: c949e2c93b6a3ab9394aa6cbb4c26cdbc684b646
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Fri Jun 18 01:19:07 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Fri Jun 18 02:16:54 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c949e2c9

dev-util/psautohint: initial import

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-util/psautohint/Manifest   |  2 +
 .../files/psautohint-2.3.0-no-build-library.patch  | 39 +++
 .../files/psautohint-2.3.0-no-werror.patch | 11 
 .../psautohint/files/psautohint-bininpath.diff | 10 +++
 dev-util/psautohint/metadata.xml   |  5 ++
 dev-util/psautohint/psautohint-2.3.0.ebuild| 77 ++
 6 files changed, 144 insertions(+)

diff --git a/dev-util/psautohint/Manifest b/dev-util/psautohint/Manifest
new file mode 100644
index 0..a96fc7348
--- /dev/null
+++ b/dev-util/psautohint/Manifest
@@ -0,0 +1,2 @@
+DIST psautohint-2.3.0.tar.gz 181570 BLAKE2B 
20127221ccbe890b363aba944ca19f6b126ba7c61f0b5e668288a12f93aebfe3541257e576f2ffce9bd935886f5cb9b4eb5c0dc08c0a8b1953484660fef8868a
 SHA512 
943ac93ea4b0c188135cf2146803c36a3e5aa5b2e14924252281f22f6fc4190b935bdd72785107bbaf36d7503f48fc952fb32cd6965791c4ebebc699c0d7c5f5
+DIST psautohint-testdata-1e4c5061d328105c4dcfcb6fdbc27ec49b3e9d23.tar.gz 
21949984 BLAKE2B 
a5da67eb4b9f3d0ce5d86469bc0a5f771fa743198836db35121e9c62b66c8b8df00fef6e40e8832e33aee065fe3bdd0a24d1b590bce6fb66d7c43f6719236242
 SHA512 
03d4962958d3551ffdf99463d28723f6b43d42029843da1b40493b0bfc2e586ebf40db3a2497b36b5fde345de4b6998cfc1131c6fb4e8352b05fb59fc4e90e7f

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
new file mode 100644
index 0..44698b6af
--- /dev/null
+++ b/dev-util/psautohint/files/psautohint-2.3.0-no-build-library.patch
@@ -0,0 +1,39 @@
+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
+--- psautohint-2.3.0/setup.py  2021-06-18 02:49:14.569282664 +0200
 /var/tmp/portage/dev-util/psautohint-2.3.0/work/psautohint-2.3.0/setup.py  
2021-06-18 02:51:12.569250040 +0200
+@@ -192,7 +192,7 @@
+ # If we were asked to build any C/C++ libraries, make sure that the
+ # directory where we put them is in the library search path for
+ # linking executables.
+-if self.distribution.has_c_libraries():
++if False:
+ build_clib = self.get_finalized_command('build_clib')
+ self.libraries.extend(build_clib.get_library_names() or [])
+ self.library_dirs.append(build_clib.build_clib)
+@@ -432,15 +432,13 @@
+ class CustomBuildExt(_build_ext):
+ 
+ def run(self):
+-if self.distribution.has_c_libraries():
++if False:
+ self.run_command("build_clib")
+ _build_ext.run(self)
+ 
+ 
+ cmdclass = {
+-'build_clib': CustomBuildClib,
+ 'build_ext': CustomBuildExt,
+-'build_exe': build_exe,
+ }
+ 
+ 
+@@ -572,9 +570,7 @@
+   license='Apache License, Version 2.0',
+   package_dir={'': 'python'},
+   packages=['psautohint'],
+-  libraries=libraries,
+   ext_modules=ext_modules,
+-  executables=executables,
+   entry_points={
+   'console_scripts': [
+   "psautohint = psautohint.__main__:main",

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
new file mode 100644
index 0..5032e5782
--- /dev/null
+++ b/dev-util/psautohint/files/psautohint-2.3.0-no-werror.patch
@@ -0,0 +1,11 @@
+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
+--- psautohint-2.3.0/libpsautohint/meson.build 2021-06-18 02:49:14.557282566 
+0200
 
/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
+@@ -21,7 +21,6 @@
+   '-Wstringop-truncation',
+   '-Wunreachable-code-break',
+   '-Wunused-macros',
+-  '-Werror',
+ ]
+ 
+ add_global_arguments(cc.get_supported_arguments(cflags), language : 'c')

diff --git a/dev-util/psautohint/files/psautohint-bininpath.diff 
b/dev-util/psautohint/files/psautohint-bininpath.diff
new file mode 100644
index 0..fe6b5df3c
--- /dev/null
+++ b/dev-util/psautohint/files/psautohint-bininpath.diff
@@ -0,0 +1,10 @@
+--- a/setup.py
 b/setup.py
+@@ -564,6 +564,7 @@ ext_modules = [
+ sources=[
+ "python/psautohint/_psautohint.c",
+ ],
++libraries = ['psautohint'],
+ ),
+ ]
+ 

diff --git a/dev-util/psautohint/metadata.xml b/dev-util/psautohint/metadata.xml
new file mode 100644
index 0..6f49eba8f
--- /dev/null
+++ b/dev-util/psautohint/metadata.xml
@@ -0,0 +1,5 @@
+

[gentoo-commits] repo/proj/guru:dev commit in: dev-util/psautohint/

2021-06-17 Thread Alessandro Barbieri
commit: d29279e2c98600b8e962cc54d95f2a282547b782
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Fri Jun 18 01:54:31 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Fri Jun 18 02:16:54 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d29279e2

dev-util/psautohint: deselect one more test

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-util/psautohint/psautohint-2.3.0.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-util/psautohint/psautohint-2.3.0.ebuild 
b/dev-util/psautohint/psautohint-2.3.0.ebuild
index 0684247cb..0d30488bf 100644
--- a/dev-util/psautohint/psautohint-2.3.0.ebuild
+++ b/dev-util/psautohint/psautohint-2.3.0.ebuild
@@ -73,5 +73,7 @@ python_test() {
distutils_install_for_testing
epytest -vv \
--deselect 
tests/integration/test_hint.py::test_hashmap_old_version \
+   --deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/CJKSparseVar.subset.hinted.otf]
 \
+   --deselect 
tests/integration/test_mmhint.py::test_vfotf[tests/integration/data/vf_tests/bug816.hinted.otf]
 \
|| die
 }