From e3872864be25f7421015bef2732fa57c0c9fb726 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 4 Aug 2018 08:53:53 +0100 Subject: gentoo resync : 04.08.2018 --- games-strategy/Manifest.gz | Bin 9879 -> 9541 bytes games-strategy/gorky17-demo/Manifest | 4 - .../gorky17-demo/gorky17-demo-1.0.1.0.1-r1.ebuild | 75 -------------- games-strategy/gorky17-demo/metadata.xml | 8 -- games-strategy/heroes3-demo/Manifest | 3 - .../heroes3-demo/heroes3-demo-1.3.1a.ebuild | 65 ------------ games-strategy/heroes3-demo/metadata.xml | 8 -- games-strategy/wesnoth/Manifest | 6 +- games-strategy/wesnoth/wesnoth-1.14.2.ebuild | 114 -------------------- games-strategy/wesnoth/wesnoth-1.14.3.ebuild | 114 -------------------- games-strategy/wesnoth/wesnoth-1.14.4.ebuild | 115 +++++++++++++++++++++ 11 files changed, 117 insertions(+), 395 deletions(-) delete mode 100644 games-strategy/gorky17-demo/Manifest delete mode 100644 games-strategy/gorky17-demo/gorky17-demo-1.0.1.0.1-r1.ebuild delete mode 100644 games-strategy/gorky17-demo/metadata.xml delete mode 100644 games-strategy/heroes3-demo/Manifest delete mode 100644 games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild delete mode 100644 games-strategy/heroes3-demo/metadata.xml delete mode 100644 games-strategy/wesnoth/wesnoth-1.14.2.ebuild delete mode 100644 games-strategy/wesnoth/wesnoth-1.14.3.ebuild create mode 100644 games-strategy/wesnoth/wesnoth-1.14.4.ebuild (limited to 'games-strategy') diff --git a/games-strategy/Manifest.gz b/games-strategy/Manifest.gz index 146db2b33588..f85e858f5136 100644 Binary files a/games-strategy/Manifest.gz and b/games-strategy/Manifest.gz differ diff --git a/games-strategy/gorky17-demo/Manifest b/games-strategy/gorky17-demo/Manifest deleted file mode 100644 index cf26ab12cdc6..000000000000 --- a/games-strategy/gorky17-demo/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST gorky17-demo-1.0-1.0.1-x86.run 955547 BLAKE2B 702f4ce40b7a272ee39f8b1e59a0bd559bc4c8520a7406f6d0d4f5a153f4610e54fa628289634c848d30dfe67e56ac59da0678c143f02208847e71b94454b647 SHA512 ffd054aa1b169de5cca3c85d58ce2cba127f0caca533f8d4f0046ce63e5505a0ea25c3bbea9a2dde863a8fecefb7f8d322968f90ab3f688dee70a2f0d44826ba -DIST gorky17_demo.run 158781516 BLAKE2B 7ccb91362bc9d4463a15ad7f47a2c3af9670d0b80655d4a97ec7ab9d7eb861e42dcd39b30fb381b013cb87b853ead8fc3751c1c5d769f8b2bc9465f352339266 SHA512 7e7bf2a6a9f815381381ef5c50135232db7c6ec734300b807794107ab1b902d659f55569ea03c7d68c3e6dbf98e366de8bca4fd13dac3c688ba48d2f244e9f00 -EBUILD gorky17-demo-1.0.1.0.1-r1.ebuild 1842 BLAKE2B 9c20bdfe15f7110e28e0cac1234109346d29cb4e841871f619824c47681e0184e7d8410c41f17d51b69a1e7ea702ac15c4e9a1d02d3c0a06a85f70739cba77cf SHA512 bfa408ffe721ce04e2df65e4a02c9bc981a0ca796b93b12affc63ba4d75fce7f1b88110af0b7be73bc84fef1cd1f2656ec8aa06343837f525a70a60e8163aed7 -MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-strategy/gorky17-demo/gorky17-demo-1.0.1.0.1-r1.ebuild b/games-strategy/gorky17-demo/gorky17-demo-1.0.1.0.1-r1.ebuild deleted file mode 100644 index 5a65f2538872..000000000000 --- a/games-strategy/gorky17-demo/gorky17-demo-1.0.1.0.1-r1.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils unpacker versionator games - -MY_PN="gorky17" -MY_PV=$(replace_version_separator 2 '-') - -DESCRIPTION="Horror conspiracy game mixing elements of strategy and role-playing" -HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=gorky17" -SRC_URI="http://demofiles.linuxgamepublishing.com/${MY_PN}/${MY_PN}_demo.run - http://updatefiles.linuxgamepublishing.com/gorky17-demo/${PN}-${MY_PV}-x86.run" - -LICENSE="all-rights-reserved" -SLOT="0" -KEYWORDS="~x86" -IUSE="" -RESTRICT="mirror bindist strip" - -RDEPEND=" - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] - >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-)] - >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)] - >=x11-libs/libX11-1.6.2[abi_x86_32(-)] - >=x11-libs/libXau-1.0.7-r1[abi_x86_32(-)] - >=x11-libs/libXdmcp-1.1.1-r1[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)]" - -S=${WORKDIR} - -dir=${GAMES_PREFIX_OPT}/${PN} -Ddir=${D}/${dir} - -QA_EXECSTACK="${dir:1}/gorky17_demo ${dir:1}/gorky17_demo.dynamic" - -src_unpack() { - unpack_makeself ${MY_PN}_demo.run - unpack ./data/data.tar.gz - - mkdir patch_dir - cd patch_dir - unpack_makeself ${PN}-${MY_PV}-x86.run - cd "${S}" - - # Apply patch - mv bin/Linux/x86/* . - mv patch_dir/*.sh . - ./patch_dir/bin/Linux/x86/loki_patch patch_dir/patch.dat . || die - - rm -r update.sh *patch.sh data lgp_* patch_dir setup* bin -} - -src_install() { - insinto "${dir}" - doins -r * - rm "${Ddir}"/${MY_PN}* - - exeinto "${dir}" - doexe ${MY_PN}* - - games_make_wrapper ${PN} ./${MY_PN}_demo "${dir}" "${dir}" - newicon icon.xpm ${PN}.xpm - make_desktop_entry ${PN} "Gorky 17 (Demo)" ${PN} - - prepgamesdirs -} - -pkg_postinst() { - games_pkg_postinst - - elog "The instruction manual is available as:" - elog " http://demofiles.linuxgamepublishing.com/gorky17/manual.pdf" - echo -} diff --git a/games-strategy/gorky17-demo/metadata.xml b/games-strategy/gorky17-demo/metadata.xml deleted file mode 100644 index 78274e0fa550..000000000000 --- a/games-strategy/gorky17-demo/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - games@gentoo.org - Gentoo Games Project - - diff --git a/games-strategy/heroes3-demo/Manifest b/games-strategy/heroes3-demo/Manifest deleted file mode 100644 index fefb12231eec..000000000000 --- a/games-strategy/heroes3-demo/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST heroes3-demo.run 99026773 BLAKE2B 48963111c1f076acc2eb3f34a3b86d64943777ea76e8fba09f883bdfe4b89c4daa07e9e5dc584f2a11adda957869728c0806726ef21c6ff82843605e32e34ab7 SHA512 a3f60f12f7ce8ea0f160ec211e1f077693ff2f5e4b8b85ae0e31f1230a910b4df7c8c6a340762d4f09c9845d6141d235307f933305557a75fc63f409e077ac71 -EBUILD heroes3-demo-1.3.1a.ebuild 1438 BLAKE2B bfa532c2791435d8ce9be9f2cf92d68e770c512f1fd8c3da49c13fb80c4f776f2b63a7e7a6af7f139959821c954a1256773232ca1b43951d6ebf0bf360f7329b SHA512 a5dd6d09ba5d48b505bf610fdddcefd537c1263d33f5de8d7076529c841910711bbdfd5579c7bfa0574a9d8c23afd4bf2decf0d349ac9a33903f635ed11ee00c -MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild b/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild deleted file mode 100644 index d20f909b2cb3..000000000000 --- a/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils unpacker games - -MY_PN=${PN%-demo} - -DESCRIPTION="turn-based 2D medieval combat" -HOMEPAGE="http://www.lokigames.com/products/heroes3/" -SRC_URI="mirror://lokigames/loki_demos/${PN}.run" - -LICENSE="all-rights-reserved" -SLOT="0" -# Should also work on ppc -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="mirror bindist strip" - -DEPEND="games-util/loki_patch" -RDEPEND=">=sys-libs/lib-compat-loki-0.2 - || ( - ppc? ( - x11-libs/libX11 - ) - !ppc? ( - x11-libs/libX11[abi_x86_32(-)] - ) - )" - -dir=${GAMES_PREFIX_OPT}/${PN} -QA_PREBUILT="${dir:1}/*" - -S=${WORKDIR} - -src_install() { - # Apply patch - loki_patch patch.dat data/ || die - - local demo="data/demos/${MY_PN}_demo" - - local exe_stub="${MY_PN}_demo" - if use ppc ; then - exe="${exe_stub}.ppc" - else - exe="${exe_stub}.x86" - fi - - insinto "${dir}" - exeinto "${dir}" - doins -r "${demo}"/* - rm "${D}/${dir}"/{${exe_stub}*,*.sh} || die - doexe "${demo}/${exe}" - - einfo "Linking libs provided by 'sys-libs/lib-compat-loki' to '${dir}'." - dosym /lib/loki_ld-linux.so.2 "${dir}"/ld-linux.so.2 - dosym /usr/lib/loki_libc.so.6 "${dir}"/libc.so.6 - dosym /usr/lib/loki_libnss_files.so.2 "${dir}"/libnss_files.so.2 - - games_make_wrapper ${PN} "./${exe}" "${dir}" - newicon "${demo}/icon.xpm" ${PN}.png - make_desktop_entry ${PN} "Heroes of Might and Magic III (Demo)" ${PN} - - prepgamesdirs -} diff --git a/games-strategy/heroes3-demo/metadata.xml b/games-strategy/heroes3-demo/metadata.xml deleted file mode 100644 index 78274e0fa550..000000000000 --- a/games-strategy/heroes3-demo/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - games@gentoo.org - Gentoo Games Project - - diff --git a/games-strategy/wesnoth/Manifest b/games-strategy/wesnoth/Manifest index b4fb5a65e35e..3aa97472d243 100644 --- a/games-strategy/wesnoth/Manifest +++ b/games-strategy/wesnoth/Manifest @@ -1,6 +1,4 @@ AUX wesnothd.rc-r1 511 BLAKE2B 57e8b21313e5cb677dcdac3b046caf5b1e5f690f357373c48779afa9ea969de855e8ea4849298963891d0c2b029cc1897d97d0069b5087a1496db9061a468d7f SHA512 609c3c2eb2846735610904bcc913a0db9c8daeedde77da8911ea7e85deec805ba103519785cea1c767444c46df5985c6c630ceed550085ab5527e51ff01d65ab -DIST wesnoth-1.14.2.tar.gz 489041516 BLAKE2B f38f3596edd97096e39ee1e87e13a3d0402d0f9f0f67f25ce1e4a28123abc62ca7b2410c8420a4091d505bf64219cdf92c1cfed562ae2f3705c37685d7c2c20e SHA512 010dcdeaf03d3855192d2480facbfce134459b71acb06515196968dd66b5e1fc40bd75eeeb8b7dd7fc30c9b43af004784d9907893c4b1d61e57436457afc30bb -DIST wesnoth-1.14.3.tar.gz 489258637 BLAKE2B bc6c49a768d07387f8f4a285801964acd4476819075cedfd9dd2a0bbe36706e93badd78d4bd4468b687d3d34073c59e4a67dde7a578dabfd26f224233eb87413 SHA512 57c6766edce3b7984da9e6bc795913e1a582e4afac8c287b603ad2173f49d26095af903b3f10938a3b04d4f2921c3a2a5f2239c6c3a4d88222fabd9601a833aa -EBUILD wesnoth-1.14.2.ebuild 2666 BLAKE2B 5cd566af18469c24be3771464dc25c72aa56a2f3cd5640df5f82d740c4dda2c3ec4743e3b2c25aa30fe10604d9ef58ad5c4f01417b2118329f3840f41879fa54 SHA512 0608ca01af7838cdeac1e979bd3d248e97951248b70379d566a2b7950f286c191024661045213871ad94677019ab594e5e1595b8114259c6431c0746bad87f30 -EBUILD wesnoth-1.14.3.ebuild 2666 BLAKE2B 5cd566af18469c24be3771464dc25c72aa56a2f3cd5640df5f82d740c4dda2c3ec4743e3b2c25aa30fe10604d9ef58ad5c4f01417b2118329f3840f41879fa54 SHA512 0608ca01af7838cdeac1e979bd3d248e97951248b70379d566a2b7950f286c191024661045213871ad94677019ab594e5e1595b8114259c6431c0746bad87f30 +DIST wesnoth-1.14.4.tar.gz 489503950 BLAKE2B 2802098a83169d1dd3d0d38052145b7da006992843d748fdc263fe04ed0f485c2a46a93569e2728e152d76361d3651f0f207d2cfdd7b6bb59ae7cdec43680cd7 SHA512 d867d68278075536c61eb87c32dd43bcd832de0dd20f9c941e2c5a2f413b95ba1897b5401721a0e895934afe79bb568ea155d8fe648dac58c519289fc7d12885 +EBUILD wesnoth-1.14.4.ebuild 2654 BLAKE2B 9c54fb780b96f72a4bfb45db573a9ccff055b7ca8e9396244b57f5feed1d23ee0444c9dc927d971dfefc37f827ebb4d08f4fdd0131385d525eaa481d2a996d00 SHA512 dd80506c25260e2f71508eaf8657665bc9f50c6d113ef5860e7112b0e72b580829085afb45b3dbbae770679d4c3b287ea4251cb2ff559210d3c7074fbd688a00 MISC metadata.xml 485 BLAKE2B f9a78a24d1cd5ddc70fb2e8c6b9b0fa081409d99523cb9a14b890b36866576afa2ab33cb11986b364ee34aac3e4ea30f0908692ba99d56f32199860c5b65e707 SHA512 ccc12cec7aa66b59d11f65d4b8b6127c86eab2e998c31587f4323020231b55c6460d0c1fad04d7298ccdb2fe1bd9abc43e3b93716a379cbbc46f60f6bcd68ef3 diff --git a/games-strategy/wesnoth/wesnoth-1.14.2.ebuild b/games-strategy/wesnoth/wesnoth-1.14.2.ebuild deleted file mode 100644 index 27cde05f1ad0..000000000000 --- a/games-strategy/wesnoth/wesnoth-1.14.2.ebuild +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit cmake-utils user - -DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game" -HOMEPAGE="http://www.wesnoth.org - https://github.com/wesnoth/wesnoth" -SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~x86-fbsd" -IUSE="dbus dedicated doc fribidi libressl nls openmp server" - -RDEPEND=" - >=dev-libs/boost-1.50:=[nls,threads,icu] - >=media-libs/libsdl2-2.0.4:0[joystick,video,X] - !dedicated? ( - dev-libs/glib:2 - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - >=media-libs/fontconfig-2.4.1 - >=media-libs/sdl2-image-2.0.0[jpeg,png] - >=media-libs/sdl2-mixer-2.0.0[vorbis] - >=media-libs/sdl2-ttf-2.0.12 - media-libs/libvorbis - >=x11-libs/pango-1.22.0 - >=x11-libs/cairo-1.10.0 - sys-libs/readline:0 - dbus? ( sys-apps/dbus ) - fribidi? ( dev-libs/fribidi ) - )" -DEPEND="${RDEPEND} - sys-devel/gettext - virtual/pkgconfig - x11-libs/libX11 -" - -pkg_setup() { - if use openmp; then - tc-has-openmp || die "Please switch to an openmp compatible compiler" - fi - - enewgroup ${PN} - enewuser ${PN} -1 /bin/bash -1 ${PN} -} - -src_prepare() { - cmake-utils_src_prepare - - if ! use doc ; then - sed -i \ - -e '/manual/d' \ - doc/CMakeLists.txt || die - fi - - # respect LINGUAS (bug #483316) - if [[ ${LINGUAS+set} ]] ; then - local langs - for lang in $(cat po/LINGUAS) - do - has $lang $LINGUAS && langs+="$lang " - done - echo "$langs" > po/LINGUAS || die - fi -} - -src_configure() { - filter-flags -ftracer -fomit-frame-pointer - if [[ $(gcc-major-version) -eq 3 ]] ; then - filter-flags -fstack-protector - append-flags -fno-stack-protector - fi - - # Work around eclass - append-flags -UNDEBUG - - if use dedicated || use server ; then - mycmakeargs=( - -DENABLE_CAMPAIGN_SERVER="ON" - -DENABLE_SERVER="ON" - -DSERVER_UID="${PN}" - -DSERVER_GID="${PN}" - -DFIFO_DIR="/run/wesnothd" - ) - else - mycmakeargs=( - -DENABLE_CAMPAIGN_SERVER="OFF" - -DENABLE_SERVER="OFF" - ) - fi - mycmakeargs+=( - -Wno-dev - -DENABLE_GAME="$(usex !dedicated)" - -DENABLE_DESKTOP_ENTRY="$(usex !dedicated)" - -DENABLE_NLS="$(usex nls)" - -DENABLE_NOTIFICATIONS="$(usex dbus)" - -DENABLE_FRIBIDI="$(usex fribidi)" - -DENABLE_OMP="$(usex openmp)" - -DENABLE_STRICT_COMPILATION="OFF" - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" - ) - cmake-utils_src_configure -} - -src_install() { - DOCS="README.md changelog.md players_changelog.md" cmake-utils_src_install - if use dedicated || use server; then - rmdir "${ED%/}/run/wesnothd" || die - newinitd "${FILESDIR}"/wesnothd.rc-r1 wesnothd - fi -} diff --git a/games-strategy/wesnoth/wesnoth-1.14.3.ebuild b/games-strategy/wesnoth/wesnoth-1.14.3.ebuild deleted file mode 100644 index 27cde05f1ad0..000000000000 --- a/games-strategy/wesnoth/wesnoth-1.14.3.ebuild +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit cmake-utils user - -DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game" -HOMEPAGE="http://www.wesnoth.org - https://github.com/wesnoth/wesnoth" -SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~x86-fbsd" -IUSE="dbus dedicated doc fribidi libressl nls openmp server" - -RDEPEND=" - >=dev-libs/boost-1.50:=[nls,threads,icu] - >=media-libs/libsdl2-2.0.4:0[joystick,video,X] - !dedicated? ( - dev-libs/glib:2 - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - >=media-libs/fontconfig-2.4.1 - >=media-libs/sdl2-image-2.0.0[jpeg,png] - >=media-libs/sdl2-mixer-2.0.0[vorbis] - >=media-libs/sdl2-ttf-2.0.12 - media-libs/libvorbis - >=x11-libs/pango-1.22.0 - >=x11-libs/cairo-1.10.0 - sys-libs/readline:0 - dbus? ( sys-apps/dbus ) - fribidi? ( dev-libs/fribidi ) - )" -DEPEND="${RDEPEND} - sys-devel/gettext - virtual/pkgconfig - x11-libs/libX11 -" - -pkg_setup() { - if use openmp; then - tc-has-openmp || die "Please switch to an openmp compatible compiler" - fi - - enewgroup ${PN} - enewuser ${PN} -1 /bin/bash -1 ${PN} -} - -src_prepare() { - cmake-utils_src_prepare - - if ! use doc ; then - sed -i \ - -e '/manual/d' \ - doc/CMakeLists.txt || die - fi - - # respect LINGUAS (bug #483316) - if [[ ${LINGUAS+set} ]] ; then - local langs - for lang in $(cat po/LINGUAS) - do - has $lang $LINGUAS && langs+="$lang " - done - echo "$langs" > po/LINGUAS || die - fi -} - -src_configure() { - filter-flags -ftracer -fomit-frame-pointer - if [[ $(gcc-major-version) -eq 3 ]] ; then - filter-flags -fstack-protector - append-flags -fno-stack-protector - fi - - # Work around eclass - append-flags -UNDEBUG - - if use dedicated || use server ; then - mycmakeargs=( - -DENABLE_CAMPAIGN_SERVER="ON" - -DENABLE_SERVER="ON" - -DSERVER_UID="${PN}" - -DSERVER_GID="${PN}" - -DFIFO_DIR="/run/wesnothd" - ) - else - mycmakeargs=( - -DENABLE_CAMPAIGN_SERVER="OFF" - -DENABLE_SERVER="OFF" - ) - fi - mycmakeargs+=( - -Wno-dev - -DENABLE_GAME="$(usex !dedicated)" - -DENABLE_DESKTOP_ENTRY="$(usex !dedicated)" - -DENABLE_NLS="$(usex nls)" - -DENABLE_NOTIFICATIONS="$(usex dbus)" - -DENABLE_FRIBIDI="$(usex fribidi)" - -DENABLE_OMP="$(usex openmp)" - -DENABLE_STRICT_COMPILATION="OFF" - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" - ) - cmake-utils_src_configure -} - -src_install() { - DOCS="README.md changelog.md players_changelog.md" cmake-utils_src_install - if use dedicated || use server; then - rmdir "${ED%/}/run/wesnothd" || die - newinitd "${FILESDIR}"/wesnothd.rc-r1 wesnothd - fi -} diff --git a/games-strategy/wesnoth/wesnoth-1.14.4.ebuild b/games-strategy/wesnoth/wesnoth-1.14.4.ebuild new file mode 100644 index 000000000000..9ce29bd54b01 --- /dev/null +++ b/games-strategy/wesnoth/wesnoth-1.14.4.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils user + +DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game" +HOMEPAGE="http://www.wesnoth.org + https://github.com/wesnoth/wesnoth" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="dbus dedicated doc fribidi libressl nls openmp server" + +RDEPEND=" + >=dev-libs/boost-1.50:=[nls,threads,icu] + >=media-libs/libsdl2-2.0.4:0[joystick,video,X] + !dedicated? ( + dev-libs/glib:2 + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + >=media-libs/fontconfig-2.4.1 + >=media-libs/sdl2-image-2.0.0[jpeg,png] + >=media-libs/sdl2-mixer-2.0.0[vorbis] + >=media-libs/sdl2-ttf-2.0.12 + media-libs/libvorbis + >=x11-libs/pango-1.22.0 + >=x11-libs/cairo-1.10.0 + sys-libs/readline:0 + dbus? ( sys-apps/dbus ) + fribidi? ( dev-libs/fribidi ) + )" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig + x11-libs/libX11 +" + +pkg_setup() { + if use openmp; then + tc-has-openmp || die "Please switch to an openmp compatible compiler" + fi + + enewgroup ${PN} + enewuser ${PN} -1 /bin/bash -1 ${PN} +} + +src_prepare() { + cmake-utils_src_prepare + + if ! use doc ; then + sed -i \ + -e '/manual/d' \ + doc/CMakeLists.txt || die + fi + + # respect LINGUAS (bug #483316) + if [[ ${LINGUAS+set} ]] ; then + local langs + for lang in $(cat po/LINGUAS) + do + has $lang $LINGUAS && langs+="$lang " + done + echo "$langs" > po/LINGUAS || die + fi +} + +src_configure() { + filter-flags -ftracer -fomit-frame-pointer + if [[ $(gcc-major-version) -eq 3 ]] ; then + filter-flags -fstack-protector + append-flags -fno-stack-protector + fi + + # Work around eclass + append-flags -UNDEBUG + + if use dedicated || use server ; then + mycmakeargs=( + -DENABLE_CAMPAIGN_SERVER="ON" + -DENABLE_SERVER="ON" + -DSERVER_UID="${PN}" + -DSERVER_GID="${PN}" + -DFIFO_DIR="/run/wesnothd" + ) + else + mycmakeargs=( + -DENABLE_CAMPAIGN_SERVER="OFF" + -DENABLE_SERVER="OFF" + ) + fi + mycmakeargs+=( + -Wno-dev + -DENABLE_GAME="$(usex !dedicated)" + -DENABLE_DESKTOP_ENTRY="$(usex !dedicated)" + -DENABLE_NLS="$(usex nls)" + -DENABLE_NOTIFICATIONS="$(usex dbus)" + -DENABLE_FRIBIDI="$(usex fribidi)" + -DENABLE_OMP="$(usex openmp)" + -DENABLE_STRICT_COMPILATION="OFF" + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" + ) + cmake-utils_src_configure +} + +src_install() { + local DOCS=( README.md changelog.md ) + cmake-utils_src_install + if use dedicated || use server; then + rmdir "${ED%/}/run/wesnothd" || die + newinitd "${FILESDIR}"/wesnothd.rc-r1 wesnothd + fi +} -- cgit v1.2.3