commit: 55a6456d4b5b72e271f7c870ae57a1c0d8a58add Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> AuthorDate: Sun Aug 17 19:40:39 2014 +0000 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> CommitDate: Wed Aug 20 00:28:49 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=55a6456d
games-board/ccbridge-bin: 3.0_beta4 --- .../ccbridge-bin/ccbridge-bin-3.0_beta4-r1.ebuild | 68 ++++++++++++++++++++++ games-board/ccbridge-bin/metadata.xml | 8 +++ 2 files changed, 76 insertions(+) diff --git a/games-board/ccbridge-bin/ccbridge-bin-3.0_beta4-r1.ebuild b/games-board/ccbridge-bin/ccbridge-bin-3.0_beta4-r1.ebuild new file mode 100644 index 0000000..6950122 --- /dev/null +++ b/games-board/ccbridge-bin/ccbridge-bin-3.0_beta4-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" + +inherit eutils gnome2-utils + +DESCRIPTION="Chinese chess software for Windows" +HOMEPAGE="" +SRC_URI="http://www.mediafire.com/download/lnmgnj4zhdt/CCBridge3beta4.zip" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/unzip + media-gfx/icoutils" +RDEPEND="app-emulation/wineloc" + +S="${WORKDIR}" +RESTRICT="mirror strip fetch" + +src_unpack() { + : +} + +src_compile() { + : +} + +src_install() { + local dir=/opt/${PN%-bin} + local icon_name=${PN%-bin} + + dodir ${dir} + ( cd "${D}"/${dir} && unzip "${DISTDIR}/${A}" ) || die + + # Resolve pointless "CCBridge3" directory level + mv "${D}${dir}"/CCBridge3/* "${D}${dir}"/ || die + rmdir "${D}${dir}"/CCBridge3/ || die + + # Extract icon + wrestool -x --name=MAINICON "${D}${dir}"/CCBridge.exe > ${icon_name}.ico + icotool -x ${icon_name}.ico + newicon --theme locolor --size 16 ${icon_name}_2_16x16x8.png ${icon_name}.png + newicon --theme locolor --size 32 ${icon_name}_1_32x32x8.png ${icon_name}.png + newicon --theme hicolor --size 16 ${icon_name}_6_16x16x32.png ${icon_name}.png + newicon --theme hicolor --size 32 ${icon_name}_5_32x32x32.png ${icon_name}.png + newicon --theme hicolor --size 48 ${icon_name}_4_48x48x32.png ${icon_name}.png + newicon --theme hicolor --size 128 ${icon_name}_3_128x128x32.png ${icon_name}.png + + make_desktop_entry "wineloc -l zh_CN ${dir}/CCBridge.exe" 'CCBridge' ${icon_name} 'Game' + mv "${D}"/usr/share/applications/{*,${PN}}.desktop || die +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-board/ccbridge-bin/metadata.xml b/games-board/ccbridge-bin/metadata.xml new file mode 100644 index 0000000..16bcc9f --- /dev/null +++ b/games-board/ccbridge-bin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>sp...@gentoo.org</email> + <name>Sebastian Pipping</name> + </maintainer> +</pkgmetadata>