dreamweb-1.1.ebuild 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit unpacker eutils games
  5. DESCRIPTION="Top-down adventure game set in a gritty futuristic/dystopian city"
  6. HOMEPAGE="http://wiki.scummvm.org/index.php/Dreamweb"
  7. SRC_URI="doc? ( mirror://sourceforge/scummvm/${PN}-manuals-en-highres.zip )
  8. l10n_de? ( mirror://sourceforge/scummvm/${PN}-cd-de-${PV}.zip )
  9. l10n_en? ( mirror://sourceforge/scummvm/${PN}-cd-us-${PV}.zip )
  10. l10n_en-GB? ( mirror://sourceforge/scummvm/${PN}-cd-uk-${PV}.zip )
  11. l10n_es? ( mirror://sourceforge/scummvm/${PN}-cd-es-${PV}.zip )
  12. l10n_fr? ( mirror://sourceforge/scummvm/${PN}-cd-fr-${PV}.zip )
  13. l10n_it? ( mirror://sourceforge/scummvm/${PN}-cd-it-${PV}.zip )
  14. !l10n_de? ( !l10n_en? ( !l10n_en-GB? ( !l10n_es? ( !l10n_fr? ( !l10n_it? \
  15. ( mirror://sourceforge/scummvm/${PN}-cd-us-${PV}.zip ) ) ) ) ) )
  16. http://www.scummvm.org/images/cat-dreamweb.png"
  17. LICENSE="Dreamweb"
  18. SLOT="0"
  19. KEYWORDS="amd64 x86"
  20. IUSE="doc l10n_de l10n_en l10n_en-GB l10n_es l10n_fr l10n_it"
  21. RDEPEND=">=games-engines/scummvm-1.7[flac]"
  22. DEPEND="$(unpacker_src_uri_depends)"
  23. S=${WORKDIR}
  24. src_unpack() {
  25. if use l10n_de ; then
  26. mkdir -p "${S}"/de || die
  27. cd "${S}"/de || die
  28. unpacker ${PN}-cd-de-${PV}.zip
  29. fi
  30. if use l10n_en || ( ! use l10n_de && ! use l10n_en && ! use l10n_en-GB && \
  31. ! use l10n_es && ! use l10n_fr && ! use l10n_it ) ; then
  32. mkdir -p "${S}"/en_US || die
  33. cd "${S}"/en_US || die
  34. unpacker ${PN}-cd-us-${PV}.zip
  35. fi
  36. if use l10n_en-GB ; then
  37. mkdir -p "${S}"/en_GB || die
  38. cd "${S}"/en_GB || die
  39. unpacker ${PN}-cd-uk-${PV}.zip
  40. fi
  41. if use l10n_es ; then
  42. mkdir -p "${S}"/es || die
  43. cd "${S}"/es || die
  44. unpacker ${PN}-cd-es-${PV}.zip
  45. fi
  46. if use l10n_fr ; then
  47. mkdir -p "${S}"/fr || die
  48. cd "${S}"/fr || die
  49. unpacker ${PN}-cd-fr-${PV}.zip
  50. fi
  51. if use l10n_it ; then
  52. mkdir -p "${S}"/it || die
  53. cd "${S}"/it || die
  54. unpacker ${PN}-cd-it-${PV}.zip
  55. fi
  56. if use doc ; then
  57. mkdir -p "${S}"/doc || die
  58. cd "${S}"/doc || die
  59. unpacker ${PN}-manuals-en-highres.zip
  60. fi
  61. }
  62. src_prepare() {
  63. rm -rf */license.txt */*.EXE || die
  64. }
  65. src_install() {
  66. insinto "${GAMES_DATADIR}"/${PN}
  67. newicon "${DISTDIR}"/cat-dreamweb.png dreamweb.png
  68. if use l10n_de ; then
  69. doins -r de
  70. games_make_wrapper dreamweb-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" dreamweb" .
  71. make_desktop_entry ${PN}-de "Dreamweb (Deutsch)" dreamweb
  72. fi
  73. if use l10n_en || ( ! use l10n_de && ! use l10n_en && ! use l10n_en-GB && \
  74. ! use l10n_es && ! use l10n_fr && ! use l10n_it ) ; then
  75. doins -r en_US
  76. games_make_wrapper dreamweb-en_US "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en_US\" dreamweb" .
  77. make_desktop_entry ${PN}-en_US "Dreamweb (US English)" dreamweb
  78. fi
  79. if use l10n_en-GB ; then
  80. doins -r en_GB
  81. games_make_wrapper dreamweb-en_GB "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en_GB\" dreamweb" .
  82. make_desktop_entry ${PN}-en_GB "Dreamweb (UK English)" dreamweb
  83. fi
  84. if use l10n_es ; then
  85. doins -r es
  86. games_make_wrapper dreamweb-es "scummvm -f -p \"${GAMES_DATADIR}/${PN}/es\" dreamweb" .
  87. make_desktop_entry ${PN}-es "Dreamweb (Español)" dreamweb
  88. fi
  89. if use l10n_fr ; then
  90. doins -r fr
  91. games_make_wrapper dreamweb-fr "scummvm -f -p \"${GAMES_DATADIR}/${PN}/fr\" dreamweb" .
  92. make_desktop_entry ${PN}-fr "Dreamweb (Français)" dreamweb
  93. fi
  94. if use l10n_it ; then
  95. doins -r it
  96. games_make_wrapper dreamweb-it "scummvm -f -p \"${GAMES_DATADIR}/${PN}/it\" dreamweb" .
  97. make_desktop_entry ${PN}-it "Dreamweb (Italiano)" dreamweb
  98. fi
  99. use doc && dodoc -r doc/*
  100. prepgamesdirs
  101. }