From: "Ian Delaney" <idella4@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/nethack/
Date: Sat, 13 Feb 2016 03:56:14 +0000 (UTC) [thread overview]
Message-ID: <1455288836.f8b1c7507715e398c8e853083aac69867788baa4.idella4@gentoo> (raw)
commit: f8b1c7507715e398c8e853083aac69867788baa4
Author: Luis Ressel <aranea <AT> aixah <DOT> de>
AuthorDate: Fri Feb 12 14:53:56 2016 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Fri Feb 12 14:53:56 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8b1c750
games-roguelike/nethack: Remove old ebuilds
games-roguelike/nethack/nethack-3.6.0-r1.ebuild | 164 ------------------------
games-roguelike/nethack/nethack-3.6.0-r2.ebuild | 143 ---------------------
2 files changed, 307 deletions(-)
diff --git a/games-roguelike/nethack/nethack-3.6.0-r1.ebuild b/games-roguelike/nethack/nethack-3.6.0-r1.ebuild
deleted file mode 100644
index 01e66e8..0000000
--- a/games-roguelike/nethack/nethack-3.6.0-r1.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit eutils toolchain-funcs flag-o-matic user
-
-MY_PV=${PV//.}
-DESCRIPTION="The ultimate old-school single player dungeon exploration game"
-HOMEPAGE="http://www.nethack.org/"
-SRC_URI="mirror://sourceforge/nethack/${PN}-${MY_PV}-src.tgz"
-
-LICENSE="nethack"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd"
-IUSE="experimental X"
-
-RDEPEND="sys-libs/ncurses:0=
- X? (
- x11-libs/libXaw
- x11-libs/libXpm
- x11-libs/libXt
- )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- X? (
- x11-proto/xproto
- x11-apps/bdftopcf
- x11-apps/mkfontdir
- )"
-
-BINDIR="/usr/bin"
-STATEDIR="/var/games/${PN}"
-
-NETHACK_GROUP="gamestat"
-
-pkg_setup() {
- HACKDIR="/usr/$(get_libdir)/${PN}"
-
- enewgroup gamestat 36
-}
-
-src_prepare() {
- epatch "${FILESDIR}/${P}-recover.patch"
- epatch_user
-
- cp "${FILESDIR}/${P}-hint-$(usex X x11 tty)" hint || die "Failed to copy hint file"
- sys/unix/setup.sh hint || die "Failed to run setup.sh"
-}
-
-src_compile() {
- append-cflags -I../include -DDLB -DSECURE -DLINUX -DTIMED_DELAY -DVISION_TABLES
- append-cflags '-DCOMPRESS=\"/bin/gzip\"' '-DCOMPRESS_EXTENSION=\".gz\"'
- append-cflags "-DHACKDIR=\\\"${HACKDIR}\\\"" "-DVAR_PLAYGROUND=\\\"${STATEDIR}\\\""
- append-cflags "-DDEF_PAGER=\\\"${PAGER}\\\""
- append-cflags -DSYSCF "-DSYSCF_FILE=\\\"/etc/nethack.sysconf\\\""
-
- use X && append-cflags -DX11_GRAPHICS -DUSE_XPM
- use experimental &&
- append-cflags -DSTATUS_VIA_WINDOWPORT -DSTATUS_HILITES -DSCORE_ON_BOTL
-
- makeopts=(
- CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}"
- WINTTYLIB="$($(tc-getPKG_CONFIG) --libs ncurses)"
- HACKDIR="${HACKDIR}" INSTDIR="${D}/${HACKDIR}"
- SHELLDIR="${D}/${BINDIR}" VARDIR="${D}/${STATEDIR}"
- )
-
- emake "${makeopts[@]}" nethack recover Guidebook spec_levs
-
- # Upstream still has some parallel compilation bugs
- emake -j1 "${makeopts[@]}" all
-}
-
-src_install() {
- emake "${makeopts[@]}" install
-
- exeinto "${BINDIR}"
- newexe util/recover recover-nethack
- rm "${D}/${HACKDIR}/recover" || die "Failed to remove HACKDIR/recover"
-
- doman doc/nethack.6
- newman doc/recover.6 recover-nethack.6
- dodoc doc/Guidebook.txt
-
- insinto /etc
- newins sys/unix/sysconf nethack.sysconf
-
- insinto /etc/skel
- newins "${FILESDIR}/${P}-nethackrc" .nethackrc
-
- if use X ; then
- cd "${S}/win/X11" || die "Failed to enter win/X11 directory"
-
- # copy nethack x application defaults
- insinto /etc/X11/app-defaults
- newins NetHack.ad NetHack
- rm "${D}/${HACKDIR}/NetHack.ad" || die "Failed to remove NetHack.ad"
-
- newicon nh_icon.xpm nethack.xpm
- make_desktop_entry ${PN} Nethack
-
- # install nethack fonts
- bdftopcf -o nh10.pcf nh10.bdf || die "Converting fonts failed"
- bdftopcf -o ibm.pcf ibm.bdf || die "Converting fonts failed"
- insinto "${HACKDIR}/fonts"
- doins *.pcf
- cd "${D}/${HACKDIR}/fonts" || die "Failed to enter fonts directory"
- mkfontdir || die "The action mkfontdir ${HACKDIR}/fonts failed"
- fi
-
- rm -r "${D}/${STATEDIR}" || die "Failed to clean STATEDIR"
- keepdir "${STATEDIR}/save"
-
- fowners -R "root:${NETHACK_GROUP}" "${STATEDIR}"
- fperms 770 "${STATEDIR}" "${STATEDIR}/save"
-
- fowners "root:${NETHACK_GROUP}" "${HACKDIR}/nethack"
- fperms g+s "${HACKDIR}/nethack"
-}
-
-pkg_preinst() {
- if has_version "<${CATEGORY}/${PN}-3.4.3-r3" ; then
- migration=true
-
- # preserve STATEDIR/{logfile,record}
- # (previous ebuild rev mistakenly removes it)
- for f in "${ROOT}/${STATEDIR}/"{logfile,record} ; do
- if [[ -e "$f" ]] ; then
- cp "$f" "$T" || die "Failed to preserve ${ROOT}/${STATEDIR} files"
- else
- touch "$T/$f" || die "Failed to preserve ${ROOT}/${STATEDIR} files"
- fi
- done
- fi
-}
-
-pkg_postinst() {
- cd "${ROOT}/${STATEDIR}" || die "Failed to enter ${STATEDIR} directory"
-
- if [[ -v migration ]] ; then
- cp "$T/"{logfile,record} . ||
- die "Failed to preserve ${ROOT}/${STATEDIR} files"
- fi
-
- touch logfile perm record xlogfile || die "Failed to create log files"
-
- chown -R root:"${NETHACK_GROUP}" . &&
- chmod -R 660 . &&
- chmod 770 . save ||
- die "Adjustment of file permissions in ${ROOT}/${STATEDIR} failed"
-
- touch -c bones* save/* # non-critical
-
- elog "A minimal default .nethackrc has been placed in /etc/skel/"
- elog "The sysconf file is at /etc/nethack.sysconf"
-
- if has_version "<${CATEGORY}/${PN}-3.6.0" ; then
- elog
- elog "Nethack 3.6 includes many new features."
- elog "You might want to review your options and local patchset."
- elog "Have a look at http://www.nethack.org/v360/release.html"
- fi
-}
diff --git a/games-roguelike/nethack/nethack-3.6.0-r2.ebuild b/games-roguelike/nethack/nethack-3.6.0-r2.ebuild
deleted file mode 100644
index 7f8d2be..0000000
--- a/games-roguelike/nethack/nethack-3.6.0-r2.ebuild
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-inherit eutils toolchain-funcs flag-o-matic user
-
-MY_PV=${PV//.}
-DESCRIPTION="The ultimate old-school single player dungeon exploration game"
-HOMEPAGE="http://www.nethack.org/"
-SRC_URI="mirror://sourceforge/nethack/${PN}-${MY_PV}-src.tgz"
-
-LICENSE="nethack"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd"
-IUSE="experimental X"
-
-RDEPEND="sys-libs/ncurses:0=
- X? (
- x11-libs/libXaw
- x11-libs/libXpm
- x11-libs/libXt
- )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- X? (
- x11-proto/xproto
- x11-apps/bdftopcf
- x11-apps/mkfontdir
- )"
-
-BINDIR="/usr/bin"
-STATEDIR="/var/games/${PN}"
-
-NETHACK_GROUP="gamestat"
-
-pkg_setup() {
- HACKDIR="/usr/$(get_libdir)/${PN}"
-
- enewgroup gamestat 36
-}
-
-src_prepare() {
- eapply "${FILESDIR}/${P}-recover.patch"
- eapply_user
-
- cp "${FILESDIR}/${P}-hint-$(usex X x11 tty)" hint || die "Failed to copy hint file"
- sys/unix/setup.sh hint || die "Failed to run setup.sh"
-}
-
-src_compile() {
- append-cflags -I../include -DDLB -DSECURE -DLINUX -DTIMED_DELAY -DVISION_TABLES
- append-cflags '-DCOMPRESS=\"/bin/gzip\"' '-DCOMPRESS_EXTENSION=\".gz\"'
- append-cflags "-DHACKDIR=\\\"${HACKDIR}\\\"" "-DVAR_PLAYGROUND=\\\"${STATEDIR}\\\""
- append-cflags "-DDEF_PAGER=\\\"${PAGER}\\\""
- append-cflags -DSYSCF "-DSYSCF_FILE=\\\"/etc/nethack.sysconf\\\""
-
- use X && append-cflags -DX11_GRAPHICS -DUSE_XPM
- use experimental &&
- append-cflags -DSTATUS_VIA_WINDOWPORT -DSTATUS_HILITES -DSCORE_ON_BOTL
-
- makeopts=(
- CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}"
- WINTTYLIB="$($(tc-getPKG_CONFIG) --libs ncurses)"
- HACKDIR="${HACKDIR}" INSTDIR="${D}/${HACKDIR}"
- SHELLDIR="${D}/${BINDIR}" VARDIR="${D}/${STATEDIR}"
- )
-
- emake "${makeopts[@]}" nethack recover Guidebook spec_levs
-
- # Upstream still has some parallel compilation bugs
- emake -j1 "${makeopts[@]}" all
-}
-
-src_install() {
- emake "${makeopts[@]}" install
-
- exeinto "${BINDIR}"
- newexe util/recover recover-nethack
- rm "${D}/${HACKDIR}/recover" || die "Failed to remove HACKDIR/recover"
-
- doman doc/nethack.6
- newman doc/recover.6 recover-nethack.6
- dodoc doc/Guidebook.txt
-
- insinto /etc
- newins sys/unix/sysconf nethack.sysconf
-
- insinto /etc/skel
- newins "${FILESDIR}/${P}-nethackrc" .nethackrc
-
- if use X ; then
- cd "${S}/win/X11" || die "Failed to enter win/X11 directory"
-
- # copy nethack x application defaults
- insinto /etc/X11/app-defaults
- newins NetHack.ad NetHack
- rm "${D}/${HACKDIR}/NetHack.ad" || die "Failed to remove NetHack.ad"
-
- newicon nh_icon.xpm nethack.xpm
- make_desktop_entry ${PN} Nethack
-
- # install nethack fonts
- bdftopcf -o nh10.pcf nh10.bdf || die "Converting fonts failed"
- bdftopcf -o ibm.pcf ibm.bdf || die "Converting fonts failed"
- insinto "${HACKDIR}/fonts"
- doins *.pcf
- cd "${D}/${HACKDIR}/fonts" || die "Failed to enter fonts directory"
- mkfontdir || die "The action mkfontdir ${HACKDIR}/fonts failed"
- fi
-
- rm -r "${D}/${STATEDIR}" || die "Failed to clean STATEDIR"
- keepdir "${STATEDIR}/save"
-
- fowners -R "root:${NETHACK_GROUP}" "${STATEDIR}"
- fperms 770 "${STATEDIR}" "${STATEDIR}/save"
-
- fowners "root:${NETHACK_GROUP}" "${HACKDIR}/nethack"
- fperms g+s "${HACKDIR}/nethack"
-}
-
-pkg_postinst() {
- cd "${ROOT}/${STATEDIR}" || die "Failed to enter ${STATEDIR} directory"
-
- touch logfile perm record xlogfile || die "Failed to create log files"
-
- chown -R root:"${NETHACK_GROUP}" . &&
- chmod -R 660 . &&
- chmod 770 . save ||
- die "Adjustment of file permissions in ${ROOT}/${STATEDIR} failed"
-
- touch -c bones* save/* # non-critical
-
- elog "A minimal default .nethackrc has been placed in /etc/skel/"
- elog "The sysconf file is at /etc/nethack.sysconf"
-
- if has_version "<${CATEGORY}/${PN}-3.6.0" ; then
- elog
- elog "Nethack 3.6 includes many new features."
- elog "You might want to review your options and local patchset."
- elog "Have a look at http://www.nethack.org/v360/release.html"
- fi
-}
next reply other threads:[~2016-02-13 3:56 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-13 3:56 Ian Delaney [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-09 22:46 [gentoo-commits] repo/gentoo:master commit in: games-roguelike/nethack/ James Le Cuirot
2024-10-09 22:46 James Le Cuirot
2021-03-17 5:57 Sam James
2020-03-29 11:45 Mikle Kolyada
2020-03-29 11:45 Mikle Kolyada
2020-01-25 10:56 Stefan Strogin
2019-12-17 18:59 Stefan Strogin
2019-07-16 9:17 Ulrich Müller
2019-04-18 3:30 Aaron Bauman
2019-03-13 22:20 Sergei Trofimovich
2018-08-23 20:11 Michał Górny
2018-02-11 10:53 Michał Górny
2017-12-15 7:36 Jeroen Roovers
2017-03-31 9:40 Michael Weber
2016-02-09 7:18 Ian Delaney
2016-02-09 7:18 Ian Delaney
2016-02-09 7:18 Ian Delaney
2016-01-16 2:39 Ian Delaney
2016-01-16 2:39 Ian Delaney
2015-10-24 15:33 Patrice Clement
2015-10-24 15:33 Patrice Clement
2015-10-24 15:33 Patrice Clement
2015-10-24 15:33 Patrice Clement
2015-10-24 15:33 Patrice Clement
2015-10-24 15:33 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455288836.f8b1c7507715e398c8e853083aac69867788baa4.idella4@gentoo \
--to=idella4@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox