Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: libDPP-10.0.10
@ 2022-06-13 10:36 JuniorSuperTux
  2022-06-14  2:34 ` [PR PATCH] [Closed]: [WIP] " JuniorSuperTux
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: JuniorSuperTux @ 2022-06-13 10:36 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JuniorSuperTux/void-packages libDPP-10.0.10
https://github.com/void-linux/void-packages/pull/37546

New package: libDPP-10.0.10
<!-- 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 [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- 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)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 5fdffffd9e15d989d1c5e14a72059734891c5b0c Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libDPP-10.0.10

---
 srcpkgs/libDPP-devel    |  1 +
 srcpkgs/libDPP/template | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 120000 srcpkgs/libDPP-devel
 create mode 100644 srcpkgs/libDPP/template

diff --git a/srcpkgs/libDPP-devel b/srcpkgs/libDPP-devel
new file mode 120000
index 000000000000..170d15c3a00b
--- /dev/null
+++ b/srcpkgs/libDPP-devel
@@ -0,0 +1 @@
+libDPP
\ No newline at end of file
diff --git a/srcpkgs/libDPP/template b/srcpkgs/libDPP/template
new file mode 100644
index 000000000000..237ee56b7b8a
--- /dev/null
+++ b/srcpkgs/libDPP/template
@@ -0,0 +1,27 @@
+# Template file for 'libDPP'
+pkgname=libDPP
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://github.com/brainboxdotcc/DPP"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_install() {
+	vlicense LICENSE
+}
+
+libDPP-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+	}
+}

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

* Re: [PR PATCH] [Closed]: [WIP] New package: libDPP-10.0.10
  2022-06-13 10:36 [PR PATCH] New package: libDPP-10.0.10 JuniorSuperTux
@ 2022-06-14  2:34 ` JuniorSuperTux
  2022-06-14  2:38 ` abenson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: JuniorSuperTux @ 2022-06-14  2:34 UTC (permalink / raw)
  To: ml

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

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

[WIP] New package: libDPP-10.0.10
https://github.com/void-linux/void-packages/pull/37546

Description:
<!-- 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 [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- 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)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

* Re: [WIP] New package: libDPP-10.0.10
  2022-06-13 10:36 [PR PATCH] New package: libDPP-10.0.10 JuniorSuperTux
  2022-06-14  2:34 ` [PR PATCH] [Closed]: [WIP] " JuniorSuperTux
@ 2022-06-14  2:38 ` abenson
  2022-06-14  3:26 ` JuniorSuperTux
  2022-06-16 14:15 ` abenson
  3 siblings, 0 replies; 6+ messages in thread
From: abenson @ 2022-06-14  2:38 UTC (permalink / raw)
  To: ml

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

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37546#issuecomment-1154644877

Comment:
Why'd you close it?

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

* Re: [WIP] New package: libDPP-10.0.10
  2022-06-13 10:36 [PR PATCH] New package: libDPP-10.0.10 JuniorSuperTux
  2022-06-14  2:34 ` [PR PATCH] [Closed]: [WIP] " JuniorSuperTux
  2022-06-14  2:38 ` abenson
@ 2022-06-14  3:26 ` JuniorSuperTux
  2022-06-16 14:15 ` abenson
  3 siblings, 0 replies; 6+ messages in thread
From: JuniorSuperTux @ 2022-06-14  3:26 UTC (permalink / raw)
  To: ml

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

New comment by JuniorSuperTux on void-packages repository

https://github.com/void-linux/void-packages/pull/37546#issuecomment-1154668030

Comment:
> Why'd you close it?

Wait I'm fixing something

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

* Re: [WIP] New package: libDPP-10.0.10
  2022-06-13 10:36 [PR PATCH] New package: libDPP-10.0.10 JuniorSuperTux
                   ` (2 preceding siblings ...)
  2022-06-14  3:26 ` JuniorSuperTux
@ 2022-06-16 14:15 ` abenson
  3 siblings, 0 replies; 6+ messages in thread
From: abenson @ 2022-06-16 14:15 UTC (permalink / raw)
  To: ml

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

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/37546#issuecomment-1157711565

Comment:
We'd prefer you fix it, amend the commit, and force push the branch.  Don't open/close PRs, it just causes unwanted noise.

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

