diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
commit | 8d5dbd847cbc704a6a06405856e94b461011afe3 (patch) | |
tree | 4d26462d027b14926335894749d2e01d982234d0 /media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild | |
parent | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff) |
gentoo resync : 27.03.2021
Diffstat (limited to 'media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild')
-rw-r--r-- | media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild | 79 |
1 files changed, 39 insertions, 40 deletions
diff --git a/media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild b/media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild index e2f80f9e5cdc..bd3155d8c0f8 100644 --- a/media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild +++ b/media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild @@ -1,8 +1,9 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit eutils font xdg-utils +EAPI=7 + +inherit font xdg-utils DESCRIPTION="Chinese TrueType Arphic Fonts" HOMEPAGE="http://www.arphic.com.tw/ @@ -13,67 +14,65 @@ SRC_URI="mirror://gnu/non-gnu/chinese-fonts-truetype/gkai00mp.ttf.gz mirror://gnu/non-gnu/chinese-fonts-truetype/gbsn00lp.ttf.gz mirror://ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_${PV}.orig.tar.gz mirror://ubuntu/pool/main/t/ttf-arphic-ukai/ttf-arphic-ukai_${PV}.orig.tar.gz" +S="${WORKDIR}" LICENSE="Arphic" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux" IUSE="" -DEPEND="media-gfx/fontforge" +# No binaries, only fonts +RESTRICT="strip binchecks" -S="${WORKDIR}" +BDEPEND="media-gfx/fontforge" -#No binaries, only fonts -RESTRICT="strip binchecks" +PATCHES=( "${FILESDIR}"/${P}-fontconfig.patch ) -FONT_S="${S}" +FONT_CONF=( + ukai/25-ttf-arphic-ukai-render.conf + ukai/35-ttf-arphic-ukai-aliases.conf + ukai/41-ttf-arphic-ukai.conf + ukai/75-ttf-arphic-ukai-select.conf + ukai/90-ttf-arphic-ukai-embolden.conf + uming/25-ttf-arphic-uming-bitmaps.conf + uming/25-ttf-arphic-uming-render.conf + uming/35-ttf-arphic-uming-aliases.conf + uming/41-ttf-arphic-uming.conf + uming/64-ttf-arphic-uming.conf + uming/90-ttf-arphic-uming-embolden.conf +) FONT_SUFFIX="ttc ttf" -FONT_CONF=( "25-ttf-arphic-ukai-render.conf" - "35-ttf-arphic-ukai-aliases.conf" - "41-ttf-arphic-ukai.conf" - "75-ttf-arphic-ukai-select.conf" - "90-ttf-arphic-ukai-embolden.conf" - "25-ttf-arphic-uming-bitmaps.conf" - "25-ttf-arphic-uming-render.conf" - "35-ttf-arphic-uming-aliases.conf" - "41-ttf-arphic-uming.conf" - "64-ttf-arphic-uming.conf" - "90-ttf-arphic-uming-embolden.conf" ) +# ensure that we don't overwrite one font's docs with another's src_unpack() { - #All of this is to ensure that we don't overwrite one font's docs - #with another's. - unpack {gk,bk}ai00mp.ttf.gz {bsmi,gbsn}00lp.ttf.gz - mkdir "${WORKDIR}"/{uming,ukai} - - cd "${WORKDIR}"/uming - unpack ttf-arphic-uming_${PV}.orig.tar.gz - cd "${WORKDIR}"/ukai - unpack ttf-arphic-ukai_${PV}.orig.tar.gz + do_unpack() { + mkdir ${1} || die + pushd ${1} > /dev/null || die + unpack ttf-arphic-${1}_${PV}.orig.tar.gz + popd > /dev/null || die + mv ${1}/${1}.ttc . || die + } + do_unpack ukai + do_unpack uming } src_prepare() { - cd "${WORKDIR}" - find "${WORKDIR}" -mindepth 2 -maxdepth 2 -name '*.ttc' -exec mv {} . \; - find "${WORKDIR}" -name '*.conf' -exec mv "{}" . \; - epatch "${FILESDIR}"/${P}-fontconfig.patch + default xdg_environment_reset fontforge -script "${FILESDIR}"/${P}.pe b*.ttf || die } src_install() { - local myfont doc - for myfont in ukai uming - do - cd "${WORKDIR}"/${myfont} - docinto ${myfont} + font_src_install + + do_doc() { for doc in FONTLOG KNOWN_ISSUES TODO README README.Bitmap NEWS CONTRIBUTERS do - [ -f ${doc} ] && dodoc ${doc} + [[ -f ${1}/${doc} ]] && newdoc ${1}/${doc} ${1}.${doc} done - done - cd "${S}" - font_src_install + } + do_doc ukai + do_doc uming } |