2016-02-28 23:05:15 +00:00
|
|
|
# Copyright 2015-2016 Julian Ospald <hasufell@posteo.de>,
|
|
|
|
# Heiko Schaefer <heiko@rangun.de>
|
2016-02-25 23:19:09 +00:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
MY_P=nmm-qt-client${PV}
|
|
|
|
|
2016-04-22 15:42:34 +00:00
|
|
|
require qmake [ slot=4 ]
|
|
|
|
require github [ user=velnias75 project=NetMauMau-Qt-Client tag=V${PV} ]
|
|
|
|
|
2016-02-25 23:19:09 +00:00
|
|
|
SUMMARY="Client for games-server/netmaumau, the popular card game Mau Mau"
|
|
|
|
|
|
|
|
LICENCES="LGPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
|
|
|
MYOPTIONS="espeak [[ description = [ enable speech support ] ]]"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build:
|
|
|
|
virtual/pkg-config
|
|
|
|
build+run:
|
|
|
|
app-text/discount
|
|
|
|
dev-libs/qjson
|
|
|
|
games-server/netmaumau
|
|
|
|
x11-libs/qt:4
|
|
|
|
espeak? ( app-accessibility/espeak )
|
|
|
|
"
|
|
|
|
|
2016-04-23 10:37:22 +00:00
|
|
|
REMOTE_IDS+=" sourceforge:${PN}"
|
|
|
|
|
2016-02-25 23:19:09 +00:00
|
|
|
WORK=${WORKBASE}/NetMauMau-Qt-Client-${PV}
|
|
|
|
|
|
|
|
src_configure() {
|
2016-02-25 23:23:32 +00:00
|
|
|
if option espeak; then USE_ESPEAK='CONFIG+=espeak'; fi
|
|
|
|
EQMAKE_SOURCES="nmm-qt-client.pro" eqmake $USE_ESPEAK
|
2016-02-28 23:05:15 +00:00
|
|
|
edo lrelease -compress -nounfinished -removeidentical -silent src/src.pro
|
2016-02-25 23:19:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2016-02-25 23:23:32 +00:00
|
|
|
dobin src/nmm-qt-client
|
|
|
|
dodoc src/THANKS
|
2016-02-25 23:19:09 +00:00
|
|
|
insinto /usr/share/icons/hicolor/256x256/apps
|
|
|
|
doins src/nmm_qt_client.png
|
|
|
|
insinto /usr/share/applications
|
|
|
|
doins src/nmm_qt_client.desktop
|
2016-02-25 23:23:32 +00:00
|
|
|
insinto /usr/share/nmm-qt-client
|
|
|
|
doins src/*.qm
|
2016-02-25 23:19:09 +00:00
|
|
|
}
|
|
|
|
|