ksokoban-0.5.0_pre20120725.ebuild 871 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. if [[ ${PV} == "9999" ]]; then
  5. inherit mercurial
  6. EHG_REPO_URI="http://hg.code.sf.net/p/ksokoban/code"
  7. else
  8. SRC_URI="https://dev.gentoo.org/~bircoph/distfiles/${P}.tar.xz"
  9. KEYWORDS="~amd64 ~x86"
  10. fi
  11. inherit cmake-utils
  12. DESCRIPTION="The japanese warehouse keeper game"
  13. HOMEPAGE="https://sourceforge.net/projects/ksokoban/"
  14. LICENSE="GPL-2"
  15. SLOT="0"
  16. DEPEND="kde-frameworks/kdelibs:4"
  17. RDEPEND="${DEPEND}"
  18. S="${WORKDIR}/${PN}"
  19. CMAKE_IN_SOURCE_BUILD="yes"
  20. src_prepare() {
  21. sed -i 's/%m//' "data/${PN}.desktop" || die "sed for desktop file failed"
  22. }
  23. # source lacks install target
  24. src_install() {
  25. dobin ksokoban
  26. dodoc AUTHORS NEWS TODO
  27. domenu "data/${PN}.desktop"
  28. for i in 16 22 32 48 64 128; do
  29. doicon -s "${i}" "data/hi${i}-app-${PN}.png"
  30. done
  31. }