diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2024-02-20 10:48:15 +0300 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2024-02-20 10:48:15 +0300 |
commit | 64224494d6b7c0805d0323ab5356ab5d95453796 (patch) | |
tree | 052c22bc6fd0afa0e0d269e81aa01d46f15daacb | |
parent | dev-tex/cpssp: Drop (diff) | |
download | alexxy-64224494d6b7c0805d0323ab5356ab5d95453796.tar.gz alexxy-64224494d6b7c0805d0323ab5356ab5d95453796.tar.bz2 alexxy-64224494d6b7c0805d0323ab5356ab5d95453796.zip |
Add opengostfont
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
-rw-r--r-- | licenses/OFL-1.10 | 97 | ||||
-rw-r--r-- | media-fonts/opengostfont/Manifest | 1 | ||||
-rw-r--r-- | media-fonts/opengostfont/files/exception.patch | 29 | ||||
-rw-r--r-- | media-fonts/opengostfont/opengostfont-1.0.ebuild | 20 |
4 files changed, 147 insertions, 0 deletions
diff --git a/licenses/OFL-1.10 b/licenses/OFL-1.10 new file mode 100644 index 0000000..40bd8a6 --- /dev/null +++ b/licenses/OFL-1.10 @@ -0,0 +1,97 @@ +Copyright (c) <dates>, <Copyright Holder> (<URL|email>), +with Reserved Font Name <Reserved Font Name>. +Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>), +with Reserved Font Name <additional Reserved Font Name>. +Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>). + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. 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" |