1 |
commit: 6c1ea42ae5be2689bf46174979677ca56f9958ce |
2 |
Author: layman <layman <AT> localhost> |
3 |
AuthorDate: Mon Oct 16 08:22:08 2017 +0000 |
4 |
Commit: Jan Psota <jasiupsota <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Oct 16 08:22:08 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/bleeding-edge.git/commit/?id=6c1ea42a |
7 |
|
8 |
app-office/texstudio-2.12.6 from seden overlay, qt-5.9/qscintilla-2.10 friendly |
9 |
|
10 |
app-office/texstudio/Manifest | 1 + |
11 |
app-office/texstudio/files/texmakerx_my.pri | 18 ++++++ |
12 |
app-office/texstudio/metadata.xml | 14 +++++ |
13 |
app-office/texstudio/texstudio-2.12.6.ebuild | 91 ++++++++++++++++++++++++++++ |
14 |
4 files changed, 124 insertions(+) |
15 |
|
16 |
diff --git a/app-office/texstudio/Manifest b/app-office/texstudio/Manifest |
17 |
new file mode 100644 |
18 |
index 0000000..82aa5c0 |
19 |
--- /dev/null |
20 |
+++ b/app-office/texstudio/Manifest |
21 |
@@ -0,0 +1 @@ |
22 |
+DIST texstudio-2.12.6.tar.gz 26578309 SHA256 cdae8c9f3fa84af2424cfef6d4a3abb2437cc71ecb24c1883e4ecca2f2693da3 SHA512 674667ce4137bfd30fc85e242c4ab891b3b6517cbdd2b6465fd4117ce2128e9854907cb52d42d5e4d60e8c5b38738eac95dbd140e5db67a21561ba6c617d80fb WHIRLPOOL dca20cb779139687aa91e4ad0382b9e21777b60b944a4d3efeb32d308d602215b3ec3b40596cdecd7c305ec57c579e4361dea61be8661f486be24fe917d26391 |
23 |
|
24 |
diff --git a/app-office/texstudio/files/texmakerx_my.pri b/app-office/texstudio/files/texmakerx_my.pri |
25 |
new file mode 100644 |
26 |
index 0000000..06426fc |
27 |
--- /dev/null |
28 |
+++ b/app-office/texstudio/files/texmakerx_my.pri |
29 |
@@ -0,0 +1,18 @@ |
30 |
+CONFIG += link_pkgconfig |
31 |
+ |
32 |
+# System Quazip |
33 |
+INCLUDEPATH += @GENTOO_PORTAGE_EPREFIX@/usr/include/quazip |
34 |
+LIBS += -lquazip |
35 |
+#INCLUDEPATH += @GENTOO_PORTAGE_EPREFIX@/usr/include/qt4/QCodeEdit |
36 |
+#INCLUDEPATH += @GENTOO_PORTAGE_EPREFIX@/usr/include/qt4/QtSolutions |
37 |
+ |
38 |
+# System hunspell |
39 |
+PKGCONFIG += hunspell |
40 |
+ |
41 |
+# System qtsingleapplication |
42 |
+#QT += solutions |
43 |
+CONFIG += qtsingleapplication |
44 |
+ |
45 |
+# System qcodeedit |
46 |
+# Not working currently |
47 |
+#CONFIG += qcodeedit |
48 |
|
49 |
diff --git a/app-office/texstudio/metadata.xml b/app-office/texstudio/metadata.xml |
50 |
new file mode 100644 |
51 |
index 0000000..4cbff07 |
52 |
--- /dev/null |
53 |
+++ b/app-office/texstudio/metadata.xml |
54 |
@@ -0,0 +1,14 @@ |
55 |
+<?xml version="1.0" encoding="UTF-8"?> |
56 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
57 |
+<pkgmetadata> |
58 |
+ <maintainer type="project"> |
59 |
+ <email>tex@g.o</email> |
60 |
+ <name>Gentoo TeX Project</name> |
61 |
+ </maintainer> |
62 |
+ <use> |
63 |
+ <flag name="video">Use phonon for video embedding</flag> |
64 |
+ </use> |
65 |
+ <upstream> |
66 |
+ <remote-id type="sourceforge">texstudio</remote-id> |
67 |
+ </upstream> |
68 |
+</pkgmetadata> |
69 |
|
70 |
diff --git a/app-office/texstudio/texstudio-2.12.6.ebuild b/app-office/texstudio/texstudio-2.12.6.ebuild |
71 |
new file mode 100644 |
72 |
index 0000000..7ee81ab |
73 |
--- /dev/null |
74 |
+++ b/app-office/texstudio/texstudio-2.12.6.ebuild |
75 |
@@ -0,0 +1,91 @@ |
76 |
+# Copyright 1999-2017 Gentoo Foundation |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+ |
79 |
+EAPI=6 |
80 |
+ |
81 |
+inherit fdo-mime gnome2-utils prefix qmake-utils |
82 |
+ |
83 |
+DESCRIPTION="Free cross-platform LaTeX editor (fork from texmakerX)" |
84 |
+HOMEPAGE="http://texstudio.sourceforge.net/" |
85 |
+SRC_URI="mirror://sourceforge/${PN}/${PN}/TeXstudio%20${PV}/${P}.tar.gz" |
86 |
+ |
87 |
+LICENSE="GPL-2" |
88 |
+SLOT="0" |
89 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
90 |
+IUSE="video" |
91 |
+ |
92 |
+COMMON_DEPEND=" |
93 |
+ app-text/hunspell:= |
94 |
+ app-text/poppler[qt5] |
95 |
+ >=dev-libs/quazip-0.7.2[qt5] |
96 |
+ dev-qt/designer:5 |
97 |
+ dev-qt/qtcore:5 |
98 |
+ dev-qt/qtconcurrent:5 |
99 |
+ dev-qt/qtgui:5 |
100 |
+ dev-qt/qtnetwork:5 |
101 |
+ dev-qt/qtprintsupport:5 |
102 |
+ dev-qt/qtscript:5 |
103 |
+ dev-qt/qtsingleapplication[qt5,X] |
104 |
+ dev-qt/qtsvg:5 |
105 |
+ dev-qt/qttest:5 |
106 |
+ dev-qt/qtwidgets:5 |
107 |
+ dev-qt/qtxml:5 |
108 |
+ sys-libs/zlib |
109 |
+ x11-libs/libX11 |
110 |
+ x11-libs/libXext |
111 |
+ video? ( media-libs/phonon[qt5] )" |
112 |
+RDEPEND="${COMMON_DEPEND} |
113 |
+ app-text/ghostscript-gpl |
114 |
+ app-text/psutils |
115 |
+ media-libs/netpbm |
116 |
+ virtual/latex-base" |
117 |
+DEPEND="${COMMON_DEPEND} |
118 |
+ virtual/pkgconfig" |
119 |
+ |
120 |
+S=${WORKDIR}/${PN}${PV} |
121 |
+ |
122 |
+src_prepare() { |
123 |
+ default |
124 |
+ find hunspell quazip utilities/poppler-data qtsingleapplication -delete || die |
125 |
+ |
126 |
+ if use video; then |
127 |
+ sed "/^PHONON/s:$:true:g" -i ${PN}.pro || die |
128 |
+ fi |
129 |
+ |
130 |
+ sed \ |
131 |
+ -e '/qtsingleapplication.pri/d' \ |
132 |
+ -i ${PN}.pro || die |
133 |
+ |
134 |
+ cp "${FILESDIR}"/texmakerx_my.pri ${PN}.pri || die |
135 |
+ eprefixify ${PN}.pri |
136 |
+ |
137 |
+ # fix build with quazip-0.7.2 - bug 597930 |
138 |
+ sed -i ${PN}.pro -e "s|include/quazip|&5|" || die |
139 |
+ sed -i ${PN}.pri -i ${PN}.pro -e "s/-lquazip/&5/" || die |
140 |
+} |
141 |
+ |
142 |
+src_configure() { |
143 |
+ eqmake5 USE_SYSTEM_HUNSPELL=1 USE_SYSTEM_QUAZIP=1 |
144 |
+} |
145 |
+ |
146 |
+src_install() { |
147 |
+ local i |
148 |
+ for i in 16x16 22x22 32x32 48x48 64x64 128x128; do |
149 |
+ newicon -s ${i} utilities/${PN}${i}.png ${PN}.png |
150 |
+ done |
151 |
+ emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install |
152 |
+} |
153 |
+ |
154 |
+pkg_preinst() { |
155 |
+ gnome2_icon_savelist |
156 |
+} |
157 |
+ |
158 |
+pkg_postinst() { |
159 |
+ fdo-mime_desktop_database_update |
160 |
+ gnome2_icon_cache_update |
161 |
+} |
162 |
+ |
163 |
+pkg_postrm() { |
164 |
+ fdo-mime_desktop_database_update |
165 |
+ gnome2_icon_cache_update |
166 |
+} |