From: | "Michael Sterrett (mr_bones_)" <mr_bones_@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-board/domination: metadata.xml ChangeLog domination-1.1.0.9.ebuild |
Date: | Thu, 28 Jun 2012 05:36:49 |
Message-Id: | 20120628053639.487832004B@flycatcher.gentoo.org |
1 | mr_bones_ 12/06/28 05:36:39 |
2 | |
3 | Added: metadata.xml ChangeLog domination-1.1.0.9.ebuild |
4 | Log: |
5 | initial commit; package renamed from jrisk |
6 | |
7 | (Portage version: 2.1.10.65/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 games-board/domination/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/domination/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/domination/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>games</herd> |
21 | </pkgmetadata> |
22 | |
23 | |
24 | |
25 | 1.1 games-board/domination/ChangeLog |
26 | |
27 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/domination/ChangeLog?rev=1.1&view=markup |
28 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/domination/ChangeLog?rev=1.1&content-type=text/plain |
29 | |
30 | Index: ChangeLog |
31 | =================================================================== |
32 | # ChangeLog for games-board/domination |
33 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
34 | # $Header: /var/cvsroot/gentoo-x86/games-board/domination/ChangeLog,v 1.1 2012/06/28 05:36:39 mr_bones_ Exp $ |
35 | |
36 | *domination-1.1.0.9 (28 Jun 2012) |
37 | |
38 | 28 Jun 2012; Michael Sterrett <mr_bones_@g.o> |
39 | +domination-1.1.0.9.ebuild, +metadata.xml: |
40 | initial commit; package renamed from jrisk |
41 | |
42 | |
43 | |
44 | |
45 | 1.1 games-board/domination/domination-1.1.0.9.ebuild |
46 | |
47 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/domination/domination-1.1.0.9.ebuild?rev=1.1&view=markup |
48 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/domination/domination-1.1.0.9.ebuild?rev=1.1&content-type=text/plain |
49 | |
50 | Index: domination-1.1.0.9.ebuild |
51 | =================================================================== |
52 | # Copyright 1999-2012 Gentoo Foundation |
53 | # Distributed under the terms of the GNU General Public License v2 |
54 | # $Header: /var/cvsroot/gentoo-x86/games-board/domination/domination-1.1.0.9.ebuild,v 1.1 2012/06/28 05:36:39 mr_bones_ Exp $ |
55 | |
56 | inherit eutils java-pkg-2 java-ant-2 games |
57 | |
58 | DESCRIPTION="The well-known board game, written in java" |
59 | HOMEPAGE="http://domination.sourceforge.net" |
60 | SRC_URI="mirror://sourceforge/domination/Domination_${PV}.zip" |
61 | |
62 | LICENSE="GPL-3" |
63 | SLOT="0" |
64 | KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
65 | IUSE="" |
66 | |
67 | RDEPEND=">=virtual/jre-1.4" |
68 | DEPEND=">=virtual/jdk-1.4 |
69 | app-arch/unzip" |
70 | |
71 | S=${WORKDIR}/Domination |
72 | |
73 | pkg_setup() { |
74 | games_pkg_setup |
75 | java-pkg-2_pkg_setup |
76 | } |
77 | |
78 | EANT_BUILD_TARGET="game" |
79 | |
80 | src_compile() { |
81 | java-pkg-2_src_compile |
82 | } |
83 | |
84 | src_install() { |
85 | mkdir -p ${D}${GAMES_PREFIX}/bin |
86 | cp ${S}/FlashGUI.sh ${D}${GAMES_PREFIX}/bin/${PN} \ |
87 | || die "copy failed" |
88 | sed -i \ |
89 | -e "s|cd.*|cd ${GAMES_DATADIR}/${PN}|" \ |
90 | ${D}${GAMES_PREFIX}/bin/${PN} \ |
91 | || die "sed failed" |
92 | chmod +x ${D}${GAMES_PREFIX}/bin/${PN} \ |
93 | || die "chmod failed" |
94 | |
95 | insinto "${GAMES_DATADIR}/${PN}" |
96 | doins -r ${S}/* || die "doins failed" |
97 | rm -f "${D}${GAMES_DATADIR}"/${PN}/*.cmd || die |
98 | java-pkg_regjar "${D}/${GAMES_DATADIR}/${PN}"/*.jar |
99 | |
100 | newicon resources/icon.png ${PN}.png |
101 | make_desktop_entry ${PN} "Domination" |
102 | |
103 | prepgamesdirs |
104 | } |