Skip to content

Commit

Permalink
games-server/crossfire-server: add missing libcrypt, zlib dependencie…
Browse files Browse the repository at this point in the history
…s, EAPI 8

Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jun 30, 2021
1 parent df67d7a commit 40c751e
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=8

MY_P="${P/-server/}"
DESCRIPTION="Server for the crossfire clients"
Expand All @@ -18,6 +18,8 @@ RESTRICT="test"

RDEPEND="
net-misc/curl
sys-libs/zlib
virtual/libcrypt:=
X? (
x11-libs/libXaw
media-libs/libpng:0=
Expand All @@ -27,8 +29,11 @@ DEPEND="${RDEPEND}"

src_prepare() {
default
rm -f "${WORKDIR}"/maps/Info/combine.pl # bug #236205
ln -s "${WORKDIR}/arch" "${S}/lib" || die

# bug #236205
rm -f "${WORKDIR}"/maps/Info/combine.pl || die
ln -s "${WORKDIR}"/arch "${S}"/lib || die

eapply "${FILESDIR}"/${P}-format.patch
}

Expand All @@ -44,8 +49,11 @@ src_compile() {

src_install() {
default

keepdir /var/lib/crossfire/{account,datafiles,maps,players,template-maps,unique-items}

insinto /usr/share/crossfire
doins -r "${WORKDIR}/maps"
find "${D}" -name '*.la' -delete || die
doins -r "${WORKDIR}"/maps

find "${ED}" -name '*.la' -delete || die
}

0 comments on commit 40c751e

Please sign in to comment.