blob: 8e4a89e6f66a53c0c80afd59ac8d672e5c2dd7ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit versionator eutils
MY_PV=$(get_version_component_range 1-2)
DESCRIPTION="Free of cost Chinese chess software for Windows"
HOMEPAGE="http://www.cc-xiexie.com/"
SRC_URI="http://www.cc-xiexie.com/files/XXFreeware${MY_PV}.XInstaller.exe"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/p7zip"
RDEPEND="app-emulation/wine"
S="${WORKDIR}"
RESTRICT="mirror strip"
src_unpack() {
:
}
src_compile() {
:
}
src_install() {
local dir=/opt/${PN%-bin}
dodir ${dir}
( cd "${D}"/${dir} && 7z e "${DISTDIR}/${A}" ) || die
make_desktop_entry "wine ${dir}/XieXieFreeware.exe" 'XieXie' '' 'Game'
mv "${D}"/usr/share/applications/{*,${PN}}.desktop || die
}
|