Advertisement
Dj_Dexter

eduke32-20100831.ebuild

Nov 8th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.05 KB | None | 0 0
  1. # Copyright 1999-2010 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4.  
  5. EAPI="2"
  6. inherit base eutils games
  7.  
  8. MY_BUILD="1705"
  9. MY_HRP="4.0"
  10. MY_HRP_BUILD="321"
  11.  
  12. DESCRIPTION="Port of Duke Nukem 3D for SDL"
  13. HOMEPAGE="http://www.eduke32.com/
  14.     http://hrp.duke4.net/"
  15. SRC_URI="http://dukeworld.duke4.net/eduke32/synthesis/old/20100831-1705/eduke32_src_20100831-1705.tar.bz2
  16.     textures? ( http://www.duke4.org/files/hrp/dn3d_hrp-${MY_HRP}%28${MY_HRP_BUILD}%29.zip -> dn3d_hrp-${MY_HRP}-${MY_HRP_BUILD}.zip )
  17.     music? ( http://www.duke4.org/files/nightfright/eduke32_mus.zip )"
  18.  
  19. LICENSE="as-is"
  20. SLOT="0"
  21. KEYWORDS="amd64 x86"
  22. IUSE="editor textures music"
  23.  
  24. RDEPEND="x11-libs/gtk+
  25.     media-libs/libsdl
  26.     music? ( media-libs/sdl-mixer[timidity] )
  27.     !music? ( media-libs/sdl-mixer )
  28.     media-libs/libvorbis"
  29. DEPEND="${RDEPEND}
  30.     app-arch/unzip"
  31.  
  32. S="${WORKDIR}/${PN}_${PV}-${MY_BUILD}"
  33.  
  34. src_unpack() {
  35.     unpack "${PN}_src_${PV}-${MY_BUILD}.tar.bz2"
  36.     use textures && unpack "dn3d_hrp-${MY_HRP}-${MY_HRP_BUILD}.zip"
  37. }
  38.  
  39. src_compile() {
  40.     # http://sourceforge.net/tracker/?func=detail&aid=3059356&group_id=126745&atid=706724
  41.     base_src_compile ARCH= STRIP=touch
  42. }
  43.  
  44. src_install() {
  45.     local ARGS=""
  46.     insinto "${GAMES_DATADIR}/${PN}"
  47.  
  48.     if use textures; then
  49.         doins "${WORKDIR}"/autoload/duke3d.grp/{duke3d_hrp,maphacks}.zip || die
  50.         dodoc "${WORKDIR}"/hrp_{art_license,readme}.txt || die
  51.         ARGS="${ARGS} -g duke3d_hrp.zip -g maphacks.zip"
  52.     fi
  53.  
  54.     if use music; then
  55.         doins "${DISTDIR}/eduke32_mus.zip" || die
  56.         ARGS="${ARGS} -g eduke32_mus.zip"
  57.     fi
  58.  
  59.     if use editor; then
  60.         newgamesbin "mapster32" "mapster32.bin" || die
  61.         games_make_wrapper "mapster32" "${GAMES_BINDIR}/mapster32.bin ${ARGS}"
  62.         doins "m32help.hlp" || die
  63.     fi
  64.  
  65.     newgamesbin "${PN}" "${PN}.bin" || die
  66.     games_make_wrapper "${PN}" "${GAMES_BINDIR}/${PN}.bin ${ARGS}"
  67.     make_desktop_entry "${PN}" "EDuke32"
  68.  
  69.     prepgamesdirs
  70. }
  71.  
  72. pkg_postinst() {
  73.     games_pkg_postinst
  74.     ewarn "Note: You must also install games-fps/duke3d-data before playing this game."
  75. }
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement