forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-fonts/source-code-pro: new package, add 2.038
media-fonts/source-pro installs 3 font families. A while ago the serif and sans-serif fonts were renamed (and will be renamed again) while the monospace font kept the same name. Furthermore, the fonts now have the major version in their name. The fonts will be split into their own packages and the old package will be masked since it isn't bump-able. Bug: https://bugs.gentoo.org/865103 Upstream-announcement: adobe-fonts/source-serif#77 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
- Loading branch information
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST source-code-pro-2.038.tar.gz 6818951 BLAKE2B b133aa317bf5057e8b346d81491bf08c0c257066ed05b2001a9e327308a63a3ef943da3b12b5933c217c31839750fbb3947b4f566f48aac6e88c7096cbbf82cd SHA512 96981af2a470027a372ab8a02265d34a6b2a810c4cca0b498b01e613019a04c9760d95e21fb740af2c7fff076098bb36f5c282bf9b8f1875eed72ed70e4b3ac9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> | ||
<fontconfig> | ||
<alias> | ||
<family>Source Code Pro</family> | ||
<default> | ||
<family>monospace</family> | ||
</default> | ||
</alias> | ||
<alias> | ||
<family>monospace</family> | ||
<prefer> | ||
<family>Source Code Pro</family> | ||
</prefer> | ||
</alias> | ||
</fontconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="project"> | ||
<email>fonts@gentoo.org</email> | ||
<name>Fonts</name> | ||
</maintainer> | ||
<stabilize-allarches /> | ||
<upstream> | ||
<remote-id type="github">adobe-fonts/source-code-pro</remote-id> | ||
</upstream> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit font | ||
|
||
REALV="2.038R-ro/1.058R-it/1.018R-VAR" | ||
|
||
DESCRIPTION="Monospaced font family for user interface and coding environments" | ||
HOMEPAGE="https://adobe-fonts.github.io/source-code-pro/" | ||
SRC_URI="https://github.com/adobe-fonts/source-code-pro/archive/${REALV}.tar.gz -> source-code-pro-${PV}.tar.gz" | ||
S="${WORKDIR}/${PN}-${REALV//\//-}" | ||
|
||
LICENSE="OFL-1.1" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" | ||
|
||
RESTRICT="binchecks strip" | ||
|
||
RDEPEND=" | ||
media-libs/fontconfig | ||
!media-fonts/source-pro | ||
" | ||
|
||
FONT_CONF=( "${FILESDIR}"/63-${PN}.conf ) | ||
FONT_SUFFIX="otf" | ||
|
||
src_prepare() { | ||
default | ||
mv OTF/*.otf . || die | ||
} |