From 11ec7d0dd61c6e8994f4c638131b9ebe36fd0d67 Mon Sep 17 00:00:00 2001 From: "Vivian Heisz (demize)" Date: Fri, 16 May 2025 22:28:14 -0400 Subject: [PATCH] media-libs/glee: add multilib support Also minorly updates the autotools patch so the generated pkg-config file includes the package version properly. Signed-off-by: Vivian Heisz (demize) --- media-libs/glee/files/glee-autotools.patch | 2 +- ...lee-5.4.0-r2.ebuild => glee-5.4.0-r3.ebuild} | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) rename media-libs/glee/{glee-5.4.0-r2.ebuild => glee-5.4.0-r3.ebuild} (75%) diff --git a/media-libs/glee/files/glee-autotools.patch b/media-libs/glee/files/glee-autotools.patch index 394d980708..3887a9f16d 100644 --- a/media-libs/glee/files/glee-autotools.patch +++ b/media-libs/glee/files/glee-autotools.patch @@ -2,7 +2,7 @@ diff -ruN configure.ac configure.ac --- configure.ac 1970-01-01 03:00:00.000000000 +0300 +++ configure.ac 2007-02-13 23:48:45.000000000 +0300 @@ -0,0 +1,11 @@ -+AC_INIT(configure.ac) ++AC_INIT(libGLee, 5.4) +AC_CONFIG_FILES([glee.pc]) + +AM_CONFIG_HEADER(config.h) diff --git a/media-libs/glee/glee-5.4.0-r2.ebuild b/media-libs/glee/glee-5.4.0-r3.ebuild similarity index 75% rename from media-libs/glee/glee-5.4.0-r2.ebuild rename to media-libs/glee/glee-5.4.0-r3.ebuild index 71c703f107..04e0a95858 100644 --- a/media-libs/glee/glee-5.4.0-r2.ebuild +++ b/media-libs/glee/glee-5.4.0-r3.ebuild @@ -3,34 +3,39 @@ EAPI=8 -inherit autotools +inherit autotools multilib-minimal DESCRIPTION="OpenGL Easy Extension library" HOMEPAGE="https://elf-stone.com/glee.php" SRC_URI="https://elf-stone.com/downloads/GLee/GLee-${PV}-src.tar.gz" -S="${WORKDIR}" - LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="static-libs" -RDEPEND="virtual/opengl" +RDEPEND="virtual/opengl[${MULTILIB_USEDEP}]" DEPEND="${RDEPEND}" +src_unpack() { + mkdir "${P}" || die + cd "${P}" || die + default +} + src_prepare() { default eapply -p0 "${FILESDIR}/${PN}-autotools.patch" eautoreconf || die + multilib_copy_sources } -src_configure() { +multilib_src_configure() { econf \ $(use_enable static-libs static) } -src_install() { +multilib_src_install() { emake DESTDIR="${D}" install || die find "${ED}" -type f -name '*.la' -delete || die dodoc readme.txt extensionList.txt || die