Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: erlang-cl-1.2.4
@ 2023-12-29 13:19 MIvanchev
  2023-12-29 14:00 ` [PR PATCH] [Updated] " MIvanchev
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: MIvanchev @ 2023-12-29 13:19 UTC (permalink / raw)
  To: ml

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

There is a new pull request by MIvanchev against master on the void-packages repository

https://github.com/MIvanchev/void-packages erlang-cl-package
https://github.com/void-linux/void-packages/pull/47972

New package: erlang-cl-1.2.4
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-GLIBC


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-erlang-cl-package-47972.patch --]
[-- Type: text/x-diff, Size: 1595 bytes --]

From acba75ae1c150b28dcab96f09ed5d6d51c701d2f Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Fri, 29 Dec 2023 13:21:10 +0100
Subject: [PATCH] New package: erlang-cl-1.2.4

---
 srcpkgs/erlang-cl/template | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 srcpkgs/erlang-cl/template

diff --git a/srcpkgs/erlang-cl/template b/srcpkgs/erlang-cl/template
new file mode 100644
index 0000000000000..836ed776dc983
--- /dev/null
+++ b/srcpkgs/erlang-cl/template
@@ -0,0 +1,31 @@
+# Template file for 'erlang-cl'
+pkgname=erlang-cl
+version=1.2.4
+revision=1
+hostmakedepends="git rebar3"
+makedepends="ocl-icd-devel"
+depends="erlang ocl-icd"
+short_desc="Erlang OpenCL bindings"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/tonyrog/cl"
+distfiles="https://github.com/tonyrog/cl/archive/refs/tags/cl-${version}.tar.gz"
+checksum=577b8788029148f93217d00a1bbdc500db68ee77b2246bbd892269b5bb98c41a
+
+do_build() {
+	rebar3 compile
+}
+
+do_install() {
+	vmkdir usr/lib/erlang/lib/cl-${version}
+	vmkdir usr/lib/erlang/lib/cl-${version}/ebin
+	vmkdir usr/lib/erlang/lib/cl-${version}/include
+	vmkdir usr/lib/erlang/lib/cl-${version}/priv
+	vmkdir usr/share/doc/${pkgname}
+	vmkdir usr/share/doc/${pkgname}/examples
+	vcopy ebin/* usr/lib/erlang/lib/cl-${version}/ebin
+	vinstall include/cl.hrl 644 usr/lib/erlang/lib/cl-${version}/include
+	vinstall priv/cl_nif.so 644 usr/lib/erlang/lib/cl-${version}/priv
+	vcopy examples/* usr/share/doc/${pkgname}/examples
+	vlicense COPYRIGHT
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
@ 2023-12-29 14:00 ` MIvanchev
  2023-12-29 14:01 ` MIvanchev
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2023-12-29 14:00 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages erlang-cl-package
https://github.com/void-linux/void-packages/pull/47972

New package: erlang-cl-1.2.4
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-GLIBC


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-erlang-cl-package-47972.patch --]
[-- Type: text/x-diff, Size: 1595 bytes --]

From e09a94a60e0966203f15bebee5e053d23f1dea54 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Fri, 29 Dec 2023 13:21:10 +0100
Subject: [PATCH] New package: erlang-cl-1.2.4

---
 srcpkgs/erlang-cl/template | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 srcpkgs/erlang-cl/template

diff --git a/srcpkgs/erlang-cl/template b/srcpkgs/erlang-cl/template
new file mode 100644
index 0000000000000..836ed776dc983
--- /dev/null
+++ b/srcpkgs/erlang-cl/template
@@ -0,0 +1,31 @@
+# Template file for 'erlang-cl'
+pkgname=erlang-cl
+version=1.2.4
+revision=1
+hostmakedepends="git rebar3"
+makedepends="ocl-icd-devel"
+depends="erlang ocl-icd"
+short_desc="Erlang OpenCL bindings"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/tonyrog/cl"
+distfiles="https://github.com/tonyrog/cl/archive/refs/tags/cl-${version}.tar.gz"
+checksum=577b8788029148f93217d00a1bbdc500db68ee77b2246bbd892269b5bb98c41a
+
+do_build() {
+	rebar3 compile
+}
+
+do_install() {
+	vmkdir usr/lib/erlang/lib/cl-${version}
+	vmkdir usr/lib/erlang/lib/cl-${version}/ebin
+	vmkdir usr/lib/erlang/lib/cl-${version}/include
+	vmkdir usr/lib/erlang/lib/cl-${version}/priv
+	vmkdir usr/share/doc/${pkgname}
+	vmkdir usr/share/doc/${pkgname}/examples
+	vcopy ebin/* usr/lib/erlang/lib/cl-${version}/ebin
+	vinstall include/cl.hrl 644 usr/lib/erlang/lib/cl-${version}/include
+	vinstall priv/cl_nif.so 644 usr/lib/erlang/lib/cl-${version}/priv
+	vcopy examples/* usr/share/doc/${pkgname}/examples
+	vlicense COPYRIGHT
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
  2023-12-29 14:00 ` [PR PATCH] [Updated] " MIvanchev
