mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
games-puzzle/sgt-puzzles: add 20250904
* Add missing ImageMagick BDEPEND. It is needed to generate icons. * This version no longer needs X11 headers to compile. * This version fixes linking issues. Signed-off-by: Alexander Tsoy <alexander@tsoy.me> Part-of: https://github.com/gentoo/gentoo/pull/42993 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
e62e7bd1fe
commit
812d18c10b
@ -1,2 +1,3 @@
|
||||
DIST puzzles-20190415.e2135d5.tar.gz 3286744 BLAKE2B 6b19cde3f95b5375bde74923a5f8e3deb9abb7d4d737ad5f2d18aa7895b973a9ca1ed4a495cf80da8390ed7fb63f1eb973c8053d52145e5752c56e38d3ac19d7 SHA512 5f38c96cff4e745a1c1615762c0e5f3f3dd056ff7dbf0f80a5953e658ae1460503c6394fe29301f5682485d6a6121869853a270dc60327821a3059ca6d971fa1
|
||||
DIST sgt-puzzles-20250627.tar.gz 2467512 BLAKE2B 8d19d3bee5b171ed2645cf47f7bc84fd94ef7c0ea8dc47ad758c7e74131e8e34060fceb471082007f61b4a03e2e9e9c6419906357e43993e80fcd27a56b1b138 SHA512 6ffc2eda1abc0f6808b044571478cf543339785049ab8adb0d7755a65a7ea969747637c0ac9fc440a780db3145abf3c0a881b42fd2c115481db8023ac0a60423
|
||||
DIST sgt-puzzles-20250904.tar.gz 2468223 BLAKE2B 1da3846645a073f0f86865321cdf238603da271c12cc5761df572ec1019035213067e72100cbf931e5f2103af43b82c8c5ddd32daadc4de105c414e1e8015ea1 SHA512 6faa3c6d735632f7434d8cd888f97f5c69cb519d0a872292367fcb10836487fac4bd4df172c4c8e93e50be70308834790c662ec2c2d44cbacf5075c18b2c990f
|
||||
|
||||
@ -0,0 +1,13 @@
|
||||
Don't build cli programs. Build system doesn't install them anyway.
|
||||
|
||||
--- a/cmake/setup.cmake
|
||||
+++ b/cmake/setup.cmake
|
||||
@@ -3,7 +3,7 @@ set(PUZZLES_ENABLE_UNFINISHED ""
|
||||
to build as if official (separated by ';')")
|
||||
|
||||
set(build_individual_puzzles TRUE)
|
||||
-set(build_cli_programs TRUE)
|
||||
+set(build_cli_programs FALSE)
|
||||
set(build_gui_programs TRUE)
|
||||
set(build_icons FALSE)
|
||||
set(need_c_icons FALSE)
|
||||
65
games-puzzle/sgt-puzzles/sgt-puzzles-20250904.ebuild
Normal file
65
games-puzzle/sgt-puzzles/sgt-puzzles-20250904.ebuild
Normal file
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake xdg-utils
|
||||
|
||||
DESCRIPTION="Simon Tatham's Portable Puzzle Collection"
|
||||
HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
|
||||
MY_HASH=2376227
|
||||
SRC_URI="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.${MY_HASH}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/puzzles-${PV}.${MY_HASH}
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
COMMON_DEPEND="x11-libs/gtk+:3"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
x11-misc/xdg-utils
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}"
|
||||
BDEPEND="
|
||||
app-text/halibut
|
||||
dev-lang/perl
|
||||
virtual/imagemagick-tools[png]
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( puzzles.txt HACKING )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-20250904-no-cli.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DNAME_PREFIX="${PN}_"
|
||||
-DPUZZLES_GTK_VERSION=3
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
sed -i "s/^Categories=.*/&X-${PN};/" "${BUILD_DIR}"/*.desktop || die
|
||||
|
||||
cmake_src_install
|
||||
|
||||
einstalldocs
|
||||
|
||||
insinto /etc/xdg/menus/applications-merged
|
||||
doins "${FILESDIR}/${PN}.menu"
|
||||
insinto /usr/share/desktop-directories
|
||||
doins "${FILESDIR}/${PN}.directory"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user