Github messages for voidlinux
 help / color / mirror / Atom feed
From: jason1987d <jason1987d@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: KataGo-1.12.4
Date: Sun, 12 Mar 2023 18:36:30 +0100	[thread overview]
Message-ID: <20230312173630.BpGt9PDkE0Pms_BzSHCgYjWWqklD6OtSAbu2moWVXQk@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42720@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]

There is an updated pull request by jason1987d against master on the void-packages repository

https://github.com/jason1987d/void-packages KataGo
https://github.com/void-linux/void-packages/pull/42720

New package: KataGo-1.12.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: YES
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): YES

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)

A patch file from https://github.com/void-linux/void-packages/pull/42720.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-KataGo-42720.patch --]
[-- Type: text/x-diff, Size: 2867 bytes --]

From 4c835aa6d880b46ee5beb36410344afa4e74f001 Mon Sep 17 00:00:00 2001
From: Jason Manley <jason@jasondavid.tv>
Date: Sat, 19 Nov 2022 12:27:38 -0600
Subject: [PATCH] New package: KataGo-1.12.4

---
 srcpkgs/KataGo-OpenCL/template | 34 +++++++++++++++++++++++++++++++++
 srcpkgs/KataGo-eigen/template  | 35 ++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/KataGo-OpenCL/template
 create mode 100644 srcpkgs/KataGo-eigen/template

diff --git a/srcpkgs/KataGo-OpenCL/template b/srcpkgs/KataGo-OpenCL/template
new file mode 100644
index 000000000000..a238744d44e6
--- /dev/null
+++ b/srcpkgs/KataGo-OpenCL/template
@@ -0,0 +1,34 @@
+# Template file for 'KataGo-OpenCL'
+pkgname=KataGo-OpenCL
+version=1.12.4
+revision=1
+build_wrksrc=cpp
+build_style=cmake
+configure_args="-DUSE_BACKEND=OPENCL -DNO_GIT_REVISION=1"
+makedepends="ocl-icd-devel zlib-devel libzip-devel"
+short_desc="KataGo Go/Weiqi/Baduk analysis engine (OpenCL backend)"
+maintainer="Jason Manley <jason@jasondavid.tv>"
+license="MIT"
+homepage="https://github.com/lightvector/KataGo/"
+distfiles="https://github.com/lightvector/KataGo/archive/refs/tags/v${version}.tar.gz"
+checksum=dfcc617fa4648592fecd0595dea9b90187a2c0676bdfc11e8060fc05ca350e47
+
+alternatives="katago:katago:/usr/bin/katago-opencl"
+
+case "$XBPS_TARGET_MACHINE" in
+	i686*) broken="size_t assert fails" ;;
+esac
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+do_check() {
+	build/katago runtests
+}
+
+do_install() {
+	vbin build/katago katago-opencl
+	vlicense "${wrksrc}"/LICENSE
+}
diff --git a/srcpkgs/KataGo-eigen/template b/srcpkgs/KataGo-eigen/template
new file mode 100644
index 000000000000..04c22df9b22b
--- /dev/null
+++ b/srcpkgs/KataGo-eigen/template
@@ -0,0 +1,35 @@
+# Template file for 'KataGo-eigen'
+pkgname=KataGo-eigen
+version=1.12.4
+revision=1
+build_wrksrc=cpp
+build_style=cmake
+configure_args="-DUSE_BACKEND=EIGEN -DNO_GIT_REVISION=1"
+make_check_target="check"
+makedepends="zlib-devel libzip-devel eigen"
+short_desc="KataGo Go/Weiqi/Baduk analysis engine (eigen backend)"
+maintainer="Jason Manley <jason@jasondavid.tv>"
+license="MIT"
+homepage="https://github.com/lightvector/KataGo/"
+distfiles="https://github.com/lightvector/KataGo/archive/refs/tags/v${version}.tar.gz"
+checksum=dfcc617fa4648592fecd0595dea9b90187a2c0676bdfc11e8060fc05ca350e47
+
+alternatives="katago:katago:/usr/bin/katago-eigen"
+
+case "$XBPS_TARGET_MACHINE" in
+	i686*) broken="size_t assert fails" ;;
+esac
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
+	makedepends+=" libatomic-devel"
+fi
+
+do_check() {
+	build/katago runtests
+}
+
+do_install() {
+	vbin build/katago katago-eigen
+	vlicense "${wrksrc}"/LICENSE
+}

  parent reply	other threads:[~2023-03-12 17:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-12 16:35 [PR PATCH] " jason1987d
2023-03-12 16:37 ` [PR PATCH] [Updated] " jason1987d
2023-03-12 17:23 ` jason1987d
2023-03-12 17:36 ` jason1987d [this message]
2023-05-29 21:10 ` [PR PATCH] [Closed]: " jason1987d

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230312173630.BpGt9PDkE0Pms_BzSHCgYjWWqklD6OtSAbu2moWVXQk@z \
    --to=jason1987d@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).