mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
nasm: update to 2.16.03, adopt.
This commit is contained in:
parent
aef8611e13
commit
5acdec2723
3 changed files with 45 additions and 29 deletions
1
srcpkgs/nasm-doc
Symbolic link
1
srcpkgs/nasm-doc
Symbolic link
|
@ -0,0 +1 @@
|
|||
nasm
|
|
@ -1,24 +0,0 @@
|
|||
# Template file for 'nasm-doc'
|
||||
# Separate to avoid dependency cycles; keep in sync with nasm.
|
||||
pkgname=nasm-doc
|
||||
version=2.16.01
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
make_build_args="doc"
|
||||
hostmakedepends="groff perl perl-Font-TTF perl-IO-String perl-Sort-Versions
|
||||
ghostscript source-sans-pro liberation-fonts-ttf"
|
||||
short_desc="80x86 assembler designed for portability and modularity - documentation"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="BSD-2-Clause"
|
||||
homepage="https://www.nasm.us"
|
||||
distfiles="https://www.nasm.us/pub/nasm/releasebuilds/${version}/nasm-${version}.tar.xz"
|
||||
checksum=c77745f4802375efeee2ec5c0ad6b7f037ea9c87c92b149a9637ff099f162558
|
||||
|
||||
pre_configure() {
|
||||
vsed -i doc/psfonts.ph -e "s;SourceSansPro;SourceSans3;g"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make -C doc DESTDIR="${DESTDIR}" docdir=/usr/share/doc/nasm install
|
||||
vlicense LICENSE
|
||||
}
|
|
@ -1,18 +1,57 @@
|
|||
# Template file for 'nasm'
|
||||
# Update nasm-doc which is separate to avoid dependency cycles
|
||||
pkgname=nasm
|
||||
version=2.16.01
|
||||
version=2.16.03
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
make_build_args="all"
|
||||
make_build_target="all"
|
||||
make_check_target="golden test"
|
||||
checkdepends="perl"
|
||||
short_desc="80x86 assembler designed for portability and modularity"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
maintainer="Rutpiv <roger_freitas@live.com>"
|
||||
license="BSD-2-Clause"
|
||||
homepage="https://www.nasm.us"
|
||||
changelog="https://nasm.us/doc/nasmdocc.html"
|
||||
distfiles="https://www.nasm.us/pub/nasm/releasebuilds/${version}/nasm-${version}.tar.xz"
|
||||
checksum=c77745f4802375efeee2ec5c0ad6b7f037ea9c87c92b149a9637ff099f162558
|
||||
checksum=1412a1c760bbd05db026b6c0d1657affd6631cd0a63cddb6f73cc6d4aa616148
|
||||
|
||||
build_options="doc"
|
||||
desc_option_doc="Enable building documentation"
|
||||
build_options_default="doc"
|
||||
|
||||
disable_parallel_check=yes
|
||||
|
||||
subpackages=" "
|
||||
|
||||
if [ "$build_option_doc" ]; then
|
||||
subpackages="nasm-doc"
|
||||
hostmakedepends="groff perl perl-Font-TTF perl-IO-String perl-Sort-Versions
|
||||
ghostscript source-sans-pro liberation-fonts-ttf"
|
||||
fi
|
||||
|
||||
pre_configure() {
|
||||
if [ "$build_option_doc" ]; then
|
||||
vsed -i doc/psfonts.ph -e "s;SourceSansPro;SourceSans3;g"
|
||||
fi
|
||||
}
|
||||
|
||||
post_build() {
|
||||
if [ "$build_option_doc" ]; then
|
||||
make doc
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
if [ "$build_option_doc" ]; then
|
||||
make -C doc DESTDIR="${DESTDIR}" docdir=/usr/share/doc/nasm install
|
||||
fi
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
nasm-doc_package() {
|
||||
short_desc+=" - documentation"
|
||||
depends="${sourcepkg}-${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/share/doc/nasm
|
||||
vlicense LICENSE
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue