Diff urw-fonts-2.4.9 with a urw-fonts-20230503

/usr/portage/media-fonts/urw-fonts/urw-fonts-20230503.ebuild 2023-10-09 14:52:31.616368404 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5
inherit font
5 6

  
6
# At some point URW++ released fonts under GPL license. After that they were took
7
# and improved by Valek Filippov and this work was somehow related with AFPL...
8
# At least it can be found on their svn server:
9
# http://svn.ghostscript.com/ghostscript/trunk/urw-fonts/
10

  
11
# Also, some time ago, sources where published on sf.net:
12
# https://sourceforge.net/projects/gs-fonts/files/
13
# At this point this package was published on a nuber of other sites
14
# (gimp.org/cups.org) and media-fonts/gnu-gs-fonts-std was added to the tree.
15
# But nobody use that old releases any mover and everybody syncs with
16
# svn.ghostscript.com. The most recent tag there is:
17
# http://svn.ghostscript.com/ghostscript/tags/urw-fonts-1.0.7pre44/
18

  
19
# But note that version we have is different from upstream tag. This happened
20
# because we started to use redhat versions and followed their versioning. It's
21
# hard to say why they use such strange version since they also sync with
22
# svn.ghostscript.com. Redhat's ChangeLog states:
23
# Tue Jan 8 23:00:00 2008 Than Ngo 2.4-2
24
#  - update to 1.0.7pre44
25

  
26
inherit estack rpm font
27

  
28
MY_PV=$(ver_rs 2 -)
29

  
30
DESCRIPTION="free good quality fonts gpl'd by URW++"
31
HOMEPAGE="http://www.urwpp.de/"
32
SRC_URI="mirror://gentoo/${PN}-${MY_PV}.fc13.src.rpm"
7
DESCRIPTION="(URW)++ base 35 font set"
8
HOMEPAGE="https://github.com/ArtifexSoftware/urw-base35-fonts"
9
COMMIT="3c0ba3b5687632dfc66526544a4e811fe0ec0cd9"
10
SRC_URI="https://github.com/ArtifexSoftware/urw-base35-fonts/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
33 11

  
34
LICENSE="GPL-2"
12
LICENSE="AGPL-3"
35 13
SLOT="0"
36 14
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
37 15

  
38
RDEPEND="
39
	!media-fonts/gnu-gs-fonts-std
40
	!media-fonts/gnu-gs-fonts-other"
16
S="${WORKDIR}/urw-base35-fonts-${COMMIT}"
41 17

  
42
S="${WORKDIR}"
43

  
44
DOCS="ChangeLog README*"
45
FONT_S="${S}"
46
FONT_SUFFIX="afm pfb pfm"
47

  
48
pkg_postinst() {
49
	font_pkg_postinst
18
FONT_S="${S}/fonts"
19
FONT_SUFFIX="afm otf ttf"
20
FONT_PRIORITY="61" # Same as in Fedora
21
FONT_CONF=(
22
	fontconfig/${FONT_PRIORITY}-urw-bookman.conf
23
	fontconfig/${FONT_PRIORITY}-urw-c059.conf
24
	fontconfig/${FONT_PRIORITY}-urw-d050000l.conf
25
	fontconfig/${FONT_PRIORITY}-urw-fallback-backwards.conf
26
	fontconfig/${FONT_PRIORITY}-urw-fallback-generics.conf
27
	fontconfig/${FONT_PRIORITY}-urw-fallback-specifics.conf
28
	fontconfig/${FONT_PRIORITY}-urw-gothic.conf
29
	fontconfig/${FONT_PRIORITY}-urw-nimbus-mono-ps.conf
30
	fontconfig/${FONT_PRIORITY}-urw-nimbus-roman.conf
31
	fontconfig/${FONT_PRIORITY}-urw-nimbus-sans-narrow.conf
32
	fontconfig/${FONT_PRIORITY}-urw-nimbus-sans.conf
33
	fontconfig/${FONT_PRIORITY}-urw-p052.conf
34
	fontconfig/${FONT_PRIORITY}-urw-standard-symbols-ps.conf
35
	fontconfig/${FONT_PRIORITY}-urw-z003.conf
36
)
37

  
38
src_prepare() {
39
	default
40
	cd "${S}"/fontconfig
41
	for f in *.conf ; do
42
		mv "${f}" "${FONT_PRIORITY}-${f}"
43
	done
44
}
50 45

  
51
	elog "If you upgraded from ${PN}-2.1-r2 some fonts will look a bit"
52
	elog "different. Take a look at bug #208990 if interested."
46
src_install() {
47
	font_src_install
48
	insinto /usr/share/metainfo
49
	doins appstream/*.xml
53 50
}
Thank you!