1 |
commit: 83df52b405d1829e61415ba2b35bafd8335f287b |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 29 17:58:11 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 29 18:13:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83df52b4 |
7 |
|
8 |
games-board/freedoko: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
games-board/freedoko/Manifest | 1 + |
13 |
.../freedoko/files/freedoko-0.7.16-gentoo.patch | 33 +++++++ |
14 |
games-board/freedoko/freedoko-0.7.16.ebuild | 100 +++++++++++++++++++++ |
15 |
3 files changed, 134 insertions(+) |
16 |
|
17 |
diff --git a/games-board/freedoko/Manifest b/games-board/freedoko/Manifest |
18 |
index d4d7544b3f4..ff03641f422 100644 |
19 |
--- a/games-board/freedoko/Manifest |
20 |
+++ b/games-board/freedoko/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST FreeDoko_0.7.14.src.zip 21959828 BLAKE2B fb19946876978119e36d6f8bb7bd0049523f2145dbaf198fe00e776256a1d66efb3067324bb6ffb0f7db90b3b5acd937c848cf7ec7958419e6897ae918955fce SHA512 d9135ad846c48c05b3d61c07b146429ef8c54d301469a304912176164f05ee98682d05a5b2ec8feb1a568acae2d81b2bf62fa625a1fde09a5c1c03a1c782ff17 |
23 |
+DIST FreeDoko_0.7.16.src.zip 21763114 BLAKE2B a02e562badef67d596a5652a384022c0d7e86af766bdde35ce6fa18b212142a6f9008e3f702bdb571efc20cbbbaf1ebf61633a0e09fa97ed7bb5798268daaf34 SHA512 5a656539a6d8b06873532a32869a54a3cab68532b7ee8eb526e92c378ded957478e71ff5c2b1b5674f9433bb62adf2e94bdcf2d3ce13ffc7d846f268adbce314 |
24 |
DIST freedoko-backgrounds.zip 1067740 BLAKE2B 1f4485007bc78c3d7d497ba556a9f7bf0ff121a228e9d938ee000a12bd3921eef14c40cfbc6806b95c5905bff3f8e823b56c5fc110b290719a0771351f985d5c SHA512 66f118a5440b854c7ad4b1bdfd63e7f3bc16e66c921a6f632637269ca8855a6a45eb05a71bfb9105abda20285e35994ff3c9c50649f70ab6de4a082e092c3a14 |
25 |
DIST gnome-games.zip 3338038 BLAKE2B cc2ddb0abfcc1557addf896d15daf00150ec08d7bd75ae9c4fdf1e4cd6e5d126e9dcd5e50a7c62f1d74cb881259da8ba96f2f5623ff84041d04c6b5a38b9662e SHA512 42dd63c4eb696d7964b0ad30ff0032c80c93e8bd0a2517b0938005eaf8b12a584d7ce7901c6b3bb0bb55372e484162240c7719d2bf102035870b9c57f1930ec1 |
26 |
DIST kdecarddecks.zip 3370611 BLAKE2B d097bd95545e57250ea7dc034d40577253cf8e78e539e7b81217a548903817ee792a5ee1115eef7d8238b3e90a70601e272df84fc304b43be4a28697220d545c SHA512 4f3fdac3c672fd1de3db2f6603919a242db73e2445a8dac07d45dcf284cfbb56948925d6e512f15a0b4c762b71758c0755312624a0030a4d8f11dbfe65666c44 |
27 |
|
28 |
diff --git a/games-board/freedoko/files/freedoko-0.7.16-gentoo.patch b/games-board/freedoko/files/freedoko-0.7.16-gentoo.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..68160dcba92 |
31 |
--- /dev/null |
32 |
+++ b/games-board/freedoko/files/freedoko-0.7.16-gentoo.patch |
33 |
@@ -0,0 +1,33 @@ |
34 |
+--- a/src/Makefile.old 2017-06-06 13:30:39.005626983 +0200 |
35 |
++++ b/src/Makefile 2017-06-06 13:31:09.180881871 +0200 |
36 |
+@@ -239,15 +239,7 @@ |
37 |
+ # compile FreeDoko |
38 |
+ $(PROGRAM) : show_settings objects $(DIRECTORIES) |
39 |
+ @echo 'compiling $(PROGRAM)...' |
40 |
+-# Gentoo users do want to see the real compile line. |
41 |
+-# So remove the next five lines (the echo lines) |
42 |
+-# and remove the '@' in the line after. |
43 |
+- @echo '$(CXX) $$(OBJECTS)' |
44 |
+- @echo ' $(INCLUDE_ALL)' |
45 |
+- @echo ' $(LIBS_ALL)' |
46 |
+- @echo ' $(CXXFLAGS)' |
47 |
+- @echo ' -o $@' |
48 |
+- @$(CXX) \ |
49 |
++ $(CXX) \ |
50 |
+ $(OBJECTS_ALL:%.o=$(FREEDOKO_WORKING_DIRECTORY)/%.o) \ |
51 |
+ $(INCLUDE_ALL) \ |
52 |
+ $(LIBS_ALL) \ |
53 |
+--- a/src/Makefile.rules.old 2017-06-06 13:30:27.071526137 +0200 |
54 |
++++ b/src/Makefile.rules 2017-06-06 13:31:17.829954904 +0200 |
55 |
+@@ -80,10 +80,7 @@ |
56 |
+ $(DEPTH)/Makefile.modules \ |
57 |
+ $(DEPTH)/Makefile.local \ |
58 |
+ $(DEPTH)/Makefile.os |
59 |
+-# Gentoo users do want to see the real compile line. |
60 |
+-# So remove the next line and remove the '@' in the line after. |
61 |
+- @echo $(CXX) -c $(SUBDIR)/$< |
62 |
+- @$(CXX) $(INCLUDE) $(CPPFLAGS) $(CXXFLAGS) $(DEPGEN_FLAGS) -o $@ -c $< |
63 |
++ $(CXX) $(INCLUDE) $(CPPFLAGS) $(CXXFLAGS) $(DEPGEN_FLAGS) -o $@ -c $< |
64 |
+ |
65 |
+ |
66 |
+ -include $(OBJECTS:%.o=$(TARGET_DIR_LOCAL)%.d) |
67 |
|
68 |
diff --git a/games-board/freedoko/freedoko-0.7.16.ebuild b/games-board/freedoko/freedoko-0.7.16.ebuild |
69 |
new file mode 100644 |
70 |
index 00000000000..279bdf73da2 |
71 |
--- /dev/null |
72 |
+++ b/games-board/freedoko/freedoko-0.7.16.ebuild |
73 |
@@ -0,0 +1,100 @@ |
74 |
+# Copyright 1999-2018 Gentoo Foundation |
75 |
+# Distributed under the terms of the GNU General Public License v2 |
76 |
+ |
77 |
+EAPI=6 |
78 |
+inherit eutils flag-o-matic gnome2-utils |
79 |
+ |
80 |
+DESCRIPTION="FreeDoko is a Doppelkopf-game" |
81 |
+HOMEPAGE="http://free-doko.sourceforge.net" |
82 |
+SRC_URI="mirror://sourceforge/free-doko/FreeDoko_${PV}.src.zip |
83 |
+ backgrounds? ( mirror://sourceforge/free-doko/backgrounds.zip -> ${PN}-backgrounds.zip ) |
84 |
+ kdecards? ( mirror://sourceforge/free-doko/kdecarddecks.zip ) |
85 |
+ xskatcards? ( mirror://sourceforge/free-doko/xskat.zip ) |
86 |
+ pysolcards? ( mirror://sourceforge/free-doko/pysol.zip ) |
87 |
+ gnomecards? ( mirror://sourceforge/free-doko/gnome-games.zip ) |
88 |
+ openclipartcards? ( mirror://sourceforge/free-doko/openclipart.zip ) |
89 |
+ !xskatcards? ( |
90 |
+ !kdecards? ( |
91 |
+ !gnomecards? ( |
92 |
+ !openclipartcards? ( |
93 |
+ !pysolcards? ( |
94 |
+ mirror://sourceforge/free-doko/xskat.zip ) ) ) ) )" |
95 |
+ |
96 |
+LICENSE="GPL-2+" |
97 |
+SLOT="0" |
98 |
+KEYWORDS="~amd64 ~x86" |
99 |
+IUSE="+xskatcards +gnomecards +kdecards +openclipartcards +pysolcards +backgrounds net" |
100 |
+ |
101 |
+RDEPEND="net? ( net-libs/gnet dev-libs/glib:2 ) |
102 |
+ >=dev-cpp/gtkmm-2.4:2.4" |
103 |
+DEPEND="${RDEPEND} |
104 |
+ app-arch/unzip |
105 |
+ virtual/pkgconfig" |
106 |
+ |
107 |
+S=${WORKDIR}/FreeDoko_${PV} |
108 |
+ |
109 |
+src_unpack() { |
110 |
+ local cards=0 |
111 |
+ |
112 |
+ unpack_cards() { |
113 |
+ use $1 && { unpack $2 ; cards=$(( $cards + 1 )); }; |
114 |
+ } |
115 |
+ unpack FreeDoko_${PV}.src.zip |
116 |
+ cp /dev/null "${S}"/src/Makefile.local || die |
117 |
+ |
118 |
+ cd "${S}"/data/cardsets || die |
119 |
+ |
120 |
+ unpack_cards xskatcards xskat.zip |
121 |
+ unpack_cards kdecards kdecarddecks.zip |
122 |
+ unpack_cards pysolcards pysol.zip |
123 |
+ unpack_cards gnomecards gnome-games.zip |
124 |
+ unpack_cards openclipartcards openclipart.zip |
125 |
+ [ $cards ] || unpack xskat.zip # fall back to xskat |
126 |
+ |
127 |
+ if use backgrounds ; then |
128 |
+ cd "${S}"/data/backgrounds || die |
129 |
+ unpack ${PN}-backgrounds.zip |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+PATCHES=( |
134 |
+ "${FILESDIR}"/${PN}-0.7.16-gentoo.patch |
135 |
+) |
136 |
+ |
137 |
+src_prepare() { |
138 |
+ default |
139 |
+ export VARTEXFONTS="${T}/fonts" #652028 |
140 |
+ append-cxxflags -std=c++14 |
141 |
+} |
142 |
+ |
143 |
+src_compile() { |
144 |
+ export CPPFLAGS="-DPUBLIC_DATA_DIRECTORY_VALUE='\"/usr/share/${PN}\"'" |
145 |
+ export CPPFLAGS+=" -DMANUAL_DIRECTORY_VALUE='\"/usr/share/doc/${PF}/html\"'" |
146 |
+ export OSTYPE=Linux |
147 |
+ export USE_NETWORK=$(use net && echo true || echo false) |
148 |
+ export USE_SOUND_ALUT=false # still marked experimental |
149 |
+ emake Version |
150 |
+ emake -C src FreeDoko |
151 |
+} |
152 |
+ |
153 |
+src_install() { |
154 |
+ newbin src/FreeDoko freedoko |
155 |
+ insinto /usr/share/${PN}/ |
156 |
+ doins -r data/{backgrounds,cardsets,iconsets,rules,sounds,translations,*png} |
157 |
+ find "${D}/usr/share/${PN}" -name Makefile -delete |
158 |
+ dodoc AUTHORS README ChangeLog |
159 |
+ newicon -s 32 src/FreeDoko.png ${PN}.png |
160 |
+ make_desktop_entry ${PN} FreeDoko |
161 |
+} |
162 |
+ |
163 |
+pkg_preinst() { |
164 |
+ gnome2_icon_savelist |
165 |
+} |
166 |
+ |
167 |
+pkg_postinst() { |
168 |
+ gnome2_icon_cache_update |
169 |
+} |
170 |
+ |
171 |
+pkg_postrm() { |
172 |
+ gnome2_icon_cache_update |
173 |
+} |