Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/texmacs/files/, app-office/texmacs/
Date: Sun, 31 Jul 2016 11:32:45
Message-Id: 1469964704.180d5057ebee300fce12244ba80815b6dd37759d.soap@gentoo
1 commit: 180d5057ebee300fce12244ba80815b6dd37759d
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 31 11:24:58 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 11:31:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=180d5057
7
8 app-office/texmacs: version bump
9
10 Gentoo-bug: 590002
11 * EAPI=6
12
13 Package-Manager: portage-2.3.0
14
15 app-office/texmacs/Manifest | 1 +
16 .../texmacs-1.99-remove-new-declaration.patch | 19 +++++
17 app-office/texmacs/texmacs-1.99.5.ebuild | 81 ++++++++++++++++++++++
18 3 files changed, 101 insertions(+)
19
20 diff --git a/app-office/texmacs/Manifest b/app-office/texmacs/Manifest
21 index bc94a62..172d8cd 100644
22 --- a/app-office/texmacs/Manifest
23 +++ b/app-office/texmacs/Manifest
24 @@ -1,3 +1,4 @@
25 DIST TeXmacs-1.0.7.21-src.tar.gz 18712991 SHA256 0c945611cd057c4af5f7c2232d19b8129caeef0289fa43a53bab1dabb2d603d2 SHA512 7a825297b84c34aa7b097026932a99bcaf7bdddeb44ad7d141cae1b03893e2472241f4cf73f3798dfebd9b226f94bc0ef665d5defb1b133d897e0ba3c8213fee WHIRLPOOL 8d12788ac4458e3b5085d1e11e3c5b1a92de1027fed3652bc232f395e2e77bddd141d4607690990c8a8ad29624f151557bcd9b20847b95d2c164e9772c103976
26 DIST TeXmacs-1.99.1-src.tar.gz 19048884 SHA256 7e8425d65b1a02f270eaa021389cb9c3f627c9064cc986bd1ec7f66e0681b2ac SHA512 4b599e020aafa5b0e832d5e4ca9d1fe2013f1880b32f4ddc63e42582ed553d1e6a8ac9a5b2189db040e7bbaef3faffae5c8f79da3657cb2356ba0700f85f7840 WHIRLPOOL 5457169699cbc4ccded02f0a3ee369910ade70f902f1a41d9c43349acb940022afdb08611681e0b20da66a09b507aaa648c147d4a57d9a7e8d12bb53795b7003
27 DIST TeXmacs-1.99.2-src.tar.gz 18957858 SHA256 da017f0d5c927adc33952a6efd773165f63e1eaa509f627857f145434e7a8850 SHA512 e9d2dd0aab2e66470c4ae860e13b6fad2cc07913f14f7bca042c703d4d8b4a62fafafa711b81a0d8f8c125a3641b8bb5f38cd3adac74ec18895671423aa60be9 WHIRLPOOL b0ace20c3df61461f5fcad172b9a3acc69c43800ee600718ba20866452a938f3a5f7d61d33bb4e9f4e67f0666486f6e71387c78fd49d2ff7fb703f4baaf6a326
28 +DIST TeXmacs-1.99.5-src.tar.gz 25014543 SHA256 f1929f35ee6e4301667433ed2f64de7660a08066e864fcb6fffbc031f667b3a6 SHA512 a7d846fd8823e486cf724bfcbe04ae877dd64995d6131af59b49427a1178e36b52b9fcd9109783b9ae1e39c988ae9ed497b1540dce29645ebf2c4301ca7357a8 WHIRLPOOL 13809c4cbfbcc7dbdb3c84917e00f407484095cbf16863fcc9d92fa0833c6dd5d2cafb25d1f2ac9bc1cc5131aea1f273be4b2a8ff47c33014e1b1d53c4f5ec5e
29
30 diff --git a/app-office/texmacs/files/texmacs-1.99-remove-new-declaration.patch b/app-office/texmacs/files/texmacs-1.99-remove-new-declaration.patch
31 new file mode 100644
32 index 0000000..45b0822
33 --- /dev/null
34 +++ b/app-office/texmacs/files/texmacs-1.99-remove-new-declaration.patch
35 @@ -0,0 +1,19 @@
36 +Remove new/delete declarations, which cause problems with recent GCC versions:
37 +* /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/new:135:41: error: declaration of ‘void operator delete [](void*) throw ()’ has a different exception specifier
38 +
39 +See also: https://bugs.gentoo.org/show_bug.cgi?id=590002
40 +
41 +--- TeXmacs-1.99.5-src/src/System/Misc/fast_alloc.hpp
42 ++++ TeXmacs-1.99.5-src/src/System/Misc/fast_alloc.hpp
43 +@@ -384,11 +384,6 @@
44 + void operator delete (register void* ptr) throw();
45 + void* operator new[] (register size_t s) throw(std::bad_alloc);
46 + void operator delete[] (register void* ptr) throw();
47 +-#else
48 +-void* operator new (register size_t s);
49 +-void operator delete (register void* ptr);
50 +-void* operator new[] (register size_t s);
51 +-void operator delete[] (register void* ptr);
52 + #endif
53 + #endif // not defined NO_FAST_ALLOC
54 +
55
56 diff --git a/app-office/texmacs/texmacs-1.99.5.ebuild b/app-office/texmacs/texmacs-1.99.5.ebuild
57 new file mode 100644
58 index 0000000..23bfeca
59 --- /dev/null
60 +++ b/app-office/texmacs/texmacs-1.99.5.ebuild
61 @@ -0,0 +1,81 @@
62 +# Copyright 1999-2016 Gentoo Foundation
63 +# Distributed under the terms of the GNU General Public License v2
64 +# $Id$
65 +
66 +EAPI=6
67 +
68 +inherit autotools fdo-mime gnome2-utils
69 +
70 +MY_P=${P/tex/TeX}-src
71 +
72 +DESCRIPTION="Wysiwyg text processor with high-quality maths"
73 +HOMEPAGE="http://www.texmacs.org/"
74 +SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/tmftp/source/${MY_P}.tar.gz"
75 +
76 +LICENSE="GPL-3"
77 +SLOT="0"
78 +IUSE="imlib jpeg netpbm pdf qt4 svg spell"
79 +KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux"
80 +
81 +RDEPEND="
82 + app-text/ghostscript-gpl
83 + dev-scheme/guile:12[deprecated]
84 + media-libs/freetype
85 + x11-apps/xmodmap
86 + x11-libs/libXext
87 + virtual/latex-base
88 + imlib? ( media-libs/imlib2 )
89 + jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) )
90 + netpbm? ( media-libs/netpbm )
91 + qt4? ( dev-qt/qtgui:4 )
92 + spell? ( app-text/aspell )
93 + svg? ( || ( media-gfx/inkscape gnome-base/librsvg:2 ) )
94 +"
95 +DEPEND="${RDEPEND}
96 + x11-proto/xproto"
97 +
98 +S="${WORKDIR}/${MY_P}"
99 +
100 +PATCHES=(
101 + # respect LDFLAGS, bug #338459
102 + "${FILESDIR}"/${PN}-plugins-1.patch
103 +
104 + # dont update mime and desktop databases and icon cache
105 + "${FILESDIR}"/${PN}-updates.patch
106 +
107 + "${FILESDIR}"/${PN}-1.99.2-desktop.patch
108 +
109 + # remove new/delete declarations, bug 590002
110 + "${FILESDIR}"/${PN}-1.99-remove-new-declaration.patch
111 +)
112 +
113 +src_prepare() {
114 + default
115 +
116 + mv configure.{in,ac} || die
117 +
118 + eautoreconf
119 +
120 + # delete files that contain binary
121 + # headers only used on OS X
122 + rm src/{Plugins/Ghostscript/._ghostscript.cpp,System/Misc/._sys_utils.cpp} || die
123 +}
124 +
125 +src_configure() {
126 + econf \
127 + --enable-optimize="${CXXFLAGS}" \
128 + $(use_with imlib imlib2) \
129 + $(use_enable pdf pdf-renderer)
130 +}
131 +
132 +pkg_postinst() {
133 + fdo-mime_desktop_database_update
134 + fdo-mime_mime_database_update
135 + gnome2_icon_cache_update
136 +}
137 +
138 +pkg_postrm() {
139 + fdo-mime_desktop_database_update
140 + fdo-mime_mime_database_update
141 + gnome2_icon_cache_update
142 +}