BUG #508566: dia-0.97.3_pre20140417-r1 added.
This commit is contained in:
parent
f0a05f8aa3
commit
5b87ff29f0
|
@ -0,0 +1 @@
|
|||
DIST dia-0.97.3_pre20140417.tar.xz 5393236 SHA256 d9afac3b2f7bb5fa35733e24f35afd69c7b3cd04af5f6b0a806400a35b5b43db SHA512 1dbd189ca3499a5adb3c6537ffdcfc776b56fb927a3daeb266685dd4a359aa18ea9b472d12865813e823c71652f49e5739ac9d98789629a39e0cd891fe2265a6 WHIRLPOOL 28d4fcd98f853ad0dec48296a0ada9d842eb32a7953a1e11fe59fe21170be4d14e693a53e0d85c392e1b7cf4f117a3206894e3326436c5e53d115c8efb06a842
|
|
@ -0,0 +1,107 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/dia/dia-0.97.3_pre20140417.ebuild,v 1.6 2014/06/12 18:00:38 pacho Exp $
|
||||
|
||||
EAPI=5
|
||||
GCONF_DEBUG=yes
|
||||
GNOME2_LA_PUNT=yes
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit autotools eutils gnome2 python-single-r1 multilib
|
||||
|
||||
DESCRIPTION="Diagram/flowchart creation program"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Dia"
|
||||
|
||||
SRC_URI="http://dev.gentoo.org/~pacho/gnome/${PN}-0.97.3_pre20140417.tar.xz"
|
||||
S="${WORKDIR}/${PN}-0.97.2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
# the doc USE flag doesn't seem to do anything without docbook2html
|
||||
# cairo support is preferred as explained by upstream at:
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=729668#c6
|
||||
IUSE="+cairo doc python"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2:2
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/popt
|
||||
>=media-libs/freetype-2
|
||||
>=media-libs/libart_lgpl-2
|
||||
media-libs/libpng:0
|
||||
sys-libs/zlib
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/pango
|
||||
cairo? ( x11-libs/cairo )
|
||||
doc? (
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/docbook-xsl-stylesheets )
|
||||
python? (
|
||||
>=dev-python/pygtk-2
|
||||
${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/intltool
|
||||
sys-apps/sed
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-libs/libxslt )"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
DOCS="AUTHORS ChangeLog KNOWN_BUGS MAINTAINERS NEWS README RELEASE-PROCESS THANKS TODO"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-0.97.0-gnome-doc.patch #159381 , upstream #470812 #558690
|
||||
epatch "${FILESDIR}"/${PN}-0.97.2-underlinking.patch #420685
|
||||
epatch "${FILESDIR}"/${PN}-0.97.2-disable-cairo.patch #509636
|
||||
epatch "${FILESDIR}"/${PN}-0.97.2-boundingbox-calc.patch #508566 , upstream #728921 #728405
|
||||
|
||||
if use python; then
|
||||
python_fix_shebang .
|
||||
sed -i -e "s/\.so/$(get_libname)/" acinclude.m4 || die #298232
|
||||
fi
|
||||
|
||||
if ! use doc; then
|
||||
# Skip man generation
|
||||
sed -i -e '/if HAVE_DB2MAN/,/endif/d' doc/*/Makefile.am || die
|
||||
fi
|
||||
|
||||
# Fix naming conflict on Darwin/OSX, upstream bug #????
|
||||
sed -i -e 's/isspecial/char_isspecial/' objects/GRAFCET/boolequation.c || die
|
||||
|
||||
sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
|
||||
|
||||
sed -i -e "/localedir/d" configure.in || die
|
||||
|
||||
eautoreconf
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# --exec-prefix makes Python look for modules in the Prefix
|
||||
# --enable-gnome only adds support for deprecated stuff, bug #442294
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=996759
|
||||
gnome2_src_configure \
|
||||
--exec-prefix="${EPREFIX}/usr" \
|
||||
--disable-gnome \
|
||||
--disable-libemf \
|
||||
$(use_enable doc db2html) \
|
||||
$(use_with cairo) \
|
||||
$(use_with python) \
|
||||
--without-swig \
|
||||
--without-hardbooks
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
# Install second desktop file for integrated mode (bug #415495)
|
||||
sed -e 's|^Exec=dia|Exec=dia --integrated|' \
|
||||
-e '/^Name/ s|$| (integrated mode)|' \
|
||||
"${ED}"/usr/share/applications/dia.desktop \
|
||||
> "${ED}"/usr/share/applications/dia-integrated.desktop || die
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
From 9d40692b695b30f80b263814bdd351c0dbe67733 Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Dartiguelongue <eva@gentoo.org>
|
||||
Date: Mon, 18 May 2009 22:19:35 +0200
|
||||
Subject: [PATCH] Fix compilation in a gnome environment, gentoo bug #159831
|
||||
|
||||
---
|
||||
configure.in | 19 +++++++++++--------
|
||||
1 files changed, 11 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index d27ee6e..d9c0bf4 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -110,17 +110,19 @@ if test "$have_libart" = "yes" ; then
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([whether GNOME specific code should be used])
|
||||
-AC_ARG_ENABLE(gnome,[ --enable-gnome enable gnome code],
|
||||
- GNOME=$enableval, GNOME=no)
|
||||
-if test "$GNOME" = "yes" ; then
|
||||
+AC_ARG_ENABLE(gnome,
|
||||
+ AC_HELP_STRING([--enable-gnome],[enable gnome code]),,
|
||||
+ enable_gnome=no)
|
||||
+if test "x$enable_gnome" = "xyes" ; then
|
||||
GTK_MODULES="$GTK_MODULES libgnome-2.0 libgnomeui-2.0"
|
||||
AC_DEFINE(GNOME,1,[Define if building with GNOME support])
|
||||
+ AC_DEFINE(HAVE_GNOME,1,[Define if building with GNOME support])
|
||||
AC_DEFINE_UNQUOTED(GNOME_ICONDIR, "${prefix}/share/pixmaps", [GNOME icon directory])
|
||||
- have_gnome=true
|
||||
+ have_gnome=yes
|
||||
else
|
||||
- have_gnome=false
|
||||
+ have_gnome=no
|
||||
fi
|
||||
-AM_CONDITIONAL(HAVE_GNOME, $have_gnome)
|
||||
+AM_CONDITIONAL(HAVE_GNOME, [test "x$have_gnome" != "xno"])
|
||||
AC_MSG_RESULT($GNOME)
|
||||
|
||||
dnl GTK2: libgnomecanvas-2.0 ?
|
||||
@@ -129,7 +131,8 @@ PKG_CHECK_MODULES(GTK,$GTK_MODULES)
|
||||
AC_SUBST(GTK_CFLAGS)
|
||||
AC_SUBST(GTK_LIBS)
|
||||
|
||||
-AM_CONDITIONAL(HAVE_BONOBO,false)
|
||||
+#AM_CONDITIONAL(HAVE_BONOBO,false)
|
||||
+AM_CONDITIONAL(HAVE_BONOBO,[test "true" = "false"])
|
||||
|
||||
dnl Look for Cairo
|
||||
AC_ARG_WITH(cairo,
|
||||
@@ -627,7 +630,7 @@ Configuration:
|
||||
Source code location: ${srcdir}
|
||||
Compiler: ${CC}
|
||||
|
||||
- Gnome support: ${GNOME}
|
||||
+ Gnome support: ${have_gnome}
|
||||
Python support: ${with_python}
|
||||
Libart support (PNG export): ${have_libart}
|
||||
Cairo support (PNG, PDF, print): ${with_cairo}
|
||||
--
|
||||
1.6.3
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
From 8b8ae09fcc16cc0522679099728f779e291d959c Mon Sep 17 00:00:00 2001
|
||||
From: Hans Breuer <hans@breuer.org>
|
||||
Date: Fri, 18 Apr 2014 13:28:45 +0200
|
||||
Subject: [PATCH 1/3] Bug 728405 - back-port some bounding box calculation
|
||||
fixes from master
|
||||
|
||||
... so that the unit test works without complaints.
|
||||
---
|
||||
lib/boundingbox.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/boundingbox.c b/lib/boundingbox.c
|
||||
index fd50da7..46adbfa 100644
|
||||
--- a/lib/boundingbox.c
|
||||
+++ b/lib/boundingbox.c
|
||||
@@ -494,7 +494,7 @@ polybezier_bbox(const BezPoint *pts, int numpoints,
|
||||
account with the "pointy corners" X (and PS) add when LINEJOIN_MITER mode is
|
||||
in force. */
|
||||
|
||||
- if ((!start) && (!end)) { /* We have a non-extremity vertex. */
|
||||
+ if (!end) { /* only the last segment might not produce overshoot. */
|
||||
Point vpx,vxn;
|
||||
real co,alpha;
|
||||
|
||||
@@ -515,7 +515,7 @@ polybezier_bbox(const BezPoint *pts, int numpoints,
|
||||
real overshoot;
|
||||
Point vovs,pto;
|
||||
|
||||
- if (finite(alpha))
|
||||
+ if (alpha > 0.0 && alpha < M_PI)
|
||||
overshoot = extra->middle_trans / sin(alpha/2.0);
|
||||
else /* prependicular? */
|
||||
overshoot = extra->middle_trans;
|
||||
--
|
||||
1.9.3
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
--- plug-ins/cairo/Makefile.am.orig 2014-05-06 14:09:36.080876942 -0400
|
||||
+++ plug-ins/cairo/Makefile.am 2014-05-06 14:11:21.043041750 -0400
|
||||
@@ -1,11 +1,14 @@
|
||||
-
|
||||
+if WITH_CAIRO
|
||||
plugin_sources = \
|
||||
diacairo.c \
|
||||
diacairo.h \
|
||||
diacairo-interactive.c \
|
||||
diacairo-renderer.c \
|
||||
diacairo-print.c \
|
||||
- diacairo-print.h
|
||||
+ diacairo-print.h
|
||||
+else
|
||||
+plugin_sources =
|
||||
+endif
|
||||
|
||||
pkglib_LTLIBRARIES = libcairo_filter.la
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
From 2f853bab67b087605a10f544a7df780ac98b8583 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <gentoo@mgorny.alt.pl>
|
||||
Date: Sat, 7 Jul 2012 17:28:59 +0200
|
||||
Subject: [PATCH] Fix missing linkage with gmodule-2.0.
|
||||
|
||||
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=678761
|
||||
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=420685
|
||||
---
|
||||
dia-0.97.2/configure.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dia-0.97.2/configure.in b/dia-0.97.2/configure.in
|
||||
index 72830de..6b7394a 100644
|
||||
--- a/dia-0.97.2/configure.in
|
||||
+++ b/dia-0.97.2/configure.in
|
||||
@@ -55,7 +55,7 @@ AC_SUBST(GMODULE_CFLAGS)
|
||||
AC_SUBST(GMODULE_LIBS)
|
||||
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
|
||||
|
||||
-GTK_MODULES="gtk+-2.0 >= 2.6.0 glib-2.0 >= 2.6.0 libxml-2.0 gdk-pixbuf-2.0 gthread-2.0"
|
||||
+GTK_MODULES="gtk+-2.0 >= 2.6.0 glib-2.0 >= 2.6.0 libxml-2.0 gdk-pixbuf-2.0 gthread-2.0 gmodule-2.0"
|
||||
PKG_CHECK_MODULES(PANGOVERSION, pango >= 1.8.0, ,
|
||||
AC_MSG_ERROR([Need Pango version 1.8.0 or higher]))
|
||||
|
||||
--
|
||||
1.7.11.1
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>gnome-office</herd>
|
||||
<longdescription>
|
||||
Dia is a gtk+ based diagram creation program. It can be used to
|
||||
draw many different kinds of diagrams. It currently has special
|
||||
objects to help draw entity relationship diagrams, UML diagrams,
|
||||
flowcharts, network diagrams, and simple circuits. It is also
|
||||
possible to add support for new shapes by writing simple XML
|
||||
files, using a subset of SVG to draw the shape.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue