commit:     383a56c3cb39b8e0b6ee68c456a2aad664117045
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  5 13:11:51 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Jun  5 17:03:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=383a56c3

dev-lang/nprolog: bump to 4.37

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-lang/nprolog/Manifest            |  1 +
 dev-lang/nprolog/nprolog-4.37.ebuild | 54 ++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/dev-lang/nprolog/Manifest b/dev-lang/nprolog/Manifest
index acb614e3f0d4..deb9b9f88b79 100644
--- a/dev-lang/nprolog/Manifest
+++ b/dev-lang/nprolog/Manifest
@@ -3,3 +3,4 @@ DIST nprolog-4.20.gh.tar.gz 1312261 BLAKE2B 
cf0756158c02e58336e9b76a17de900cf6e3
 DIST nprolog-4.21.gh.tar.gz 1999169 BLAKE2B 
306516073eeb660416bbde8a247691d413a459839f459803aa570e967216799d6f7822f0eb1f4d05adb365e14692fe59889a8461799608ab2ba5f2034a46f564
 SHA512 
5afdb00a1f32aeb17cfa8b1fb1d3dc2fb1402f7bb814ef0f1db747968e086c0b4533c6e11754d5855f35664bdff44aca95ca3c611b45b3dd8f1f34c7a6202fab
 DIST nprolog-4.32.gh.tar.gz 1999407 BLAKE2B 
b256ded719e6870c4fc05133030b2833b7bbb0fc79383e76c610aed55ec0217c0496ba719d34e56d1c97ce786486f942a9fd4a6f18eba28ec1046969ec6ba621
 SHA512 
126dc3e544fefbdd62da60f6b9468f3e33e94a8e5c824a12b3dd8e9b80bfc1c5b35dc34d32a65d5a46331a3cf2d9fc2d3e2c51943e7c41ac65cdaabb7f63e04d
 DIST nprolog-4.36.gh.tar.gz 1999427 BLAKE2B 
783550a4cf5937f022cc4d98b7eb5c88ab7c5932b6dfead64b45331585c3864d7a05bc928f7aaa1780dc82c03707bbf8b605e63011e8da5249d62c83f7b07b78
 SHA512 
85f95dfca262088c666bf4595e0b5d4e5e4d8c280b67efb5edf2dcd10e71c50dea770e37ab2a0124863aa2a6ef3f5e30234e1ef260290d3c0e7427ac77b17987
+DIST nprolog-4.37.gh.tar.gz 1999398 BLAKE2B 
9e7dab51c15fd84c0d72a460d19b427dc6219b58b499a640914eb241cde67a4a62ae2178f0bfbf39d16a7a7e02cc5d752704963f4fe36dbf89041064afef3d84
 SHA512 
62fc7e992bda1eb4ebed3c0cd037074ad155faa47aafcc065baf61e18398b07404b3ff6be6f9650031738d8eb11ff315b669019b9a72649f6737680c4eec681f

diff --git a/dev-lang/nprolog/nprolog-4.37.ebuild 
b/dev-lang/nprolog/nprolog-4.37.ebuild
new file mode 100644
index 000000000000..7cd886b90578
--- /dev/null
+++ b/dev-lang/nprolog/nprolog-4.37.ebuild
@@ -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
+}

Reply via email to