Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/texstudio/
Date: Sat, 29 Oct 2016 10:59:55
Message-Id: 1477738776.615dca623599f5c7cf0f811183fca0f58a1aae84.kensington@gentoo
1 commit: 615dca623599f5c7cf0f811183fca0f58a1aae84
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 29 10:59:20 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 29 10:59:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=615dca62
7
8 app-office/texstudio: revision bump with various fixes
9
10 * Port to EAPI 6 and remove deprecated Qt 4 support (by Andreas Sturmlechner)
11 * Fix build with quazip-0.7.2
12 * Add missing sys-libs/zlib dependency
13 * Sort dependencies
14 * Update GTK icon cache
15 * Add subslot operator for app-text/hunspell and remove from app-text/poppler
16 (since the stable qt5 interface is used)
17
18 Gentoo-bug: 597876
19 Gentoo-bug: 597930
20
21 Package-Manager: portage-2.3.2
22
23 app-office/texstudio/texstudio-2.11.2-r1.ebuild | 97 +++++++++++++++++++++++++
24 1 file changed, 97 insertions(+)
25
26 diff --git a/app-office/texstudio/texstudio-2.11.2-r1.ebuild b/app-office/texstudio/texstudio-2.11.2-r1.ebuild
27 new file mode 100644
28 index 00000000..2003689
29 --- /dev/null
30 +++ b/app-office/texstudio/texstudio-2.11.2-r1.ebuild
31 @@ -0,0 +1,97 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +inherit fdo-mime gnome2-utils prefix qmake-utils
39 +
40 +DESCRIPTION="Free cross-platform LaTeX editor (fork from texmakerX)"
41 +HOMEPAGE="http://texstudio.sourceforge.net/"
42 +SRC_URI="mirror://sourceforge/${PN}/${PN}/TeXstudio%20${PV}/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
47 +IUSE="video"
48 +
49 +COMMON_DEPEND="
50 + app-text/hunspell:=
51 + app-text/poppler[qt5]
52 + >=dev-libs/quazip-0.7.2[qt5]
53 + dev-qt/designer:5
54 + dev-qt/qtcore:5
55 + dev-qt/qtconcurrent:5
56 + dev-qt/qtgui:5
57 + dev-qt/qtnetwork:5
58 + dev-qt/qtprintsupport:5
59 + dev-qt/qtscript:5
60 + dev-qt/qtsingleapplication[qt5,X]
61 + dev-qt/qtsvg:5
62 + dev-qt/qttest:5
63 + dev-qt/qtwidgets:5
64 + dev-qt/qtxml:5
65 + sys-libs/zlib
66 + x11-libs/libX11
67 + x11-libs/libXext
68 + video? ( media-libs/phonon[qt5] )"
69 +RDEPEND="${COMMON_DEPEND}
70 + app-text/ghostscript-gpl
71 + app-text/psutils
72 + media-libs/netpbm
73 + virtual/latex-base"
74 +DEPEND="${COMMON_DEPEND}
75 + virtual/pkgconfig"
76 +
77 +S=${WORKDIR}
78 +
79 +src_prepare() {
80 + default
81 + find hunspell quazip utilities/poppler-data qtsingleapplication -delete || die
82 +
83 + if use video; then
84 + sed "/^PHONON/s:$:true:g" -i ${PN}.pro || die
85 + fi
86 +
87 + sed \
88 + -e '/qtsingleapplication.pri/d' \
89 + -i ${PN}.pro || die
90 +
91 +# cat >> ${PN}.pro <<- EOF
92 +# exists(texmakerx_my.pri):include(texmakerx_my.pri)
93 +# EOF
94 +
95 + cp "${FILESDIR}"/texmakerx_my.pri ${PN}.pri || die
96 + eprefixify ${PN}.pri
97 +
98 + # fix build with quazip-0.7.2 - bug 597930
99 + sed -i ${PN}.pro -e "s|include/quazip|&5|" || die
100 + sed -i ${PN}.pri -i ${PN}.pro -e "s/-lquazip/&5/" || die
101 +}
102 +
103 +src_configure() {
104 + eqmake5 USE_SYSTEM_HUNSPELL=1 USE_SYSTEM_QUAZIP=1
105 +}
106 +
107 +src_install() {
108 + local i
109 + for i in 16x16 22x22 32x32 48x48 64x64 128x128; do
110 + insinto /usr/share/icons/hicolor/${i}/apps
111 + newins utilities/${PN}${i}.png ${PN}.png
112 + done
113 + emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install
114 +}
115 +
116 +pkg_preinst() {
117 + gnome2_icon_savelist
118 +}
119 +
120 +pkg_postinst() {
121 + fdo-mime_desktop_database_update
122 + gnome2_icon_cache_update
123 +}
124 +
125 +pkg_postrm() {
126 + fdo-mime_desktop_database_update
127 + gnome2_icon_cache_update
128 +}