* [PR PATCH] New package: libdpp-10.0.10
@ 2022-06-14 11:19 JuniorSuperTux
  0 siblings, 0 replies; 6+ messages in thread
From: JuniorSuperTux @ 2022-06-14 11:19 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JuniorSuperTux/void-packages libdpp-10.0.10
https://github.com/void-linux/void-packages/pull/37554

New package: libdpp-10.0.10
<!-- 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 [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- 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)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From b7c78fde008861438bafc8e95ea462f68e88210b Mon Sep 17 00:00:00 2001
From: Bo-Ru Ju <school.shsps@gmail.com>
Date: Mon, 13 Jun 2022 18:29:35 +0800
Subject: [PATCH] New package: libdpp-10.0.10

---
 srcpkgs/libdpp-devel    |  1 +
 srcpkgs/libdpp/template | 47 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 120000 srcpkgs/libdpp-devel
 create mode 100644 srcpkgs/libdpp/template

diff --git a/srcpkgs/libdpp-devel b/srcpkgs/libdpp-devel
new file mode 120000
index 000000000000..9176d7a850be
--- /dev/null
+++ b/srcpkgs/libdpp-devel
@@ -0,0 +1 @@
+libdpp
\ No newline at end of file
diff --git a/srcpkgs/libdpp/template b/srcpkgs/libdpp/template
new file mode 100644
index 000000000000..ba83744fea2f
--- /dev/null
+++ b/srcpkgs/libdpp/template
@@ -0,0 +1,47 @@
+# Template file for 'libdpp'
+pkgname=libdpp
+version=10.0.10
+revision=1
+wrksrc=DPP-${version}
+build_style=cmake
+cmake_builddir=build
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr"
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel opus-devel zlib-devel openssl-devel fmt-devel json-c++"
+short_desc="C++ Discord API Library for Bots"
+maintainer="Bo-Ru Ju <school.shsps@gmail.com>"
+license=Apache-2.0
+homepage="https://dpp.dev"
+distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
+checksum=2a1c26f606298e5b683d1e140219c434e61c4b22e8510fa2a2d5f7b6758dff95
+
+post_extract() {
+	find ${wrksrc} \( -iname "*.h" -o -iname "*.cpp" \) -exec sed -i -E "s/dpp\/(nlohmann|fmt)\//\1\//" '{}' \+
+	sed -i -E "s/install\(TARGETS dpp LIBRARY DESTINATION (.*)\)/install\(TARGETS dpp EXPORT dpp-targets LIBRARY DESTINATION \1\)\ninstall\(EXPORT dpp-targets DESTINATION \1\)/" CMakeLists.txt
+	sed -i -E "s/libdpp/dpp/" "${wrksrc}/CMakeLists.txt" "cmake/libdpp-config.cmake"
+	sed -i -E "s/libdpp-config/dpp-config/" "${wrksrc}/cmake/CPackSetup.cmake"
+	mv "${wrksrc}/cmake/libdpp-config.cmake" "${wrksrc}/cmake/dpp-config.cmake"
+	rm -rf "${wrksrc}/include/dpp/fmt"
+	rm -rf "${wrksrc}/include/dpp/nlohmann"
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json.hpp"/\<nlohmann\/json.hpp\>/g' ${wrksrc}/CMakeLists.txt
+	sed -i -E 's/"\$\{PROJECT_SOURCE_DIR\}\/include\/dpp\/nlohmann\/json_fwd.hpp"/\<nlohmann\/json_fwd.hpp\>/g' ${wrksrc}/CMakeLists.txt
+}
+
+post_install() {
+	rm -rf usr/lib/dpp-${version%.*}
+}
+
+libdpp-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/lib/pkgconfig
+        vmkdir usr/lib/cmake/dpp
+		find "${DESTDIR}/usr/lib" -iname "*.cmake" | while read file; do vinstall "$file" 755 "usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${PKGDESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/lib/cmake/dpp
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

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

end of thread, other threads:[~2022-06-16 14:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 10:36 [PR PATCH] New package: libDPP-10.0.10 JuniorSuperTux
2022-06-14  2:34 ` [PR PATCH] [Closed]: [WIP] " JuniorSuperTux
2022-06-14  2:38 ` abenson
2022-06-14  3:26 ` JuniorSuperTux
2022-06-16 14:15 ` abenson
2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux

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