diff options
author | Matthew Smith <matthew@gentoo.org> | 2022-12-23 10:02:59 +0000 |
---|---|---|
committer | Matthew Smith <matthew@gentoo.org> | 2022-12-23 10:04:09 +0000 |
commit | f28cdfba36771d2f8d6e417f43ad06e089625af9 (patch) | |
tree | 95982489a9b034f94ed2cfb29f8cc58fe54c7147 /dev-lang | |
parent | media-gfx/entangle: Add := to libraw dep (diff) | |
download | gentoo-f28cdfba36771d2f8d6e417f43ad06e089625af9.tar.gz gentoo-f28cdfba36771d2f8d6e417f43ad06e089625af9.tar.bz2 gentoo-f28cdfba36771d2f8d6e417f43ad06e089625af9.zip |
dev-lang/nasm: add 2.16.01
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/nasm/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/nasm/nasm-2.16.01.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-lang/nasm/Manifest b/dev-lang/nasm/Manifest index 43b1e8d6ceac..3dbd070aabb3 100644 --- a/dev-lang/nasm/Manifest +++ b/dev-lang/nasm/Manifest @@ -1 +1,2 @@ DIST nasm-2.15.05.tar.xz 995732 BLAKE2B a41434965c2125577b762d907a0a3c251c75d9f9beac230fba4099182c7f7beb08c6d2c05c2432b0dc8ba829f24077f44c3096faea9bd0a533250e6dbbfaef35 SHA512 512f90a2584f1c5811429274b97c64a2cedf37b9fdeffb1bcd0ea64afd9ecc19a2d7877ca8f1e05393aa324153fc9f39ea51dacbf8d25a7d5a2d7728c925dba7 +DIST nasm-2.16.01.tar.xz 1017732 BLAKE2B 0f7e96648e3db6fa4a8e10a89885f61cab7d79af25adbcc9d4706b3af61206c3cae024b7f873d636f5c1b2cb34ce5e7fbecc16af9b59086e9a1f49fb37c59670 SHA512 51fccb5639ce019d9c423c0f279750ffbd74c64cd41dd3b185d1aa1a1aaed79c5d3cd8d4bebbc13ee249a375ed27457ea2abde1a4dbb24d354598fffd1254833 diff --git a/dev-lang/nasm/nasm-2.16.01.ebuild b/dev-lang/nasm/nasm-2.16.01.ebuild new file mode 100644 index 000000000000..0516affa1974 --- /dev/null +++ b/dev-lang/nasm/nasm-2.16.01.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="groovy little assembler" +HOMEPAGE="https://www.nasm.us/" +SRC_URI="https://www.nasm.us/pub/nasm/releasebuilds/${PV/_}/${P/_}.tar.xz" +S="${WORKDIR}"/${P/_} + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ia64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +# [fonts note] doc/psfonts.ph defines ordered list of font preference. +# Currently 'media-fonts/source-pro' is most preferred and is able to +# satisfy all 6 font flavours: tilt, chapter, head, etc. +BDEPEND=" + dev-lang/perl + doc? ( + app-text/ghostscript-gpl + dev-perl/Font-TTF + dev-perl/Sort-Versions + media-fonts/source-code-pro + media-fonts/source-sans:3 + virtual/perl-File-Spec + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.15-bsd-cp-doc.patch +) + +src_prepare() { + default + + # https://bugs.gentoo.org/870214 + # During the split of media-fonts/source-pro, the source-sans files + # were renamed. Currently depend on media-fonts/source-sans:3 which works + # with this sed. + sed -i 's/SourceSansPro/SourceSans3/g' doc/psfonts.ph || die +} + +src_compile() { + default + use doc && emake doc +} + +src_install() { + default + emake DESTDIR="${D}" install $(usex doc install_doc '') +} |