From f8bd31ff711cb72f8c7da25c92cc7e8c2e04d66b Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 14 Aug 2021 03:42:18 +0100 Subject: games-simulation/openttd: subscribe to dev-libs/icu-layoutex:= subslot Signed-off-by: Sam James --- games-simulation/openttd/openttd-1.11.2-r1.ebuild | 100 ++++++++++++++++++++++ games-simulation/openttd/openttd-1.11.2.ebuild | 100 ---------------------- 2 files changed, 100 insertions(+), 100 deletions(-) create mode 100644 games-simulation/openttd/openttd-1.11.2-r1.ebuild delete mode 100644 games-simulation/openttd/openttd-1.11.2.ebuild diff --git a/games-simulation/openttd/openttd-1.11.2-r1.ebuild b/games-simulation/openttd/openttd-1.11.2-r1.ebuild new file mode 100644 index 000000000000..104f633add0a --- /dev/null +++ b/games-simulation/openttd/openttd-1.11.2-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="A clone of Transport Tycoon Deluxe" +HOMEPAGE="https://www.openttd.org/" +SRC_URI="https://cdn.openttd.org/openttd-releases/${PV}/${P}-source.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +IUSE="allegro cpu_flags_x86_sse dedicated +fluidsynth icu +lzma lzo +openmedia +png +sdl timidity +truetype zlib" +REQUIRED_USE="!dedicated? ( || ( allegro sdl ) )" + +RESTRICT="test" # needs a graphics set in order to test + +RDEPEND=" + !dedicated? ( + allegro? ( media-libs/allegro:5 ) + fluidsynth? ( media-sound/fluidsynth ) + icu? ( + dev-libs/icu-layoutex:= + dev-libs/icu-le-hb + >=dev-libs/icu-58.1:= + ) + sdl? ( media-libs/libsdl2[sound,video] ) + truetype? ( + media-libs/fontconfig + media-libs/freetype:2 + sys-libs/zlib:= + ) + ) + lzma? ( app-arch/xz-utils ) + lzo? ( dev-libs/lzo:2 ) + png? ( media-libs/libpng:0= ) + zlib? ( sys-libs/zlib:= )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" +PDEPEND=" + !dedicated? ( + openmedia? ( + >=games-misc/openmsx-0.4.0 + >=games-misc/opensfx-1.0.1 + ) + ) + openmedia? ( >=games-misc/opengfx-0.6.1 ) + timidity? ( media-sound/timidity++ )" + +DOCS=( docs/directory_structure.md ) +PATCHES=( + "${FILESDIR}/${P}_dont_compress_man.patch" +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_BINDIR=bin + -DCMAKE_INSTALL_DATADIR=share + -DOPTION_DEDICATED=$(usex dedicated) + -DCMAKE_DISABLE_FIND_PACKAGE_Allegro=$(usex !allegro) + -DCMAKE_DISABLE_FIND_PACKAGE_FREETYPE=$(usex !truetype) + -DCMAKE_DISABLE_FIND_PACKAGE_Fontconfig=$(usex !truetype) + -DCMAKE_DISABLE_FIND_PACKAGE_Fluidsynth=$(usex !fluidsynth) + -DCMAKE_DISABLE_FIND_PACKAGE_ICU=$(usex !icu) + -DCMAKE_DISABLE_FIND_PACKAGE_LIBLZMA=$(usex !lzma) + -DCMAKE_DISABLE_FIND_PACKAGE_LZO=$(usex !lzo) + -DCMAKE_DISABLE_FIND_PACKAGE_PNG=$(usex !png) + -DCMAKE_DISABLE_FIND_PACKAGE_SDL=ON + -DCMAKE_DISABLE_FIND_PACKAGE_SDL2=$(usex !sdl) + -DCMAKE_DISABLE_FIND_PACKAGE_SSE=$(usex !cpu_flags_x86_sse) + -DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=$(usex !zlib) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} +} + +pkg_postinst() { + if ! use openmedia ; then + elog + elog "OpenTTD was compiled without the 'openmedia' USE flag." + elog + elog "In order to play, you must at least install" + elog "games-misc/opengfx, and games-misc/opensfx, or copy the " + elog "following 6 files from a version of Transport Tycoon Deluxe" + elog "(Windows or DOS) to shared or personal location." + elog "See /usr/share/doc/${PF}/directory_structure.md for more info." + elog + elog "From the Windows version you need: " + elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" + elog "OR from the DOS version you need: " + elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" + fi +} diff --git a/games-simulation/openttd/openttd-1.11.2.ebuild b/games-simulation/openttd/openttd-1.11.2.ebuild deleted file mode 100644 index cb7671437c5f..000000000000 --- a/games-simulation/openttd/openttd-1.11.2.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="A clone of Transport Tycoon Deluxe" -HOMEPAGE="https://www.openttd.org/" -SRC_URI="https://cdn.openttd.org/openttd-releases/${PV}/${P}-source.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" - -IUSE="allegro cpu_flags_x86_sse dedicated +fluidsynth icu +lzma lzo +openmedia +png +sdl timidity +truetype zlib" -REQUIRED_USE="!dedicated? ( || ( allegro sdl ) )" - -RESTRICT="test" # needs a graphics set in order to test - -RDEPEND=" - !dedicated? ( - allegro? ( media-libs/allegro:5 ) - fluidsynth? ( media-sound/fluidsynth ) - icu? ( - dev-libs/icu-layoutex - dev-libs/icu-le-hb - >=dev-libs/icu-58.1:= - ) - sdl? ( media-libs/libsdl2[sound,video] ) - truetype? ( - media-libs/fontconfig - media-libs/freetype:2 - sys-libs/zlib:= - ) - ) - lzma? ( app-arch/xz-utils ) - lzo? ( dev-libs/lzo:2 ) - png? ( media-libs/libpng:0= ) - zlib? ( sys-libs/zlib:= )" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" -PDEPEND=" - !dedicated? ( - openmedia? ( - >=games-misc/openmsx-0.4.0 - >=games-misc/opensfx-1.0.1 - ) - ) - openmedia? ( >=games-misc/opengfx-0.6.1 ) - timidity? ( media-sound/timidity++ )" - -DOCS=( docs/directory_structure.md ) -PATCHES=( - "${FILESDIR}/${P}_dont_compress_man.patch" -) - -src_configure() { - local mycmakeargs=( - -DCMAKE_INSTALL_BINDIR=bin - -DCMAKE_INSTALL_DATADIR=share - -DOPTION_DEDICATED=$(usex dedicated) - -DCMAKE_DISABLE_FIND_PACKAGE_Allegro=$(usex !allegro) - -DCMAKE_DISABLE_FIND_PACKAGE_FREETYPE=$(usex !truetype) - -DCMAKE_DISABLE_FIND_PACKAGE_Fontconfig=$(usex !truetype) - -DCMAKE_DISABLE_FIND_PACKAGE_Fluidsynth=$(usex !fluidsynth) - -DCMAKE_DISABLE_FIND_PACKAGE_ICU=$(usex !icu) - -DCMAKE_DISABLE_FIND_PACKAGE_LIBLZMA=$(usex !lzma) - -DCMAKE_DISABLE_FIND_PACKAGE_LZO=$(usex !lzo) - -DCMAKE_DISABLE_FIND_PACKAGE_PNG=$(usex !png) - -DCMAKE_DISABLE_FIND_PACKAGE_SDL=ON - -DCMAKE_DISABLE_FIND_PACKAGE_SDL2=$(usex !sdl) - -DCMAKE_DISABLE_FIND_PACKAGE_SSE=$(usex !cpu_flags_x86_sse) - -DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=$(usex !zlib) - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} -} - -pkg_postinst() { - if ! use openmedia ; then - elog - elog "OpenTTD was compiled without the 'openmedia' USE flag." - elog - elog "In order to play, you must at least install" - elog "games-misc/opengfx, and games-misc/opensfx, or copy the " - elog "following 6 files from a version of Transport Tycoon Deluxe" - elog "(Windows or DOS) to shared or personal location." - elog "See /usr/share/doc/${PF}/directory_structure.md for more info." - elog - elog "From the Windows version you need: " - elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" - elog "OR from the DOS version you need: " - elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" - fi -} -- cgit v1.2.3-65-gdbad