From 58363a659e5161822c630bb4e16459a3a838696c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 27 May 2023 21:13:07 +0100 Subject: gentoo auto-resync : 27:05:2023 - 21:13:06 --- dev-games/mygui/Manifest | 2 +- dev-games/mygui/mygui-3.4.1-r1.ebuild | 158 ++++++++++++++++++++++++++++++++++ dev-games/mygui/mygui-3.4.1.ebuild | 158 ---------------------------------- 3 files changed, 159 insertions(+), 159 deletions(-) create mode 100644 dev-games/mygui/mygui-3.4.1-r1.ebuild delete mode 100644 dev-games/mygui/mygui-3.4.1.ebuild (limited to 'dev-games/mygui') diff --git a/dev-games/mygui/Manifest b/dev-games/mygui/Manifest index d0f85469e0ef..00617bc0faf8 100644 --- a/dev-games/mygui/Manifest +++ b/dev-games/mygui/Manifest @@ -2,5 +2,5 @@ AUX mygui-3.4.1-FHS.patch 684 BLAKE2B 393855309d895c2a30565ff05ec32ff8b78d47d107 AUX mygui-3.4.1-build.patch 2056 BLAKE2B 7b7c304f3c5df023c1836df0d60d52b4d56a84134e2a8f4e4180317f54f6d3407f7c2fac7a138dfb70c4b7e6ad99a86047fd80316fcae9d8c8d821a648f5963f SHA512 a745eaf7f605c93d59781615cf1e0cbba0dbf2dd67de2ab04e25e96bc4fbd3a602c9460f9e0a73e9f7781cf355ebcc69e38f1530c7ec01d2ec630eff43c062e8 AUX mygui-3.4.1-gcc13.patch 651 BLAKE2B c36512c3ca3f7b9f76c6b0a92671b206e5f889b97b1b2b90e0328a009e15fbba1d7a91caf884a71e2d5b1269200e89801aeeed2674903436ff683cec41c0fb48 SHA512 f1f529b85326388ace23c2b4f2964fb96827b758f3ecd1033890401d4785500bc1f4c7136d92035f4839d368ebc1cefb016315bc24e119be9a9eea0926c89770 DIST mygui-3.4.1.tar.gz 22433198 BLAKE2B 400f88a63df1bff5554236a0aeb58218fdb6100aa84f9eb1ac111adabfa45ae7eb1c3124bb04f3ef57587566e716d3242daa9cb5866d7ccc43a56c9605952411 SHA512 9d36272345b1a755db88848c8a0919feb6f8ae09d048efa3b8ed833bb5ddb9c65e1e7e0d26ad39eecd2a4de53fb654f4099c555e9ebd21ce9541a1a74580ef05 -EBUILD mygui-3.4.1.ebuild 3670 BLAKE2B e3688c3e35295ec57d528e29719cbd5b5b8b3da10391fd6eb706e10461af0bfb95a4ce2b9a768fa10a91d39572d6e9c84bf4c7713a20e42c1e9309c04ef27369 SHA512 998ea4ca6444890d7ed4498ecf2020e1b3f889c3f9480ddc770a023f4bd20dfd6891d770038a2c67b753cdbce92c4464e0356b570316f3d0a318f585c0fb574e +EBUILD mygui-3.4.1-r1.ebuild 3670 BLAKE2B e3688c3e35295ec57d528e29719cbd5b5b8b3da10391fd6eb706e10461af0bfb95a4ce2b9a768fa10a91d39572d6e9c84bf4c7713a20e42c1e9309c04ef27369 SHA512 998ea4ca6444890d7ed4498ecf2020e1b3f889c3f9480ddc770a023f4bd20dfd6891d770038a2c67b753cdbce92c4464e0356b570316f3d0a318f585c0fb574e MISC metadata.xml 2013 BLAKE2B a3c0a6ee33840e2c70951ec6ede217ef546cd584c241f79f98a0eb5396fa2e6011f01b23452907bec397395fdb3b6b5f3ed03c8738cf377ced9fa0aef930a859 SHA512 0906364e391e490e1be617f64e7b67dc08675f6106c21b46fff53f2ac94e3fc36658c2f8f926eae66689dfc5b6dc34b4931fd24548554df63629dd38b5560f5d diff --git a/dev-games/mygui/mygui-3.4.1-r1.ebuild b/dev-games/mygui/mygui-3.4.1-r1.ebuild new file mode 100644 index 000000000000..84c0fdb8b016 --- /dev/null +++ b/dev-games/mygui/mygui-3.4.1-r1.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_REMOVE_MODULES_LIST="FindFreetype" +inherit cmake flag-o-matic + +MY_PN=MyGUI +MY_P=${MY_PN}${PV} + +DESCRIPTION="A library for creating GUIs for games and 3D applications" +HOMEPAGE="http://mygui.info" +SRC_URI="https://github.com/MyGUI/mygui/archive/${MY_P}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="debug doc +ogre opengl plugins samples static-libs test tools l10n_ru" +RESTRICT="!test? ( test )" +REQUIRED_USE="ogre? ( !opengl ) + opengl? ( !ogre )" + +RDEPEND="media-libs/freetype:2 + sys-libs/zlib + ogre? ( + >=dev-games/ogre-1.12:0=[freeimage,opengl] + samples? ( dev-games/ois ) + ) + opengl? ( + virtual/opengl + media-libs/glew:0= + ) + tools? ( dev-games/ois )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + doc? ( app-doc/doxygen )" + +S=${WORKDIR}/mygui-${MY_P} +STATIC_BUILD=${WORKDIR}/${P}_build_static + +PATCHES=( + "${FILESDIR}"/${P}-build.patch + "${FILESDIR}"/${P}-FHS.patch + "${FILESDIR}"/${P}-gcc13.patch +) + +pkg_setup() { + if use samples && use !ogre ; then + ewarn "Samples disabled, because they only work with ogre!" + ewarn "Enable ogre USE flag if you want to use samples." + fi +} + +src_configure() { + use debug && append-cppflags -DDEBUG + + local mycmakeargs=() + + # static configuration + if use static-libs ; then + mycmakeargs=( -DMYGUI_STATIC=ON + -DMYGUI_BUILD_DOCS=OFF + -DMYGUI_INSTALL_DOCS=OFF + -DMYGUI_USE_FREETYPE=ON + -DMYGUI_BUILD_PLUGINS=$(usex plugins) + -DMYGUI_BUILD_DEMOS=OFF + -DMYGUI_INSTALL_DEMOS=OFF + -DMYGUI_BUILD_TOOLS=OFF + -DMYGUI_INSTALL_TOOLS=OFF + -DMYGUI_BUILD_WRAPPER=OFF + -DMYGUI_RENDERSYSTEM=$(usex opengl "4" "$(usex ogre "3" "1")") ) + + CMAKE_BUILD_DIR=${STATIC_BUILD} cmake_src_configure + unset mycmakeargs + fi + + # main configuration + mycmakeargs=( + -DMYGUI_STATIC=OFF + -DMYGUI_BUILD_DOCS=$(usex doc) + -DMYGUI_INSTALL_DOCS=$(usex doc) + -DMYGUI_USE_FREETYPE=ON + -DMYGUI_BUILD_PLUGINS=$(usex plugins) + -DMYGUI_BUILD_TOOLS=$(usex tools) + -DMYGUI_INSTALL_TOOLS=$(usex tools) + -DMYGUI_USE_SYSTEM_GLEW=$(usex opengl) + -DMYGUI_BUILD_WRAPPER=OFF + -DMYGUI_RENDERSYSTEM=$(usex opengl "4" "$(usex ogre "3" "1")") + ) + + if use ogre && use samples; then + mycmakeargs+=( + -DMYGUI_BUILD_DEMOS=ON + -DMYGUI_INSTALL_DEMOS=ON + ) + else + mycmakeargs+=( + -DMYGUI_BUILD_DEMOS=OFF + -DMYGUI_INSTALL_DEMOS=OFF + ) + + fi + + if use tools || (use samples && use ogre) ; then + mycmakeargs+=( -DMYGUI_INSTALL_MEDIA=ON ) + else + mycmakeargs+=( -DMYGUI_INSTALL_MEDIA=OFF ) + fi + + cmake_src_configure +} + +src_compile() { + # build system does not support building static and shared at once, + # run a double build + if use static-libs ; then + CMAKE_BUILD_DIR=${STATIC_BUILD} cmake_src_compile + fi + + cmake_src_compile + + use doc && emake -C "${CMAKE_BUILD_DIR}"/Docs api-docs +} + +src_install() { + cmake_src_install + + if use static-libs ; then + find "${STATIC_BUILD}" -name "*.a" \! -name "libCommon.a" -exec dolib.a '{}' \; + insinto /usr/$(get_libdir)/pkgconfig + doins "${STATIC_BUILD}"/pkgconfig/MYGUIStatic.pc + fi + + if use doc ; then + dodoc -r "${CMAKE_BUILD_DIR}"/Docs/html/ + + if use l10n_ru ; then + docompress -x /usr/share/doc/${PF}/Papers + dodoc -r Docs/Papers + fi + fi + + keepdir /etc/MYGUI + fperms o+w /etc/MYGUI + + # test media not needed at runtime + rm -rf "${ED}"/usr/share/MYGUI/Media/UnitTests || die + # wrapper not available for linux, remove related media + rm -rf "${ED}"/usr/share/MYGUI/Media/Wrapper || die +} + +pkg_postinst() { + elog + elog "ogre.cfg and Ogre.log are created as" + elog "${EROOT}/etc/MYGUI/mygui-ogre.cfg and /etc/MYGUI/mygui-Ogre.log" + elog +} diff --git a/dev-games/mygui/mygui-3.4.1.ebuild b/dev-games/mygui/mygui-3.4.1.ebuild deleted file mode 100644 index 84c0fdb8b016..000000000000 --- a/dev-games/mygui/mygui-3.4.1.ebuild +++ /dev/null @@ -1,158 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_REMOVE_MODULES_LIST="FindFreetype" -inherit cmake flag-o-matic - -MY_PN=MyGUI -MY_P=${MY_PN}${PV} - -DESCRIPTION="A library for creating GUIs for games and 3D applications" -HOMEPAGE="http://mygui.info" -SRC_URI="https://github.com/MyGUI/mygui/archive/${MY_P}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="debug doc +ogre opengl plugins samples static-libs test tools l10n_ru" -RESTRICT="!test? ( test )" -REQUIRED_USE="ogre? ( !opengl ) - opengl? ( !ogre )" - -RDEPEND="media-libs/freetype:2 - sys-libs/zlib - ogre? ( - >=dev-games/ogre-1.12:0=[freeimage,opengl] - samples? ( dev-games/ois ) - ) - opengl? ( - virtual/opengl - media-libs/glew:0= - ) - tools? ( dev-games/ois )" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig - doc? ( app-doc/doxygen )" - -S=${WORKDIR}/mygui-${MY_P} -STATIC_BUILD=${WORKDIR}/${P}_build_static - -PATCHES=( - "${FILESDIR}"/${P}-build.patch - "${FILESDIR}"/${P}-FHS.patch - "${FILESDIR}"/${P}-gcc13.patch -) - -pkg_setup() { - if use samples && use !ogre ; then - ewarn "Samples disabled, because they only work with ogre!" - ewarn "Enable ogre USE flag if you want to use samples." - fi -} - -src_configure() { - use debug && append-cppflags -DDEBUG - - local mycmakeargs=() - - # static configuration - if use static-libs ; then - mycmakeargs=( -DMYGUI_STATIC=ON - -DMYGUI_BUILD_DOCS=OFF - -DMYGUI_INSTALL_DOCS=OFF - -DMYGUI_USE_FREETYPE=ON - -DMYGUI_BUILD_PLUGINS=$(usex plugins) - -DMYGUI_BUILD_DEMOS=OFF - -DMYGUI_INSTALL_DEMOS=OFF - -DMYGUI_BUILD_TOOLS=OFF - -DMYGUI_INSTALL_TOOLS=OFF - -DMYGUI_BUILD_WRAPPER=OFF - -DMYGUI_RENDERSYSTEM=$(usex opengl "4" "$(usex ogre "3" "1")") ) - - CMAKE_BUILD_DIR=${STATIC_BUILD} cmake_src_configure - unset mycmakeargs - fi - - # main configuration - mycmakeargs=( - -DMYGUI_STATIC=OFF - -DMYGUI_BUILD_DOCS=$(usex doc) - -DMYGUI_INSTALL_DOCS=$(usex doc) - -DMYGUI_USE_FREETYPE=ON - -DMYGUI_BUILD_PLUGINS=$(usex plugins) - -DMYGUI_BUILD_TOOLS=$(usex tools) - -DMYGUI_INSTALL_TOOLS=$(usex tools) - -DMYGUI_USE_SYSTEM_GLEW=$(usex opengl) - -DMYGUI_BUILD_WRAPPER=OFF - -DMYGUI_RENDERSYSTEM=$(usex opengl "4" "$(usex ogre "3" "1")") - ) - - if use ogre && use samples; then - mycmakeargs+=( - -DMYGUI_BUILD_DEMOS=ON - -DMYGUI_INSTALL_DEMOS=ON - ) - else - mycmakeargs+=( - -DMYGUI_BUILD_DEMOS=OFF - -DMYGUI_INSTALL_DEMOS=OFF - ) - - fi - - if use tools || (use samples && use ogre) ; then - mycmakeargs+=( -DMYGUI_INSTALL_MEDIA=ON ) - else - mycmakeargs+=( -DMYGUI_INSTALL_MEDIA=OFF ) - fi - - cmake_src_configure -} - -src_compile() { - # build system does not support building static and shared at once, - # run a double build - if use static-libs ; then - CMAKE_BUILD_DIR=${STATIC_BUILD} cmake_src_compile - fi - - cmake_src_compile - - use doc && emake -C "${CMAKE_BUILD_DIR}"/Docs api-docs -} - -src_install() { - cmake_src_install - - if use static-libs ; then - find "${STATIC_BUILD}" -name "*.a" \! -name "libCommon.a" -exec dolib.a '{}' \; - insinto /usr/$(get_libdir)/pkgconfig - doins "${STATIC_BUILD}"/pkgconfig/MYGUIStatic.pc - fi - - if use doc ; then - dodoc -r "${CMAKE_BUILD_DIR}"/Docs/html/ - - if use l10n_ru ; then - docompress -x /usr/share/doc/${PF}/Papers - dodoc -r Docs/Papers - fi - fi - - keepdir /etc/MYGUI - fperms o+w /etc/MYGUI - - # test media not needed at runtime - rm -rf "${ED}"/usr/share/MYGUI/Media/UnitTests || die - # wrapper not available for linux, remove related media - rm -rf "${ED}"/usr/share/MYGUI/Media/Wrapper || die -} - -pkg_postinst() { - elog - elog "ogre.cfg and Ogre.log are created as" - elog "${EROOT}/etc/MYGUI/mygui-ogre.cfg and /etc/MYGUI/mygui-Ogre.log" - elog -} -- cgit v1.2.3