From fe1c8b732bd548b699d4c2ef725f67f8b8c8911c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 4 May 2018 11:22:40 +0100 Subject: gentoo resync : 04.05.2018 --- games-strategy/freesynd/Manifest | 2 +- games-strategy/freesynd/freesynd-0.7.1-r1.ebuild | 78 +++++++++++++++++++++++ games-strategy/freesynd/freesynd-0.7.1.ebuild | 80 ------------------------ 3 files changed, 79 insertions(+), 81 deletions(-) create mode 100644 games-strategy/freesynd/freesynd-0.7.1-r1.ebuild delete mode 100644 games-strategy/freesynd/freesynd-0.7.1.ebuild (limited to 'games-strategy/freesynd') diff --git a/games-strategy/freesynd/Manifest b/games-strategy/freesynd/Manifest index bc9803b9dec0..b339599b9781 100644 --- a/games-strategy/freesynd/Manifest +++ b/games-strategy/freesynd/Manifest @@ -1,4 +1,4 @@ AUX freesynd-0.7.1-cmake.patch 931 BLAKE2B 0ad1994ad923355fdcae7c472a1440c88a848c409d5cc17b43d4d42e6307eb5c9f362efae5d81227d6ed6a7a4ecd5a7ec3492086e11f2208473190f2713fdd89 SHA512 994d12a2f079582bda03a600888c2d7ed2043468d69ce752e64deb45d156de5a7556edabd00d2635acc2c39882a8074193dc559e423e8e0181e9d4ea9d8b8b6f DIST freesynd-0.7.1.tar.gz 2576695 BLAKE2B 11b8f1d25768cdef6cf6894e8141cd13562a133a3253aa5b19034f0c54f114081dd97d41d230c74b5b1aaf66d84ad45d0c09ca5cdc72fb1de00a39ff23ad1272 SHA512 b87e6adaf71206532b4f90cd230ca6be00438fe26f000c5a0bfebf2839fea80d78d98ddc27331a2224874338c3e14ffbfa58b8c5bdbdc53c93bba8d6a9e6b7b4 -EBUILD freesynd-0.7.1.ebuild 1691 BLAKE2B 9ce42c87966e3108b7782a6d72320f13e9af343449e6412637bf46b042741f6a5d8e98cc2b9a7bde5b9cc305a37c303b270e0063dc5c9627c96655eda5d4eadf SHA512 bbc20b033504b95f9d45759c83ac02294a87fdcc58c5f7ac74df00e762d5f8610c663f56258b3398ff2c68abc39bb30d0ccfc3fb54f010ea94ae6d5bd1438060 +EBUILD freesynd-0.7.1-r1.ebuild 1640 BLAKE2B 2191d33a02ad08dc458bf5df63371f068014a63a3e6c6273296003d7ad7f53b7df7e37531176c20f2f97b733e18c0f3003849dbf2a2691c4bd8d7a7b34966c8a SHA512 8883509215a0c8bcf61d740f11b971bfff09cdffd0ef15fc3e7ccb526db7748cfde2d5c0b0e889874eaf8360df52f3f7e1a123a0709afacd923a10b04a455c0a MISC metadata.xml 401 BLAKE2B e83ee7425bd7de156c4ce45903a7fe00a12ad94f9e8bfe8ab0547458d2cf3f883fbbb319494a40bdabbadf2d85e74d0a929c43973d27550a7198bfd2c0e7add7 SHA512 5750ad5bed978d8a906a3cea47f3602257b5390bb87096c1e005d0c2bd1921b9033bdfb87f14506e88e8929268a9c9bb0003c9b343d0a0040b30df2058726152 diff --git a/games-strategy/freesynd/freesynd-0.7.1-r1.ebuild b/games-strategy/freesynd/freesynd-0.7.1-r1.ebuild new file mode 100644 index 000000000000..c787783deb41 --- /dev/null +++ b/games-strategy/freesynd/freesynd-0.7.1-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils cmake-utils gnome2-utils readme.gentoo-r1 + +DESCRIPTION="A portable reimplementation of engine for the classic Bullfrog game, Syndicate" +HOMEPAGE="http://freesynd.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug devtools" + +RDEPEND=" + media-libs/libogg + media-libs/libpng:0= + media-libs/libsdl[X,sound,video] + media-libs/libvorbis + media-libs/sdl-mixer[mp3,vorbis] + media-libs/sdl-image[png] +" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) + +CMAKE_IN_SOURCE_BUILD=1 + +DOC_CONTENTS=" + You have to set \"data_dir = /my/path/to/synd-data\" + in \"~/.${PN}/${PN}.ini\". +" + +src_prepare() { + cmake-utils_src_prepare + + sed \ + -e "s:#freesynd_data_dir = /usr/share/freesynd/data:freesynd_data_dir = /usr/share/${PN}/data:" \ + -i ${PN}.ini || die +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_with debug DEBUG) + $(cmake-utils_use_build devtools DEV_TOOLS) + ) + + cmake-utils_src_configure +} + +src_install() { + dobin src/${PN} + use devtools && newbin src/dump ${PN}-dump + insinto /usr/share/${PN} + doins -r data + newicon -s 128 icon/sword.png ${PN}.png + make_desktop_entry ${PN} + dodoc NEWS README INSTALL AUTHORS + readme.gentoo_create_doc +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + if use debug ; then + ewarn "Debug build is not meant for regular playing," + ewarn "game speed is higher." + fi + readme.gentoo_print_elog +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/freesynd/freesynd-0.7.1.ebuild b/games-strategy/freesynd/freesynd-0.7.1.ebuild deleted file mode 100644 index 6f9ce26e3669..000000000000 --- a/games-strategy/freesynd/freesynd-0.7.1.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils cmake-utils gnome2-utils games - -DESCRIPTION="A portable reimplementation of engine for the classic Bullfrog game, Syndicate" -HOMEPAGE="http://freesynd.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="debug devtools" - -RDEPEND="media-libs/libogg - media-libs/libpng:0 - media-libs/libsdl[X,sound,video] - media-libs/libvorbis - media-libs/sdl-mixer[mp3,vorbis] - media-libs/sdl-image[png]" -DEPEND=${RDEPEND} - -PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) - -CMAKE_IN_SOURCE_BUILD=1 - -src_prepare() { - cmake-utils_src_prepare - - sed \ - -e "s:#freesynd_data_dir = /usr/share/freesynd/data:freesynd_data_dir = ${GAMES_DATADIR}/${PN}/data:" \ - -i ${PN}.ini || die -} - -src_configure() { - local mycmakeargs=( - $(cmake-utils_use_with debug DEBUG) - $(cmake-utils_use_build devtools DEV_TOOLS) - ) - - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile -} - -src_install() { - dogamesbin src/${PN} - use devtools && newgamesbin src/dump ${PN}-dump - insinto "${GAMES_DATADIR}"/${PN} - doins -r data - newicon -s 128 icon/sword.png ${PN}.png - make_desktop_entry ${PN} - dodoc NEWS README INSTALL AUTHORS - prepgamesdirs -} - -pkg_preinst() { - games_pkg_preinst - gnome2_icon_savelist -} - -pkg_postinst() { - elog "You have to set \"data_dir = /my/path/to/synd-data\"" - elog "in \"~/.${PN}/${PN}.ini\"." - - if use debug ; then - ewarn "Debug build is not meant for regular playing," - ewarn "game speed is higher." - fi - - games_pkg_postinst - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} -- cgit v1.2.3