From b1c81de4fadbd00897700a7321f03b390d952b2e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 26 Aug 2021 00:09:36 +0100 Subject: gentoo resync : 26.08.2021 --- games-roguelike/tome/Manifest | 2 +- games-roguelike/tome/tome-2.3.5-r1.ebuild | 148 ++++++++++++++++++++++++++++++ games-roguelike/tome/tome-2.3.5.ebuild | 148 ------------------------------ 3 files changed, 149 insertions(+), 149 deletions(-) create mode 100644 games-roguelike/tome/tome-2.3.5-r1.ebuild delete mode 100644 games-roguelike/tome/tome-2.3.5.ebuild (limited to 'games-roguelike/tome') diff --git a/games-roguelike/tome/Manifest b/games-roguelike/tome/Manifest index 7bcb8e5615a6..dfc72b568652 100644 --- a/games-roguelike/tome/Manifest +++ b/games-roguelike/tome/Manifest @@ -2,5 +2,5 @@ AUX tome-2.3.5-format.patch 2925 BLAKE2B 8490e618151a05976cd93592a5218c234c93e2e AUX tome-2.3.5-gentoo-paths.patch 1032 BLAKE2B 35f96b35c05a12e355040c12307ce83c4e1e6e6bf2beb55c69ac28b17841735d89f8d27210ced170d6fcbb88409de80a9c05ae93e27c342e80b0c4fbea33cee3 SHA512 f1eb53c8afdd62dbfde78576d4307ecd2dbbd3b19023bbba2dbcc7a81a3aec60e11194ad961bc75107ca9999578afb5626fc5e100149525b1517ee72e3b12728 AUX tome-2.3.5-noX.patch 453 BLAKE2B c16d66c9e3796421f045eebe9b184a3ade5556b0dc5061a71f449320b48e14530e294421c259a2f1ab7a1b7e1c1985af718d6b4ec341bbe4f8a7f41cfd257d23 SHA512 8e887690673021ca0daace4f2e43dcd8ce2d905cf3db5e97c35e90c227037b4e453e11bac6da97808320e6b6b101fc04ff7d5f65ae55e9d3d2c2318645506a58 DIST tome-235-src.tar.bz2 2951227 BLAKE2B 7a9a6c608873062f9d6deae38c7e39244ca25d2bbb553d338014078c86b9decc36869c2f39f875425f9c3bb26784d3e460a225c5dabd197437781488f3e15d74 SHA512 f456aa91d18397297c213fa67dd14a4d29e024525be99f83b22cbe42f4d426b57fe6115a7124e3ec34de8f351117de525eab996ba7a2a230119e43639c4c9205 -EBUILD tome-2.3.5.ebuild 3750 BLAKE2B 53b046c729bc8b3fbc2b3935a6712647e21e7c37a41345560d2ad316adc0089f0310fb4ed94676224fde689b2541159059d3e6a2fc0c119df311caf6d7f38f87 SHA512 4cc75d61b1cf921ed6c09ed0e4f7c37549f5f96c0341e6196e94a840e9cf00bce949fe39f36deb8a201dd40886a39a98d585ad19fc7971a149a7c32d94eb432a +EBUILD tome-2.3.5-r1.ebuild 3765 BLAKE2B ea56d2d6d054d8b66352ba8e4afb2b42db2286bf13378ecd848279a53f7df47b319f5cca4dd0f05e3e5b5b3882ba77d1a2d8fc57896412044dcd545d61f527b3 SHA512 08b8f04f224db47e41c9475ffe3ea52ee5ed16b84a63912f28224b9d0f812f0d6ee4f30ad1201cb2bc52749116a555147713daaa49f9a8989b0be2ce5e8937ad MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-roguelike/tome/tome-2.3.5-r1.ebuild b/games-roguelike/tome/tome-2.3.5-r1.ebuild new file mode 100644 index 000000000000..946930b9a686 --- /dev/null +++ b/games-roguelike/tome/tome-2.3.5-r1.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +MY_PV=${PV//./} +DESCRIPTION="save the world from Morgoth and battle evil (or become evil ;])" +HOMEPAGE="http://t-o-m-e.net/" +SRC_URI="http://t-o-m-e.net/dl/src/tome-${MY_PV}-src.tar.bz2" +S="${WORKDIR}"/tome-${MY_PV}-src/src + +LICENSE="Moria" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gtk sdl X Xaw3d" + +RDEPEND=" + >=sys-libs/ncurses-5:0= + sdl? ( + media-libs/sdl-ttf + media-libs/sdl-image + media-libs/libsdl ) + gtk? ( >=x11-libs/gtk+-2.12.8:2 ) + X? ( x11-libs/libX11 ) + Xaw3d? ( x11-libs/libXaw ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + x11-misc/makedepend +" + +RDEPEND+=" acct-group/gamestat" + +PATCHES=( + "${FILESDIR}/"${PN}-2.3.5-gentoo-paths.patch + "${FILESDIR}"/${PN}-2.3.5-format.patch + "${FILESDIR}"/${PN}-2.3.5-noX.patch +) + +src_prepare() { + mv makefile.std makefile || die + + default + + sed -i -e '/^CC =/d' makefile || die + sed -i -e "s:xx:x:" ../lib/edit/p_info.txt || die + # sed -i -e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c || die + + find .. -name .cvsignore -exec rm -f \{\} + || die + find ../lib/edit -type f -exec chmod a-x \{\} + || die +} + +src_compile() { + tc-export CC + + local GENTOO_INCLUDES="" GENTOO_DEFINES="-DUSE_GCU " GENTOO_LIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" + + if use sdl || use X || use gtk || use Xaw3d; then + GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY \ + -DSUPPORT_GAMMA" + fi + + if use sdl || use X || use Xaw3d; then + GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK " + fi + + if use sdl; then + GENTOO_INCLUDES="${GENTOO_INCLUDES} $(sdl-config --cflags)" + GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_SDL " + GENTOO_LIBS="${GENTOO_LIBS} $(sdl-config --libs) -lSDL_image -lSDL_ttf" + fi + + if use X; then + GENTOO_INCLUDES="${GENTOO_INCLUDES} -I/usr/X11R6/include " + GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_X11 " + GENTOO_LIBS="${GENTOO_LIBS} -L/usr/X11R6/lib -lX11 " + fi + + if use Xaw3d; then + GENTOO_INCLUDES="${GENTOO_INCLUDES} -I/usr/X11R6/include " + GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_XAW " + GENTOO_LIBS="${GENTOO_LIBS} -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 " + fi + + if use gtk; then + GENTOO_INCLUDES="${GENTOO_INCLUDES} $($(tc-getPKG_CONFIG) gtk+-2.0 --cflags)" + GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_GTK2 " + GENTOO_LIBS="${GENTOO_LIBS} $($(tc-getPKG_CONFIG) gtk+-2.0 --libs) " + GTK_SRC_FILE="main-gtk2.c" + GTK_OBJ_FILE="main-gtk2.o" + else + GTK_SRC_FILE="" + GTK_OBJ_FILE="" + fi + + if use amd64; then + GENTOO_DEFINES="${GENTOO_DEFINES} -DLUA_NUM_TYPE=int " + fi + + GENTOO_INCLUDES="${GENTOO_INCLUDES} -Ilua -I." + GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_LUA" + + emake -j1 \ + INCLUDES="${GENTOO_INCLUDES}" \ + DEFINES="${GENTOO_DEFINES}" \ + depend + + emake tolua + + emake \ + COPTS="${CFLAGS}" \ + INCLUDES="${GENTOO_INCLUDES}" \ + DEFINES="${GENTOO_DEFINES}" \ + LIBS="${GENTOO_LIBS} -lm" \ + BINDIR="${EPREFIX}/usr/bin" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}" \ + GTK_SRC_FILE="${GTK_SRC_FILE}" \ + GTK_OBJ_FILE="${GTK_OBJ_FILE}" +} + +src_install() { + emake -j1 \ + DESTDIR="${D}" \ + OWNER="nobody" \ + BINDIR="${EPREFIX}/usr/bin" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}" install + + cd .. || die + dodoc *.txt + + dodir /var/games + touch "${ED}/var/games/${PN}-scores.raw" || die + + fperms 660 /var/games/${PN}-scores.raw + fowners root:gamestat /var/games/${PN}-scores.raw /usr/bin/${PN} + fperms g+s /usr/bin/${PN} +} + +pkg_postinst() { + ewarn "ToME ${PV} is not save-game compatible with 2.3.0 and previous versions." + echo + ewarn "If you have older save files and you wish to continue those games," + ewarn "you'll need to remerge the version of ToME with which you started" + ewarn "those save-games." +} diff --git a/games-roguelike/tome/tome-2.3.5.ebuild b/games-roguelike/tome/tome-2.3.5.ebuild deleted file mode 100644 index 3e3884187946..000000000000 --- a/games-roguelike/tome/tome-2.3.5.ebuild +++ /dev/null @@ -1,148 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs - -MY_PV=${PV//./} -DESCRIPTION="save the world from Morgoth and battle evil (or become evil ;])" -HOMEPAGE="http://t-o-m-e.net/" -SRC_URI="http://t-o-m-e.net/dl/src/tome-${MY_PV}-src.tar.bz2" -S="${WORKDIR}"/tome-${MY_PV}-src/src - -LICENSE="Moria" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="gtk sdl X Xaw3d" - -RDEPEND=" - >=sys-libs/ncurses-5:0= - sdl? ( - media-libs/sdl-ttf - media-libs/sdl-image - media-libs/libsdl ) - gtk? ( >=x11-libs/gtk+-2.12.8:2 ) - X? ( x11-libs/libX11 ) - Xaw3d? ( x11-libs/libXaw ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig - x11-misc/makedepend -" - -RDEPEND+=" acct-group/gamestat" - -PATCHES=( - "${FILESDIR}/"${PN}-2.3.5-gentoo-paths.patch - "${FILESDIR}"/${PN}-2.3.5-format.patch - "${FILESDIR}"/${PN}-2.3.5-noX.patch -) - -src_prepare() { - mv makefile.std makefile || die - - default - - sed -i -e '/^CC =/d' makefile || die - sed -i -e "s:xx:x:" ../lib/edit/p_info.txt || die - # sed -i -e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c || die - - find .. -name .cvsignore -exec rm -f \{\} + || die - find ../lib/edit -type f -exec chmod a-x \{\} + || die -} - -src_compile() { - tc-export CC - - local GENTOO_INCLUDES="" GENTOO_DEFINES="-DUSE_GCU " GENTOO_LIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" - - if use sdl || use X || use gtk || use Xaw3d; then - GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY \ - -DSUPPORT_GAMMA" - fi - - if use sdl || use X || use Xaw3d; then - GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK " - fi - - if use sdl; then - GENTOO_INCLUDES="${GENTOO_INCLUDES} $(sdl-config --cflags)" - GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_SDL " - GENTOO_LIBS="${GENTOO_LIBS} $(sdl-config --libs) -lSDL_image -lSDL_ttf" - fi - - if use X; then - GENTOO_INCLUDES="${GENTOO_INCLUDES} -I/usr/X11R6/include " - GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_X11 " - GENTOO_LIBS="${GENTOO_LIBS} -L/usr/X11R6/lib -lX11 " - fi - - if use Xaw3d; then - GENTOO_INCLUDES="${GENTOO_INCLUDES} -I/usr/X11R6/include " - GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_XAW " - GENTOO_LIBS="${GENTOO_LIBS} -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 " - fi - - if use gtk; then - GENTOO_INCLUDES="${GENTOO_INCLUDES} $($(tc-getPKG_CONFIG) gtk+-2.0 --cflags)" - GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_GTK2 " - GENTOO_LIBS="${GENTOO_LIBS} $($(tc-getPKG_CONFIG) gtk+-2.0 --libs) " - GTK_SRC_FILE="main-gtk2.c" - GTK_OBJ_FILE="main-gtk2.o" - else - GTK_SRC_FILE="" - GTK_OBJ_FILE="" - fi - - if use amd64; then - GENTOO_DEFINES="${GENTOO_DEFINES} -DLUA_NUM_TYPE=int " - fi - - GENTOO_INCLUDES="${GENTOO_INCLUDES} -Ilua -I." - GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_LUA" - - emake -j1 \ - INCLUDES="${GENTOO_INCLUDES}" \ - DEFINES="${GENTOO_DEFINES}" \ - depend - - emake tolua - - emake \ - COPTS="${CFLAGS}" \ - INCLUDES="${GENTOO_INCLUDES}" \ - DEFINES="${GENTOO_DEFINES}" \ - LIBS="${GENTOO_LIBS} -lm" \ - BINDIR="${EPREFIX}/usr/bin" \ - LIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}" \ - GTK_SRC_FILE="${GTK_SRC_FILE}" \ - GTK_OBJ_FILE="${GTK_OBJ_FILE}" -} - -src_install() { - emake -j1 \ - DESTDIR="${D}" \ - OWNER="nobody" \ - BINDIR="${EPREFIX}/usr/bin" \ - LIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}" install - - cd .. || die - dodoc *.txt - - dodir /var/games - touch "${ED}/var/games/${PN}-scores.raw" || die - - fperms 660 /var/games/${PN}-scores.raw - fowners root:gamestat /var/games/${PN}-scores.raw - fperms g+s /usr/bin/${PN} -} - -pkg_postinst() { - ewarn "ToME ${PV} is not save-game compatible with 2.3.0 and previous versions." - echo - ewarn "If you have older save files and you wish to continue those games," - ewarn "you'll need to remerge the version of ToME with which you started" - ewarn "those save-games." -} -- cgit v1.2.3