From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0E5C31393E9 for ; Wed, 20 Aug 2014 00:30:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 713E3E08EB; Wed, 20 Aug 2014 00:30:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2CD7E08EA for ; Wed, 20 Aug 2014 00:30:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9058833FCE8 for ; Wed, 20 Aug 2014 00:30:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C94133985 for ; Wed, 20 Aug 2014 00:30:08 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1408494529.55a6456d4b5b72e271f7c870ae57a1c0d8a58add.sping@gentoo> Subject: [gentoo-commits] proj/betagarden:master commit in: games-board/ccbridge-bin/ X-VCS-Repository: proj/betagarden X-VCS-Files: games-board/ccbridge-bin/ccbridge-bin-3.0_beta4-r1.ebuild games-board/ccbridge-bin/metadata.xml X-VCS-Directories: games-board/ccbridge-bin/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 55a6456d4b5b72e271f7c870ae57a1c0d8a58add X-VCS-Branch: master Date: Wed, 20 Aug 2014 00:30:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5ce34d2e-b6ea-476b-a536-1c949ae78656 X-Archives-Hash: 8d225468452fc13e30846d67882ed2ff commit: 55a6456d4b5b72e271f7c870ae57a1c0d8a58add Author: Sebastian Pipping pipping org> AuthorDate: Sun Aug 17 19:40:39 2014 +0000 Commit: Sebastian Pipping gentoo 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 @@ + + + + + sping@gentoo.org + Sebastian Pipping + +