summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2016-04-02 01:16:15 -0400
committerMichael Sterrett <mr_bones_@gentoo.org>2016-04-02 01:16:29 -0400
commit6b00e2d0140ccb82629183f0c07e6de060bf89f6 (patch)
tree9d649288c96e68b2062e04a3bb691d4dce6b3534
parentsys-fs/lvm2: drop old <2.02.116 versions (diff)
downloadgentoo-6b00e2d0140ccb82629183f0c07e6de060bf89f6.tar.gz
gentoo-6b00e2d0140ccb82629183f0c07e6de060bf89f6.tar.bz2
gentoo-6b00e2d0140ccb82629183f0c07e6de060bf89f6.zip
games-board/freedoko: version bump (bug #576682)
Package-Manager: portage-2.2.26
-rw-r--r--games-board/freedoko/Manifest1
-rw-r--r--games-board/freedoko/files/freedoko-0.7.14-gentoo.patch42
-rw-r--r--games-board/freedoko/freedoko-0.7.14.ebuild99
3 files changed, 142 insertions, 0 deletions
diff --git a/games-board/freedoko/Manifest b/games-board/freedoko/Manifest
index 8e3103e324cc..aed449a59f7c 100644
--- a/games-board/freedoko/Manifest
+++ b/games-board/freedoko/Manifest
@@ -1,4 +1,5 @@
DIST FreeDoko_0.7.13.src.zip 17463949 SHA256 256187c8a5bf6f21cf8c57e40fe25391e371d028d5adff67114c5a8576938cac SHA512 c352419764a6fcaa72946adc77293bcf34b80bcdea4b34422e7c48cb0f9c464a53eafb009d146930bcdb95e1010aed93380cfd8b8826647c547edfbc10d00465 WHIRLPOOL f95239b551a709eada50267bf53006201013a2ac2fca89d2bc053783b2eb70aee93c005f40e2104425f1ef8e68379680ed2c7e18cfe65dde96503405148a996f
+DIST FreeDoko_0.7.14.src.zip 21959828 SHA256 a27ab7acabb28aa8d038f0022377ea3e68d52626d454beaf0f65e0b91c777de9 SHA512 d9135ad846c48c05b3d61c07b146429ef8c54d301469a304912176164f05ee98682d05a5b2ec8feb1a568acae2d81b2bf62fa625a1fde09a5c1c03a1c782ff17 WHIRLPOOL 888223200eddf5a53fcd730ce3abe2923898f994f16be8bd83e8bfbfce515abd319b4d4aec2b04cc722a5f20c7aa62ebef8d795c1c02c8a35a1b16d53fa4bf27
DIST freedoko-backgrounds.zip 1067740 SHA256 70129744d330976da17675b59ad3f2bc088e77a7b6b8279e866da8e74ed385ee SHA512 66f118a5440b854c7ad4b1bdfd63e7f3bc16e66c921a6f632637269ca8855a6a45eb05a71bfb9105abda20285e35994ff3c9c50649f70ab6de4a082e092c3a14 WHIRLPOOL 060378fa787c12b5a422acceb71526882d1ac9ebfedca7b10cb703a3c6bed183788a27cefef39d618ba130579005ae32eee8e1cb04065097f524dc3e517cf92c
DIST gnome-games.zip 3338038 SHA256 bf4ba39f8a95f8881c58327803ff144181f6100f9bd1ad9c383b8d500dc32cf8 SHA512 42dd63c4eb696d7964b0ad30ff0032c80c93e8bd0a2517b0938005eaf8b12a584d7ce7901c6b3bb0bb55372e484162240c7719d2bf102035870b9c57f1930ec1 WHIRLPOOL c61c4f1f9c66af8c459e7210b9cee0b077d1ef6b5fc0e0df3863db2839111927a131bdd91c78676366e46fadd65fc4262465ae8e4df6046372c9e4e15c5423e0
DIST kdecarddecks.zip 3370611 SHA256 07b17aaef44c5643b12089da7ffd8f8b18f8f5541e7d01fc04e53c964780cdac SHA512 4f3fdac3c672fd1de3db2f6603919a242db73e2445a8dac07d45dcf284cfbb56948925d6e512f15a0b4c762b71758c0755312624a0030a4d8f11dbfe65666c44 WHIRLPOOL 84998d7ff4de194cce090ac66e3cbf4dbbc27519ece008cc8c2744f900bea06d6a716279e8d6d496b463d0895077bf5d5533a7d0dcee410e717823d0228e8578
diff --git a/games-board/freedoko/files/freedoko-0.7.14-gentoo.patch b/games-board/freedoko/files/freedoko-0.7.14-gentoo.patch
new file mode 100644
index 000000000000..d1d18fb485ea
--- /dev/null
+++ b/games-board/freedoko/files/freedoko-0.7.14-gentoo.patch
@@ -0,0 +1,42 @@
+--- FreeDoko_0.7.14.orig/src/Makefile
++++ FreeDoko_0.7.14/src/Makefile
+@@ -241,15 +241,7 @@
+ # compile FreeDoko
+ $(PROGRAM) : show_settings objects $(DIRECTORIES)
+ @echo 'compiling $(PROGRAM)...'
+-# 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) $(CXXFLAGS)'
+- @echo ' $$(OBJECTS)'
+- @echo ' $(INCLUDE_ALL)'
+- @echo ' $(LIBS_ALL)'
+- @echo ' -o $@'
+- @$(CXX) $(CXXFLAGS) \
++ $(CXX) $(CXXFLAGS) \
+ $(OBJECTS_ALL:%.o=$(FREEDOKO_WORKING_DIRECTORY)/%.o) \
+ $(INCLUDE_ALL) \
+ $(LIBS_ALL) \
+--- FreeDoko_0.7.14.orig/src/Makefile.os
++++ FreeDoko_0.7.14/src/Makefile.os
+@@ -1,6 +1,5 @@
+ include $(DEPTH)/../Makefile.os
+
+-include $(DEPTH)/Makefile.local
+ include $(DEPTH)/Makefile.modules
+
+ ifeq ($(OPERATING_SYSTEM), Linux)
+--- FreeDoko_0.7.14.orig/src/Makefile.rules
++++ FreeDoko_0.7.14/src/Makefile.rules
+@@ -80,10 +80,8 @@
+ $(DEPTH)/Makefile.modules \
+ $(DEPTH)/Makefile.local \
+ $(DEPTH)/Makefile.os
+-# Gentoo users do want to see the real compile line.
+-# So remove the next line and remove the '@' in the line after.
+ @echo $(CXX) -c $(SUBDIR)/$<
+- @$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE) $(DEPGEN_FLAGS) -o $@ -c $<
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE) $(DEPGEN_FLAGS) -o $@ -c $<
+
+
+ -include $(OBJECTS:%.o=$(TARGET_DIR_LOCAL)%.d)
diff --git a/games-board/freedoko/freedoko-0.7.14.ebuild b/games-board/freedoko/freedoko-0.7.14.ebuild
new file mode 100644
index 000000000000..98a1b80a9921
--- /dev/null
+++ b/games-board/freedoko/freedoko-0.7.14.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils flag-o-matic gnome2-utils games
+
+DESCRIPTION="FreeDoko is a Doppelkopf-game"
+HOMEPAGE="http://free-doko.sourceforge.net"
+SRC_URI="mirror://sourceforge/free-doko/FreeDoko_${PV}.src.zip
+ backgrounds? ( mirror://sourceforge/free-doko/backgrounds.zip -> ${PN}-backgrounds.zip )
+ kdecards? ( mirror://sourceforge/free-doko/kdecarddecks.zip )
+ xskatcards? ( mirror://sourceforge/free-doko/xskat.zip )
+ pysolcards? ( mirror://sourceforge/free-doko/pysol.zip )
+ gnomecards? ( mirror://sourceforge/free-doko/gnome-games.zip )
+ openclipartcards? ( mirror://sourceforge/free-doko/openclipart.zip )
+ !xskatcards? (
+ !kdecards? (
+ !gnomecards? (
+ !openclipartcards? (
+ !pysolcards? (
+ mirror://sourceforge/free-doko/xskat.zip ) ) ) ) )"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="+xskatcards +gnomecards +kdecards +openclipartcards +pysolcards +backgrounds net"
+
+RDEPEND="net? ( net-libs/gnet dev-libs/glib:2 )
+ >=dev-cpp/gtkmm-2.4:2.4"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ virtual/pkgconfig"
+
+S=${WORKDIR}/FreeDoko_${PV}
+
+src_unpack() {
+ local cards=0
+
+ unpack_cards() {
+ use $1 && { unpack $2 ; cards=$(( $cards + 1 )); };
+ }
+ unpack FreeDoko_${PV}.src.zip
+ cp /dev/null "${S}"/src/Makefile.local || die
+
+ cd "${S}"/data/cardsets || die
+
+ unpack_cards xskatcards xskat.zip
+ unpack_cards kdecards kdecarddecks.zip
+ unpack_cards pysolcards pysol.zip
+ unpack_cards gnomecards gnome-games.zip
+ unpack_cards openclipartcards openclipart.zip
+ [ $cards ] || unpack xskat.zip # fall back to xskat
+
+ if use backgrounds ; then
+ cd "${S}"/data/backgrounds || die
+ unpack ${PN}-backgrounds.zip
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ append-cxxflags -std=c++11
+}
+
+src_compile() {
+ export CPPFLAGS="-DPUBLIC_DATA_DIRECTORY_VALUE='\"${GAMES_DATADIR}/${PN}\"'"
+ export CPPFLAGS+=" -DMANUAL_DIRECTORY_VALUE='\"/usr/share/doc/${PF}/html\"'"
+ export OSTYPE=Linux
+ export USE_NETWORK=$(use net && echo true || echo false)
+ export USE_SOUND_ALUT=false # still marked experimental
+ emake Version
+ emake -C src FreeDoko
+}
+
+src_install() {
+ newgamesbin src/FreeDoko freedoko
+ insinto "${GAMES_DATADIR}"/${PN}/
+ doins -r data/{backgrounds,cardsets,iconsets,rules,sounds,translations,*png}
+ find "${D}${GAMES_DATADIR}"/${PN} -name Makefile -delete
+ dodoc AUTHORS README ChangeLog
+ newicon -s 32 src/FreeDoko.png ${PN}.png
+ make_desktop_entry ${PN} FreeDoko
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}