/[gentoo-x86]/games-roguelike/moria/moria-5.5.2.ebuild
Gentoo

Contents of /games-roguelike/moria/moria-5.5.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Nov 2 01:50:49 2014 UTC (5 years, 8 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +16 -13 lines
EAPI=5; build with ncurses[tinfo] (bug #527654)

(Portage version: 2.2.8-r2/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/moria/moria-5.5.2.ebuild,v 1.12 2010/05/05 20:28:21 mr_bones_ Exp $
4
5 EAPI=5
6 inherit eutils toolchain-funcs games
7
8 DESCRIPTION="Rogue-like D&D curses game similar to nethack (BUT BETTER)"
9 HOMEPAGE="http://remarque.org/~grabiner/moria.html"
10 SRC_URI="ftp://ftp.greyhelm.com/pub/Games/Moria/source/um${PV}.tar.Z
11 http://www.funet.fi/pub/unix/games/moria/source/um${PV}.tar.Z
12 http://www.piratehaven.org/~beej/moria/mirror/Games/Moria/source/um${PV}.tar.Z
13 http://alge.anart.no/ftp/pub/games/RPG/moria/um${PV}.tar.Z
14 ftp://kane.evendata.net/pub/${PN}-extras.tar.bz2"
15
16 LICENSE="Moria"
17 SLOT="0"
18 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
19 IUSE=""
20
21 RDEPEND=">=sys-libs/ncurses-5"
22 DEPEND="${RDEPEND}
23 virtual/pkgconfig"
24
25 S=${WORKDIR}/umoria
26
27 src_prepare() {
28 local f
29
30 epatch \
31 "${FILESDIR}"/${PV}-gentoo-paths.patch \
32 "${FILESDIR}"/${PV}-glibc.patch \
33 "${FILESDIR}"/${PV}-fbsd.patch \
34 "${FILESDIR}"/${PV}-hours.patch \
35 "${FILESDIR}"/${PV}-warnings.patch
36
37 for f in source/* unix/* ; do
38 ln -s ${f} $(basename ${f})
39 done
40
41 sed -i \
42 -e "s:David Grabiner:root:" \
43 -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \
44 -e "s:GENTOO_STATEDIR:${GAMES_STATEDIR}:" \
45 config.h || die
46 {
47 echo "#include <stdlib.h>"
48 echo "#include <stdio.h>"
49 } >> config.h || die
50 sed -i \
51 -e "/^STATEDIR =/s:=.*:=\$(DESTDIR)${GAMES_STATEDIR}:" \
52 -e "/^BINDIR = /s:=.*:=\$(DESTDIR)${GAMES_BINDIR}:" \
53 -e "/^LIBDIR = /s:=.*:=\$(DESTDIR)${GAMES_DATADIR}/${PN}:" \
54 -e "/^CFLAGS = /s:=.*:=${CFLAGS}:" \
55 -e "/^OWNER = /s:=.*:=${GAMES_USER}:" \
56 -e "/^GROUP = /s:=.*:=${GAMES_GROUP}:" \
57 -e "/^CC = /s:=.*:=$(tc-getCC):" \
58 -e '/^LFLAGS = /s:=.*:= $(LDFLAGS):' \
59 Makefile || die
60 mv doc/moria.6 "${S}" || die
61 }
62
63 src_install() {
64 dodir "${GAMES_BINDIR}" "${GAMES_DATADIR}/${PN}" "${GAMES_STATEDIR}"
65 emake DESTDIR="${D}" install
66
67 doman moria.6
68 dodoc README doc/* "${WORKDIR}"/${PN}-extras/*
69
70 prepgamesdirs
71 }

  ViewVC Help
Powered by ViewVC 1.1.20