From f4fc10428424904caf2035cffc442195cb088b2c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Jul 2021 10:27:13 +0100 Subject: gentoo resync : 28.07.2021 --- games-misc/Manifest.gz | Bin 8778 -> 8779 bytes games-misc/bsd-games/Manifest | 2 +- games-misc/bsd-games/bsd-games-3.1-r1.ebuild | 155 --------------------------- games-misc/bsd-games/bsd-games-3.1-r2.ebuild | 153 ++++++++++++++++++++++++++ 4 files changed, 154 insertions(+), 156 deletions(-) delete mode 100644 games-misc/bsd-games/bsd-games-3.1-r1.ebuild create mode 100644 games-misc/bsd-games/bsd-games-3.1-r2.ebuild (limited to 'games-misc') diff --git a/games-misc/Manifest.gz b/games-misc/Manifest.gz index 775d0d99b0e4..a529f9e8ef2d 100644 Binary files a/games-misc/Manifest.gz and b/games-misc/Manifest.gz differ diff --git a/games-misc/bsd-games/Manifest b/games-misc/bsd-games/Manifest index 2227c5795096..99be52c1c475 100644 --- a/games-misc/bsd-games/Manifest +++ b/games-misc/bsd-games/Manifest @@ -9,5 +9,5 @@ DIST bsd-games-3.1.tar.gz 267636 BLAKE2B 116b340e383430fc56e9d2379a398494b43664a DIST bsdgames_2.17-28.debian.tar.xz 58464 BLAKE2B 3f5a70322341b153a8b3cb8df81fea1e773971d0f3b79ba8fb0c0877e95c61c8e8689952333f8ac4263948d781c2dc64c8178f9dac6a1c09ae702f91794b9583 SHA512 7e2db9f830c0657f3fcd1371635bda4a87e7a68180e486e44752904740c0710c02271522ff2d4b606542b3c502dd28795fcecf883360c3ac5bea78c148281f6a DIST bsdgames_2.17.orig.tar.gz 2563311 BLAKE2B 9dfff4e70929e14a422c536c661cd95c5f1ac81d9112494525b9ef13d7a39b66bd59b6a264e614cfb29784fdb63364f56b12b4d284b125b5b3c12e92def07fb0 SHA512 cb2ee60474f164d42e3d47700270bbeeda3c8279d64da409c9cc05e36437ef95b92d0a85543298e97604635fcf3e068f3a5cc812e90b5c61fb8d146cf35bc38f EBUILD bsd-games-2.17_p28-r2.ebuild 4692 BLAKE2B 870cb4508d184ede3772dbe890fc146ef0c92d84f7e5db563f52b8087b5caac4c0b0dbf91e6fcc1d910e921624000aad06b3080f5c8026d628d15985cba971f1 SHA512 23d1e06cb44a363e2865563d40b795383e4e824c63e861cd0ac0361c4a0f4f125c3122d2ec1e76dc50bc524b735b8bbfde8f49fae4a37476bcfd70f6af2114d5 -EBUILD bsd-games-3.1-r1.ebuild 4619 BLAKE2B d0fbf990fa2e84e5479cfb2d8d22611d80847dc4332ec70129ed74766a09e277be032de7668fb5828fb809998ef5e342cdec064f7f16a4838ed3cd74f617b7f0 SHA512 235982a985790a871eb8d54cb0f7e27acba58fe7d548c75c9fe5458a2f337e3ae355096bfe0ccf12f9e588fb1fd762de07526b387f5135d1eecee316345d6349 +EBUILD bsd-games-3.1-r2.ebuild 4563 BLAKE2B 5e4ae23b245127982c748f18487b0cca6f9268c1e8b4b8ab524a84732cedd6d970abac76b034563541ac136dd3c0cb77074afc10f6e124b469dd47287d549f9e SHA512 0f3140aaefc687f5f07652a8e72d1c3915262920982f3ebc04087413b8598b7e20e3c2e9f0804671afad23751c88c3dfb31647fe7c773a175ff05b53b62c745f MISC metadata.xml 326 BLAKE2B 264f08d8e1036db642114667e4dd07d5b4212b85c0254c55e2a0ec541b408f7129322dc133cc0bd875714e1535699d067fe0b625048b14ba002744e7269c4b6d SHA512 6e4e98607587faadf0aae1ba28287c2e694ef629b6ce915db751427f8f46c425e7aa120ef5fc978b2a0e4d4e33ad1cb0b0e136b0a0641c555f6471a8c286ccf5 diff --git a/games-misc/bsd-games/bsd-games-3.1-r1.ebuild b/games-misc/bsd-games/bsd-games-3.1-r1.ebuild deleted file mode 100644 index 68e5a80674f7..000000000000 --- a/games-misc/bsd-games/bsd-games-3.1-r1.ebuild +++ /dev/null @@ -1,155 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs - -DESCRIPTION="collection of games from NetBSD" -HOMEPAGE="https://www.polyomino.org.uk/computer/software/bsd-games/" -SRC_URI="https://github.com/msharov/bsd-games/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-verbose-build.patch.gz" - -LICENSE="BSD" -# Subslot indicates the fork / new version -# 3 doesn't include the same games as the classic variant, etc -SLOT="0/3" -KEYWORDS="~amd64 ~x86" - -# 'check' target doesn't exist, nor do any actual tests -# bug #779649 -RESTRICT="test" - -DEPEND=" - sys-apps/miscfiles - sys-libs/ncurses:= - !games-puzzle/hangman - !games-misc/wumpus -" -RDEPEND=" - ${DEPEND} - acct-group/gamestat -" -BDEPEND=" - sys-devel/bison - sys-devel/flex - virtual/pkgconfig -" - -PATCHES=( - "${WORKDIR}"/${PN}-3.1-verbose-build.patch - "${FILESDIR}"/${PN}-3.1-no-install-manpages-automatically.patch -) - -# Set GAMES_TO_BUILD variable to whatever you want -GAMES_TO_BUILD=${GAMES_TO_BUILD:=adventure atc battlestar caesar cribbage -dab drop4 gofish gomoku hangman klondike robots sail snake spirhunt -worm wump} - -src_prepare() { - default - - # Use completely our own CFLAGS/LDFLAGS, no stripping and so on - sed -i \ - -e 's/+= -std=c11 @pkgcflags@ ${CFLAGS}/= -std=c11 @pkgcflags@ ${CFLAGS}/' \ - -e 's/+= @pkgldflags@ ${LDFLAGS}/= @pkgldflags@ ${LDFLAGS}/' \ - -e s'/${INSTALL} -m 755 -s/${INSTALL} -m 755/' \ - -e '/man[6]dir/d' \ - Config.mk.in || die - - # Yes, this stinks. - # Right now, the custom configure script calls pkg-config manually - # and seds it a bunch, and this is easier. - if has_version sys-libs/ncurses[unicode] ; then - # Force looking for both ncurses and ncursesw - sed -i -e 's/pkgs="ncurses"/pkgs="ncursesw"/' configure || die - fi - - cp "${FILESDIR}"/config.params-gentoo config.params || die - echo bsd_games_cfg_usrlibdir=\"$(get_libdir)\" >> ./config.params || die - echo bsd_games_cfg_build_dirs=\"${GAMES_TO_BUILD}\" >> ./config.params || die - echo bsd_games_cfg_docdir=\"/usr/share/doc/${PF}\" >> ./config.params || die -} - -src_configure() { - tc-export AR CC RANLIB - - econf -} - -src_compile() { - emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -} - -src_test() { - addwrite /dev/full - emake -j1 check -} - -src_install() { - dodir /var/games - emake -j1 DESTDIR="${D}" install - - _build_game() { - has ${1} ${GAMES_TO_BUILD} - } - - _do_statefile() { - touch "${ED}"/var/games/${1} || die - chmod ug+rw "${ED}"/var/games/${1} || die - } - - # set some binaries to run as games group (+S) - _build_game atc && fperms g+s /usr/bin/atc - _build_game battlestar && fperms g+s /usr/bin/battlestar - _build_game canfield && fperms g+s /usr/bin/canfield - _build_game cribbage && fperms g+s /usr/bin/cribbage - _build_game phantasia && fperms g+s /usr/bin/phantasia - _build_game robots && fperms g+s /usr/bin/robots - _build_game sail && fperms g+s /usr/bin/sail - _build_game snake && fperms g+s /usr/bin/snake - _build_game tetris && fperms g+s /usr/bin/tetris-bsd - - # state files - _build_game atc && _do_statefile atc_score - _build_game battlestar && _do_statefile battlestar.log - _build_game canfield && _do_statefile cfscores - _build_game cribbage && _do_statefile criblog - _build_game hack && keepdir /var/games/hack - _build_game robots && _do_statefile robots_roll - _build_game sail && _do_statefile saillog - _build_game snake && _do_statefile snake.log && _do_statefile snakerawscores - _build_game tetris && _do_statefile tetris-bsd.scores - - # extra docs - _build_game atc && docinto atc - _build_game boggle && { docinto boggle ; dodoc boggle/README; } - _build_game hack && { docinto hack ; dodoc hack/{OWNER,Original_READ_ME,READ_ME,help}; } - _build_game hunt && { docinto hunt ; dodoc hunt/README; } - _build_game phantasia && { docinto phantasia ; dodoc phantasia/{OWNER,README}; } - - # Install the man pages manually to make life easier (circumventing compression) - local game - for game in ${GAMES_TO_BUILD[@]} ; do - if [[ -e ${game}/${game}.1 ]] ; then - doman ${game}/${game}.1 - else - doman ${game}/${game}.6 - fi - done - - # Since factor is usually not installed, and primes.6 is a symlink to - # factor.6, make sure that primes.6 is ok ... - if _build_game primes && [[ ! $(_build_game factor) ]] ; then - rm -f "${ED}"/usr/share/man/man6/{factor,primes}.6 || die - newman factor/factor.6 primes.6 - fi - - # All of this needs to be owned by the gamestat group - fowners -R :gamestat /var/games/ - # ... and so do the binaries - fowners -R :gamestat /usr/bin/ - - # State dirs - chmod -R ug+rw "${ED}"/var/games/ || die -} diff --git a/games-misc/bsd-games/bsd-games-3.1-r2.ebuild b/games-misc/bsd-games/bsd-games-3.1-r2.ebuild new file mode 100644 index 000000000000..ba3c5f5dd7c4 --- /dev/null +++ b/games-misc/bsd-games/bsd-games-3.1-r2.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="collection of games from NetBSD" +HOMEPAGE="https://www.polyomino.org.uk/computer/software/bsd-games/" +SRC_URI="https://github.com/msharov/bsd-games/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-verbose-build.patch.gz" + +LICENSE="BSD" +# Subslot indicates the fork / new version +# 3 doesn't include the same games as the classic variant, etc +SLOT="0/3" +KEYWORDS="~amd64 ~x86" + +# 'check' target doesn't exist, nor do any actual tests +# bug #779649 +RESTRICT="test" + +DEPEND=" + sys-apps/miscfiles + sys-libs/ncurses:=[unicode(+)] + !games-puzzle/hangman + !games-misc/wumpus +" +RDEPEND=" + ${DEPEND} + acct-group/gamestat +" +BDEPEND=" + sys-devel/bison + sys-devel/flex + virtual/pkgconfig +" + +PATCHES=( + "${WORKDIR}"/${PN}-3.1-verbose-build.patch + "${FILESDIR}"/${PN}-3.1-no-install-manpages-automatically.patch +) + +# Set GAMES_TO_BUILD variable to whatever you want +GAMES_TO_BUILD=${GAMES_TO_BUILD:=adventure atc battlestar caesar cribbage +dab drop4 gofish gomoku hangman klondike robots sail snake spirhunt +worm wump} + +src_prepare() { + default + + # Use completely our own CFLAGS/LDFLAGS, no stripping and so on + sed -i \ + -e 's/+= -std=c11 @pkgcflags@ ${CFLAGS}/= -std=c11 @pkgcflags@ ${CFLAGS}/' \ + -e 's/+= @pkgldflags@ ${LDFLAGS}/= @pkgldflags@ ${LDFLAGS}/' \ + -e s'/${INSTALL} -m 755 -s/${INSTALL} -m 755/' \ + -e '/man[6]dir/d' \ + Config.mk.in || die + + # Yes, this stinks. + # Right now, the custom configure script calls pkg-config manually + # and seds it a bunch, and this is easier. + # Force looking for both ncurses and ncursesw + sed -i -e 's/pkgs="ncurses"/pkgs="ncursesw"/' configure || die + + cp "${FILESDIR}"/config.params-gentoo config.params || die + echo bsd_games_cfg_usrlibdir=\"$(get_libdir)\" >> ./config.params || die + echo bsd_games_cfg_build_dirs=\"${GAMES_TO_BUILD}\" >> ./config.params || die + echo bsd_games_cfg_docdir=\"/usr/share/doc/${PF}\" >> ./config.params || die +} + +src_configure() { + tc-export AR CC RANLIB + + econf +} + +src_compile() { + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_test() { + addwrite /dev/full + emake -j1 check +} + +src_install() { + dodir /var/games + emake -j1 DESTDIR="${D}" install + + _build_game() { + has ${1} ${GAMES_TO_BUILD} + } + + _do_statefile() { + touch "${ED}"/var/games/${1} || die + chmod ug+rw "${ED}"/var/games/${1} || die + } + + # set some binaries to run as games group (+S) + _build_game atc && fperms g+s /usr/bin/atc + _build_game battlestar && fperms g+s /usr/bin/battlestar + _build_game canfield && fperms g+s /usr/bin/canfield + _build_game cribbage && fperms g+s /usr/bin/cribbage + _build_game phantasia && fperms g+s /usr/bin/phantasia + _build_game robots && fperms g+s /usr/bin/robots + _build_game sail && fperms g+s /usr/bin/sail + _build_game snake && fperms g+s /usr/bin/snake + _build_game tetris && fperms g+s /usr/bin/tetris-bsd + + # state files + _build_game atc && _do_statefile atc_score + _build_game battlestar && _do_statefile battlestar.log + _build_game canfield && _do_statefile cfscores + _build_game cribbage && _do_statefile criblog + _build_game hack && keepdir /var/games/hack + _build_game robots && _do_statefile robots_roll + _build_game sail && _do_statefile saillog + _build_game snake && _do_statefile snake.log && _do_statefile snakerawscores + _build_game tetris && _do_statefile tetris-bsd.scores + + # extra docs + _build_game atc && docinto atc + _build_game boggle && { docinto boggle ; dodoc boggle/README; } + _build_game hack && { docinto hack ; dodoc hack/{OWNER,Original_READ_ME,READ_ME,help}; } + _build_game hunt && { docinto hunt ; dodoc hunt/README; } + _build_game phantasia && { docinto phantasia ; dodoc phantasia/{OWNER,README}; } + + # Install the man pages manually to make life easier (circumventing compression) + local game + for game in ${GAMES_TO_BUILD[@]} ; do + if [[ -e ${game}/${game}.1 ]] ; then + doman ${game}/${game}.1 + else + doman ${game}/${game}.6 + fi + done + + # Since factor is usually not installed, and primes.6 is a symlink to + # factor.6, make sure that primes.6 is ok ... + if _build_game primes && [[ ! $(_build_game factor) ]] ; then + rm -f "${ED}"/usr/share/man/man6/{factor,primes}.6 || die + newman factor/factor.6 primes.6 + fi + + # All of this needs to be owned by the gamestat group + fowners -R :gamestat /var/games/ + # ... and so do the binaries + fowners -R :gamestat /usr/bin/ + + # State dirs + fperms -R ug+rw /var/games/ +} -- cgit v1.2.3