summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Anderson <telans@posteo.de>2021-01-18 14:56:41 +1300
committerJoonas Niilola <juippis@gentoo.org>2021-04-28 10:31:33 +0300
commit86bd90724e3a4e13b1b4ef7b97e08b611d5d6da9 (patch)
tree6330e1944b2be571323012b5dc17cc1e38224fe0 /dev-dotnet/libgdiplus
parentmedia-libs/opencolorio: drop -Werror (diff)
downloadgentoo-86bd90724e3a4e13b1b4ef7b97e08b611d5d6da9.tar.gz
gentoo-86bd90724e3a4e13b1b4ef7b97e08b611d5d6da9.tar.bz2
gentoo-86bd90724e3a4e13b1b4ef7b97e08b611d5d6da9.zip
dev-dotnet/libgdiplus: fix --with-pango configure, fix pango linking
Closes: https://bugs.gentoo.org/700280 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Theo Anderson <telans@posteo.de> Closes: https://github.com/gentoo/gentoo/pull/19096 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-dotnet/libgdiplus')
-rw-r--r--dev-dotnet/libgdiplus/libgdiplus-6.0.2-r1.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-dotnet/libgdiplus/libgdiplus-6.0.2-r1.ebuild b/dev-dotnet/libgdiplus/libgdiplus-6.0.2-r1.ebuild
new file mode 100644
index 000000000000..6de35495da5d
--- /dev/null
+++ b/dev-dotnet/libgdiplus/libgdiplus-6.0.2-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils dotnet
+
+DESCRIPTION="Library for using System.Drawing with Mono"
+HOMEPAGE="https://www.mono-project.com"
+SRC_URI="https://download.mono-project.com/sources/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE="cairo"
+#skip tests due https://bugs.gentoo.org/687784
+RESTRICT="test"
+
+RDEPEND="dev-libs/glib
+ media-libs/freetype
+ media-libs/fontconfig
+ >=media-libs/giflib-5.1.2
+ media-libs/libexif
+ media-libs/libpng:0=
+ media-libs/tiff
+ x11-libs/cairo[X]
+ x11-libs/libX11
+ x11-libs/libXrender
+ x11-libs/libXt
+ virtual/jpeg:0
+ !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
+}
+
+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
+}