Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] xmoto: update to 0.6.1.
@ 2020-08-03 21:28 abenson
  2020-08-03 21:32 ` [PR REVIEW] " ericonr
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: abenson @ 2020-08-03 21:28 UTC (permalink / raw)
  To: ml

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

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

https://github.com/abenson/void-packages xmoto_0.6.1
https://github.com/void-linux/void-packages/pull/24030

xmoto: update to 0.6.1.


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-xmoto_0.6.1-24030.patch --]
[-- Type: text/x-diff, Size: 7277 bytes --]

From 5631e8b87b46b3ea8e8a1337742fd27b4d137d05 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson+void@gmail.com>
Date: Mon, 22 Jun 2020 21:18:04 -0500
Subject: [PATCH] xmoto: update to 0.6.1.

---
 srcpkgs/xmoto/patches/fix-gcc7.patch          | 47 -------------------
 srcpkgs/xmoto/patches/fix-include.patch       | 25 ----------
 .../patches/modernize-configure_ac.patch      | 16 -------
 srcpkgs/xmoto/patches/musl-stdint_h.patch     | 10 ----
 srcpkgs/xmoto/template                        | 32 +++----------
 5 files changed, 7 insertions(+), 123 deletions(-)
 delete mode 100644 srcpkgs/xmoto/patches/fix-gcc7.patch
 delete mode 100644 srcpkgs/xmoto/patches/fix-include.patch
 delete mode 100644 srcpkgs/xmoto/patches/modernize-configure_ac.patch
 delete mode 100644 srcpkgs/xmoto/patches/musl-stdint_h.patch

diff --git a/srcpkgs/xmoto/patches/fix-gcc7.patch b/srcpkgs/xmoto/patches/fix-gcc7.patch
deleted file mode 100644
index bf8b1cba1f3..00000000000
--- a/srcpkgs/xmoto/patches/fix-gcc7.patch
+++ /dev/null
@@ -1,47 +0,0 @@
---- ./src/WWW.cpp.orig	2018-01-16 10:53:58.725405426 +0100
-+++ ./src/WWW.cpp	2018-01-16 10:55:14.802101942 +0100
-@@ -206,7 +206,7 @@ void FSWeb::downloadFile(const std::stri
-   std::string v_www_agent = WWW_AGENT;
- 
-   /* open the file */
--  if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == false) {
-+  if( !(v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) ) {
-     throw Exception("error : unable to open output file " 
-         + v_local_file_tmp);
-   }
-@@ -320,7 +320,7 @@ void FSWeb::uploadReplay(const std::stri
-   LogInfo(std::string("Uploading replay " + p_replayFilename).c_str());
- 
-   /* open the file */
--  if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) {
-+  if( !(v_destinationFile = fopen(v_local_file.c_str(), "wb")) ) {
-     throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("UR"));
-   }
-       
-@@ -478,7 +478,7 @@ void FSWeb::sendVote(const std::string&
-   LogInfo("Sending vote");
- 
-   /* open the file */
--  if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) {
-+  if( !(v_destinationFile = fopen(v_local_file.c_str(), "wb")) ) {
-     throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SV"));
-   }
-       
-@@ -562,7 +562,7 @@ void FSWeb::sendReport(const std::string
-   LogInfo("Sending report");
- 
-   /* open the file */
--  if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) {
-+  if( !(v_destinationFile = fopen(v_local_file.c_str(), "wb")) ) {
-     throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SR"));
-   }
-       
-@@ -677,7 +677,7 @@ void FSWeb::uploadDbSync(const std::stri
-   LogInfo(std::string("Uploading dbsync " + p_dbSyncFilename + " to " + p_url_to_transfert).c_str());
- 
-   /* open the file */
--  if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == false) {
-+  if( !(v_destinationFile = fopen(p_answerFile.c_str(), "wb")) ) {
-     throw Exception("error : unable to open output file " + p_answerFile);
-   }
-       
diff --git a/srcpkgs/xmoto/patches/fix-include.patch b/srcpkgs/xmoto/patches/fix-include.patch
deleted file mode 100644
index 4bc2179e376..00000000000
--- a/srcpkgs/xmoto/patches/fix-include.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- src/net/NetActions.cpp.orig	2018-01-16 11:03:55.152026167 +0100
-+++ src/net/NetActions.cpp	2018-01-16 11:03:59.910007186 +0100
-@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place, Suite
- #include <sstream>
- #include "../helpers/SwapEndian.h"
- #include "helpers/Net.h"
--#include "helpers/utf8.h"
-+#include "../helpers/utf8.h"
- 
- char NetAction::m_buffer[NETACTION_MAX_PACKET_SIZE];
- unsigned int NetAction::m_biggestTCPPacketSent = 0;
---- src/helpers/utf8.h.orig	2018-01-16 11:08:10.042009362 +0100
-+++ src/helpers/utf8.h	2018-01-16 11:08:17.306980381 +0100
-@@ -18,8 +18,8 @@ along with XMOTO; if not, write to the F
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- =============================================================================*/
- 
--#ifndef __UTF8_H__
--#define __UTF8_H__
-+#ifndef __MYUTF8_H__
-+#define __MYUTF8_H__
- 
- #include <vector>
- #include <string>
-
diff --git a/srcpkgs/xmoto/patches/modernize-configure_ac.patch b/srcpkgs/xmoto/patches/modernize-configure_ac.patch
deleted file mode 100644
index be88ff4c6b5..00000000000
--- a/srcpkgs/xmoto/patches/modernize-configure_ac.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- configure.in	2014-03-29 11:35:24.000000000 +0100
-+++ configure.in	2015-11-03 13:02:49.686607352 +0100
-@@ -1,8 +1,8 @@
--AC_INIT(src/GameInit.cpp)
--
--AC_CANONICAL_TARGET()
--AM_INIT_AUTOMAKE(xmoto,0.5.11)
--AC_GNU_SOURCE
-+AC_PREREQ([2.69])
-+AC_INIT([xmoto],[0.5.11])
-+AC_CONFIG_SRCDIR(src/GameInit.cpp)
-+AM_INIT_AUTOMAKE([1.15 foreign gnu subdir-objects])
-+LT_INIT
- 
- AC_PROG_CXX
- AC_PROG_CPP
diff --git a/srcpkgs/xmoto/patches/musl-stdint_h.patch b/srcpkgs/xmoto/patches/musl-stdint_h.patch
deleted file mode 100644
index 03684b56923..00000000000
--- a/srcpkgs/xmoto/patches/musl-stdint_h.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/DBuffer.cpp	2011-10-11 22:18:35.000000000 +0200
-+++ src/DBuffer.cpp	2015-10-01 22:28:36.654255001 +0200
-@@ -23,6 +23,7 @@
-  */
- #include "DBuffer.h"
- #include "helpers/SwapEndian.h"
-+#include <stdint.h>
- #include <algorithm>
- 
-   void DBuffer::_FreeDBuffer(void) {
diff --git a/srcpkgs/xmoto/template b/srcpkgs/xmoto/template
index 70803d714f2..a0ea2d7353b 100644
--- a/srcpkgs/xmoto/template
+++ b/srcpkgs/xmoto/template
@@ -1,9 +1,9 @@
 # Template file for 'xmoto'
 pkgname=xmoto
-version=0.5.11
-revision=11
-build_style=gnu-configure
-configure_args="--disable-sdltest CPPFLAGS=-DdDOUBLE"
+version=0.6.1
+revision=1
+build_style=cmake
+configure_args="-DOpenGL_GL_PREFERENCE=GLVND"
 hostmakedepends="automake libtool gettext-devel intltool desktop-file-utils"
 makedepends="sqlite-devel zlib-devel libjpeg-turbo-devel libpng-devel
  libxml2-devel libxdg-basedir-devel glu-devel SDL-devel SDL_mixer-devel
@@ -13,27 +13,9 @@ short_desc="2D motocross platform game"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="http://xmoto.tuxfamily.org/"
-distfiles="http://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz"
-checksum=a584a6f9292b184686b72c78f16de4b82d5c5b72ad89e41912ff50d03eca26b2
-
-# Build using the old C++ ABI to fix issue with missing text; the issue
-# should be fixed in the next stable release (if that ever does happen)
-CPPFLAGS+=" -D_GLIBCXX_USE_CXX11_ABI=0"
-
-if [ "$CROSS_BUILD" ]; then
-	# configure can't test this when cross compiling
-	export ac_cv_lib_GLU_gluBuild2DMipmaps=yes
-	LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
-	hostmakedepends+=" SDL_mixer-devel libxml2-devel"
-fi
-
-pre_configure() {
-	# remove old ode version
-	rm -r src/ode
-	mv configure.{in,ac}
-	libtoolize
-	./bootstrap
-}
+distfiles="https://github.com/xmoto/xmoto/archive/${version}/${version}.tar.gz"
+checksum=209c8c38b1742d0620d40f90365c7a56f67c86da826c80a76d37fa46ee9c9b66
+nocross="Packing xmoto.bin; /bin/sh: xmoto: command not found"
 
 post_install() {
 	desktop-file-install --set-key=Icon --set-value=xmoto -m 0644 \

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

end of thread, other threads:[~2020-08-04  1:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 21:28 [PR PATCH] xmoto: update to 0.6.1 abenson
2020-08-03 21:32 ` [PR REVIEW] " ericonr
2020-08-03 23:05 ` [PR PATCH] [Updated] " abenson
2020-08-04  0:03 ` abenson
2020-08-04  0:04 ` abenson
2020-08-04  0:29 ` sgn
2020-08-04  0:30 ` sgn
2020-08-04  0:31 ` sgn
2020-08-04  0:42 ` [PR PATCH] [Updated] " abenson
2020-08-04  0:50 ` sgn
2020-08-04  0:51 ` ericonr
2020-08-04  0:57 ` [PR PATCH] [Updated] " abenson
2020-08-04  0:57 ` sgn
2020-08-04  1:26 ` [PR PATCH] [Merged]: " abenson

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