Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: libdpp-10.0.10
@ 2022-06-14 11:19 JuniorSuperTux
  2022-06-14 11:37 ` [PR PATCH] [Updated] [WIP] " JuniorSuperTux
                   ` (49 more replies)
  0 siblings, 50 replies; 51+ 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] 51+ messages in thread

end of thread, other threads:[~2022-07-05 14:11 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-14 11:19 [PR PATCH] New package: libdpp-10.0.10 JuniorSuperTux
2022-06-14 11:37 ` [PR PATCH] [Updated] [WIP] " JuniorSuperTux
2022-06-14 11:41 ` JuniorSuperTux
2022-06-14 11:48 ` JuniorSuperTux
2022-06-14 11:50 ` JuniorSuperTux
2022-06-14 12:00 ` JuniorSuperTux
2022-06-14 12:28 ` JuniorSuperTux
2022-06-14 12:35 ` JuniorSuperTux
2022-06-15 22:29 ` [PR REVIEW] " classabbyamp
2022-06-15 22:29 ` classabbyamp
2022-06-15 22:29 ` classabbyamp
2022-06-15 22:30 ` classabbyamp
2022-06-15 23:25 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-15 23:36 ` [PR REVIEW] " JuniorSuperTux
2022-06-15 23:48 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-15 23:48 ` JuniorSuperTux
2022-06-15 23:51 ` JuniorSuperTux
2022-06-15 23:56 ` JuniorSuperTux
2022-06-16  0:02 ` JuniorSuperTux
2022-06-16  0:06 ` JuniorSuperTux
2022-06-16  0:17 ` JuniorSuperTux
2022-06-16  1:45 ` classabbyamp
2022-06-16  1:48 ` [PR REVIEW] " classabbyamp
2022-06-16 14:49 ` abenson
2022-06-16 14:50 ` abenson
2022-06-16 14:50 ` abenson
2022-06-16 14:51 ` abenson
2022-06-16 15:00 ` abenson
2022-06-16 15:02 ` abenson
2022-06-16 15:25 ` abenson
2022-06-16 15:43 ` abenson
2022-06-16 15:45 ` abenson
2022-06-16 15:45 ` abenson
2022-06-16 15:46 ` abenson
2022-06-17  5:58 ` [PR REVIEW] " JuniorSuperTux
2022-06-17 11:19 ` JuniorSuperTux
2022-06-18  7:17 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-18  7:27 ` abenson
2022-06-18  7:28 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-18  7:29 ` JuniorSuperTux
2022-06-18 11:55 ` JuniorSuperTux
2022-06-18 11:55 ` JuniorSuperTux
2022-06-18 13:00 ` classabbyamp
2022-06-23 15:37 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-06-23 15:38 ` JuniorSuperTux
2022-06-23 16:24 ` classabbyamp
2022-07-03  5:22 ` [PR PATCH] [Updated] " JuniorSuperTux
2022-07-03  5:22 ` JuniorSuperTux
2022-07-03  6:08 ` JuniorSuperTux
2022-07-05 12:29 ` JuniorSuperTux
2022-07-05 14:11 ` [PR REVIEW] " paper42

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