diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-roguelike/angband |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-roguelike/angband')
-rw-r--r-- | games-roguelike/angband/Manifest | 9 | ||||
-rw-r--r-- | games-roguelike/angband/angband-4.0.4.ebuild | 116 | ||||
-rw-r--r-- | games-roguelike/angband/angband-4.0.5-r1.ebuild | 115 | ||||
-rw-r--r-- | games-roguelike/angband/angband-4.0.5.ebuild | 116 | ||||
-rw-r--r-- | games-roguelike/angband/files/angband-4.0.5-pie-gcc.patch | 13 | ||||
-rw-r--r-- | games-roguelike/angband/metadata.xml | 11 |
6 files changed, 380 insertions, 0 deletions
diff --git a/games-roguelike/angband/Manifest b/games-roguelike/angband/Manifest new file mode 100644 index 000000000000..15efd5d5d59a --- /dev/null +++ b/games-roguelike/angband/Manifest @@ -0,0 +1,9 @@ +AUX angband-4.0.5-pie-gcc.patch 453 SHA256 4eec632135ffbdb1f266fd4950061cecb4d9f9bf5dd6b3574e60aaf799627da1 SHA512 1173ab1e5eebfba393d34085d6896b9633ec5be4914cfe3925082b6ff8ba8194b6a85970c998dc268d84e71ac524b885a66becbaa2a28ee17acfc11d4957fb3a WHIRLPOOL 97a2e53d61b598039b99c10f92a1c7315812891afa49a23f739f829ceb7ea2b0a73963347e7472bff85f1dd386fcc4f9f74c5331acc26d60fcd51ef167f3d4e7 +DIST angband-4.0.4.tar.gz 19888293 SHA256 93f95444304d5178d23569dbd3dbe1eb29747201d353c676206f26b5bec4667c SHA512 73dbf0782f042dbc5ee9fe42430041f447a58ec14076280d2d6a44ec2b338dd4a7c220dc36f1b214380852283fb0d6e56fb338c2da95911b450714fb7f71e680 WHIRLPOOL aafa1fb9f0a54f8a39cb194e86fc4df43f0d773da58703b401cda0856ef2f99db7f351f444a3e0405b140a6130dd2da6fb318fde0e66f143ad38c51b7b91fa73 +DIST angband-4.0.5.tar.gz 19886562 SHA256 0d769a0f349842b0c78cbcd1804a9e08f064e75ca26b957710e4c2a3eb14f852 SHA512 9ad46430d7e3c4b7676042b28107a2a5b9b2ed967dd1f45b91ca37583fa2d5e9ba25d963a6510ee091b8fdb3a704a60002d851d7898a6298567f804dce36a88b WHIRLPOOL f725bc940332b90081583f2eccc4890ce1a7a7426bd9f5ae69272beaaa79741797b46ffd283ec2969d14167c6c50d1ff738a573dade045bda79d0c7f51053e5a +EBUILD angband-4.0.4.ebuild 2689 SHA256 860dbbd861c2ca6322e5f56c6664680853e91f3dffb9e8a9266c6868dec4e5aa SHA512 ce76008c075b73737a9e0839be0604937310ff1f4b593c473d7290aa6bc5ffc1341c7965d42fd570695f62b6917f412a9b621c25d3cfecdffe4a7577f9d23bc8 WHIRLPOOL 529f1ec604ab61d059120919b6f1c8de939091f4f1952495c0fa2c68a5877f98a4bc14e634b272863e60a23fdc0911153e743f6dd205f1926e79f0d409eaecbb +EBUILD angband-4.0.5-r1.ebuild 2650 SHA256 88a89a7ea085d150a92d46e0d0d50e0cd526fe89f5e4e8249f62c632daf294bb SHA512 0dcb532baf61ee94461b055b6a3b63f5b17d42f849ea318815d8960b7c0ba6b3b31c2b72d42e7788481357bb9b0c8f0694849d44c0c7641ccb094f6ef5d5701c WHIRLPOOL aaee3d4d3021ed9fdda89b24aa4bb98320136d302771580d3d2ba383896fdf224d9d8dd8ec153497055c20df33af8b47e7408dd4e4d51467666d2aff81116d35 +EBUILD angband-4.0.5.ebuild 2689 SHA256 e81cc67b585547cdb12845e57dc68a974fa4ae3763666996a0a00d54c6403f64 SHA512 b45be10a995db01e34ad580c7ac1c367590975b2f5f1abda200e81890815973749215aed9ce6cae0d72fd55bc485597ec87c0e2c4b08c75f5157b4bdc1b336a5 WHIRLPOOL 939167685a988792a3ee34e5d6d8b1e025d64734c7cc32d9e71ef6450baa458c648328898732f1bdb8c2605a07d334878a275fb9ffc4f6376ba4c18e783424a2 +MISC ChangeLog 5856 SHA256 d1cf26782f4a45d2903616118a659882df675265fc7c2746273a747d8e173ff0 SHA512 7e7337326aa607a558dccd85957cda475e1f42bb0ff54812c7c068d47d114d6f2d373bcb531f0cbef666181cae06061bf4ae1df71e19d693fcbe076d147cdc63 WHIRLPOOL 5b9433d7afdd18afb900faec76941d7e96f756f99039afc090174c0a435c86594ffdf5505a955e675809f420491d6fe00a45b2b92f1fc1e1fbe9cbbb20afb696 +MISC ChangeLog-2015 7599 SHA256 b5b4404a75eeed28ab6b2505026e7884ffc92b38a56685a760a80b46a5c4f2de SHA512 15e5ac4ebda41695f70c5f6b7d8fde6e95fd5348fce7e5039dd83f9b8629e72b6ab769efe4f5ab49b5b6825551684ed9b3c339441feb311a9b76c7bd89a26696 WHIRLPOOL 1092f65eb6aebbd007eff7bb85b0968d75a5d1650e061672e8d2429b6e1b4d7fdc1c5b7f97c65dd88fa4022ded8dd8a1f2318a36ebe2643ca10bbf1355ccb767 +MISC metadata.xml 322 SHA256 ca84dbfaf5f704c100c1ab5d5130c9784e7118383afbb6e313425fa89cd43b2f SHA512 0f2cb75c7386183901d5790e27da590b8e529807f9c0ea1781d072645bf5605fd66589851189ec4b58ff7d711c00c3c0df2ab88acb96ed01079dbe2f8ac17b24 WHIRLPOOL 587a934c38fa71e68247ad2755cbd2164692a92296db487d38efeb850615239d8a1af203d0adb1144f4cb116f6bd94e983988b630be3d42135b7397638ab7b44 diff --git a/games-roguelike/angband/angband-4.0.4.ebuild b/games-roguelike/angband/angband-4.0.4.ebuild new file mode 100644 index 000000000000..4a599eafd08b --- /dev/null +++ b/games-roguelike/angband/angband-4.0.4.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils gnome2-utils versionator games + +MAJOR_PV=$(get_version_component_range 1-2) + +DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien" +HOMEPAGE="http://rephial.org/" +SRC_URI="http://rephial.org/downloads/${MAJOR_PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="ncurses sdl +sound X" + +RDEPEND="X? ( x11-libs/libX11 ) + !ncurses? ( !X? ( !sdl? ( sys-libs/ncurses:0=[unicode] ) ) ) + ncurses? ( sys-libs/ncurses:0=[unicode] ) + sdl? ( media-libs/libsdl[video,X] + media-libs/sdl-ttf + media-libs/sdl-image + sound? ( media-libs/sdl-mixer[mp3] + media-libs/libsdl[sound] ) )" +DEPEND="${RDEPEND} + dev-python/docutils + virtual/pkgconfig" + +src_prepare() { + + sed -i -e '/libpath/s#datarootdir#datadir#' configure.ac || die + sed -i -e "/^.SILENT/d" mk/buildsys.mk.in || die + sed -i -e '/^DOC =/s/=.*/=/' doc/Makefile || die + + if use !sound ; then + sed -i -e 's/sounds//' lib/Makefile || die + fi + + # Game constant files are now system config files in Angband, but + # users will be hidden from applying updates by default + { + echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/customize/\"" + echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/gamedata/\"" + } > "${T}"/99${PN} || die + + eautoreconf +} + +src_configure() { + local myconf + + if use sdl; then + myconf="$(use_enable sound sdl-mixer)" + else + myconf="--disable-sdl-mixer" + fi + + ac_cv_path_NCURSES_CONFIG="pkg-config ncursesw" \ + egamesconf \ + --bindir="${GAMES_BINDIR}" \ + --with-private-dirs \ + $(use_enable X x11) \ + $(use_enable sdl) \ + $(use_enable ncurses curses) \ + $(use !sdl && use !ncurses && use !X && \ + echo --enable-curses) \ + ${myconf} +} + +src_install() { + DOCS="changes.txt faq.txt readme.txt thanks.txt" \ + default + + dohtml doc/manual.html + doenvd "${T}"/99${PN} + + if use X || use sdl ; then + if use X; then + make_desktop_entry "angband -mx11" "Angband (X11)" "${PN}" + fi + + if use sdl; then + make_desktop_entry "angband -msdl" "Angband (SDL)" "${PN}" + fi + + local s + for s in 16 32 128 256 512 + do + newicon -s ${s} lib/icons/att-${s}.png "${PN}.png" + done + newicon -s scalable lib/icons/att.svg "${PN}.svg" + fi + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + if use X || use sdl ; then + gnome2_icon_savelist + fi +} + +pkg_postinst() { + echo + elog "Angband now uses private savefiles instead of system-wide ones." + elog "This version of Angband is not compatible with the save files" + elog "of previous versions." + echo + + games_pkg_postinst + if use X || use sdl ; then + gnome2_icon_cache_update + fi +} diff --git a/games-roguelike/angband/angband-4.0.5-r1.ebuild b/games-roguelike/angband/angband-4.0.5-r1.ebuild new file mode 100644 index 000000000000..d8830482e592 --- /dev/null +++ b/games-roguelike/angband/angband-4.0.5-r1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils gnome2-utils versionator + +MAJOR_PV=$(get_version_component_range 1-2) + +DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien" +HOMEPAGE="http://rephial.org/" +SRC_URI="http://rephial.org/downloads/${MAJOR_PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ncurses sdl +sound X" + +RDEPEND="X? ( x11-libs/libX11 ) + !ncurses? ( !X? ( !sdl? ( sys-libs/ncurses:0=[unicode] ) ) ) + ncurses? ( sys-libs/ncurses:0=[unicode] ) + sdl? ( media-libs/libsdl[video,X] + media-libs/sdl-image + media-libs/sdl-ttf + sound? ( media-libs/libsdl[sound] ) + media-libs/sdl-mixer[mp3] )" +DEPEND="${RDEPEND} + dev-python/docutils + virtual/pkgconfig" + +PATCHES=("${FILESDIR}"/${P}-pie-gcc.patch) + +src_prepare() { + default + + sed -i -e '/libpath/s#datarootdir#datadir#' configure.ac || die + sed -i -e "/^.SILENT/d" mk/buildsys.mk.in || die + sed -i -e '/^DOC =/s/=.*/=/' doc/Makefile || die + + if use !sound ; then + sed -i -e 's/sounds//' lib/Makefile || die + fi + + # Game constant files are now system config files in Angband, but + # users will be hidden from applying updates by default + { + echo "CONFIG_PROTECT_MASK=\"/etc/${PN}/customize/\"" + echo "CONFIG_PROTECT_MASK=\"/etc/${PN}/gamedata/\"" + } > "${T}"/99${PN} || die + + eautoreconf +} + +src_configure() { + local myconf + + if use sdl; then + myconf="$(use_enable sound sdl-mixer)" + else + myconf="--disable-sdl-mixer" + fi + + ac_cv_path_NCURSES_CONFIG="pkg-config ncursesw" \ + econf \ + --bindir="${EPREFIX}"/usr/bin \ + --with-private-dirs \ + $(use_enable X x11) \ + $(use_enable sdl) \ + $(use_enable ncurses curses) \ + $(use !sdl && use !ncurses && use !X && \ + echo --enable-curses) \ + ${myconf} +} + +src_install() { + DOCS="changes.txt faq.txt readme.txt thanks.txt" \ + default + + dodoc doc/manual.html + doenvd "${T}"/99${PN} + + if use X || use sdl ; then + if use X; then + make_desktop_entry "angband -mx11" "Angband (X11)" "${PN}" + fi + + if use sdl; then + make_desktop_entry "angband -msdl" "Angband (SDL)" "${PN}" + fi + + local s + for s in 16 32 128 256 512 + do + newicon -s ${s} lib/icons/att-${s}.png "${PN}.png" + done + newicon -s scalable lib/icons/att.svg "${PN}.svg" + fi +} + +pkg_preinst() { + if use X || use sdl ; then + gnome2_icon_savelist + fi +} + +pkg_postinst() { + echo + elog "Angband now uses private savefiles instead of system-wide ones." + elog "This version of Angband is not compatible with the save files" + elog "of previous versions." + echo + + if use X || use sdl ; then + gnome2_icon_cache_update + fi +} diff --git a/games-roguelike/angband/angband-4.0.5.ebuild b/games-roguelike/angband/angband-4.0.5.ebuild new file mode 100644 index 000000000000..433844d7bfc8 --- /dev/null +++ b/games-roguelike/angband/angband-4.0.5.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils gnome2-utils versionator games + +MAJOR_PV=$(get_version_component_range 1-2) + +DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien" +HOMEPAGE="http://rephial.org/" +SRC_URI="http://rephial.org/downloads/${MAJOR_PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="ncurses sdl +sound X" + +RDEPEND="X? ( x11-libs/libX11 ) + !ncurses? ( !X? ( !sdl? ( sys-libs/ncurses:0=[unicode] ) ) ) + ncurses? ( sys-libs/ncurses:0=[unicode] ) + sdl? ( media-libs/libsdl[video,X] + media-libs/sdl-ttf + media-libs/sdl-image + sound? ( media-libs/sdl-mixer[mp3] + media-libs/libsdl[sound] ) )" +DEPEND="${RDEPEND} + dev-python/docutils + virtual/pkgconfig" + +src_prepare() { + + sed -i -e '/libpath/s#datarootdir#datadir#' configure.ac || die + sed -i -e "/^.SILENT/d" mk/buildsys.mk.in || die + sed -i -e '/^DOC =/s/=.*/=/' doc/Makefile || die + + if use !sound ; then + sed -i -e 's/sounds//' lib/Makefile || die + fi + + # Game constant files are now system config files in Angband, but + # users will be hidden from applying updates by default + { + echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/customize/\"" + echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/gamedata/\"" + } > "${T}"/99${PN} || die + + eautoreconf +} + +src_configure() { + local myconf + + if use sdl; then + myconf="$(use_enable sound sdl-mixer)" + else + myconf="--disable-sdl-mixer" + fi + + ac_cv_path_NCURSES_CONFIG="pkg-config ncursesw" \ + egamesconf \ + --bindir="${GAMES_BINDIR}" \ + --with-private-dirs \ + $(use_enable X x11) \ + $(use_enable sdl) \ + $(use_enable ncurses curses) \ + $(use !sdl && use !ncurses && use !X && \ + echo --enable-curses) \ + ${myconf} +} + +src_install() { + DOCS="changes.txt faq.txt readme.txt thanks.txt" \ + default + + dohtml doc/manual.html + doenvd "${T}"/99${PN} + + if use X || use sdl ; then + if use X; then + make_desktop_entry "angband -mx11" "Angband (X11)" "${PN}" + fi + + if use sdl; then + make_desktop_entry "angband -msdl" "Angband (SDL)" "${PN}" + fi + + local s + for s in 16 32 128 256 512 + do + newicon -s ${s} lib/icons/att-${s}.png "${PN}.png" + done + newicon -s scalable lib/icons/att.svg "${PN}.svg" + fi + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + if use X || use sdl ; then + gnome2_icon_savelist + fi +} + +pkg_postinst() { + echo + elog "Angband now uses private savefiles instead of system-wide ones." + elog "This version of Angband is not compatible with the save files" + elog "of previous versions." + echo + + games_pkg_postinst + if use X || use sdl ; then + gnome2_icon_cache_update + fi +} diff --git a/games-roguelike/angband/files/angband-4.0.5-pie-gcc.patch b/games-roguelike/angband/files/angband-4.0.5-pie-gcc.patch new file mode 100644 index 000000000000..b4f3c5707d43 --- /dev/null +++ b/games-roguelike/angband/files/angband-4.0.5-pie-gcc.patch @@ -0,0 +1,13 @@ +Allow gcc to construct correct partial linking command to ld. +Otherwise ld gets an incompatible mix of '-pie -r'. + +https://bugs.gentoo.org/617982 +diff --git a/src/Makefile b/src/Makefile +index 79be4cc..d27bb91 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -33,3 +33,3 @@ win/$(PROGNAME).res: win/$(PROGNAME).rc + $(PROGNAME).o: $(OBJECTS) +- $(LD) -nostdlib -Wl,-r -o $@ $(OBJECTS) ++ $(LD) -nostdlib -r -o $@ $(OBJECTS) + @printf "%10s %-20s\n" LINK $@ diff --git a/games-roguelike/angband/metadata.xml b/games-roguelike/angband/metadata.xml new file mode 100644 index 000000000000..dc2d1c7d2794 --- /dev/null +++ b/games-roguelike/angband/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="sound">Enable and install sounds</flag> + </use> +</pkgmetadata> |