Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/nasm/
Date: Thu, 10 May 2018 22:09:37
Message-Id: 1525990167.aa35a17bd1114859c109384a81bf1b6c773a6253.slyfox@gentoo
1 commit: aa35a17bd1114859c109384a81bf1b6c773a6253
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 10 22:09:13 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu May 10 22:09:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa35a17b
7
8 dev-lang/nasm: switch to media-fonts/source-pro fonts
9
10 nasm has an ordered list of font preference. media-fonts/clearsans
11 alone is not enough to satisfy all nasm needs (see doc/psfonts.ph).
12
13 Use media-fonts/source-pro instead. This also happens to fix font
14 width in final generated .pdf.
15
16 Reported-by: Juergen Rose
17 Closes: https://bugs.gentoo.org/639038
18 Package-Manager: Portage-2.3.36, Repoman-2.3.9
19
20 dev-lang/nasm/nasm-2.13.03-r1.ebuild | 50 ++++++++++++++++++++++++++++++++++++
21 1 file changed, 50 insertions(+)
22
23 diff --git a/dev-lang/nasm/nasm-2.13.03-r1.ebuild b/dev-lang/nasm/nasm-2.13.03-r1.ebuild
24 new file mode 100644
25 index 00000000000..c0c02a3bcd1
26 --- /dev/null
27 +++ b/dev-lang/nasm/nasm-2.13.03-r1.ebuild
28 @@ -0,0 +1,50 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +
34 +inherit flag-o-matic
35 +
36 +DESCRIPTION="groovy little assembler"
37 +HOMEPAGE="http://www.nasm.us/"
38 +SRC_URI="http://www.nasm.us/pub/nasm/releasebuilds/${PV/_}/${P/_}.tar.xz"
39 +
40 +LICENSE="BSD-2"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos"
43 +IUSE="doc"
44 +
45 +# [fonts note] doc/psfonts.ph defines ordered list of font preference.
46 +# Currently 'media-fonts/source-pro' is most preferred and is able to
47 +# satisfy all 6 font flavours: tilt, chapter, head, etc.
48 +DEPEND="
49 + dev-lang/perl
50 + doc? (
51 + app-text/ghostscript-gpl
52 + dev-perl/Font-TTF
53 + dev-perl/Sort-Versions
54 + media-fonts/source-pro
55 + virtual/perl-File-Spec
56 + )
57 +"
58 +
59 +S=${WORKDIR}/${P/_}
60 +PATCHES=(
61 + "${FILESDIR}"/${PN}-2.13.01-fix-docdir.patch
62 + "${FILESDIR}"/${PN}-2.13.01-gcc-8.patch
63 +)
64 +
65 +src_configure() {
66 + strip-flags
67 + default
68 +}
69 +
70 +src_compile() {
71 + default
72 + use doc && emake doc
73 +}
74 +
75 +src_install() {
76 + default
77 + emake DESTDIR="${D}" install_rdf $(usex doc install_doc '')
78 +}