summaryrefslogtreecommitdiff
path: root/games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:58:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:58:29 +0100
commit0cf2f20608308acdf3cb922c3736446bbd8f3388 (patch)
tree07815070629c7c11000a7f51ceb8ccbccb49a809 /games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild
parent1798c4aeca70ac8d0a243684d6a798fbc65735f8 (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild')
-rw-r--r--games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild110
1 files changed, 0 insertions, 110 deletions
diff --git a/games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild b/games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild
deleted file mode 100644
index d78992bbd8aa..000000000000
--- a/games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils cmake-utils versionator
-
-MY_PV=$(replace_version_separator 2 '-')
-MY_PV="${MY_PV/beta1/beta.1}"
-MY_PN="smw"
-
-DESCRIPTION="Fan-made multiplayer Super Mario Bros. style deathmatch game"
-HOMEPAGE="https://github.com/mmatyas/supermariowar"
-SRC_URI="https://github.com/mmatyas/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="server"
-
-RDEPEND="
- sys-libs/zlib:=
- dev-cpp/yaml-cpp
- net-libs/enet:1.3=
- media-libs/sdl-mixer[vorbis]
- media-libs/sdl-image[png,jpeg]"
-
-DEPEND="
- ${RDEPEND}
- app-arch/unzip
- virtual/pkgconfig"
-
-S="${WORKDIR}/${PN}-${MY_PV}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}" || die
- unpack ./data.zip
-}
-
-src_prepare() {
- cmake-utils_src_prepare
-
- einfo "Copying Findyaml-cpp.cmake"
- cp "${FILESDIR}/${P}-yaml-cpp-config.cmake" cmake/Findyaml-cpp.cmake || die
- eend $?
-}
-
-src_configure() {
- local mycmakeargs=(
- -DBUILD_STATIC_LIBS=OFF
- -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
- -DSMW_BINDIR="${EPREFIX}/usr/bin"
- -DSMW_DATADIR="${EPREFIX}/usr/share/${PF}"
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- local bin
- for bin in "${ED}/usr/bin"/*; do
- chmod 0755 "${bin}" || die
- done
-
- local smw_datadir="usr/share/${PF}"
- local smw_bindir="${smw_datadir}/bin"
- mkdir -p "${ED}/${smw_bindir}" || die
-
- einfo "Moving ${PN} binary files to /${smw_bindir}"
- mv "${ED}/usr/bin"/* "${ED}/${smw_bindir}" || die
- eend $?
-
- local base_bin
- for bin in "${ED}/${smw_bindir}"/*; do
- base_bin=$(basename "${bin}")
- einfo "Creating ${base_bin} launcher in /usr/bin"
- cat << EOF > "${base_bin}" || die
-#!/usr/bin/env bash
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# ${PF} launcher: ${base_bin}
-exec /${smw_bindir}/${base_bin} /${smw_datadir}
-EOF
- dobin "${base_bin}"
- eend $?
- done
-
- if use server; then
- local smw_server="${BUILD_DIR}/Binaries/Release/${MY_PN}-server"
- local smw_serverdir="/${smw_datadir}/server"
-
- einfo "Installing ${MY_PN}-server files"
- dosbin "${smw_server}"
-
- dodir "${smw_serverdir}"
- insinto "${smw_serverdir}"
- doins "${S}/src/server/serverconfig"
-
- dosym "${smw_serverdir}/serverconfig" "/etc/${MY_PN}d.conf"
-
- newinitd "${FILESDIR}/smwd.initd" "${MY_PN}d"
- sed -i -e \
- "s#@SMW_SERVERDIR@#${smw_serverdir}#g;" \
- "${ED}/etc/init.d/${MY_PN}d" || die
- eend $?
- fi
-}