diff options
author | Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> | 2024-02-16 21:48:23 +0000 |
---|---|---|
committer | Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> | 2024-02-16 21:50:06 +0000 |
commit | e887b0bb7ed88c35f1e81fcf680ce35cf147d046 (patch) | |
tree | cb808afd7bb1b5f393e38d5d4b813a3baa277f59 /media-libs/imgui | |
parent | media-sound/tidal-hifi-bin: drop 5.8.0 (diff) | |
download | guru-e887b0bb7ed88c35f1e81fcf680ce35cf147d046.tar.gz guru-e887b0bb7ed88c35f1e81fcf680ce35cf147d046.tar.bz2 guru-e887b0bb7ed88c35f1e81fcf680ce35cf147d046.zip |
media-libs/imgui: drop 1.87-r6, 1.87-r8, add 1.87-r9
* fix bug with patch applying before imgui folder be added
Closes: https://bugs.gentoo.org/924126
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
Diffstat (limited to 'media-libs/imgui')
-rw-r--r-- | media-libs/imgui/imgui-1.87-r6.ebuild | 113 | ||||
-rw-r--r-- | media-libs/imgui/imgui-1.87-r9.ebuild (renamed from media-libs/imgui/imgui-1.87-r8.ebuild) | 13 |
2 files changed, 10 insertions, 116 deletions
diff --git a/media-libs/imgui/imgui-1.87-r6.ebuild b/media-libs/imgui/imgui-1.87-r6.ebuild deleted file mode 100644 index 375292309..000000000 --- a/media-libs/imgui/imgui-1.87-r6.ebuild +++ /dev/null @@ -1,113 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake - -DESCRIPTION="Bloat-free graphical user interface library for C++" -HOMEPAGE=" - https://github.com/ocornut/imgui - https://github.com/cimgui/cimgui -" -SRC_URI=" - https://github.com/ocornut/imgui/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/cimgui/cimgui/archive/refs/tags/${PV}.tar.gz -> c${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0/${PV}" -KEYWORDS="~amd64" -IUSE="allegro bindings examples freetype glfw glut opengl sdl vulkan" -S="${WORKDIR}/c${P}" - -RDEPEND=" - dev-libs/stb:= - allegro? ( media-libs/allegro:5 ) - freetype? ( media-libs/freetype ) - glfw? ( media-libs/glfw:0 ) - glut? ( media-libs/freeglut ) - opengl? ( virtual/opengl ) - sdl? ( media-libs/libsdl2 ) - vulkan? ( media-libs/vulkan-loader ) -" -DEPEND=" - ${RDEPEND} - vulkan? ( dev-util/vulkan-headers ) -" -BDEPEND=" - bindings? ( dev-lang/luajit ) - virtual/pkgconfig -" - -REQUIRED_USE=" - || ( - allegro - glfw - glut - sdl - ) - || ( - allegro - opengl - vulkan - ) -" - -PATCHES=( "${FILESDIR}/${P}-fpermissive.patch" ) - -src_prepare() { - pushd ../ || die - rm -rf "${S}/imgui" || die - mv "${P}" "${S}/imgui" || die - pushd "${S}/imgui" || die - - # imgui - rm -r examples/libs || die - rm -r misc/*/*.ttf || die - rm -r misc/single_file || die - - cp "${FILESDIR}/${P}-CMakeLists.txt" CMakeLists.txt || die - cp "${FILESDIR}/imgui.pc.in" imgui.pc.in || die - sed -e "s|@version@|${PV}|g" -i imgui.pc.in || die - - pushd "${S}" || die - cp "${FILESDIR}/c${P}-CMakeLists.txt" CMakeLists.txt || die - # remove files to be generated - rm cimgui.cpp cimgui.h || die - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DIMGUI_ALLEGRO=$(usex allegro) - -DIMGUI_BINDINGS=$(usex bindings) - -DIMGUI_EXAMPLES=$(usex examples) - -DIMGUI_FREETYPE=$(usex freetype) - -DIMGUI_GLFW=$(usex glfw) - -DIMGUI_GLUT=$(usex glut) - -DIMGUI_OPENGL=$(usex opengl) - -DIMGUI_SDL=$(usex sdl) - -DIMGUI_VULKAN=$(usex vulkan) - ) - cmake_src_configure -} - -src_install() { - - cmake_src_install - - pushd imgui || die - # imgui - rm -rf misc/{fonts,freetype} || die - dodoc -r misc - - popd || die - - if use bindings; then - # cimgui - - insinto "/usr/share/doc/${PF}/cimgui" - doins README.md TODO.txt - fi -} diff --git a/media-libs/imgui/imgui-1.87-r8.ebuild b/media-libs/imgui/imgui-1.87-r9.ebuild index 207cbbefc..27dc90b9a 100644 --- a/media-libs/imgui/imgui-1.87-r8.ebuild +++ b/media-libs/imgui/imgui-1.87-r9.ebuild @@ -56,13 +56,20 @@ REQUIRED_USE=" PATCHES=( "${FILESDIR}/${P}-fpermissive.patch" ) -multilib_src_prepare() { - pushd ../ || die +src_unpack() { + # unpack imgui and cimgui to ${WORKDIR} + unpack "${P}.gh.tar.gz" + unpack "c${P}.gh.tar.gz" + + # move imgui to the proper location before the patch (Bug #924126) + pushd ${WORKDIR} || die rm -rf "${S}/imgui" || die mv "${P}" "${S}/imgui" || die - pushd "${S}/imgui" || die +} +multilib_src_prepare() { # imgui + pushd "${S}/imgui" || die rm -r examples/libs || die rm -r misc/*/*.ttf || die rm -r misc/single_file || die |