Github messages for voidlinux
 help / color / mirror / Atom feed
From: JuniorSuperTux <JuniorSuperTux@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: libdpp-10.0.10
Date: Tue, 14 Jun 2022 13:41:01 +0200	[thread overview]
Message-ID: <20220614114101.wNfsl6u3nkJOslq0iOxEg4QoYN6VZ7qWOJrzG0yB8uY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37554@inbox.vuxu.org>

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

There is an updated 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

[WIP] 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: 3044 bytes --]

From bcde8041fd9d259fd32c0fca15884816c0862094 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..6114e90618ce
--- /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 "${DESTDIR}/usr/lib/cmake/dpp"; done
+		sed -i -E "s/if\(_realCurr STREQUAL _realOrig\)/if\(1\)/" "${DESTDIR}/usr/lib/cmake/dpp/dpp.cmake" "${DESTDIR}/usr/lib/cmake/dpp/dpp-targets.cmake"
+		sed -i -E "s/([ \(_]dpp)/\1::dpp/" "${DESTDIR}/usr/lib/cmake/dpp/dpp-targets-none.cmake"
+		vmove usr/lib/cmake
+		rm -rf "${PKGDESTDIR}/include/dpp-${version%.*}"
+		vmove usr/include
+	}
+}

  parent reply	other threads:[~2022-06-14 11:41 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-14 11:19 [PR PATCH] " JuniorSuperTux
2022-06-14 11:37 ` [PR PATCH] [Updated] [WIP] " JuniorSuperTux
2022-06-14 11:41 ` JuniorSuperTux [this message]
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

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=20220614114101.wNfsl6u3nkJOslq0iOxEg4QoYN6VZ7qWOJrzG0yB8uY@z \
    --to=juniorsupertux@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).