1 # This should be bumped to EAPI=4 as soon as the games eclass supports it, so
2 # that doins preserves symlinks.
9 DESCRIPTION="Crack into virtual computer systems"
10 HOMEPAGE="http://www.uplink.co.uk"
11 SRC_URI="amd64? ( ${MY_P}_amd64.tar.gz )
12 x86? ( ${MY_P}_i386.tar.gz )"
16 QA_PRESTRIPPED="${GAMES_PREFIX_OPT}/${PN}/lib.*"
20 KEYWORDS="~amd64 ~x86"
25 media-libs/libsdl[opengl]
26 media-libs/sdl-mixer[mikmod]
27 media-libs/freetype:2"
31 ewarn "Place ${A} to ${DISTDIR}"
45 die "unsupported architecture"
48 mv "$root" uplink || die "failed to move unpacked data"
54 local dir="${GAMES_PREFIX_OPT}/${PN}"
67 die "unsupported architecture"
70 # The system SDL libs should work fine, but install the other bundled
71 # libraries which use older SONAMEs than the versions in Gentoo.
72 insinto "${dir}/${lib}"
73 doins "${lib}"/libjpeg.so.62*
74 doins "${lib}"/libtiff.so.3*
75 doins "${lib}"/libmikmod.so.2*
81 make_desktop_entry "${PN}" Uplink uplink
82 games_make_wrapper "${PN}" "${dir}/$exe"