summaryrefslogtreecommitdiff
blob: 4dd03c3cde5fc6740eebf639ddde807a2c196597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit font

MY_P=${P/_/-}
MY_P=${MY_P/-fonts/}
DESCRIPTION="fonts gpl'd by Han The Thanh, based on URW++ fonts with Vietnamese glyphs added"
# Check updates on:
# http://vntex.sf.net/fonts/urwvn-ttf/download
# https://sourceforge.net/projects/vntex/files
HOMEPAGE="http://vntex.sf.net"
SRC_URI="mirror://sourceforge/project/vntex/urwvn-ttf/${MY_P}-ttf.tar.bz2"

LICENSE="GPL-2 Aladdin" # see bug #434262
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ppc s390 sparc x86"
IUSE=""

S="${WORKDIR}/${MY_P}-ttf"
FONT_SUFFIX="ttf"
FONT_S=${S}
FONT_CONF=( "${FILESDIR}/65-urwvn.conf" )

pkg_postinst() {
	font_pkg_postinst
	ewarn 'For legal reasons "Vn Utopia" font was renamed to "Vntopia".'
	ewarn 'If you configured some programs to use "Vn Utopia", please,'
	ewarn 'enable aliases (65-urwvn.conf) with `eselect fontconfig`.'
}