summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-05-13 15:42:36 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-05-13 15:42:36 +0000
commite5c4e62139d0e8695d77ccc8005c957378f024c1 (patch)
treef073019cdff6d3f74eaab4fe06b712152183cbef /sci-calculators/galculator
parentVersion bump (ghc-7.4 support, bug #413229 by Alex) (diff)
downloadgentoo-2-e5c4e62139d0e8695d77ccc8005c957378f024c1.tar.gz
gentoo-2-e5c4e62139d0e8695d77ccc8005c957378f024c1.tar.bz2
gentoo-2-e5c4e62139d0e8695d77ccc8005c957378f024c1.zip
Add patch to explicitly link with -lm (bug #415717, thanks to ncahill_alt). Add missing dependencies. Update to EAPI4.
(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)
Diffstat (limited to 'sci-calculators/galculator')
-rw-r--r--sci-calculators/galculator/ChangeLog7
-rw-r--r--sci-calculators/galculator/files/galculator-1.3.4-libm.patch43
-rw-r--r--sci-calculators/galculator/galculator-1.3.4.ebuild22
3 files changed, 64 insertions, 8 deletions
diff --git a/sci-calculators/galculator/ChangeLog b/sci-calculators/galculator/ChangeLog
index ad3301f08b33..80da64172118 100644
--- a/sci-calculators/galculator/ChangeLog
+++ b/sci-calculators/galculator/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-calculators/galculator
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-calculators/galculator/ChangeLog,v 1.31 2012/05/04 06:52:08 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-calculators/galculator/ChangeLog,v 1.32 2012/05/13 15:42:36 tetromino Exp $
+
+ 13 May 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
+ galculator-1.3.4.ebuild, +files/galculator-1.3.4-libm.patch:
+ Add patch to explicitly link with -lm (bug #415717, thanks to ncahill_alt).
+ Add missing dependencies. Update to EAPI4.
04 May 2012; Jeff Horelick <jdhore@gentoo.org> galculator-1.3.4.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
diff --git a/sci-calculators/galculator/files/galculator-1.3.4-libm.patch b/sci-calculators/galculator/files/galculator-1.3.4-libm.patch
new file mode 100644
index 000000000000..161a08089b23
--- /dev/null
+++ b/sci-calculators/galculator/files/galculator-1.3.4-libm.patch
@@ -0,0 +1,43 @@
+From fa663985f73197570af03ab28ac2cbfe703fbaee Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Sun, 13 May 2012 11:06:30 -0400
+Subject: [PATCH] Use AC_CHECK_LIBM to add -lm to LDADD if needed
+
+Otherwise, galculator fails to link to libm when GNU gold is used as the linker.
+
+https://sourceforge.net/tracker/?func=detail&aid=3526340&group_id=80471&atid=559874
+---
+ configure.in | 3 +++
+ src/Makefile.am | 2 +-
+ 2 files changed, 4 insertions(+), 1 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index 19fddad..bf1c2c0 100644
+--- a/configure.in
++++ b/configure.in
+@@ -17,6 +17,9 @@ PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
+ AC_SUBST(PACKAGE_CFLAGS)
+ AC_SUBST(PACKAGE_LIBS)
+
++AC_CHECK_LIBM
++AC_SUBST(LIBM)
++
+ GETTEXT_PACKAGE=galculator
+ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of gettext package])
+ AC_SUBST(GETTEXT_PACKAGE)
+diff --git a/src/Makefile.am b/src/Makefile.am
+index bb35226..c24e135 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -19,7 +19,7 @@ galculator_SOURCES = \
+ ui.c ui.h \
+ flex_parser.l flex_parser.h
+
+-galculator_LDADD = @PACKAGE_LIBS@
++galculator_LDADD = @PACKAGE_LIBS@ $(LIBM)
+
+ galculator_LDFLAGS = -export-dynamic
+
+--
+1.7.8.6
+
diff --git a/sci-calculators/galculator/galculator-1.3.4.ebuild b/sci-calculators/galculator/galculator-1.3.4.ebuild
index fbf71b93de4b..b44179391461 100644
--- a/sci-calculators/galculator/galculator-1.3.4.ebuild
+++ b/sci-calculators/galculator/galculator-1.3.4.ebuild
@@ -1,8 +1,10 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-calculators/galculator/galculator-1.3.4.ebuild,v 1.9 2012/05/04 06:52:08 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-calculators/galculator/galculator-1.3.4.ebuild,v 1.10 2012/05/13 15:42:36 tetromino Exp $
-EAPI=2
+EAPI=4
+
+inherit autotools eutils
DESCRIPTION="GTK+ based algebraic and RPN calculator."
HOMEPAGE="http://galculator.sourceforge.net/"
@@ -13,17 +15,23 @@ SLOT="0"
KEYWORDS="alpha amd64 ppc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
-RDEPEND="x11-libs/gtk+:2
+RDEPEND="dev-libs/glib:2
+ gnome-base/libglade:2.0
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ x11-libs/pango
gnome-base/libglade:2.0"
DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/flex
+ sys-devel/gettext
virtual/pkgconfig"
src_prepare() {
# Fix tests
echo ui/*.glade | tr -t ' ' '\n' >> po/POTFILES.in
-}
-src_install() {
- emake DESTDIR="${D}" install || die
- dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
+ # bug #415717, https://sourceforge.net/tracker/?func=detail&aid=3526340&group_id=80471&atid=559874
+ epatch "${FILESDIR}/${P}-libm.patch"
+ eautoreconf
}