diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-03-22 00:00:17 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-22 05:31:55 +0000 |
commit | 405073029c1ae4a1a2a1a2cbfb7d5af0284c12f1 (patch) | |
tree | 5e8a6d4d3e74f16e5c99735c98b4c734fec540b4 /games-board | |
parent | games-board/freedoko: add gitlab upstream metadata (diff) | |
download | gentoo-405073029c1ae4a1a2a1a2cbfb7d5af0284c12f1.tar.gz gentoo-405073029c1ae4a1a2a1a2cbfb7d5af0284c12f1.tar.bz2 gentoo-405073029c1ae4a1a2a1a2cbfb7d5af0284c12f1.zip |
games-board/freedoko: add 0.8.0
Brings us up from 2017 to end of 2023. Drop hack for CXX std as it was
introduced in commit 91ecddb6c84583bc2839b5b510629880a763a045 for the
purpose of "Fix building with latest glibmm/libsigc++" and it seems
quite archaic as a temporary hotfix.
Reroll the patch, drop 2 data directories that were dropped upstream.
The new version handily fixes compiling with LTO.
Closes: https://bugs.gentoo.org/926051
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/freedoko/Manifest | 1 | ||||
-rw-r--r-- | games-board/freedoko/files/freedoko-0.8.0-gentoo.patch | 34 | ||||
-rw-r--r-- | games-board/freedoko/freedoko-0.8.0.ebuild | 97 |
3 files changed, 132 insertions, 0 deletions
diff --git a/games-board/freedoko/Manifest b/games-board/freedoko/Manifest index 54c25bb38de9..40a4bbd1f995 100644 --- a/games-board/freedoko/Manifest +++ b/games-board/freedoko/Manifest @@ -1,4 +1,5 @@ DIST FreeDoko_0.7.16.src.zip 21763114 BLAKE2B a02e562badef67d596a5652a384022c0d7e86af766bdde35ce6fa18b212142a6f9008e3f702bdb571efc20cbbbaf1ebf61633a0e09fa97ed7bb5798268daaf34 SHA512 5a656539a6d8b06873532a32869a54a3cab68532b7ee8eb526e92c378ded957478e71ff5c2b1b5674f9433bb62adf2e94bdcf2d3ce13ffc7d846f268adbce314 +DIST FreeDoko_0.8.0.src.zip 24831232 BLAKE2B 3c5265e4fefe9de2509c5b6db1660261be5f3cfceeaac9dcf2d7e8138ae71fad950745427979fa123a501c560b312ad0db4a12cf93a90948fcc6f4b8a442bb90 SHA512 db2ca8a0775313e212c7e16fe01189d3fed035503d5ebfb3047af07ec24f58f7a3c17270b65aa1d9f5531c81a636ce7881bea656ff2a131528c593ae3948093b DIST freedoko-backgrounds.zip 1067740 BLAKE2B 1f4485007bc78c3d7d497ba556a9f7bf0ff121a228e9d938ee000a12bd3921eef14c40cfbc6806b95c5905bff3f8e823b56c5fc110b290719a0771351f985d5c SHA512 66f118a5440b854c7ad4b1bdfd63e7f3bc16e66c921a6f632637269ca8855a6a45eb05a71bfb9105abda20285e35994ff3c9c50649f70ab6de4a082e092c3a14 DIST gnome-games.zip 3338038 BLAKE2B cc2ddb0abfcc1557addf896d15daf00150ec08d7bd75ae9c4fdf1e4cd6e5d126e9dcd5e50a7c62f1d74cb881259da8ba96f2f5623ff84041d04c6b5a38b9662e SHA512 42dd63c4eb696d7964b0ad30ff0032c80c93e8bd0a2517b0938005eaf8b12a584d7ce7901c6b3bb0bb55372e484162240c7719d2bf102035870b9c57f1930ec1 DIST kdecarddecks.zip 3370611 BLAKE2B d097bd95545e57250ea7dc034d40577253cf8e78e539e7b81217a548903817ee792a5ee1115eef7d8238b3e90a70601e272df84fc304b43be4a28697220d545c SHA512 4f3fdac3c672fd1de3db2f6603919a242db73e2445a8dac07d45dcf284cfbb56948925d6e512f15a0b4c762b71758c0755312624a0030a4d8f11dbfe65666c44 diff --git a/games-board/freedoko/files/freedoko-0.8.0-gentoo.patch b/games-board/freedoko/files/freedoko-0.8.0-gentoo.patch new file mode 100644 index 000000000000..d4935fedfb72 --- /dev/null +++ b/games-board/freedoko/files/freedoko-0.8.0-gentoo.patch @@ -0,0 +1,34 @@ +diff --git a/src/Makefile b/src/Makefile +index 95d51e8..6eab774 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -266,12 +266,7 @@ $(PROGRAM) : show_settings + # Gentoo users do want to see the real compile line. + # So remove the next five lines (the echo lines) + # and remove the '@' in the line after. +- @echo '$(CXX) $$(OBJ_FILES_ALL)' +- @echo ' $(LIBS_ALL)' +- @echo ' $(CXXFLAGS)' +- @echo ' $(LDFLAGS)' +- @echo ' -o $@' +- @$(CXX) \ ++ $(CXX) \ + $(OBJ_FILES_ALL:%.o=$(OBJDIR)/%.o) \ + $(LIBS_ALL) \ + $(CXXFLAGS) \ +diff --git a/src/Makefile.rules b/src/Makefile.rules +index 8ff7b35..0745227 100644 +--- a/src/Makefile.rules ++++ b/src/Makefile.rules +@@ -92,9 +92,8 @@ $(TARGET_DIR_LOCAL)%.o : %.cpp \ + $(DEPTH)/Makefile.os + # Gentoo users do want to see the real compile line. + # So remove the next line and remove the '@' in the lines after. +- @echo $(CXX) -c $(SUBDIR)/$< +- @$(RM) $(TARGET_DIR_LOCAL)*.gcno $(TARGET_DIR_LOCAL)*.gcda +- @$(CXX) $(INCLUDE) $(CPPFLAGS) $(CPPFLAGS_FREEDOKO) $(CXXFLAGS) $(DEPGEN_FLAGS) -o $@ -c $< ++ $(RM) $(TARGET_DIR_LOCAL)*.gcno $(TARGET_DIR_LOCAL)*.gcda ++ $(CXX) $(INCLUDE) $(CPPFLAGS) $(CPPFLAGS_FREEDOKO) $(CXXFLAGS) $(DEPGEN_FLAGS) -o $@ -c $< + + + -include $(OBJ_FILES:%.o=$(TARGET_DIR_LOCAL)%.d) diff --git a/games-board/freedoko/freedoko-0.8.0.ebuild b/games-board/freedoko/freedoko-0.8.0.ebuild new file mode 100644 index 000000000000..2a7beb3e17a4 --- /dev/null +++ b/games-board/freedoko/freedoko-0.8.0.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop flag-o-matic toolchain-funcs + +DESCRIPTION="FreeDoko is a Doppelkopf-game" +HOMEPAGE="https://free-doko.sourceforge.net" +SRC_URI=" + mirror://sourceforge/free-doko/FreeDoko_${PV}.src.zip + backgrounds? ( mirror://sourceforge/free-doko/backgrounds.zip -> ${PN}-backgrounds.zip ) + gnomecards? ( mirror://sourceforge/free-doko/gnome-games.zip ) + kdecards? ( mirror://sourceforge/free-doko/kdecarddecks.zip ) + openclipartcards? ( mirror://sourceforge/free-doko/openclipart.zip ) + pysolcards? ( mirror://sourceforge/free-doko/pysol.zip ) + xskatcards? ( mirror://sourceforge/free-doko/xskat.zip ) + !xskatcards? ( + !kdecards? ( + !gnomecards? ( + !openclipartcards? ( + !pysolcards? ( + mirror://sourceforge/free-doko/xskat.zip ) ) ) ) )" +S="${WORKDIR}/FreeDoko_${PV}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+backgrounds +gnomecards +kdecards +openclipartcards +pysolcards +xskatcards" + +RDEPEND=" + dev-cpp/gtkmm:3.0 + media-libs/openal" +DEPEND="${RDEPEND}" +BDEPEND=" + app-arch/unzip + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.8.0-gentoo.patch +) + +src_unpack() { + unpack FreeDoko_${PV}.src.zip + + local cards= + unpack_cards() { + if use $1; then + cards=y + unpack $2 + fi + } + + cd "${S}"/data/cardsets || die + + unpack_cards gnomecards gnome-games.zip + unpack_cards kdecards kdecarddecks.zip + unpack_cards openclipartcards openclipart.zip + unpack_cards pysolcards pysol.zip + unpack_cards xskatcards xskat.zip + [[ $cards ]] || unpack xskat.zip # fall back to xskat + + if use backgrounds ; then + cd "${S}"/data/backgrounds || die + unpack ${PN}-backgrounds.zip + fi +} + +src_compile() { + tc-export CXX + append-cppflags \ + -DPUBLIC_DATA_DIRECTORY_VALUE="'\"${EPREFIX}/usr/share/${PN}\"'" \ + -DMANUAL_DIRECTORY_VALUE="'\"${EPREFIX}/usr/share/doc/${PF}/html\"'" + touch src/Makefile.local || die # needed for above paths to be used + + export OSTYPE=Linux + export USE_NETWORK=false + export USE_SOUND_ALUT=false # still marked experimental + export VARTEXFONTS="${T}/fonts" #652028 + + emake Version + emake -C src FreeDoko LIBS="${LDFLAGS}" +} + +src_install() { + newbin src/FreeDoko freedoko + + insinto /usr/share/${PN} + doins -r data/{backgrounds,cardsets,iconsets,sounds,*.png} + + newicon src/icon.png ${PN}.png + make_desktop_entry ${PN} FreeDoko + + einstalldocs + + find "${ED}"/usr/share/${PN} -name Makefile -delete || die +} |