Github messages for voidlinux
 help / color / mirror / Atom feed
From: Emru1 <Emru1@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: mmapper-24.03.1
Date: Mon, 25 Mar 2024 14:47:16 +0100	[thread overview]
Message-ID: <20240325134716.24DD720230@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49523@inbox.vuxu.org>

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

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

https://github.com/Emru1/void-packages mmapper-24.03.1
https://github.com/void-linux/void-packages/pull/49523

New package: mmapper-24.03.1
<!-- 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**


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



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

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

From 0a027f60f1b7b29d454f1408f9a30e31469d115c Mon Sep 17 00:00:00 2001
From: Emil Tomczyk <emru@emru.xyz>
Date: Mon, 25 Mar 2024 11:54:01 +0100
Subject: [PATCH] New package: mmapper-24.03.1

---
 srcpkgs/mmapper/patches/glm.patch | 116 ++++++++++++++++++++++++++++++
 srcpkgs/mmapper/template          |  22 ++++++
 2 files changed, 138 insertions(+)
 create mode 100644 srcpkgs/mmapper/patches/glm.patch
 create mode 100644 srcpkgs/mmapper/template

diff --git a/srcpkgs/mmapper/patches/glm.patch b/srcpkgs/mmapper/patches/glm.patch
new file mode 100644
index 00000000000000..4842d10764a5f0
--- /dev/null
+++ b/srcpkgs/mmapper/patches/glm.patch
@@ -0,0 +1,116 @@
+index 0f1dfba..2ec58df 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -87,8 +87,6 @@ else()
+     add_definitions(/DMMAPPER_NO_MINIUPNPC)
+ endif()
+ 
+-add_subdirectory(external/glm)
+-
+ # Extract git branch and revision
+ if(EXISTS "${PROJECT_SOURCE_DIR}/.git")
+     find_package(Git)
+index 86738ad..3c44c89 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -508,9 +508,6 @@ set_target_properties(
+   UNITY_BUILD ${USE_UNITY_BUILD}
+ )
+ 
+-target_include_directories(mmapper SYSTEM PUBLIC ${GLM_INCLUDE_DIR})
+-add_dependencies(mmapper glm)
+-
+ if(WIN32)
+     target_link_libraries(mmapper PUBLIC ws2_32)
+ endif()
+index 0113b5f..1cba069 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -20,7 +20,6 @@ set(clock_SRCS
+     )
+ set(TestClock_SRCS testclock.cpp)
+ add_executable(TestClock ${TestClock_SRCS} ${clock_SRCS})
+-add_dependencies(TestClock glm)
+ target_link_libraries(TestClock Qt5::Test coverage_config)
+ set_target_properties(
+   TestClock PROPERTIES
+@@ -58,7 +57,6 @@ file(GLOB_RECURSE expandoracommon_SRCS
+     )
+ set(TestExpandoraCommon_SRCS testexpandoracommon.cpp)
+ add_executable(TestExpandoraCommon ${TestExpandoraCommon_SRCS} ${expandoracommon_SRCS})
+-add_dependencies(TestExpandoraCommon glm)
+ target_link_libraries(TestExpandoraCommon Qt5::Test coverage_config)
+ set_target_properties(
+   TestExpandoraCommon PROPERTIES
+@@ -93,7 +91,6 @@ set(parser_SRCS
+     )
+ set(TestParser_SRCS testparser.cpp)
+ add_executable(TestParser ${TestParser_SRCS} ${parser_SRCS})
+-add_dependencies(TestParser glm)
+ target_link_libraries(TestParser Qt5::Test coverage_config)
+ set_target_properties(
+   TestParser PROPERTIES
+@@ -118,7 +115,6 @@ set(proxy_SRCS
+     )
+ set(TestProxy_SRCS TestProxy.cpp)
+ add_executable(TestProxy ${TestProxy_SRCS} ${proxy_SRCS})
+-add_dependencies(TestProxy glm)
+ target_link_libraries(TestProxy Qt5::Test coverage_config)
+ set_target_properties(
+   TestProxy PROPERTIES
+@@ -138,7 +134,6 @@ set(mainwindow_SRCS
+     )
+ set(TestMainWindow_SRCS TestMainWindow.cpp)
+ add_executable(TestMainWindow ${TestMainWindow_SRCS} ${mainwindow_SRCS})
+-add_dependencies(TestMainWindow glm)
+ target_link_libraries(TestMainWindow Qt5::Widgets Qt5::Network Qt5::Test coverage_config)
+ set_target_properties(
+   TestMainWindow PROPERTIES
+@@ -164,7 +159,6 @@ set(global_SRCS
+     )
+ set(TestGlobal_SRCS TestGlobal.cpp)
+ add_executable(TestGlobal ${TestGlobal_SRCS} ${global_SRCS})
+-add_dependencies(TestGlobal glm)
+ target_link_libraries(TestGlobal Qt5::Widgets Qt5::Test coverage_config)
+ set_target_properties(
+   TestGlobal PROPERTIES
+@@ -200,7 +194,6 @@ set(adventure_SRCS
+         )
+ set(TestAdventure_SRCS testadventure.cpp testadventure.h)
+ add_executable(TestAdventure ${TestAdventure_SRCS} ${adventure_SRCS})
+-add_dependencies(TestAdventure glm)
+ target_link_libraries(TestAdventure Qt5::Widgets Qt5::Network Qt5::Test coverage_config)
+ set_target_properties(
+         TestAdventure PROPERTIES
+@@ -219,7 +212,6 @@ set(timer_test
+ )
+ set(TestTimer TestCTimers.cpp)
+ add_executable(TestTimer ${timer_test} ${TestTimer})
+-add_dependencies(TestTimer glm)
+ target_link_libraries(TestTimer Qt5::Test coverage_config)
+ set_target_properties(
+         TestTimer PROPERTIES
+@@ -238,7 +230,6 @@ set(room_mob
+ )
+ set(RoomMob roompanel/TestRoomMob.cpp)
+ add_executable(TestRoomMob ${room_mob} ${RoomMob})
+-add_dependencies(TestRoomMob glm)
+ target_link_libraries(TestRoomMob Qt5::Test Qt5::Gui Qt5::Widgets coverage_config)
+ set_target_properties(
+         TestRoomMob PROPERTIES
+@@ -260,7 +251,6 @@ set(room_mobs
+ )
+ set(RoomMobs roompanel/TestRoomMobs.cpp)
+ add_executable(TestRoomMobs ${room_mobs} ${RoomMobs})
+-add_dependencies(TestRoomMobs glm)
+ target_link_libraries(TestRoomMobs Qt5::Test Qt5::Gui Qt5::Widgets coverage_config)
+ set_target_properties(
+         TestRoomMobs PROPERTIES
+@@ -285,7 +275,6 @@ set(room_manager
+ )
+ set(RoomManager roompanel/TestRoomManager.cpp)
+ add_executable(TestRoomManager ${room_manager} ${RoomManager})
+-add_dependencies(TestRoomManager glm)
+ target_link_libraries(TestRoomManager Qt5::Test Qt5::Gui Qt5::Widgets coverage_config)
+ set_target_properties(
+         TestRoomManager PROPERTIES
diff --git a/srcpkgs/mmapper/template b/srcpkgs/mmapper/template
new file mode 100644
index 00000000000000..cddb4818811cf4
--- /dev/null
+++ b/srcpkgs/mmapper/template
@@ -0,0 +1,22 @@
+# Template file for 'mmapper'
+pkgname=mmapper
+version=24.03.1
+revision=1
+build_style=cmake
+hostmakedepends="qt5-qmake qt5-host-tools"
+makedepends="zlib-devel openssl-devel miniupnpc-devel qt5-devel glm"
+short_desc="Graphical client and mapper for MUME MUD"
+maintainer="Emil Tomczyk <emru@emru.xyz>"
+license="GPL-2.0-only"
+homepage="https://mume.github.io/MMapper/"
+changelog="https://github.com/MUME/MMapper"
+distfiles="https://github.com/MUME/MMapper/archive/refs/tags/v${version}.tar.gz
+ https://github.com/MUME/MMapper/releases/download/v${version}/arda.mm2"
+checksum="c22ebb6aa83847970982682fad52e26a1469212b8703386874b70e1d05eaa994
+ 8d71f9a62222f53bb2bd13d6e8fa389d8dabc23b29f8c4bea40f7034506270ac"
+skip_extraction="arda.mm2"
+
+pre_configure() {
+	mkdir -p build/map/
+	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/arda.mm2 build/map/
+}

      parent reply	other threads:[~2024-03-25 13:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-25 13:21 [PR PATCH] " Emru1
2024-03-25 13:41 ` [PR PATCH] [Updated] " Emru1
2024-03-25 13:47 ` Emru1 [this message]

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=20240325134716.24DD720230@inbox.vuxu.org \
    --to=emru1@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).