Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/texmacs/
Date: Thu, 28 Dec 2017 16:09:10
Message-Id: 1514477303.e5ce72a8bf9063e89284b56c037c0f95927a8be2.grozin@gentoo
1 commit: e5ce72a8bf9063e89284b56c037c0f95927a8be2
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 28 16:04:57 2017 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 28 16:08:23 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5ce72a8
7
8 app-office/texmacs: use Qt5 instead of Qt4; switch to cmake
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 app-office/texmacs/texmacs-1.99.6-r1.ebuild | 71 +++++++++++++++++++++++++++++
13 1 file changed, 71 insertions(+)
14
15 diff --git a/app-office/texmacs/texmacs-1.99.6-r1.ebuild b/app-office/texmacs/texmacs-1.99.6-r1.ebuild
16 new file mode 100644
17 index 00000000000..f30d4670bf1
18 --- /dev/null
19 +++ b/app-office/texmacs/texmacs-1.99.6-r1.ebuild
20 @@ -0,0 +1,71 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit cmake-utils xdg-utils gnome2-utils qmake-utils
27 +
28 +MY_P=${P/tex/TeX}-src
29 +
30 +DESCRIPTION="Wysiwyg text processor with high-quality maths"
31 +HOMEPAGE="http://www.texmacs.org/"
32 +SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/tmftp/source/${MY_P}.tar.gz"
33 +
34 +LICENSE="GPL-3"
35 +SLOT="0"
36 +IUSE="jpeg netpbm sqlite svg spell"
37 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
38 +
39 +RDEPEND="
40 + app-text/ghostscript-gpl
41 + <dev-scheme/guile-1.9[deprecated]
42 + media-libs/freetype
43 + x11-apps/xmodmap
44 + x11-libs/libXext
45 + virtual/latex-base
46 + dev-qt/qtwidgets:5
47 + dev-qt/qtprintsupport:5
48 + sqlite? ( dev-db/sqlite )
49 + jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) )
50 + netpbm? ( media-libs/netpbm )
51 + spell? ( app-text/aspell )
52 + svg? ( || ( media-gfx/inkscape gnome-base/librsvg:2 ) )
53 +"
54 +DEPEND="${RDEPEND}
55 + x11-proto/xproto"
56 +
57 +S="${WORKDIR}/${MY_P}"
58 +
59 +PATCHES=(
60 + # respect LDFLAGS, bug #338459
61 + "${FILESDIR}"/${PN}-plugins-1.patch
62 +
63 + # dont update mime and desktop databases and icon cache
64 + "${FILESDIR}"/${PN}-updates.patch
65 +
66 + "${FILESDIR}"/${PN}-1.99.2-desktop.patch
67 +
68 + # remove new/delete declarations, bug 590002
69 + "${FILESDIR}"/${PN}-1.99-remove-new-declaration.patch
70 +
71 + "${FILESDIR}"/${PN}-1.99.6-math_util.patch
72 +)
73 +
74 +src_configure() {
75 + local mycmakeargs=(
76 + -DUSE_SQLITE=$(usex sqlite sqlite3)
77 + )
78 + cmake-utils_src_configure
79 +}
80 +
81 +pkg_postinst() {
82 + xdg_desktop_database_update
83 + xdg_mimeinfo_database_update
84 + gnome2_icon_cache_update
85 +}
86 +
87 +pkg_postrm() {
88 + xdg_desktop_database_update
89 + xdg_mimeinfo_database_update
90 + gnome2_icon_cache_update
91 +}