]> Pileus Git - ~andy/sunrise/commitdiff
gnome-extra/gloobus-preview: Fix ignoring CXXFLAGS (partially fixes portage-multilib...
authorNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Wed, 16 Mar 2011 16:15:38 +0000 (16:15 +0000)
committerNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Wed, 16 Mar 2011 16:15:38 +0000 (16:15 +0000)
(Portage version: 2.2.0_alpha26-r1/svn/Linux x86_64)

svn path=/sunrise/; revision=11825

gnome-extra/gloobus-preview/ChangeLog
gnome-extra/gloobus-preview/files/gloobus-preview-0.4.1-cxxflags.patch [new file with mode: 0644]
gnome-extra/gloobus-preview/gloobus-preview-0.4.1.ebuild

index 23298a7e4627052e9e20129cad73b2e489a33e6f..c74defb51c6d7b249a98ab36b69a8adb778be527 100644 (file)
@@ -1,7 +1,13 @@
 # ChangeLog for gnome-extra/gloobus-preview
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  16 Mar 2011; Nathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
+  gloobus-preview-0.4.1.ebuild, +files/gloobus-preview-0.4.1-cxxflags.patch:
+  Fix ignoring CXXFLAGS (partially fixes portage-multilib support). Bump
+  ebuild to EAPI=4 to please reavertm. Fix ebuild to use autotools-utils
+  eclass properly.
+
   06 Dec 2010; Fabiano Francesconi (elbryan) <fabiano.francesconi@gmail.com>
   gloobus-preview-0.4.1.ebuild:
   Now using remove_libtool_files to remove libtool files, of course
diff --git a/gnome-extra/gloobus-preview/files/gloobus-preview-0.4.1-cxxflags.patch b/gnome-extra/gloobus-preview/files/gloobus-preview-0.4.1-cxxflags.patch
new file mode 100644 (file)
index 0000000..2dc56e2
--- /dev/null
@@ -0,0 +1,12 @@
+From: Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
+Subject: Don't ignore CXXFLAGS, fixes portage-multilib support.
+
+--- a/src/Makefile.am  2009-09-10 08:01:00.000000000 -0400
++++ b/src/Makefile.am  2011-03-16 09:45:30.000000000 -0400
+@@ -1,6 +1,5 @@
+ SUBDIRS = plugin-comic plugin-folder plugin-icns plugin-gstreamer-audio plugin-gstreamer-video plugin-openoffice plugin-pdf plugin-pixbuf plugin-text plugin-ttf .
+-CXXFLAGS = -Wall -g                           #If -O2  iDocument threads don't work
+ #AM_CXXFLAGS = -Wall
+ AM_LDFLAGS = -rdynamic 
+ AM_CPPFLAGS =$(CAIRO_CFLAGS) $(GTK_CFLAGS) $(LIBGNOMEUI_CFLAGS) $(PTHREAD_CFLAGS) $(GTKSOURCEVIEW_CFLAGS)
index 13d7054d1e54e9fb2ae62e4a360306a9fd45d296..3132ed9dfce36fddd22c25768e027646d91579bc 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI="2"
+EAPI=4
 
-inherit autotools-utils versionator
+inherit autotools autotools-utils eutils versionator
 
 MY_PV=$(get_version_component_range 1-2)
 
@@ -26,15 +26,16 @@ DEPEND="app-text/poppler
        x11-libs/gtksourceview:2.0"
 RDEPEND="${DEPEND}"
 
-src_configure() {
-       econf --disable-static
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-cxxflags.patch
+       eautomake
 }
 
-src_install() {
-       emake DESTDIR="${D}" install || die
-
-       # Remove useless .la files
-       remove_libtool_files 'all'
+src_configure() {
+       local myeconfargs=(
+               --disable-static
+       )
+       autotools-utils_src_configure
 }
 
 pkg_postinst() {