commit:     0a53a090c3d9c38e1f3a1103ddfc483e9ec91215
Author:     Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
AuthorDate: Wed Jun 10 09:36:26 2015 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Wed Jun 10 09:36:26 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=0a53a090

2048-qt: added

 games-puzzle/2048-qt/2048-qt-0.1.5-r1.ebuild | 48 ++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/games-puzzle/2048-qt/2048-qt-0.1.5-r1.ebuild 
b/games-puzzle/2048-qt/2048-qt-0.1.5-r1.ebuild
new file mode 100644
index 0000000..86a7aad
--- /dev/null
+++ b/games-puzzle/2048-qt/2048-qt-0.1.5-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit games qmake-utils
+
+DESCRIPTION="A Qt-based version of the game 2048"
+HOMEPAGE="https://github.com/xiaoyong/2048-Qt";
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz"
+
+LICENSE="LGPL-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-qt/qtcore:5
+       dev-qt/qtdeclarative:5
+       dev-qt/qtquickcontrols[widgets]
+       x11-themes/hicolor-icon-theme"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/2048-Qt-${PV}"
+
+src_configure(){
+       local myeqmakeargs=(
+               ${PN}.pro
+               PREFIX="${EPREFIX}/usr"
+               DESKTOPDIR="${EPREFIX}/usr/share/applications"
+               ICONDIR="${EPREFIX}/usr/share/pixmaps"
+       )
+       eqmake5 ${myeqmakeargs[@]}
+}
+
+src_install(){
+       dogamesbin ${PN}
+       insinto /usr/share/icons/hicolor
+       doins -r icons/*
+       insinto /usr/share/applications
+       doins ${PN}.desktop
+       doman man/${PN}.6
+}
+
+pkg_postinst(){
+       elog "IMPORTANT: Add your user to the games group, and restart your 
current session."
+       elog "After that, you can play. Enjoy!"
+}

Reply via email to