dev-lang/nprolog: bump to 4.20

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-05-10 19:42:28 +02:00
parent 497bcccc18
commit 91a4ffb664
2 changed files with 55 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST nprolog-4.05.gh.tar.gz 1294386 BLAKE2B 820bd52f2f5c47fd3fe873d94ca5dec177f43843cef649422e202debee922f2786ba5bd20c0f9806f5916ba74717d67febdc3dbb3b08616e22c5eba1085069aa SHA512 f6621fc30856bf38460395e7ebc73233b5387ea6aa450439b0979e50b2c8f1bde87ffd1a0468f5eca33abc3b3c2fe7bed080f8e82e090e213fb2afa488be3054
DIST nprolog-4.08.gh.tar.gz 1308785 BLAKE2B 8e28698aa9972db9017f6b808aa75e723db555959904884a327ff4be4f1f229456157f747bd0fc32a3b4b7bd6441d1170633908577b90ef11511ca42b3840f6b SHA512 4ca35f7a5d010f2064b21694494edcfec1aef0823a2ce9601906a2ee77a1161a6b0e7642f49f214a8a7fc7c864e5ec2ba60de3dc33784876787a69ac281a9ac3
DIST nprolog-4.20.gh.tar.gz 1312261 BLAKE2B cf0756158c02e58336e9b76a17de900cf6e3f0fbb25c0c5997a72030f97849d019e81222861824a285d11abb3d1dc13891f9ccb4ad1ad4f1e8c2f120e9dad0be SHA512 938958ed32566ae68a71060f6073f5bd3105db9647e99b9aaabe638a1aa4014d8ba350ae4fdcb8a42f80af4a1890f476ded0f5e1777a30ecce97004557fc6edb

View File

@@ -0,0 +1,54 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Interpreter and compiler to be compatible with Arity/Prolog32"
HOMEPAGE="https://github.com/sasagawa888/nprolog/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/sasagawa888/${PN}"
else
SRC_URI="https://github.com/sasagawa888/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="BSD-2"
SLOT="0"
IUSE="doc"
DOCS=( README{,-ja}.md )
src_prepare() {
if [[ -f edlog ]] ; then
rm edlog || die
fi
default
}
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install() {
exeinto /usr/bin
doexe npl
insinto "/usr/share/${PN}"
doins -r example library
if use doc ; then
DOCS+=( document )
docompress -x "/usr/share/doc/${PF}/document"
fi
einstalldocs
}