commit: ec604d84f431757d63a13954da6fce19a044483f Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Tue Jun 17 23:07:54 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jul 13 06:48:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec604d84
dev-dotnet/libgdiplus: add 6.2 Unrestrict tests Bug: https://bugs.gentoo.org/687784 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42646 Closes: https://github.com/gentoo/gentoo/pull/42646 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-dotnet/libgdiplus/Manifest | 1 + dev-dotnet/libgdiplus/libgdiplus-6.2.ebuild | 63 +++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-dotnet/libgdiplus/Manifest b/dev-dotnet/libgdiplus/Manifest index f21e7817d5a0..e04e14de2102 100644 --- a/dev-dotnet/libgdiplus/Manifest +++ b/dev-dotnet/libgdiplus/Manifest @@ -1 +1,2 @@ DIST libgdiplus-6.0.2.tar.gz 1377140 BLAKE2B 5c639a14371eadee0bfa2ad135284089c65212bde0909d21af8f80fd5bdf7283a8aa688ed88df374a0eac0696a377ba05419b12d9a93b37550c020d2b9961ee0 SHA512 b334846cf9471e6f81a3e0a2d6b68c9a39f52e6b22833432e34d3823ae12e3aa9d481806ea9a078463a77f56f3265633447d6709c5ade86ea117d3690f16472c +DIST libgdiplus-6.2.tar.gz 2283954 BLAKE2B d9196f0e9a10c9c973eb321aa8a72aa29e3e4c9f2054c57fdb19638dbbd0e293ffedda1a6f7353b36affceeaf5f4ee7fecb55a1588fa2fcddc013621e42914ff SHA512 cf3de064d43dd1c2a9aa3e017d07b27c2df1854e716111ff8a4d34ad4389ab679e91c77d9e5a5b2d0ef89ac88cd763f451509d977b70dfa8f805411f0e38b8d1 diff --git a/dev-dotnet/libgdiplus/libgdiplus-6.2.ebuild b/dev-dotnet/libgdiplus/libgdiplus-6.2.ebuild new file mode 100644 index 000000000000..787a0699e598 --- /dev/null +++ b/dev-dotnet/libgdiplus/libgdiplus-6.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools dotnet + +DESCRIPTION="C-based implementation of the GDI+ API" +HOMEPAGE="https://www.mono-project.com" +#SRC_URI="https://dl.winehq.org/mono/sources/libgdiplus/${P}.tar.gz" +# https://gitlab.winehq.org/mono/libgdiplus/-/issues/2 +SRC_URI="https://dev.gentoo.org/~sam/distfiles/dev-dotnet/libgdiplus/libgdiplus-6.2.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="cairo" + +RDEPEND="dev-libs/glib:2 + media-libs/freetype + media-libs/fontconfig + >=media-libs/giflib-5.1.2:= + media-libs/libexif + media-libs/libjpeg-turbo:= + media-libs/libpng:= + media-libs/tiff:= + x11-libs/cairo[X] + x11-libs/libX11 + x11-libs/libXrender + x11-libs/libXt + !cairo? ( x11-libs/pango )" +DEPEND="${RDEPEND}" + +src_prepare() { + default + # Don't default to pango when `--with-pango` is not given. + # Link against correct pango libraries. Bug #700280 + sed -e 's/text_v=default/text_v=cairo/' \ + -e 's/pangocairo/pangocairo pangoft2/' \ + -i configure.ac || die + eautoreconf + + # User configuration for fontconfig affects whether this test passes or not + sed -e '/main(int argc, char\*\*argv)/,/^}$/ { /\(test_createFontFamilyFromName\|test_cloneFontFamily\|test_getFamilyName\)/d }' \ + -i tests/testfont.c || die +} + +src_configure() { + econf \ + --disable-static \ + $(usex cairo "" "--with-pango") +} + +src_install() { + default + + dotnet_multilib_comply + local commondoc=( AUTHORS ChangeLog README TODO ) + for docfile in "${commondoc[@]}"; do + [[ -e "${docfile}" ]] && dodoc "${docfile}" + done + [[ "${DOCS[@]}" ]] && dodoc "${DOCS[@]}" + find "${ED}" -name '*.la' -delete || die +}
