dev-lang/nprolog: new package; add 1.92

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2022-12-04 06:51:49 +01:00
parent 3b414dbc1a
commit f32f178a85
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST nprolog-1.92.tar.gz 186417 BLAKE2B a71ae358d8d00bde69d435f88a5923045fc939ff8fb78cbd550e3ba47a92388b8d0fc2d03406932ea5245c000e96a1ee58dc94db71bc27241c3c55bfff4b6728 SHA512 784c766080dcee126667f5c6bf7e78cf1367031bafccb6ac01145961e56679b1a90a2cf2499676881473d4fcbe20a9e99f03a53d6958eeaa23999c3efa588110

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@gentoo.org</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription>
N-Prolog(NPL) is an interpreter and compiler to be compatible with
Arity/Prolog32. N-Prolog is NOT ISO-Prolog. About Arity/prolog32 see
http://petergabel.info/ArityProlog32/ArityProlog32PredList/
</longdescription>
<upstream>
<bugs-to>https://github.com/sasagawa888/nprolog/issues</bugs-to>
<remote-id type="github">sasagawa888/nprolog</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,31 @@
# Copyright 1999-2022 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/"
SRC_URI="https://github.com/sasagawa888/nprolog/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DOCS=( README{,-ja}.md document )
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBS="-lm -ldl ${LDFLAGS}"
}
src_install() {
exeinto /usr/bin
doexe npl
insinto /usr/share/${PN}
doins -r example library
einstalldocs
}