From nobody Tue Apr 09 00:09:55 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VD5tr2s2cz5G7FR; Tue, 9 Apr 2024 00:09:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VD5tr12r9z4b7F; Tue, 9 Apr 2024 00:09:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712621396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gp4eWSoi34tnTq820SB7nYi1YCrNSy1J6q1ilR6rSjs=; b=nKo+6+h56JJRxQ328hb2/bi0lQmKjkduhJVbhfjn7QVYL6/KoIQIP3X5eNtQdOU3KySOBE 555N3tqwSPBRwFHmsQRdYXOq/IWIOk1RYoEsAbvnoeBiBZ9quwkGYSUA8Vzrt53JMzcAFw jUNdShSNqmLUyi9Xnvbohpd5Dh87O76f2HzhYcA8HqtTbw0fzzSSfQSf4RXUYHflacZlWz /KOyZiyratGdfNceSgzyooKoMOorndgLYT1rWNZH8f6CgLcQ5iW3oLuuU7DeaFTWAitvkG tGSapo6WYuCJ/uiEcWJbJl1EsQxrVapBIBOGeDC0UvjVdeNM6HBe1dFmmWY/wQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712621396; a=rsa-sha256; cv=none; b=W4rjmguFoQra5QYFvpnAOHpXJ9yD8q+FOmudIsF3thLfzkGL1t9CwWD5oPR+AhaXOWpHLV U5vzlChAi9+Ej1V0xRkMSoGVq0vZTH8lXpVsLAhZ6UbHGGEQLwIdcNysJ6wHIZjH8L4HCA 2W3euy1UuePOywD0tEE3mgFHCk7vfSzVWZc1oS323EAmzhQ+EhuBueTkhuMoylmsgywr2b 0TPiQYqnDsa3wwQMHRY25sKgzfgpLDjt+YaHsoPTUWZTLRO3+v2moYKaTHw/sMkvKOw6v0 gfAZYj8fE8jAtjPHrKnNzcnQbfeF47VEVpXRlSGx75jqUUbNDDeoHgIYSzOV2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712621396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gp4eWSoi34tnTq820SB7nYi1YCrNSy1J6q1ilR6rSjs=; b=twqMHyL2R2ngc7hoWb+bhKDyJVK4C+8kA0Fu4CF9sBAh2Wk+Z+0oLMi/xagbbH0YTqZHer mZmBU45MFeHG4QR3Vi/GPaMy6mcXnFylsX5f18HaaNstoyCm09s8Q0r1AoABbBxe80FfHL lKIJBC8t/Wc34dQ9+D1g4XFR8pxoPG0mhSGit8kkwFAkIhSdLUaqBz+OA5U5OjMvmzH9QM MqjqctOxq3Wjf0Uk4dt+n+F+YfkKDwdkq5zD8j+9+XES1C7PFO+4TUjzA1SCrAwzgLfOpQ Q36qBw2NyuoMujRMNw99RmJL2Jatz3oo7X17FIQ4VFuys0dOBcPUSWhEeumX+w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VD5tr0g0PzY04; Tue, 9 Apr 2024 00:09:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43909taf016019; Tue, 9 Apr 2024 00:09:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43909tFg016016; Tue, 9 Apr 2024 00:09:55 GMT (envelope-from git) Date: Tue, 9 Apr 2024 00:09:55 GMT Message-Id: <202404090009.43909tFg016016@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: 46da85496acc - main - games/pipewalker: update 0.9.4 =?utf-8?Q?=E2=86=92?= 1.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 46da85496accdb2d06f67adf070fdcfce31641d9 Auto-Submitted: auto-generated The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=46da85496accdb2d06f67adf070fdcfce31641d9 commit 46da85496accdb2d06f67adf070fdcfce31641d9 Author: Dmitry Marakasov AuthorDate: 2024-04-05 20:33:14 +0000 Commit: Dmitry Marakasov CommitDate: 2024-04-09 00:08:47 +0000 games/pipewalker: update 0.9.4 → 1.0 --- games/pipewalker/Makefile | 33 ++++++++++------------------- games/pipewalker/distinfo | 6 +++--- games/pipewalker/files/patch-meson.build | 11 ++++++++++ games/pipewalker/files/patch-src_layout.cpp | 11 ++++++++++ games/pipewalker/files/patch-src_level.cpp | 33 +++++++++++++++++++++++++++++ games/pipewalker/pkg-plist | 4 ++++ 6 files changed, 73 insertions(+), 25 deletions(-) diff --git a/games/pipewalker/Makefile b/games/pipewalker/Makefile index bfdd5261b225..dfb993dbe0d7 100644 --- a/games/pipewalker/Makefile +++ b/games/pipewalker/Makefile @@ -1,36 +1,25 @@ PORTNAME= pipewalker -PORTVERSION= 0.9.4 -PORTREVISION= 2 +DISTVERSIONPREFIX=v +DISTVERSION= 1.0 CATEGORIES= games -MASTER_SITES= SF MAINTAINER= amdmi3@FreeBSD.org COMMENT= Clone of the NetWalk game WWW= https://github.com/artemsen/pipewalker -LICENSE= GPLv3+ -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libpng.so:graphics/png +USES= meson sdl pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= artemsen +MESON_ARGS= -Dversion=${DISTVERSION} +USE_SDL= sdl2 image2 -USES= desktop-file-utils gl localbase sdl -GNU_CONFIGURE= yes -USE_SDL= sdl -USE_GL= gl glu - -PLIST_FILES= bin/${PORTNAME} \ - share/applications/${PORTNAME}.desktop \ - share/pixmaps/${PORTNAME}.xpm -PORTDOCS= * PORTDATA= * -OPTIONS_DEFINE= DOCS - post-patch: - @${CHMOD} a+x ${WRKSRC}/install-sh - @${REINPLACE_CMD} -e 's|(datadir)/games|(datadir)|' \ - ${WRKSRC}/data/Makefile.in ${WRKSRC}/src/Makefile.in - @${REINPLACE_CMD} -e '/^install-data-am/ s|install-pkgmenudataDATA||' \ - ${WRKSRC}/extra/Makefile.in + @${REINPLACE_CMD} -e 's|/usr/share/games/pipewalker|${DATADIR}|' \ + ${WRKSRC}/extra/pipewalker.6 .include diff --git a/games/pipewalker/distinfo b/games/pipewalker/distinfo index 6d1319ea4760..d3637d91f15a 100644 --- a/games/pipewalker/distinfo +++ b/games/pipewalker/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1473636653 -SHA256 (pipewalker-0.9.4.tar.gz) = d6d7717f1f333847cc4a2e9d83e97b971b3bfb539d99d4ae30a5140de6e386f4 -SIZE (pipewalker-0.9.4.tar.gz) = 948399 +TIMESTAMP = 1712343984 +SHA256 (artemsen-pipewalker-v1.0_GH0.tar.gz) = 24232fdf71c7146f1621c461601b60bd6237d801e6403a5695be4d57419e1a21 +SIZE (artemsen-pipewalker-v1.0_GH0.tar.gz) = 878256 diff --git a/games/pipewalker/files/patch-meson.build b/games/pipewalker/files/patch-meson.build new file mode 100644 index 000000000000..c63adf2d8603 --- /dev/null +++ b/games/pipewalker/files/patch-meson.build @@ -0,0 +1,11 @@ +--- meson.build.orig 2024-01-14 09:10:02 UTC ++++ meson.build +@@ -33,7 +33,7 @@ else + data_dir = join_paths(meson.current_source_dir(), 'data') + else + data_dir = join_paths(get_option('prefix'), get_option('datadir'), +- 'games', meson.project_name()) ++ meson.project_name()) + endif + + # installation diff --git a/games/pipewalker/files/patch-src_layout.cpp b/games/pipewalker/files/patch-src_layout.cpp new file mode 100644 index 000000000000..17689791fc11 --- /dev/null +++ b/games/pipewalker/files/patch-src_layout.cpp @@ -0,0 +1,11 @@ +--- src/layout.cpp.orig 2024-01-14 09:10:02 UTC ++++ src/layout.cpp +@@ -43,7 +43,7 @@ void Layout::update(size_t width, size_t height) + level_height = height; + + // size of header and footer +- size_t header_h = std::min(64ul, static_cast(window.h) / 10); ++ size_t header_h = std::min((size_t)64, static_cast(window.h) / 10); + + // size of a single puzzle cell + const int max_wnd_w = window.w - padding * 2; diff --git a/games/pipewalker/files/patch-src_level.cpp b/games/pipewalker/files/patch-src_level.cpp new file mode 100644 index 000000000000..d915d86299dc --- /dev/null +++ b/games/pipewalker/files/patch-src_level.cpp @@ -0,0 +1,33 @@ +--- src/level.cpp.orig 2024-01-14 09:10:02 UTC ++++ src/level.cpp +@@ -15,8 +15,8 @@ void Level::generate() + std::fill(cells.begin(), cells.end(), Cell {}); + + // install sender (server) +- sender.x = mtrand::get(1ul, width - 1); +- sender.y = mtrand::get(1ul, height - 1); ++ sender.x = mtrand::get((size_t)1, width - 1); ++ sender.y = mtrand::get((size_t)1, height - 1); + get_cell(sender).object = Cell::Sender; + + const size_t max_recievers = cells.size() / 5; +@@ -146,7 +146,7 @@ void Level::add_reciever() + } + + // get random position +- const size_t free_index = mtrand::get(0ul, free_cells.size()); ++ const size_t free_index = mtrand::get((size_t)0, free_cells.size()); + const Position& reciever = free_cells[free_index]; + + // find path from receiver to sender +@@ -176,8 +176,8 @@ bool Level::find_path(const Position& from, std::set