From 64e1518b8949510e0cbc385dc312cc0ad7306053 Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Sun, 17 May 2026 19:59:29 +0300 Subject: [PATCH] media-libs/implot: add 1.0 Signed-off-by: Pavel Sobolev --- media-libs/implot/Manifest | 1 + media-libs/implot/implot-1.0.ebuild | 40 +++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 media-libs/implot/implot-1.0.ebuild diff --git a/media-libs/implot/Manifest b/media-libs/implot/Manifest index e63ca93fe8..c9d14dc307 100644 --- a/media-libs/implot/Manifest +++ b/media-libs/implot/Manifest @@ -1 +1,2 @@ DIST implot-0.16.tar.gz 137983 BLAKE2B aca328e2fe6049b72601f25a409f313e99971f606e68ca780a1594f8ca42b1606831090add8039fefd013cfb6c057900f0add347d1b80c466a05bd18e455b8d7 SHA512 117cb08122d900e7db857897bfec4c9ac3300a1d429c8f0303415bc693840baa9bbbb91ca3f13853d8efd3a6ebf538b7114401d4fbfe0d067256e58cbdbd4919 +DIST implot-1.0.tar.gz 153284 BLAKE2B 952f80a1dbae6da352d5fb96b8aca3e8de636da5c571d3b0e6601a8cddd96c7aece0e503972ef2f72f8d364645a30847826a8687ab9a39d25456c669057b8e52 SHA512 cfa6cbf21fe33bbcb41c7808d7cf8dc0be6ab6a951235c661bc37688893be2eca9f9c2b3c699d7a0093b05876f98274cefee2410c7e52d0a9305cdac07ca2e13 diff --git a/media-libs/implot/implot-1.0.ebuild b/media-libs/implot/implot-1.0.ebuild new file mode 100644 index 0000000000..ad4ba8e2e0 --- /dev/null +++ b/media-libs/implot/implot-1.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson-multilib + +MESON_WRAP_VER="1" + +DESCRIPTION="Immediate Mode Plotting" +HOMEPAGE=" + https://github.com/epezent/implot/ +" + +SRC_URI="https://github.com/epezent/implot/archive/v${PV}.tar.gz -> implot-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64" + +RDEPEND=" + media-libs/imgui[${MULTILIB_USEDEP}] +" + +BDEPEND=" + virtual/pkgconfig + app-arch/unzip +" + +src_prepare() { + default + + # Use custom meson.build and meson_options.txt to install instead of relay on packages + cp "${FILESDIR}/${PN}-meson.build" "${S}/meson.build" || die + sed -i "s/version : 'PV',/version : '${PV}',/g" "${S}/meson.build" || die + + # replace all occurences of imgui headers to use the subfolder + find . -type f -exec sed -i 's|"imgui.h"||g' {} \; || die + find . -type f -exec sed -i 's|"imgui_internal.h"||g' {} \; || die +}