1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

games/apricots: update 0.2.7 → 0.2.8

This commit is contained in:
Dmitry Marakasov 2023-05-12 18:25:22 +03:00
parent bc703377e1
commit 0d230a0c70
4 changed files with 7 additions and 40 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= apricots
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.7
DISTVERSION= 0.2.8
CATEGORIES= games
MAINTAINER= amdmi3@FreeBSD.org
@ -10,7 +10,9 @@ WWW= https://github.com/moggers87/apricots
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf compiler:c++17-lang gmake openal:al,alut sdl
LIB_DEPENDS= libalure.so:audio/alure
USES= autoreconf compiler:c++17-lang gmake openal:al sdl
USE_GITHUB= yes
GH_ACCOUNT= moggers87
GNU_CONFIGURE= yes
@ -23,10 +25,6 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|$$(pkgdatadir)|$${DESTDIR}&|' \
${WRKSRC}/apricots/Makefile.am
post-install:
${INSTALL_DATA} ${WRKSRC}/contrib/apricots.desktop \
${STAGEDIR}${PREFIX}/share/applications/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1647376396
SHA256 (moggers87-apricots-v0.2.7_GH0.tar.gz) = 82b993f5f0a3ed0f3b0e07a11bc955cd175b3738eb66769c01d0e1faacb5a44c
SIZE (moggers87-apricots-v0.2.7_GH0.tar.gz) = 330430
TIMESTAMP = 1683899226
SHA256 (moggers87-apricots-v0.2.8_GH0.tar.gz) = 5d1f1dfdd6ddcfa7dab537760b0df5f86fe9c8dbca89dd7a0692083555e476bc
SIZE (moggers87-apricots-v0.2.8_GH0.tar.gz) = 331943

View File

@ -1,11 +0,0 @@
--- apricots/all.cpp.orig 2021-02-12 23:45:58 UTC
+++ apricots/all.cpp
@@ -18,7 +18,7 @@ int wrap(int n, int min, int max) { return ((((n - min
// Sign function
-inline int sign(int n) { return (0 < n) - (n < 0); }
+int sign(int n) { return (0 < n) - (n < 0); }
// Error message for switch statements that shouldn't ever get to default

View File

@ -1,20 +0,0 @@
--- apricots/init.cpp.orig 2021-02-12 23:45:58 UTC
+++ apricots/init.cpp
@@ -219,7 +219,7 @@ void init_gameconstants(gamedata &g) {
string getConfig(string config, string name, string defval) {
// Pull out just the name line
- unsigned int ndx = config.find(name);
+ size_t ndx = config.find(name);
if (ndx == string::npos) {
return defval;
@@ -240,7 +240,7 @@ string getConfig(string config, string name, string de
int getConfig(string config, string name, int defval, int min, int max) {
// Pull out just the name line
- unsigned int ndx = config.find(name);
+ size_t ndx = config.find(name);
if (ndx == string::npos) {
return defval;