Gentoo Archives: gentoo-commits

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/texmaker/
Date: Sun, 04 Jun 2017 19:39:38
Message-Id: 1496605165.d8b906c9e05cdc16717cef42c2e05834f285892c.k_f@gentoo
1 commit: d8b906c9e05cdc16717cef42c2e05834f285892c
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 4 19:38:43 2017 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 4 19:39:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8b906c9
7
8 app-office/texmaker: Remove qt4 support
9
10 Dropping ppc keywords to satisfy dependencies
11
12 Gentoo-Bug: 620686
13
14 Package-Manager: Portage-2.3.5, Repoman-2.3.1
15
16 app-office/texmaker/texmaker-4.5-r2.ebuild | 84 ++++++++++++++++++++++++++++++
17 1 file changed, 84 insertions(+)
18
19 diff --git a/app-office/texmaker/texmaker-4.5-r2.ebuild b/app-office/texmaker/texmaker-4.5-r2.ebuild
20 new file mode 100644
21 index 00000000000..cc50ff4d0d2
22 --- /dev/null
23 +++ b/app-office/texmaker/texmaker-4.5-r2.ebuild
24 @@ -0,0 +1,84 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=5
29 +
30 +inherit eutils qmake-utils readme.gentoo
31 +
32 +DESCRIPTION="A nice LaTeX-IDE"
33 +HOMEPAGE="http://www.xm1math.net/texmaker/"
34 +SRC_URI="http://www.xm1math.net/texmaker/${P}.tar.bz2"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
39 +IUSE=""
40 +
41 +COMMON_DEPEND="
42 + app-text/hunspell
43 + sys-libs/zlib
44 + x11-libs/libX11
45 + x11-libs/libXext
46 + app-text/poppler:=[qt5]
47 + dev-qt/qtconcurrent:5
48 + dev-qt/qtcore:5
49 + dev-qt/qtgui:5
50 + dev-qt/qtnetwork:5
51 + dev-qt/qtscript:5
52 + dev-qt/qtsingleapplication[X,qt5]
53 + dev-qt/qtwebkit:5[printsupport]
54 + dev-qt/qtwidgets:5
55 + dev-qt/qtxml:5
56 +"
57 +RDEPEND="${COMMON_DEPEND}
58 + app-text/ghostscript-gpl
59 + app-text/psutils
60 + media-libs/netpbm
61 + virtual/latex-base"
62 +
63 +DEPEND="${COMMON_DEPEND}
64 + virtual/pkgconfig"
65 +
66 +PATCHES=(
67 + "${FILESDIR}"/${P}-unbundle.patch
68 + "${FILESDIR}"/${P}-modern-styles.patch
69 + )
70 +
71 +DOCS=( utilities/AUTHORS utilities/CHANGELOG.txt )
72 +HTML_DOCS=( doc/. )
73 +
74 +src_prepare() {
75 + find singleapp hunspell -delete || die
76 +
77 + epatch "${PATCHES[@]}"
78 +
79 + cat >> ${PN}.pro <<- EOF
80 + exists(texmakerx_my.pri):include(texmakerx_my.pri)
81 + EOF
82 +
83 + cp "${FILESDIR}"/texmakerx_my.pri . || die
84 +
85 + sed \
86 + -e '/^#include/s:hunspell/::g' \
87 + -e '/^#include/s:singleapp/::g' \
88 + -i *.cpp *.h || die
89 +
90 + DOC_CONTENTS="A user manual with many screenshots is available at:
91 + ${EPREFIX}/usr/share/${PN}/usermanual_en.html"
92 +}
93 +
94 +src_configure() {
95 + local myeqmakeargs=(
96 + ${PN}.pro
97 + PREFIX="${EPREFIX}/usr"
98 + DESKTOPDIR="${EPREFIX}/usr/share/applications"
99 + ICONDIR="${EPREFIX}/usr/share/pixmaps"
100 + )
101 + eqmake5 ${myeqmakeargs[@]}
102 +}
103 +
104 +src_install() {
105 + emake INSTALL_ROOT="${D}" install
106 + einstalldocs
107 + readme.gentoo_create_doc
108 +}