summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Pukhlikov <cynede@gentoo.org>2017-02-08 15:39:16 +0400
committerMikhail Pukhlikov <cynede@gentoo.org>2017-02-08 15:39:44 +0400
commitd4fdaa64667125f85d800093456aad54a467cc2f (patch)
tree8252fa8d394fe0a23da0c9b5a865f8b7e763a660 /dev-dotnet
parentsci-biology/express: Remove 0.9.5 (r0) (diff)
downloadgentoo-d4fdaa64667125f85d800093456aad54a467cc2f.tar.gz
gentoo-d4fdaa64667125f85d800093456aad54a467cc2f.tar.bz2
gentoo-d4fdaa64667125f85d800093456aad54a467cc2f.zip
dev-dotnet/libgdiplus: fix circular deps, remove mono need
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-dotnet')
-rw-r--r--dev-dotnet/libgdiplus/libgdiplus-2.10.9-r3.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/dev-dotnet/libgdiplus/libgdiplus-2.10.9-r3.ebuild b/dev-dotnet/libgdiplus/libgdiplus-2.10.9-r3.ebuild
new file mode 100644
index 000000000000..e6319b808350
--- /dev/null
+++ b/dev-dotnet/libgdiplus/libgdiplus-2.10.9-r3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils dotnet flag-o-matic
+
+DESCRIPTION="Library for using System.Drawing with mono"
+HOMEPAGE="http://www.mono-project.com"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
+SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
+
+IUSE="cairo"
+
+RDEPEND=">=dev-libs/glib-2.16:2
+ >=media-libs/freetype-2.3.7
+ >=media-libs/fontconfig-2.6
+ >=media-libs/libpng-1.4:0
+ x11-libs/libXrender
+ x11-libs/libX11
+ x11-libs/libXt
+ >=x11-libs/cairo-1.8.4[X]
+ media-libs/libexif
+ >=media-libs/giflib-4.2.3
+ virtual/jpeg:0
+ media-libs/tiff:0
+ !cairo? ( >=x11-libs/pango-1.20 )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+PATCHES=("${FILESDIR}/${P}-gold.patch"
+ "${FILESDIR}/${PN}-2.10.1-libpng15.patch"
+ "${FILESDIR}/${PN}-2.10.9-giflib-quantizebuffer.patch")
+
+src_prepare() {
+ base_src_prepare
+ sed -i -e 's:ungif:gif:g' configure || die
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+ econf --disable-dependency-tracking \
+ --disable-static \
+ --with-cairo=system \
+ $(use !cairo && printf %s --with-pango)
+}
+
+src_compile() {
+ emake "$@"
+}
+
+src_install () {
+ emake -j1 DESTDIR="${D}" "$@" install #nowarn
+ dotnet_multilib_comply
+ local commondoc=( AUTHORS ChangeLog README TODO )
+ for docfile in "${commondoc[@]}"
+ do
+ [[ -e "${docfile}" ]] && dodoc "${docfile}"
+ done
+ if [[ "${DOCS[@]}" ]]
+ then
+ dodoc "${DOCS[@]}"
+ fi
+ prune_libtool_files
+}