summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2024-02-20 10:48:15 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2024-02-20 10:48:15 +0300
commit64224494d6b7c0805d0323ab5356ab5d95453796 (patch)
tree052c22bc6fd0afa0e0d269e81aa01d46f15daacb /media-fonts
parentdev-tex/cpssp: Drop (diff)
downloadalexxy-64224494d6b7c0805d0323ab5356ab5d95453796.tar.gz
alexxy-64224494d6b7c0805d0323ab5356ab5d95453796.tar.bz2
alexxy-64224494d6b7c0805d0323ab5356ab5d95453796.zip
Add opengostfont
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/opengostfont/Manifest1
-rw-r--r--media-fonts/opengostfont/files/exception.patch29
-rw-r--r--media-fonts/opengostfont/opengostfont-1.0.ebuild20
3 files changed, 50 insertions, 0 deletions
diff --git a/media-fonts/opengostfont/Manifest b/media-fonts/opengostfont/Manifest
new file mode 100644
index 0000000..8ff16b7
--- /dev/null
+++ b/media-fonts/opengostfont/Manifest
@@ -0,0 +1 @@
+DIST opengosta.zip 35195 BLAKE2B 1c08cbd8e68782141230d4a738a1d7a691d9cc6f7370f4489b644dbd57a181e5a5dda3a2d576fc458a4e11ccfa62d861331a897b1904f1538fc5a4d6e9db1ac9 SHA512 040de052429640591aa68c54e497bb25a550a7f46538e6f7ae3cabf8370922c414af41b437ae0c3bad192f321746a877864eede3335ea5f33a4908deda065f52
diff --git a/media-fonts/opengostfont/files/exception.patch b/media-fonts/opengostfont/files/exception.patch
new file mode 100644
index 0000000..3428d52
--- /dev/null
+++ b/media-fonts/opengostfont/files/exception.patch
@@ -0,0 +1,29 @@
+diff -u a/genfonts.py b/genfonts.py
+--- a/genfonts.py 2020-06-07 18:23:07.934731665 +0300
++++ b/genfonts.py 2020-06-07 18:24:06.205790361 +0300
+@@ -63,7 +63,7 @@
+ try:
+ font.generate(fontprefix+".ttf", flags=("opentype", "old-kern",
+ "PfEd-colors", "PfEd-lookups"))
+- except EnvironmentError, e:
++ except EnvironmentError as e:
+ print("!!! %s" % e, file=sys.stderr)
+ sys.exit(EX_GENFAIL)
+ elif type == FT_CAD:
+@@ -86,14 +86,14 @@
+ try:
+ font.generate(outfile, flags=("opentype", "old-kern",
+ "PfEd-colors", "PfEd-lookups"))
+- except EnvironmentError, e:
++ except EnvironmentError as e:
+ print("!!! %s" % e, file=sys.stderr)
+ sys.exit(EX_GENFAIL)
+ else:
+ try:
+ font.generate(fontprefix+".otf", flags=("opentype", "PfEd-colors",
+ "PfEd-lookups"))
+- except EnvironmentError, e:
++ except EnvironmentError as e:
+ print("!!! %s" % e, file=sys.stderr)
+ sys.exit(EX_GENFAIL)
+
diff --git a/media-fonts/opengostfont/opengostfont-1.0.ebuild b/media-fonts/opengostfont/opengostfont-1.0.ebuild
new file mode 100644
index 0000000..b72a681
--- /dev/null
+++ b/media-fonts/opengostfont/opengostfont-1.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit font
+
+DESCRIPTION="Open-source version of the fonts by Russian standard GOST 2.304-81"
+HOMEPAGE="https://fontstorage.com/font/nikita-volchenkov/opengost-a"
+SRC_URI="https://webfonts.ru/original/opengosta/opengosta.zip"
+S="${WORKDIR}"
+
+LICENSE="OFL-1.10"
+SLOT="0"
+KEYWORDS="amd64 arm64 x86"
+
+DEPEND="app-arch/unzip"
+
+#FONT_S="OpenGostTypeA-Regular.ttf"
+FONT_SUFFIX="ttf"