From b9e7e3755e2c6faf6a583bc51c02f7302ed3b027 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Wed, 4 Mar 2020 02:00:44 +0300 Subject: games-strategy/uplink: update package Migrate from deprecated eclass. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Azamat H. Hackimov --- games-strategy/uplink/metadata.xml | 4 ++ games-strategy/uplink/uplink-1.6-r1.ebuild | 86 ++++++++++++++++++++++++++++++ games-strategy/uplink/uplink-1.6.ebuild | 85 ----------------------------- 3 files changed, 90 insertions(+), 85 deletions(-) create mode 100644 games-strategy/uplink/metadata.xml create mode 100644 games-strategy/uplink/uplink-1.6-r1.ebuild delete mode 100644 games-strategy/uplink/uplink-1.6.ebuild diff --git a/games-strategy/uplink/metadata.xml b/games-strategy/uplink/metadata.xml new file mode 100644 index 0000000..097975e --- /dev/null +++ b/games-strategy/uplink/metadata.xml @@ -0,0 +1,4 @@ + + + + diff --git a/games-strategy/uplink/uplink-1.6-r1.ebuild b/games-strategy/uplink/uplink-1.6-r1.ebuild new file mode 100644 index 0000000..c8c2be7 --- /dev/null +++ b/games-strategy/uplink/uplink-1.6-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop eutils + +MY_P="${PN}_${PV}-1" + +DESCRIPTION="Crack into virtual computer systems" +HOMEPAGE="http://www.uplink.co.uk" +SRC_URI="amd64? ( ${MY_P}_amd64.tar.gz ) + x86? ( ${MY_P}_i386.tar.gz )" +RESTRICT="fetch" + +# Bundled libs :( +QA_PRESTRIPPED="/opt/${PN}/lib.*" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} + media-libs/libsdl[opengl] + media-libs/sdl-mixer[mikmod] + media-libs/freetype:2" + +pkg_nofetch() { + ewarn + ewarn "Place ${A} to ${DISTDIR}" + ewarn +} + +src_unpack() { + local root + + unpack ${A} + + if use amd64; then + root=uplink-x64 + elif use x86; then + root=uplink-x86 + else + die "unsupported architecture" + fi + + mv "$root" uplink || die "failed to move unpacked data" +} + +S="${WORKDIR}/${PN}" + +src_install() { + local dir="/opt/${PN}" + local exe lib + + insinto "${dir}" + doins *.dat + + if use amd64; then + lib=lib64 + exe=uplink.bin.x86_64 + elif use x86; then + lib=lib + exe=uplink.bin.x86 + else + die "unsupported architecture" + fi + + # The system SDL libs should work fine, but install the other bundled + # libraries which use older SONAMEs than the versions in Gentoo. + insinto "${dir}/${lib}" + doins "${lib}"/libjpeg.so.62* + doins "${lib}"/libtiff.so.3* + doins "${lib}"/libmikmod.so.2* + + exeinto "${dir}" + doexe "${exe}" + + doicon uplink.png + make_desktop_entry "${PN}" Uplink uplink + make_wrapper "${PN}" "${dir}/$exe" + + dodoc changes.txt mods.txt readme.txt +} diff --git a/games-strategy/uplink/uplink-1.6.ebuild b/games-strategy/uplink/uplink-1.6.ebuild deleted file mode 100644 index 66309f2..0000000 --- a/games-strategy/uplink/uplink-1.6.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -EAPI=5 - -inherit games - -MY_P="${PN}_${PV}-1" - -DESCRIPTION="Crack into virtual computer systems" -HOMEPAGE="http://www.uplink.co.uk" -SRC_URI="amd64? ( ${MY_P}_amd64.tar.gz ) - x86? ( ${MY_P}_i386.tar.gz )" -RESTRICT="fetch" - -# Bundled libs :( -QA_PRESTRIPPED="${GAMES_PREFIX_OPT}/${PN}/lib.*" - -LICENSE="introversion" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="" -RDEPEND="${DEPEND} - media-libs/libsdl[opengl] - media-libs/sdl-mixer[mikmod] - media-libs/freetype:2" - -pkg_nofetch() { - ewarn - ewarn "Place ${A} to ${DISTDIR}" - ewarn -} - -src_unpack() { - local root - - unpack "${A}" - - if use amd64; then - root=uplink-x64 - elif use x86; then - root=uplink-x86 - else - die "unsupported architecture" - fi - - mv "$root" uplink || die "failed to move unpacked data" -} - -S="${WORKDIR}/${PN}" - -src_install() { - local dir="${GAMES_PREFIX_OPT}/${PN}" - local exe lib - - insinto "${dir}" - doins *.dat - - if use amd64; then - lib=lib64 - exe=uplink.bin.x86_64 - elif use x86; then - lib=lib - exe=uplink.bin.x86 - else - die "unsupported architecture" - fi - - # The system SDL libs should work fine, but install the other bundled - # libraries which use older SONAMEs than the versions in Gentoo. - insinto "${dir}/${lib}" - doins "${lib}"/libjpeg.so.62* - doins "${lib}"/libtiff.so.3* - doins "${lib}"/libmikmod.so.2* - - exeinto "${dir}" - doexe "${exe}" - - doicon uplink.png - make_desktop_entry "${PN}" Uplink uplink - games_make_wrapper "${PN}" "${dir}/$exe" - - dodoc changes.txt mods.txt readme.txt - - prepgamesdirs -} -- cgit v1.2.3-18-g5258