From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AB73E158041 for ; Sat, 13 Apr 2024 07:33:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF2A4E2A30; Sat, 13 Apr 2024 07:33:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A61CAE2A30 for ; Sat, 13 Apr 2024 07:33:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DA6EC343331 for ; Sat, 13 Apr 2024 07:33:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4830E16B3 for ; Sat, 13 Apr 2024 07:33:15 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1712993540.ef7d5a5f8e87919381ff14a7f5a8090d16347271.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/imlib/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/imlib/imlib-1.9.15-r8.ebuild X-VCS-Directories: media-libs/imlib/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: ef7d5a5f8e87919381ff14a7f5a8090d16347271 X-VCS-Branch: master Date: Sat, 13 Apr 2024 07:33:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0f5c02ad-93e1-417f-b2a9-4255904774b5 X-Archives-Hash: 8a495e1ebfbe9b90c1dfea1e4c461d0b commit: ef7d5a5f8e87919381ff14a7f5a8090d16347271 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Wed Mar 27 19:13:55 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sat Apr 13 07:32:20 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef7d5a5f media-libs/imlib: EAPI8 bump, fix bug #925626 Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://bugs.gentoo.org/925626 Closes: https://github.com/gentoo/gentoo/pull/35948 Signed-off-by: Arthur Zamarin gentoo.org> media-libs/imlib/imlib-1.9.15-r8.ebuild | 73 +++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/media-libs/imlib/imlib-1.9.15-r8.ebuild b/media-libs/imlib/imlib-1.9.15-r8.ebuild new file mode 100644 index 000000000000..d9d627be63f7 --- /dev/null +++ b/media-libs/imlib/imlib-1.9.15-r8.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal + +PVP=(${PV//[-\._]/ }) +DESCRIPTION="Image loading and rendering library" +HOMEPAGE="https://ftp.acc.umu.se/pub/GNOME/sources/imlib/1.9/" +SRC_URI="mirror://gnome/sources/${PN}/${PVP[0]}.${PVP[1]}/${P}.tar.bz2 + mirror://gentoo/gtk-1-for-imlib.m4.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="static-libs" + +RDEPEND=" + >=media-libs/tiff-3.9.7-r1:=[${MULTILIB_USEDEP}] + >=media-libs/giflib-5.1:0=[${MULTILIB_USEDEP}] + media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] + >=media-libs/libpng-1.2.51:=[${MULTILIB_USEDEP}] + >=x11-libs/libICE-1.0.8-r1[${MULTILIB_USEDEP}] + >=x11-libs/libSM-1.2.1-r1[${MULTILIB_USEDEP}] + >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + + # Fix aclocal underquoted definition warnings. + # Conditionalize gdk functions for bug 40453. + # Fix imlib-config for bug 3425. + eapply "${FILESDIR}"/${P}.patch + eapply "${FILESDIR}"/${PN}-security.patch #security #72681 + eapply "${FILESDIR}"/${P}-bpp16-CVE-2007-3568.patch # security #201887 + eapply "${FILESDIR}"/${P}-fix-rendering.patch #197489 + eapply "${FILESDIR}"/${P}-asneeded.patch #207638 + eapply "${FILESDIR}"/${P}-libpng15.patch #357167 + eapply "${FILESDIR}"/${P}-underlinking-test.patch #367645 + eapply "${FILESDIR}"/${P}-no-LDFLAGS-in-pc.patch + eapply "${FILESDIR}"/${P}-giflib51-{1,2}.patch #538976 + + mkdir m4 && cp "${WORKDIR}"/gtk-1-for-imlib.m4 m4 || die + + AT_M4DIR="m4" eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --sysconfdir=/etc/imlib \ + $(use_enable static-libs static) \ + --disable-gdk \ + --disable-gtktest +} + +multilib_src_install() { + emake DESTDIR="${D}" install + # fix target=@gdk-target@ in pkgconfig, bug #499268 + sed -e '/^target=/d' \ + -i "${ED}"/usr/$(get_libdir)/pkgconfig/imlib.pc || die +} + +multilib_src_install_all() { + local HTML_DOCS=( doc/*.gif doc/*.html ) + einstalldocs + + # Punt unused files + rm -f "${D}"/usr/lib*/pkgconfig/imlibgdk.pc || die + find "${D}" -name '*.la' -exec rm -f {} + || die +}