@ 2023-12-29 14:01 ` MIvanchev
  2023-12-29 14:19 ` MIvanchev
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2023-12-29 14:01 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages erlang-cl-package
https://github.com/void-linux/void-packages/pull/47972

New package: erlang-cl-1.2.4
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-GLIBC


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-erlang-cl-package-47972.patch --]
[-- Type: text/x-diff, Size: 2805 bytes --]

From 3e55a5a91c17b4700b3e8d04758491f338481872 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Fri, 29 Dec 2023 13:21:10 +0100
Subject: [PATCH] New package: erlang-cl-1.2.4

---
 srcpkgs/erlang-cl/patches/cflags.patch | 35 ++++++++++++++++++++++++++
 srcpkgs/erlang-cl/template             | 31 +++++++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 srcpkgs/erlang-cl/patches/cflags.patch
 create mode 100644 srcpkgs/erlang-cl/template

diff --git a/srcpkgs/erlang-cl/patches/cflags.patch b/srcpkgs/erlang-cl/patches/cflags.patch
new file mode 100644
index 0000000000000..71cf1747af17f
--- /dev/null
+++ b/srcpkgs/erlang-cl/patches/cflags.patch
@@ -0,0 +1,35 @@
+diff --git a/c_src/Makefile b/c_src/Makefile
+index 224fd5f..f80b2e8 100644
+--- a/c_src/Makefile
++++ b/c_src/Makefile
+@@ -50,13 +50,28 @@ WORDSIZE = $(shell $(ERL) -noshell -eval "io:format([126,119,126,110],[erlang:sy
+ 
+ ifeq ($(OSNAME)$(WSLcross), Linux)
+ LINUX = Yes
++SET_M32_OR_M64 = No
+ CFLAGS += -I/usr/include/nvidia-current
+ CFLAGS += -I/opt/AMDAPP/include
++CFLAGS += -O3 -fPIC
++ifeq ($(MACHINE), x86_64)
++    SET_M32_OR_M64 = Yes
++else
++ifeq ($(MACHINE), i386)
++    SET_M32_OR_M64 = Yes
++else
++ifeq ($(MACHINE), i686)
++    SET_M32_OR_M64 = Yes
++endif
++endif
++endif
++ifeq ($(SET_M32_OR_M64), Yes)
+ ifeq ($(WORDSIZE), 32)
+-CFLAGS += -O3 -fPIC -m32
++CFLAGS += -m32
+ endif
+ ifeq ($(WORDSIZE), 64)
+-CFLAGS += -O3 -fPIC -m64
++CFLAGS += -m64
++endif
+ endif
+ LD_SHARED	:= $(CC) -shared
+ LDFLAGS	        += -lOpenCL
diff --git a/srcpkgs/erlang-cl/template b/srcpkgs/erlang-cl/template
new file mode 100644
index 0000000000000..836ed776dc983
--- /dev/null
+++ b/srcpkgs/erlang-cl/template
@@ -0,0 +1,31 @@
+# Template file for 'erlang-cl'
+pkgname=erlang-cl
+version=1.2.4
+revision=1
+hostmakedepends="git rebar3"
+makedepends="ocl-icd-devel"
+depends="erlang ocl-icd"
+short_desc="Erlang OpenCL bindings"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/tonyrog/cl"
+distfiles="https://github.com/tonyrog/cl/archive/refs/tags/cl-${version}.tar.gz"
+checksum=577b8788029148f93217d00a1bbdc500db68ee77b2246bbd892269b5bb98c41a
+
+do_build() {
+	rebar3 compile
+}
+
+do_install() {
+	vmkdir usr/lib/erlang/lib/cl-${version}
+	vmkdir usr/lib/erlang/lib/cl-${version}/ebin
+	vmkdir usr/lib/erlang/lib/cl-${version}/include
+	vmkdir usr/lib/erlang/lib/cl-${version}/priv
+	vmkdir usr/share/doc/${pkgname}
+	vmkdir usr/share/doc/${pkgname}/examples
+	vcopy ebin/* usr/lib/erlang/lib/cl-${version}/ebin
+	vinstall include/cl.hrl 644 usr/lib/erlang/lib/cl-${version}/include
+	vinstall priv/cl_nif.so 644 usr/lib/erlang/lib/cl-${version}/priv
+	vcopy examples/* usr/share/doc/${pkgname}/examples
+	vlicense COPYRIGHT
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
  2023-12-29 14:00 ` [PR PATCH] [Updated] " MIvanchev
  2023-12-29 14:01 ` MIvanchev
@ 2023-12-29 14:19 ` MIvanchev
  2023-12-29 14:29 ` MIvanchev
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2023-12-29 14:19 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages erlang-cl-package
https://github.com/void-linux/void-packages/pull/47972

New package: erlang-cl-1.2.4
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-GLIBC


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-erlang-cl-package-47972.patch --]
[-- Type: text/x-diff, Size: 2910 bytes --]

From f1556b3834482b9df09809e0f21507daa76bf1eb Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Fri, 29 Dec 2023 13:21:10 +0100
Subject: [PATCH] New package: erlang-cl-1.2.4

---
 srcpkgs/erlang-cl/patches/cflags.patch | 35 ++++++++++++++++++++++++++
 srcpkgs/erlang-cl/template             | 31 +++++++++++++++++++++++
 2 files changed, 66 insertions(+)
 create mode 100644 srcpkgs/erlang-cl/patches/cflags.patch
 create mode 100644 srcpkgs/erlang-cl/template

diff --git a/srcpkgs/erlang-cl/patches/cflags.patch b/srcpkgs/erlang-cl/patches/cflags.patch
new file mode 100644
index 0000000000000..63bb913fd6561
--- /dev/null
+++ b/srcpkgs/erlang-cl/patches/cflags.patch
@@ -0,0 +1,35 @@
+diff --git a/c_src/Makefile b/c_src/Makefile
+index 224fd5f..820ca79 100644
+--- a/c_src/Makefile
++++ b/c_src/Makefile
+@@ -50,13 +50,28 @@ WORDSIZE = $(shell $(ERL) -noshell -eval "io:format([126,119,126,110],[erlang:sy
+ 
+ ifeq ($(OSNAME)$(WSLcross), Linux)
+ LINUX = Yes
++SET_M32_OR_M64 = No
+ CFLAGS += -I/usr/include/nvidia-current
+ CFLAGS += -I/opt/AMDAPP/include
++CFLAGS += -O3 -fPIC
++ifeq (x86_64, $(shell findstr x86_64 $(XBPS_TARGET_MACHINE)))
++    SET_M32_OR_M64 = Yes
++else
++ifeq (i386, $(shell findstr i386 $(XBPS_TARGET_MACHINE)))
++    SET_M32_OR_M64 = Yes
++else
++ifeq (i686, $(shell findstr i686, $(XBPS_TARGET_MACHINE)))
++    SET_M32_OR_M64 = Yes
++endif
++endif
++endif
++ifeq ($(SET_M32_OR_M64), Yes)
+ ifeq ($(WORDSIZE), 32)
+-CFLAGS += -O3 -fPIC -m32
++CFLAGS += -m32
+ endif
+ ifeq ($(WORDSIZE), 64)
+-CFLAGS += -O3 -fPIC -m64
++CFLAGS += -m64
++endif
+ endif
+ LD_SHARED	:= $(CC) -shared
+ LDFLAGS	        += -lOpenCL
diff --git a/srcpkgs/erlang-cl/template b/srcpkgs/erlang-cl/template
new file mode 100644
index 0000000000000..836ed776dc983
--- /dev/null
+++ b/srcpkgs/erlang-cl/template
@@ -0,0 +1,31 @@
+# Template file for 'erlang-cl'
+pkgname=erlang-cl
+version=1.2.4
+revision=1
+hostmakedepends="git rebar3"
+makedepends="ocl-icd-devel"
+depends="erlang ocl-icd"
+short_desc="Erlang OpenCL bindings"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/tonyrog/cl"
+distfiles="https://github.com/tonyrog/cl/archive/refs/tags/cl-${version}.tar.gz"
+checksum=577b8788029148f93217d00a1bbdc500db68ee77b2246bbd892269b5bb98c41a
+
+do_build() {
+	rebar3 compile
+}
+
+do_install() {
+	vmkdir usr/lib/erlang/lib/cl-${version}
+	vmkdir usr/lib/erlang/lib/cl-${version}/ebin
+	vmkdir usr/lib/erlang/lib/cl-${version}/include
+	vmkdir usr/lib/erlang/lib/cl-${version}/priv
+	vmkdir usr/share/doc/${pkgname}
+	vmkdir usr/share/doc/${pkgname}/examples
+	vcopy ebin/* usr/lib/erlang/lib/cl-${version}/ebin
+	vinstall include/cl.hrl 644 usr/lib/erlang/lib/cl-${version}/include
+	vinstall priv/cl_nif.so 644 usr/lib/erlang/lib/cl-${version}/priv
+	vcopy examples/* usr/share/doc/${pkgname}/examples
+	vlicense COPYRIGHT
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
                   ` (2 preceding siblings ...)
  2023-12-29 14:19 ` MIvanchev
@ 2023-12-29 14:29 ` MIvanchev
  2023-12-29 15:37 ` MIvanchev
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2023-12-29 14:29 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages erlang-cl-package
https://github.com/void-linux/void-packages/pull/47972

New package: erlang-cl-1.2.4
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-GLIBC


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-erlang-cl-package-47972.patch --]
[-- Type: text/x-diff, Size: 2679 bytes --]

From a96db7c0008bb32ce01745ecd5f943df98ed3627 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Fri, 29 Dec 2023 13:21:10 +0100
Subject: [PATCH] New package: erlang-cl-1.2.4

---
 srcpkgs/erlang-cl/patches/cflags.patch | 26 +++++++++++++++++++++
 srcpkgs/erlang-cl/template             | 31 ++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 srcpkgs/erlang-cl/patches/cflags.patch
 create mode 100644 srcpkgs/erlang-cl/template

diff --git a/srcpkgs/erlang-cl/patches/cflags.patch b/srcpkgs/erlang-cl/patches/cflags.patch
new file mode 100644
index 0000000000000..e65e312519bfd
--- /dev/null
+++ b/srcpkgs/erlang-cl/patches/cflags.patch
@@ -0,0 +1,26 @@
+diff --git a/c_src/Makefile b/c_src/Makefile
+index 224fd5f..2327ea5 100644
+--- a/c_src/Makefile
++++ b/c_src/Makefile
+@@ -52,11 +52,17 @@ ifeq ($(OSNAME)$(WSLcross), Linux)
+ LINUX = Yes
+ CFLAGS += -I/usr/include/nvidia-current
+ CFLAGS += -I/opt/AMDAPP/include
+-ifeq ($(WORDSIZE), 32)
+-CFLAGS += -O3 -fPIC -m32
++CFLAGS += -O3 -fPIC
++ifeq (x86_64, $(shell findstr x86_64 $(XBPS_TARGET_MACHINE)))
++CFLAGS += -m64
++else
++ifeq (i386, $(shell findstr i386 $(XBPS_TARGET_MACHINE)))
++CFLAGS += -m32
++else
++ifeq (i686, $(shell findstr i686 $(XBPS_TARGET_MACHINE)))
++CFLAGS += -m32
++endif
+ endif
+-ifeq ($(WORDSIZE), 64)
+-CFLAGS += -O3 -fPIC -m64
+ endif
+ LD_SHARED	:= $(CC) -shared
+ LDFLAGS	        += -lOpenCL
diff --git a/srcpkgs/erlang-cl/template b/srcpkgs/erlang-cl/template
new file mode 100644
index 0000000000000..836ed776dc983
--- /dev/null
+++ b/srcpkgs/erlang-cl/template
@@ -0,0 +1,31 @@
+# Template file for 'erlang-cl'
+pkgname=erlang-cl
+version=1.2.4
+revision=1
+hostmakedepends="git rebar3"
+makedepends="ocl-icd-devel"
+depends="erlang ocl-icd"
+short_desc="Erlang OpenCL bindings"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/tonyrog/cl"
+distfiles="https://github.com/tonyrog/cl/archive/refs/tags/cl-${version}.tar.gz"
+checksum=577b8788029148f93217d00a1bbdc500db68ee77b2246bbd892269b5bb98c41a
+
+do_build() {
+	rebar3 compile
+}
+
+do_install() {
+	vmkdir usr/lib/erlang/lib/cl-${version}
+	vmkdir usr/lib/erlang/lib/cl-${version}/ebin
+	vmkdir usr/lib/erlang/lib/cl-${version}/include
+	vmkdir usr/lib/erlang/lib/cl-${version}/priv
+	vmkdir usr/share/doc/${pkgname}
+	vmkdir usr/share/doc/${pkgname}/examples
+	vcopy ebin/* usr/lib/erlang/lib/cl-${version}/ebin
+	vinstall include/cl.hrl 644 usr/lib/erlang/lib/cl-${version}/include
+	vinstall priv/cl_nif.so 644 usr/lib/erlang/lib/cl-${version}/priv
+	vcopy examples/* usr/share/doc/${pkgname}/examples
+	vlicense COPYRIGHT
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
                   ` (3 preceding siblings ...)
  2023-12-29 14:29 ` MIvanchev
@ 2023-12-29 15:37 ` MIvanchev
  2023-12-29 17:19 ` MIvanchev
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2023-12-29 15:37 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages erlang-cl-package
https://github.com/void-linux/void-packages/pull/47972

New package: erlang-cl-1.2.4
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-GLIBC


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-erlang-cl-package-47972.patch --]
[-- Type: text/x-diff, Size: 2670 bytes --]

From e8289c618c0ede3ef856f9fa6da8c1144b6ab887 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Fri, 29 Dec 2023 13:21:10 +0100
Subject: [PATCH] New package: erlang-cl-1.2.4

---
 srcpkgs/erlang-cl/patches/cflags.patch | 26 +++++++++++++++++++++
 srcpkgs/erlang-cl/template             | 31 ++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 srcpkgs/erlang-cl/patches/cflags.patch
 create mode 100644 srcpkgs/erlang-cl/template

diff --git a/srcpkgs/erlang-cl/patches/cflags.patch b/srcpkgs/erlang-cl/patches/cflags.patch
new file mode 100644
index 0000000000000..6df8f7fca31cb
--- /dev/null
+++ b/srcpkgs/erlang-cl/patches/cflags.patch
@@ -0,0 +1,26 @@
+diff --git a/c_src/Makefile b/c_src/Makefile
+index 224fd5f..7a3f189 100644
+--- a/c_src/Makefile
++++ b/c_src/Makefile
+@@ -52,11 +52,17 @@ ifeq ($(OSNAME)$(WSLcross), Linux)
+ LINUX = Yes
+ CFLAGS += -I/usr/include/nvidia-current
+ CFLAGS += -I/opt/AMDAPP/include
+-ifeq ($(WORDSIZE), 32)
+-CFLAGS += -O3 -fPIC -m32
++CFLAGS += -O3 -fPIC
++ifeq (x86_64, $(findstring x86_64 $(XBPS_TARGET_MACHINE)))
++CFLAGS += -m64
++else
++ifeq (i386, $(findstring i386 $(XBPS_TARGET_MACHINE)))
++CFLAGS += -m32
++else
++ifeq (i686, $(findstring i686 $(XBPS_TARGET_MACHINE)))
++CFLAGS += -m32
++endif
+ endif
+-ifeq ($(WORDSIZE), 64)
+-CFLAGS += -O3 -fPIC -m64
+ endif
+ LD_SHARED	:= $(CC) -shared
+ LDFLAGS	        += -lOpenCL
diff --git a/srcpkgs/erlang-cl/template b/srcpkgs/erlang-cl/template
new file mode 100644
index 0000000000000..836ed776dc983
--- /dev/null
+++ b/srcpkgs/erlang-cl/template
@@ -0,0 +1,31 @@
+# Template file for 'erlang-cl'
+pkgname=erlang-cl
+version=1.2.4
+revision=1
+hostmakedepends="git rebar3"
+makedepends="ocl-icd-devel"
+depends="erlang ocl-icd"
+short_desc="Erlang OpenCL bindings"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/tonyrog/cl"
+distfiles="https://github.com/tonyrog/cl/archive/refs/tags/cl-${version}.tar.gz"
+checksum=577b8788029148f93217d00a1bbdc500db68ee77b2246bbd892269b5bb98c41a
+
+do_build() {
+	rebar3 compile
+}
+
+do_install() {
+	vmkdir usr/lib/erlang/lib/cl-${version}
+	vmkdir usr/lib/erlang/lib/cl-${version}/ebin
+	vmkdir usr/lib/erlang/lib/cl-${version}/include
+	vmkdir usr/lib/erlang/lib/cl-${version}/priv
+	vmkdir usr/share/doc/${pkgname}
+	vmkdir usr/share/doc/${pkgname}/examples
+	vcopy ebin/* usr/lib/erlang/lib/cl-${version}/ebin
+	vinstall include/cl.hrl 644 usr/lib/erlang/lib/cl-${version}/include
+	vinstall priv/cl_nif.so 644 usr/lib/erlang/lib/cl-${version}/priv
+	vcopy examples/* usr/share/doc/${pkgname}/examples
+	vlicense COPYRIGHT
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
                   ` (4 preceding siblings ...)
  2023-12-29 15:37 ` MIvanchev
@ 2023-12-29 17:19 ` MIvanchev
  2023-12-29 17:30 ` MIvanchev
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2023-12-29 17:19 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages erlang-cl-package
https://github.com/void-linux/void-packages/pull/47972

New package: erlang-cl-1.2.4
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-GLIBC


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-erlang-cl-package-47972.patch --]
[-- Type: text/x-diff, Size: 2670 bytes --]

From dbf24fa835e898b51b08ef229a04f9f6b77e15ee Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Fri, 29 Dec 2023 13:21:10 +0100
Subject: [PATCH] New package: erlang-cl-1.2.4

---
 srcpkgs/erlang-cl/patches/cflags.patch | 26 +++++++++++++++++++++
 srcpkgs/erlang-cl/template             | 31 ++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 srcpkgs/erlang-cl/patches/cflags.patch
 create mode 100644 srcpkgs/erlang-cl/template

diff --git a/srcpkgs/erlang-cl/patches/cflags.patch b/srcpkgs/erlang-cl/patches/cflags.patch
new file mode 100644
index 0000000000000..4d3b914487258
--- /dev/null
+++ b/srcpkgs/erlang-cl/patches/cflags.patch
@@ -0,0 +1,26 @@
+diff --git a/c_src/Makefile b/c_src/Makefile
+index 224fd5f..379fa98 100644
+--- a/c_src/Makefile
++++ b/c_src/Makefile
+@@ -52,11 +52,17 @@ ifeq ($(OSNAME)$(WSLcross), Linux)
+ LINUX = Yes
+ CFLAGS += -I/usr/include/nvidia-current
+ CFLAGS += -I/opt/AMDAPP/include
+-ifeq ($(WORDSIZE), 32)
+-CFLAGS += -O3 -fPIC -m32
++CFLAGS += -O3 -fPIC
++ifeq (x86_64, $(findstring x86_64,$(XBPS_TARGET_MACHINE)))
++CFLAGS += -m64
++else
++ifeq (i386, $(findstring i386,$(XBPS_TARGET_MACHINE)))
++CFLAGS += -m32
++else
++ifeq (i686, $(findstring i686,$(XBPS_TARGET_MACHINE)))
++CFLAGS += -m32
++endif
+ endif
+-ifeq ($(WORDSIZE), 64)
+-CFLAGS += -O3 -fPIC -m64
+ endif
+ LD_SHARED	:= $(CC) -shared
+ LDFLAGS	        += -lOpenCL
diff --git a/srcpkgs/erlang-cl/template b/srcpkgs/erlang-cl/template
new file mode 100644
index 0000000000000..836ed776dc983
--- /dev/null
+++ b/srcpkgs/erlang-cl/template
@@ -0,0 +1,31 @@
+# Template file for 'erlang-cl'
+pkgname=erlang-cl
+version=1.2.4
+revision=1
+hostmakedepends="git rebar3"
+makedepends="ocl-icd-devel"
+depends="erlang ocl-icd"
+short_desc="Erlang OpenCL bindings"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/tonyrog/cl"
+distfiles="https://github.com/tonyrog/cl/archive/refs/tags/cl-${version}.tar.gz"
+checksum=577b8788029148f93217d00a1bbdc500db68ee77b2246bbd892269b5bb98c41a
+
+do_build() {
+	rebar3 compile
+}
+
+do_install() {
+	vmkdir usr/lib/erlang/lib/cl-${version}
+	vmkdir usr/lib/erlang/lib/cl-${version}/ebin
+	vmkdir usr/lib/erlang/lib/cl-${version}/include
+	vmkdir usr/lib/erlang/lib/cl-${version}/priv
+	vmkdir usr/share/doc/${pkgname}
+	vmkdir usr/share/doc/${pkgname}/examples
+	vcopy ebin/* usr/lib/erlang/lib/cl-${version}/ebin
+	vinstall include/cl.hrl 644 usr/lib/erlang/lib/cl-${version}/include
+	vinstall priv/cl_nif.so 644 usr/lib/erlang/lib/cl-${version}/priv
+	vcopy examples/* usr/share/doc/${pkgname}/examples
+	vlicense COPYRIGHT
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
                   ` (5 preceding siblings ...)
  2023-12-29 17:19 ` MIvanchev
@ 2023-12-29 17:30 ` MIvanchev
  2023-12-30 10:45 ` [PR PATCH] [Updated] " MIvanchev
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2023-12-29 17:30 UTC (permalink / raw)
  To: ml

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

New comment by MIvanchev on void-packages repository

https://github.com/void-linux/void-packages/pull/47972#issuecomment-1872235262

Comment:
I've created this package as a requirement of the Wings 3D modeller I'll soon add as well (see #11250).

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
                   ` (6 preceding siblings ...)
  2023-12-29 17:30 ` MIvanchev
@ 2023-12-30 10:45 ` MIvanchev
  2024-02-08 11:30 ` [PR PATCH] [Closed]: " MIvanchev
  2024-02-08 11:30 ` MIvanchev
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2023-12-30 10:45 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages erlang-cl-package
https://github.com/void-linux/void-packages/pull/47972

New package: erlang-cl-1.2.4
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-GLIBC


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-erlang-cl-package-47972.patch --]
[-- Type: text/x-diff, Size: 2662 bytes --]

From da5758765e0d6cc3c328bb4610ddb23bf5fe1eef Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Fri, 29 Dec 2023 13:21:10 +0100
Subject: [PATCH] New package: erlang-cl-1.2.4

---
 srcpkgs/erlang-cl/patches/cflags.patch | 26 +++++++++++++++++++++
 srcpkgs/erlang-cl/template             | 31 ++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 srcpkgs/erlang-cl/patches/cflags.patch
 create mode 100644 srcpkgs/erlang-cl/template

diff --git a/srcpkgs/erlang-cl/patches/cflags.patch b/srcpkgs/erlang-cl/patches/cflags.patch
new file mode 100644
index 0000000000000..4d3b914487258
--- /dev/null
+++ b/srcpkgs/erlang-cl/patches/cflags.patch
@@ -0,0 +1,26 @@
+diff --git a/c_src/Makefile b/c_src/Makefile
+index 224fd5f..379fa98 100644
+--- a/c_src/Makefile
++++ b/c_src/Makefile
+@@ -52,11 +52,17 @@ ifeq ($(OSNAME)$(WSLcross), Linux)
+ LINUX = Yes
+ CFLAGS += -I/usr/include/nvidia-current
+ CFLAGS += -I/opt/AMDAPP/include
+-ifeq ($(WORDSIZE), 32)
+-CFLAGS += -O3 -fPIC -m32
++CFLAGS += -O3 -fPIC
++ifeq (x86_64, $(findstring x86_64,$(XBPS_TARGET_MACHINE)))
++CFLAGS += -m64
++else
++ifeq (i386, $(findstring i386,$(XBPS_TARGET_MACHINE)))
++CFLAGS += -m32
++else
++ifeq (i686, $(findstring i686,$(XBPS_TARGET_MACHINE)))
++CFLAGS += -m32
++endif
+ endif
+-ifeq ($(WORDSIZE), 64)
+-CFLAGS += -O3 -fPIC -m64
+ endif
+ LD_SHARED	:= $(CC) -shared
+ LDFLAGS	        += -lOpenCL
diff --git a/srcpkgs/erlang-cl/template b/srcpkgs/erlang-cl/template
new file mode 100644
index 0000000000000..2de5a62c77481
--- /dev/null
+++ b/srcpkgs/erlang-cl/template
@@ -0,0 +1,31 @@
+# Template file for 'erlang-cl'
+pkgname=erlang-cl
+version=1.2.4
+revision=1
+hostmakedepends="git rebar3"
+makedepends="ocl-icd-devel"
+depends="erlang"
+short_desc="Erlang OpenCL bindings"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="MIT"
+homepage="https://github.com/tonyrog/cl"
+distfiles="https://github.com/tonyrog/cl/archive/refs/tags/cl-${version}.tar.gz"
+checksum=577b8788029148f93217d00a1bbdc500db68ee77b2246bbd892269b5bb98c41a
+
+do_build() {
+	rebar3 compile
+}
+
+do_install() {
+	vmkdir usr/lib/erlang/lib/cl-${version}
+	vmkdir usr/lib/erlang/lib/cl-${version}/ebin
+	vmkdir usr/lib/erlang/lib/cl-${version}/include
+	vmkdir usr/lib/erlang/lib/cl-${version}/priv
+	vmkdir usr/share/doc/${pkgname}
+	vmkdir usr/share/doc/${pkgname}/examples
+	vcopy ebin/* usr/lib/erlang/lib/cl-${version}/ebin
+	vinstall include/cl.hrl 644 usr/lib/erlang/lib/cl-${version}/include
+	vinstall priv/cl_nif.so 644 usr/lib/erlang/lib/cl-${version}/priv
+	vcopy examples/* usr/share/doc/${pkgname}/examples
+	vlicense COPYRIGHT
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Closed]: New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
                   ` (7 preceding siblings ...)
  2023-12-30 10:45 ` [PR PATCH] [Updated] " MIvanchev
@ 2024-02-08 11:30 ` MIvanchev
  2024-02-08 11:30 ` MIvanchev
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2024-02-08 11:30 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

New package: erlang-cl-1.2.4
https://github.com/void-linux/void-packages/pull/47972

Description:
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-GLIBC


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New package: erlang-cl-1.2.4
  2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
                   ` (8 preceding siblings ...)
  2024-02-08 11:30 ` [PR PATCH] [Closed]: " MIvanchev
@ 2024-02-08 11:30 ` MIvanchev
  9 siblings, 0 replies; 11+ messages in thread
From: MIvanchev @ 2024-02-08 11:30 UTC (permalink / raw)
  To: ml

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

New comment by MIvanchev on void-packages repository

https://github.com/void-linux/void-packages/pull/47972#issuecomment-1933883622

Comment:
Released with #48603.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-02-08 11:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-29 13:19 [PR PATCH] New package: erlang-cl-1.2.4 MIvanchev
2023-12-29 14:00 ` [PR PATCH] [Updated] " MIvanchev
2023-12-29 14:01 ` MIvanchev
2023-12-29 14:19 ` MIvanchev
2023-12-29 14:29 ` MIvanchev
2023-12-29 15:37 ` MIvanchev
2023-12-29 17:19 ` MIvanchev
2023-12-29 17:30 ` MIvanchev
2023-12-30 10:45 ` [PR PATCH] [Updated] " MIvanchev
2024-02-08 11:30 ` [PR PATCH] [Closed]: " MIvanchev
2024-02-08 11:30 ` MIvanchev

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).