queen-1.ebuild 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils games
  5. DESCRIPTION="Flight of the Amazon Queen - a 2D point-and-click adventure game set in the 1940s"
  6. HOMEPAGE="http://scummvm.sourceforge.net/"
  7. SF_BASE_URL="mirror://sourceforge/scummvm/"
  8. LYS_BASE_URL="http://www.lysator.liu.se/~zino/scummvm/queen/"
  9. FILE_DE="FOTAQ_Ger_talkie-1.0.zip"
  10. FILE_EN="FOTAQ_Talkie-1.1.zip"
  11. FILE_FR="FOTAQ_Fr_Talkie_1.0.zip"
  12. FILE_HE="FOTAQ_Heb_talkie.zip"
  13. FILE_IT="FOTAQ_It_Talkie_1.0.zip"
  14. SRC_URI="
  15. l10n_de? (
  16. ${SF_BASE_URL}${FILE_DE}
  17. ${LYS_BASE_URL}readme.txt -> queen-readme.txt
  18. )
  19. l10n_en? (
  20. mp3? ( ${SF_BASE_URL}${FILE_EN} )
  21. !mp3? (
  22. ${LYS_BASE_URL}queen.1.bz2
  23. ${LYS_BASE_URL}readme.txt -> queen-readme.txt
  24. )
  25. )
  26. l10n_fr? ( ${SF_BASE_URL}${FILE_FR} )
  27. l10n_he? (
  28. ${SF_BASE_URL}${FILE_HE}
  29. ${LYS_BASE_URL}readme.txt -> queen-readme.txt
  30. )
  31. l10n_it? ( ${SF_BASE_URL}${FILE_IT} )
  32. http://www.scummvm.org/images/cat-queen.png
  33. "
  34. LICENSE="queen"
  35. SLOT="0"
  36. KEYWORDS="amd64 ~ppc ~ppc64 x86"
  37. IUSE="mp3 l10n_de +l10n_en l10n_fr l10n_he l10n_it"
  38. REQUIRED_USE="|| ( l10n_de l10n_en l10n_fr l10n_he l10n_it )"
  39. RDEPEND="
  40. l10n_de? ( games-engines/scummvm[vorbis] )
  41. l10n_en? ( games-engines/scummvm[mp3?] )
  42. l10n_fr? ( games-engines/scummvm[vorbis] )
  43. l10n_he? ( games-engines/scummvm[vorbis] )
  44. l10n_it? ( games-engines/scummvm[vorbis] )
  45. "
  46. DEPEND="${RDEPEND}
  47. l10n_de? ( app-arch/unzip )
  48. l10n_en? ( mp3? ( app-arch/unzip ) )
  49. l10n_fr? ( app-arch/unzip )
  50. l10n_he? ( app-arch/unzip )
  51. l10n_it? ( app-arch/unzip )
  52. "
  53. S=${WORKDIR}
  54. src_unpack() {
  55. if use l10n_de ; then
  56. mkdir de
  57. unpack ${FILE_DE}
  58. mv queen.1c de/queen.1c
  59. rm COPYING
  60. cp "${DISTDIR}"/queen-readme.txt de/readme.txt
  61. fi
  62. if use l10n_en ; then
  63. mkdir en
  64. if use mp3 ; then
  65. unpack ${FILE_EN}
  66. mv queen.1c en/queen.1c
  67. mv readme.txt en/readme.txt
  68. else
  69. unpack queen.1.bz2
  70. mv queen.1 en/queen.1
  71. cp "${DISTDIR}"/queen-readme.txt en/readme.txt
  72. fi
  73. fi
  74. if use l10n_fr ; then
  75. mkdir fr
  76. unpack ${FILE_FR}
  77. mv queen.1c fr/queen.1c
  78. mv readme.txt fr/readme.txt
  79. fi
  80. if use l10n_he ; then
  81. mkdir he
  82. unpack ${FILE_HE}
  83. mv queen.1c he/queen.1c
  84. rm COPYING
  85. cp "${DISTDIR}"/queen-readme.txt he/readme.txt
  86. fi
  87. if use l10n_it ; then
  88. mkdir it
  89. unpack ${FILE_IT}
  90. mv queen.1c it/queen.1c
  91. mv readme.txt it/readme.txt
  92. fi
  93. }
  94. src_install() {
  95. insinto "${GAMES_DATADIR}"/${PN}
  96. doins -r *
  97. newicon "${DISTDIR}"/cat-queen.png queen.png
  98. if use l10n_de ; then
  99. games_make_wrapper queen-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" queen" .
  100. make_desktop_entry ${PN}-de "Flight of the Amazon Queen (German)" queen
  101. fi
  102. if use l10n_en ; then
  103. games_make_wrapper queen-en "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en\" queen" .
  104. make_desktop_entry ${PN}-en "Flight of the Amazon Queen (English)" queen
  105. fi
  106. if use l10n_fr ; then
  107. games_make_wrapper queen-fr "scummvm -f -p \"${GAMES_DATADIR}/${PN}/fr\" queen" .
  108. make_desktop_entry ${PN}-fr "Flight of the Amazon Queen (French)" queen
  109. fi
  110. if use l10n_he ; then
  111. games_make_wrapper queen-he "scummvm -f -p \"${GAMES_DATADIR}/${PN}/he\" queen" .
  112. make_desktop_entry ${PN}-he "Flight of the Amazon Queen (Hebrew)" queen
  113. fi
  114. if use l10n_it ; then
  115. games_make_wrapper queen-it "scummvm -f -p \"${GAMES_DATADIR}/${PN}/it\" queen" .
  116. make_desktop_entry ${PN}-it "Flight of the Amazon Queen (Italian)" queen
  117. fi
  118. prepgamesdirs
  119. }