feat: add san francisco font

This commit is contained in:
Jared Allard 2020-12-19 13:09:46 -08:00
parent c7173d84be
commit b63c2e8922
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST SFPro-1.0.zip 6788475 BLAKE2B 089adbcb835424e006bb7326db5f4b99033126a842384c782581a547008b5669cf1c801e27e8f15e038463c81ee4c6e4539bb7c0b40abf5b90ae6b7e269a9df8 SHA512 7001638787c7580a7cd1c40d92af8c680187ebfad832fe0ec4e97ccc15d925a9928e97b1e5bfd39db1789eb955bf0fcbb954a990b2ef2b56b41da7a13a6bd6cd
EBUILD san-francisco-otf-1.0.ebuild 648 BLAKE2B a081a95c8504b5b2e072f95194a9688176790efd43b4674ecf848421a4e52712ca850f226e68c1e060f129f8cae64b3b02e1fd90e96054dcffe490b0ef4f8715 SHA512 a2b87eca1a7e799359a879fa1ef66b421c5a41bc70732608998c1326209e80236ba017f9dcac41324ed0aa887be205881e43a45cf8fd09719255a55c1ce9fc67

View file

@ -0,0 +1,6 @@
<pkgmetadata>
<maintainer type="person">
<email>jaredallard@outlook.com</email>
<name>jaredallard</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,27 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit font
DESCRIPTION="The system font for macOS, iOS, watchOS and tvOS"
HOMEPAGE="https://developer.apple.com/fonts/"
SRC_URI="https://developer.apple.com/fonts/downloads/SFPro.zip -> SFPro-${PV}.zip"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
LICENSE="APSL-2"
RESTRICT="mirror"
S="${WORKDIR}"
FONT_S="${S}/Library/Fonts"
FONT_SUFFIX="otf"
DEPEND="app-arch/libarchive[bzip2]"
src_unpack() {
default
bsdtar xvPf "${WORKDIR}"/SFPro/'San Francisco Pro.pkg' || die
bsdtar xvPf "${WORKDIR}"/'San Francisco Pro.pkg/Payload' || die
}