1 |
commit: 21a729db6d86128c74f275894bd1bd5bbf61f786 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Apr 17 02:18:49 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sat Apr 17 02:20:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=21a729db |
7 |
|
8 |
media-fonts/3270font: make the test work |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
media-fonts/3270font/3270font-2.2.1-r1.ebuild | 41 ++++++++++++++++++++++ |
14 |
.../3270font/files/remove-useless-tests.patch | 20 +++++++++++ |
15 |
2 files changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/media-fonts/3270font/3270font-2.2.1-r1.ebuild b/media-fonts/3270font/3270font-2.2.1-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000..90792efaf |
20 |
--- /dev/null |
21 |
+++ b/media-fonts/3270font/3270font-2.2.1-r1.ebuild |
22 |
@@ -0,0 +1,41 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI="7" |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{7,8} ) |
29 |
+inherit font python-any-r1 |
30 |
+ |
31 |
+DESCRIPTION="A IBM 3270 Terminal font in a modern format" |
32 |
+HOMEPAGE="https://github.com/rbanffy/3270font" |
33 |
+SRC_URI="https://github.com/rbanffy/3270font/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="BSD CC-BY-SA-3.0 GPL-3 OFL" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64" |
38 |
+IUSE="test" |
39 |
+DOCS=( CHANGELOG.md README.md ) |
40 |
+HTML_DOCS=( "DESCRIPTION.en_us.html" ) |
41 |
+PATCHES=( "${FILESDIR}/remove-useless-tests.patch" ) |
42 |
+RDEPEND=" |
43 |
+ media-gfx/fontforge |
44 |
+" |
45 |
+DEPEND=" |
46 |
+ ${PYTHON_DEPS} |
47 |
+ ${RDEPEND} |
48 |
+ test? ( |
49 |
+ dev-python/ipdb |
50 |
+ dev-python/pillow |
51 |
+ ) |
52 |
+" |
53 |
+ |
54 |
+FONT_S="${S}/build" |
55 |
+FONT_SUFFIX="otf ttf pfm woff" |
56 |
+ |
57 |
+src_compile() { |
58 |
+ emake font |
59 |
+} |
60 |
+ |
61 |
+src_test() { |
62 |
+ emake test |
63 |
+} |
64 |
|
65 |
diff --git a/media-fonts/3270font/files/remove-useless-tests.patch b/media-fonts/3270font/files/remove-useless-tests.patch |
66 |
new file mode 100644 |
67 |
index 000000000..56fed49f7 |
68 |
--- /dev/null |
69 |
+++ b/media-fonts/3270font/files/remove-useless-tests.patch |
70 |
@@ -0,0 +1,20 @@ |
71 |
+--- a/Makefile 2021-04-17 04:14:57.220030609 +0200 |
72 |
++++ b/Makefile 2021-04-17 04:15:23.615508374 +0200 |
73 |
+@@ -73,17 +73,11 @@ |
74 |
+ @./fontbakery_checks.sh |
75 |
+ |
76 |
+ skimpytest: font ## Runs the minimal tests and verifies the ZIP file mentioned in the README is present. |
77 |
+- @flake8 *.py |
78 |
+- @isort --check-only *.py |
79 |
+- @black --check -l79 *.py |
80 |
+ @fontlint ${BUILD_DIR}/3270-Regular.otf |
81 |
+ @fontlint ${BUILD_DIR}/3270-Regular.ttf |
82 |
+ @fontlint ${BUILD_DIR}/3270-Regular.woff |
83 |
+ @fontlint ${BUILD_DIR}/3270SemiCondensed-Regular.ttf |
84 |
+ @fontlint ${BUILD_DIR}/3270Condensed-Regular.ttf |
85 |
+- @wget --spider $(shell grep -Eo \ |
86 |
+- 'https://3270font.s3.amazonaws.com/3270_fonts_[^/"]+\.zip' \ |
87 |
+- README.md) |
88 |
+ |
89 |
+ test: skimpytest ## Generates and checks font files |
90 |
+ # These are tests that fail on Travis (because their fontlint can't ignore |