public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-mathematics/wxmaxima: metadata.xml ChangeLog wxmaxima-12.09.0.ebuild
@ 2013-04-09  6:40 Justin Lecher (jlec)
  0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2013-04-09  6:40 UTC (permalink / raw
  To: gentoo-commits

jlec        13/04/09 06:40:06

  Modified:             metadata.xml ChangeLog wxmaxima-12.09.0.ebuild
  Log:
  sci-mathematics/wxmaxima: Add LINGUAS support and various other fixes, thanks Julian Ospald (hasufell) for the patch, #463624
  
  (Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)

Revision  Changes    Path
1.3                  sci-mathematics/wxmaxima/metadata.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/wxmaxima/metadata.xml?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/wxmaxima/metadata.xml?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/wxmaxima/metadata.xml?r1=1.2&r2=1.3

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/metadata.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- metadata.xml	23 Feb 2007 12:16:46 -0000	1.2
+++ metadata.xml	9 Apr 2013 06:40:05 -0000	1.3
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<herd>sci-mathematics</herd>
-<longdescription lang="en">
+  <herd>sci-mathematics</herd>
+  <longdescription lang="en">
 wxMaxima is a wxWidgets GUI for the computer algebra system maxima.
 Most of maxima functions are accessible through menus, some have
 dialogs. The input line has command history (up-key, down-key) and



1.41                 sci-mathematics/wxmaxima/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/wxmaxima/ChangeLog?rev=1.41&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/wxmaxima/ChangeLog?rev=1.41&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/wxmaxima/ChangeLog?r1=1.40&r2=1.41

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/ChangeLog,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- ChangeLog	16 Sep 2012 15:57:30 -0000	1.40
+++ ChangeLog	9 Apr 2013 06:40:05 -0000	1.41
@@ -1,6 +1,11 @@
 # ChangeLog for sci-mathematics/wxmaxima
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/ChangeLog,v 1.40 2012/09/16 15:57:30 grozin Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/ChangeLog,v 1.41 2013/04/09 06:40:05 jlec Exp $
+
+  09 Apr 2013; Justin Lecher <jlec@gentoo.org> wxmaxima-12.09.0.ebuild,
+  metadata.xml:
+  Add LINGUAS support and various other fixes, thanks Julian Ospald (hasufell)
+  for the patch, #463624
 
 *wxmaxima-12.09.0 (16 Sep 2012)
 



1.2                  sci-mathematics/wxmaxima/wxmaxima-12.09.0.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-12.09.0.ebuild?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-12.09.0.ebuild?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-12.09.0.ebuild?r1=1.1&r2=1.2

Index: wxmaxima-12.09.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-12.09.0.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wxmaxima-12.09.0.ebuild	16 Sep 2012 15:57:30 -0000	1.1
+++ wxmaxima-12.09.0.ebuild	9 Apr 2013 06:40:05 -0000	1.2
@@ -1,10 +1,12 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-12.09.0.ebuild,v 1.1 2012/09/16 15:57:30 grozin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-12.09.0.ebuild,v 1.2 2013/04/09 06:40:05 jlec Exp $
+
+EAPI=5
 
-EAPI=4
 WX_GTK_VER="2.8"
-inherit eutils wxwidgets fdo-mime
+
+inherit eutils gnome2-utils wxwidgets fdo-mime
 
 MYP=wxMaxima-${PV}
 
@@ -15,10 +17,10 @@
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="unicode"
 
-DEPEND="dev-libs/libxml2:2
-	x11-libs/wxGTK:2.8"
+DEPEND="
+	dev-libs/libxml2:2
+	x11-libs/wxGTK:${WX_GTK_VER}"
 RDEPEND="${DEPEND}
 	media-fonts/jsmath
 	sci-visualization/gnuplot[wxwidgets]
@@ -27,6 +29,8 @@
 S="${WORKDIR}/${MYP}"
 
 src_prepare() {
+	local i
+
 	# consistent package names
 	sed -e "s:\${datadir}/wxMaxima:\${datadir}/${PN}:g" \
 		-i Makefile.in data/Makefile.in || die "sed failed"
@@ -34,28 +38,43 @@
 	sed -e 's:share/wxMaxima:share/wxmaxima:g' \
 		-i src/wxMaxima.cpp src/wxMaximaFrame.cpp src/Config.cpp \
 		|| die "sed failed"
+
+	# correct gettext behavior
+	if [[ -n "${LINGUAS+x}" ]] ; then
+		for i in $(cd "${S}"/locales ; echo *.mo) ; do
+			if ! has ${i%.mo} ${LINGUAS} ; then
+				sed -i \
+					-e "/^WXMAXIMA_LINGUAS/s# ${i%.mo}##" \
+					-e "/^WXWIN_LINGUAS/s# ${i%.mo}##" \
+					locales/Makefile.in || die
+			fi
+		done
+	fi
 }
 
 src_configure() {
 	econf \
-		--enable-dnd \
 		--enable-printing \
-		--with-wx-config=${WX_CONFIG} \
-		$(use_enable unicode unicode-glyphs)
+		--with-wx-config=${WX_CONFIG}
 }
 
 src_install () {
 	default
-	doicon data/wxmaxima.png
+	doicon -s 128 data/wxmaxima.png
 	make_desktop_entry wxmaxima wxMaxima wxmaxima
-	dodir /usr/share/doc/${PF}
 	dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
 }
 
+pkg_preinst() {
+	gnome2_icon_savelist
+}
+
 pkg_postinst() {
+	gnome2_icon_cache_update
 	fdo-mime_desktop_database_update
 }
 
 pkg_postrm() {
+	gnome2_icon_cache_update
 	fdo-mime_desktop_database_update
 }





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-09  6:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09  6:40 [gentoo-commits] gentoo-x86 commit in sci-mathematics/wxmaxima: metadata.xml ChangeLog wxmaxima-12.09.0.ebuild Justin Lecher (jlec)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox