summaryrefslogtreecommitdiff
path: root/app-office/texmaker
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-office/texmaker
reinit the tree, so we can have metadata
Diffstat (limited to 'app-office/texmaker')
-rw-r--r--app-office/texmaker/Manifest12
-rw-r--r--app-office/texmaker/files/texmaker-4.5-modern-styles.patch16
-rw-r--r--app-office/texmaker/files/texmaker-4.5-unbundle.patch93
-rw-r--r--app-office/texmaker/files/texmaker-5.0-unbundle-hunspell-singleapp.patch67
-rw-r--r--app-office/texmaker/files/texmakerx_my.pri7
-rw-r--r--app-office/texmaker/metadata.xml12
-rw-r--r--app-office/texmaker/texmaker-4.5-r2.ebuild84
-rw-r--r--app-office/texmaker/texmaker-4.5-r3.ebuild84
-rw-r--r--app-office/texmaker/texmaker-5.0.ebuild84
9 files changed, 459 insertions, 0 deletions
diff --git a/app-office/texmaker/Manifest b/app-office/texmaker/Manifest
new file mode 100644
index 000000000000..6016f15f474e
--- /dev/null
+++ b/app-office/texmaker/Manifest
@@ -0,0 +1,12 @@
+AUX texmaker-4.5-modern-styles.patch 658 SHA256 2c63016f43427d8b927dae8686afeb0996aa1eb76be48f8201942b1cc4af4a54 SHA512 2b9a5577f7f385eabacb3ed1fb8ebb9665395021fcbf2dab9f960f2607b54bb62eae230e38df8686f3196ab8f1366bee6a012663a9a415a8a133658c3ca8ce27 WHIRLPOOL 08033c87ea892722892cba3832b741c89a379912e8b46bf03d4c130fd4ab5af09f7db07ebf97f5886bb15931322349fb96c57f7e49e904a0f0f0413d74eae999
+AUX texmaker-4.5-unbundle.patch 2672 SHA256 d2a266c6ee0d7679fe5b3ae0e606a35ab35583de9baa4e74a2ab244147db41f9 SHA512 121a582394f9d7a89d41b73ec5a8b2206f076a08ba01f91b82155d9b20efbab413431587edf41386e1147324fcc5093db022a43ccf5f62758276c228387e6692 WHIRLPOOL 25cf4574c7eb49829fa8eed7126aa1161be2b8ad68ffa884b705ef5117cd65f23055c95bcc9dba74e81706d1f2559a50384c72101d3f129cdea4a3ff8c043f1a
+AUX texmaker-5.0-unbundle-hunspell-singleapp.patch 1886 SHA256 64ec264539dbabd6906a7d4d8671d124617541b40be18eb725433a9b119033c0 SHA512 cb944695a1661b067aef0e45dc6dac8cf7d6f589c7f69be49cf7bad2c51899e0cf3f4ed0881899c8185af10f5e36523a6be0a335f6b7668240fb0ec9ae4ca404 WHIRLPOOL 00bcd5ee67f1ad4f70b5088d6777f5aac200f86978dd64d031d6dad492dd8410c398a7b5c19d963916db46b58b96953441675ff69b4a3adf67f2bf6064b50bc4
+AUX texmakerx_my.pri 128 SHA256 b358c02f52abdaf6031729c6eac03301992534ba52153e598ff6c8d1d1108138 SHA512 ce03623e219b43eca4bcd07b78566d55af78f41483a2659479a9118ffd1a987b77e38c32fa3a9ff2b35556191b708f198668956181e01272f2bc39a828f9277e WHIRLPOOL 540e18f3d473be6aee644c0b134ebe4e37ad94e4cbc8fab8eb3b563e6601449972d2b3935db59da0afc798bef30cba2960aeb7db995755fb7e1e069a19ad2a13
+DIST texmaker-4.5.tar.bz2 11287724 SHA256 2ce9966e410bf878649d1c756e3dc2a077e55e1eaa9f4beb10aa7224cd94d614 SHA512 623ae1496f11e5cd1328b997dbb29ec7188d6c1b256b6370c6fdd4fcda4bfc4b301d29cfa3b2ce529391b8f9913ea4678a6895abfb4fa6f9820e7177c676ab11 WHIRLPOOL 0fb00957cb6fe2f3181ac6a6ad917fd60d90ca05bcbaa14da62045ac6c5d78126d9abeb1429bd1fe48a25416d95a1a52c53f83cad91cb0540fcd043a9ea63045
+DIST texmaker-5.0.tar.bz2 15728938 SHA256 2a0b329c0ff5c408f72bcefbef16361d26da74e3ca1f39d6b8c78d84c37245a9 SHA512 2473e0ad701da399f428caf8b067129c069a86d8cc5f1d0993ba53025961f7caab816195495d63788d58dafa7a208ca8fbcebbac118a49b20f3f639ee377a636 WHIRLPOOL 5989c926d6f4b770cfc0d0cf346d47c7244540b2873d2c7f54d52590debca85271acba10307f24f77e1446db01e7404d4b0b6fc4125360843a4bd32957467c15
+EBUILD texmaker-4.5-r2.ebuild 1742 SHA256 8826ca36388feecd671bc579cffd7095f39289b9b933052ec8cf286306c3ee28 SHA512 1c6a44109f3f21eee419f18585d7ca5beca7f408cca0ce87fb9d7cbf405de24d20753fc8e9fd7656ff9ea1dfa685c96e40333a9f12a946b9917442da4165c142 WHIRLPOOL a8c4b1c10e629f2281e07531ccab0a21d27484ef685154ef7da191b9e1ca1e6eded011a262377b2cba4e16562b29a995b654ec962e4b6d532d58a13fe58eb8d4
+EBUILD texmaker-4.5-r3.ebuild 1747 SHA256 111c90a011995646bff95001d4994f2b1cf9bba1016196318bcebb8526d12eed SHA512 359fc6de06824a19cd6541e61efeeaaff63d3bd1f92b375a9a4d0793ae9569d2641d35f4624e8538f602c8ab9b3a933521b9474be222b90337d842454de7b36c WHIRLPOOL 3e12a9e864c4d29be87d3dcd43c66a9810d3fbfe8eb565eb56c6a2f2b45ef9fc51eef4a9206997959a3854a226bd74e3379e8f361ed95979438a3cf80bb591e7
+EBUILD texmaker-5.0.ebuild 1732 SHA256 f5a63ad3b1cb518436b824339a582b6f49e981964d4e3aad67b36b4a2ca04b85 SHA512 1819c2d1b4485d392c79aa096266a5d982fef49ec803923582c084a7bfd696f5ffc8ef4113963e11d66eef9eef9fa11f84f2ce94321e231cc756c3356798eadb WHIRLPOOL a1ccb956725e282a27b706177df56402f8d88bcac8610e829db802c56cb9bb48d1fa5797e55a45de227539b942de01eeb67e77f9c2888fc68f1a5c348c0ecd75
+MISC ChangeLog 4419 SHA256 dc4f68f0e22c2bc7de514a6e84bddac0b535ded4b19a2cde71e5594d69dc73c1 SHA512 c33751d642f631c935d30fb7fc06d397db9c7827f64ed11d2b9ef23c74b7fb0fe5342c4bb976cb52509652977a60e0adad2f94e168d8e18b6e0855d74f2cf08c WHIRLPOOL f3180a1dd31b9264a196806f9a3d57bfa96b50fc56c74bc9b2f5a8d5c7ea98a1e942c90b6755d7656b922c9497bece028e33e3993a8560774020d3aee996f964
+MISC ChangeLog-2015 22738 SHA256 591e3d8b380ca336fea0430c90109ec27a08f04089124e38e34d17915a201558 SHA512 274ed6a3b1ef8c8e3fadf2249b98d5c895ab4ab205ae92110094e86fa41a80a8b9c2f89b706e130a9a480e003e456a2ee9c523df3f6442d0e199cf2181ed2d80 WHIRLPOOL e5c83c2fbd11c2bff8904a90c6406af7285ec1330915d39115515bd6e8704cc4d6bf34a1cde3e3d453456b99fe2beb8ed0655fbf54449a5cb6d35cd5a7e64a7a
+MISC metadata.xml 371 SHA256 b60ac03870064e19f25288e0ff323f878639ab844c39bdf321de915997baee24 SHA512 fc327d181a4a8194af71244eb082e8e9c749b250687f038b740d1f5f62cac02f300becdbaca84b997edf8372b3352a8d840eadc2f06c8171fef339ac5537914c WHIRLPOOL 5454c947e0e1964fdca8ace316ccdc48a5f0de2346af7f5bf60564dc2a650d99d1700c3a95154b7abd7b641b29414494e4693291d5c0b03d7aceca5759d90ff0
diff --git a/app-office/texmaker/files/texmaker-4.5-modern-styles.patch b/app-office/texmaker/files/texmaker-4.5-modern-styles.patch
new file mode 100644
index 000000000000..73c3b92f761b
--- /dev/null
+++ b/app-office/texmaker/files/texmaker-4.5-modern-styles.patch
@@ -0,0 +1,16 @@
+--- a/texmaker.cpp 2014-11-26 09:06:56.000000000 -0300
++++ b/texmaker.cpp 2015-06-19 20:49:58.801377000 -0300
+@@ -4451,7 +4451,12 @@
+ #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
+ if (modern_style)
+ {
+-qApp->setStyle(new ManhattanStyle(QLatin1String("fusion")));
++ if(desktop_env == 1){
++ if (styles.contains("GTK+")) qApp->setStyle(new ManhattanStyle(QLatin1String("gtkstyle")));
++ else if (styles.contains("Windows")) qApp->setStyle(new ManhattanStyle(QLatin1String("windows")));
++ else qApp->setStyle(new ManhattanStyle(QLatin1String("fusion")));
++ }
++ else qApp->setStyle(new ManhattanStyle(QLatin1String("fusion")));
+ }
+ // else
+ // {
diff --git a/app-office/texmaker/files/texmaker-4.5-unbundle.patch b/app-office/texmaker/files/texmaker-4.5-unbundle.patch
new file mode 100644
index 000000000000..607b2c8b7e41
--- /dev/null
+++ b/app-office/texmaker/files/texmaker-4.5-unbundle.patch
@@ -0,0 +1,93 @@
+diff --git a/configdialog.cpp b/configdialog.cpp
+index dddb11e..9a1aee7 100644
+--- a/configdialog.cpp
++++ b/configdialog.cpp
+@@ -222,7 +222,7 @@ void ConfigDialog::browseAspell()
+ QDir spelldir(QCoreApplication::applicationDirPath());
+ #else
+ #ifdef DEBIAN_SPELLDIR
+-QDir spelldir(PREFIX"/share/myspell/dicts");
++QDir spelldir(PREFIX"/share/myspell");
+ #else
+ QDir spelldir(PREFIX"/share/texmaker");
+ #endif
+diff --git a/texmaker.cpp b/texmaker.cpp
+index b8a2143..a8bcd46 100644
+--- a/texmaker.cpp
++++ b/texmaker.cpp
+@@ -2787,7 +2787,7 @@ if (hasDecodingError)
+ QString dicDir=QCoreApplication::applicationDirPath() + "/";
+ #else
+ #ifdef DEBIAN_SPELLDIR
+-QString dicDir=PREFIX"/share/myspell/dicts/";
++QString dicDir=PREFIX"/share/myspell/";
+ #else
+ QString dicDir=PREFIX"/share/texmaker/";
+ #endif
+diff --git a/texmaker.pro b/texmaker.pro
+index 7e9b706..909eb62 100644
+--- a/texmaker.pro
++++ b/texmaker.pro
+@@ -98,29 +98,6 @@ HEADERS += texmaker.h \
+ unicodeview.h \
+ quickbeamerdialog.h \
+ svnhelper.h \
+- hunspell/affentry.hxx \
+- hunspell/affixmgr.hxx \
+- hunspell/atypes.hxx \
+- hunspell/baseaffix.hxx \
+- hunspell/csutil.hxx \
+- hunspell/dictmgr.hxx \
+- hunspell/hashmgr.hxx \
+- hunspell/htypes.hxx \
+- hunspell/hunspell.hxx \
+- hunspell/hunspell.h \
+- hunspell/langnum.hxx \
+- hunspell/license.hunspell \
+- hunspell/phonet.hxx \
+- hunspell/suggestmgr.hxx \
+- hunspell/license.myspell \
+- hunspell/filemgr.hxx \
+- hunspell/hunzip.hxx \
+- hunspell/replist.hxx \
+- hunspell/w_char.hxx \
+- singleapp/qtlocalpeer.h \
+- singleapp/qtlockedfile.h \
+- singleapp/qtsingleapplication.h \
+- singleapp/qtsinglecoreapplication.h \
+ encodingprober/CharDistribution.h \
+ encodingprober/ChineseGroupProber.h \
+ encodingprober/ctype_test_p.h \
+@@ -210,22 +187,6 @@ SOURCES += main.cpp \
+ unicodeview.cpp \
+ quickbeamerdialog.cpp \
+ svnhelper.cpp \
+- hunspell/affentry.cxx \
+- hunspell/affixmgr.cxx \
+- hunspell/csutil.cxx \
+- hunspell/dictmgr.cxx \
+- hunspell/hashmgr.cxx \
+- hunspell/hunspell.cxx \
+- hunspell/phonet.cxx \
+- hunspell/suggestmgr.cxx \
+- hunspell/utf_info.cxx \
+- hunspell/filemgr.cxx \
+- hunspell/replist.cxx \
+- hunspell/hunzip.cxx \
+- singleapp/qtlocalpeer.cpp \
+- singleapp/qtlockedfile.cpp \
+- singleapp/qtsingleapplication.cpp \
+- singleapp/qtsinglecoreapplication.cpp \
+ encodingprober/CharDistribution.cpp \
+ encodingprober/ChineseGroupProber.cpp \
+ encodingprober/JapaneseGroupProber.cpp \
+@@ -336,8 +297,7 @@ icon.path = $${ICONDIR}
+
+ INSTALLS = target
+ HEADERS += x11fontdialog.h
+-SOURCES += x11fontdialog.cpp \
+- singleapp/qtlockedfile_unix.cpp
++SOURCES += x11fontdialog.cpp
+ FORMS += x11fontdialog.ui
+
+ utilities.files = doc/doc1.png \
diff --git a/app-office/texmaker/files/texmaker-5.0-unbundle-hunspell-singleapp.patch b/app-office/texmaker/files/texmaker-5.0-unbundle-hunspell-singleapp.patch
new file mode 100644
index 000000000000..d7073b8547db
--- /dev/null
+++ b/app-office/texmaker/files/texmaker-5.0-unbundle-hunspell-singleapp.patch
@@ -0,0 +1,67 @@
+diff --git a/texmaker.pro b/texmaker.pro
+index 0a9205d..62bc46d 100644
+--- a/texmaker.pro
++++ b/texmaker.pro
+@@ -117,29 +117,6 @@ HEADERS += texmaker.h \
+ unicodeview.h \
+ svnhelper.h \
+ quickbeamerdialog.h \
+- hunspell/affentry.hxx \
+- hunspell/affixmgr.hxx \
+- hunspell/atypes.hxx \
+- hunspell/baseaffix.hxx \
+- hunspell/csutil.hxx \
+- hunspell/dictmgr.hxx \
+- hunspell/hashmgr.hxx \
+- hunspell/htypes.hxx \
+- hunspell/hunspell.hxx \
+- hunspell/hunspell.h \
+- hunspell/langnum.hxx \
+- hunspell/license.hunspell \
+- hunspell/phonet.hxx \
+- hunspell/suggestmgr.hxx \
+- hunspell/license.myspell \
+- hunspell/filemgr.hxx \
+- hunspell/hunzip.hxx \
+- hunspell/replist.hxx \
+- hunspell/w_char.hxx \
+- singleapp/qtlocalpeer.h \
+- singleapp/qtlockedfile.h \
+- singleapp/qtsingleapplication.h \
+- singleapp/qtsinglecoreapplication.h \
+ encodingprober/CharDistribution.h \
+ encodingprober/ChineseGroupProber.h \
+ encodingprober/ctype_test_p.h \
+@@ -502,22 +479,6 @@ SOURCES += main.cpp \
+ unicodeview.cpp \
+ quickbeamerdialog.cpp \
+ svnhelper.cpp \
+- hunspell/affentry.cxx \
+- hunspell/affixmgr.cxx \
+- hunspell/csutil.cxx \
+- hunspell/dictmgr.cxx \
+- hunspell/hashmgr.cxx \
+- hunspell/hunspell.cxx \
+- hunspell/phonet.cxx \
+- hunspell/suggestmgr.cxx \
+- hunspell/utf_info.cxx \
+- hunspell/filemgr.cxx \
+- hunspell/replist.cxx \
+- hunspell/hunzip.cxx \
+- singleapp/qtlocalpeer.cpp \
+- singleapp/qtlockedfile.cpp \
+- singleapp/qtsingleapplication.cpp \
+- singleapp/qtsinglecoreapplication.cpp \
+ encodingprober/CharDistribution.cpp \
+ encodingprober/ChineseGroupProber.cpp \
+ encodingprober/JapaneseGroupProber.cpp \
+@@ -1088,8 +1049,7 @@ metainfo.path = texmaker_linux64
+
+ INSTALLS = target
+ HEADERS += x11fontdialog.h
+-SOURCES += x11fontdialog.cpp \
+- singleapp/qtlockedfile_unix.cpp
++SOURCES += x11fontdialog.cpp
+ FORMS += x11fontdialog.ui
+
+ utilities.files = doc/doc10.png \
diff --git a/app-office/texmaker/files/texmakerx_my.pri b/app-office/texmaker/files/texmakerx_my.pri
new file mode 100644
index 000000000000..3a179ed9d704
--- /dev/null
+++ b/app-office/texmaker/files/texmakerx_my.pri
@@ -0,0 +1,7 @@
+CONFIG += link_pkgconfig
+
+# System hunspell
+PKGCONFIG += hunspell
+
+# System qtsingleapplication
+CONFIG += qtsingleapplication
diff --git a/app-office/texmaker/metadata.xml b/app-office/texmaker/metadata.xml
new file mode 100644
index 000000000000..41ce20c30676
--- /dev/null
+++ b/app-office/texmaker/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>k_f@gentoo.org</email>
+ <name>Kristian Fiskerstrand</name>
+ </maintainer>
+<maintainer type="project">
+ <email>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-office/texmaker/texmaker-4.5-r2.ebuild b/app-office/texmaker/texmaker-4.5-r2.ebuild
new file mode 100644
index 000000000000..e46b14878904
--- /dev/null
+++ b/app-office/texmaker/texmaker-4.5-r2.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qmake-utils readme.gentoo
+
+DESCRIPTION="A nice LaTeX-IDE"
+HOMEPAGE="http://www.xm1math.net/texmaker/"
+SRC_URI="http://www.xm1math.net/texmaker/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+
+COMMON_DEPEND="
+ app-text/hunspell
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXext
+ app-text/poppler:=[qt5]
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtscript:5
+ dev-qt/qtsingleapplication[X,qt5]
+ dev-qt/qtwebkit:5[printsupport]
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+"
+RDEPEND="${COMMON_DEPEND}
+ app-text/ghostscript-gpl
+ app-text/psutils
+ media-libs/netpbm
+ virtual/latex-base"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-unbundle.patch
+ "${FILESDIR}"/${P}-modern-styles.patch
+ )
+
+DOCS=( utilities/AUTHORS utilities/CHANGELOG.txt )
+HTML_DOCS=( doc/. )
+
+src_prepare() {
+ find singleapp hunspell -delete || die
+
+ epatch "${PATCHES[@]}"
+
+ cat >> ${PN}.pro <<- EOF
+ exists(texmakerx_my.pri):include(texmakerx_my.pri)
+ EOF
+
+ cp "${FILESDIR}"/texmakerx_my.pri . || die
+
+ sed \
+ -e '/^#include/s:hunspell/::g' \
+ -e '/^#include/s:singleapp/::g' \
+ -i *.cpp *.h || die
+
+ DOC_CONTENTS="A user manual with many screenshots is available at:
+ ${EPREFIX}/usr/share/${PN}/usermanual_en.html"
+}
+
+src_configure() {
+ local myeqmakeargs=(
+ ${PN}.pro
+ PREFIX="${EPREFIX}/usr"
+ DESKTOPDIR="${EPREFIX}/usr/share/applications"
+ ICONDIR="${EPREFIX}/usr/share/pixmaps"
+ )
+ eqmake5 ${myeqmakeargs[@]}
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+ readme.gentoo_create_doc
+}
diff --git a/app-office/texmaker/texmaker-4.5-r3.ebuild b/app-office/texmaker/texmaker-4.5-r3.ebuild
new file mode 100644
index 000000000000..b33ba0007afe
--- /dev/null
+++ b/app-office/texmaker/texmaker-4.5-r3.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qmake-utils readme.gentoo-r1
+
+DESCRIPTION="A nice LaTeX-IDE"
+HOMEPAGE="http://www.xm1math.net/texmaker/"
+SRC_URI="http://www.xm1math.net/texmaker/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+
+COMMON_DEPEND="
+ app-text/hunspell
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXext
+ app-text/poppler:=[qt5]
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtscript:5
+ dev-qt/qtsingleapplication[X,qt5]
+ dev-qt/qtwebkit:5[printsupport]
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+"
+RDEPEND="${COMMON_DEPEND}
+ app-text/ghostscript-gpl
+ app-text/psutils
+ media-libs/netpbm
+ virtual/latex-base"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-unbundle.patch
+ "${FILESDIR}"/${P}-modern-styles.patch
+ )
+
+DOCS=( utilities/AUTHORS utilities/CHANGELOG.txt )
+HTML_DOCS=( doc/. )
+
+src_prepare() {
+ find singleapp hunspell -delete || die
+
+ epatch "${PATCHES[@]}"
+
+ cat >> ${PN}.pro <<- EOF
+ exists(texmakerx_my.pri):include(texmakerx_my.pri)
+ EOF
+
+ cp "${FILESDIR}"/texmakerx_my.pri . || die
+
+ sed \
+ -e '/^#include/s:hunspell/::g' \
+ -e '/^#include/s:singleapp/::g' \
+ -i *.cpp *.h || die
+
+ DOC_CONTENTS="A user manual with many screenshots is available at:
+ ${EPREFIX}/usr/share/${PN}/usermanual_en.html"
+}
+
+src_configure() {
+ local myeqmakeargs=(
+ ${PN}.pro
+ PREFIX="${EPREFIX}/usr"
+ DESKTOPDIR="${EPREFIX}/usr/share/applications"
+ ICONDIR="${EPREFIX}/usr/share/pixmaps"
+ )
+ eqmake5 ${myeqmakeargs[@]}
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+ readme.gentoo_create_doc
+}
diff --git a/app-office/texmaker/texmaker-5.0.ebuild b/app-office/texmaker/texmaker-5.0.ebuild
new file mode 100644
index 000000000000..6e6dacfa8359
--- /dev/null
+++ b/app-office/texmaker/texmaker-5.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils qmake-utils readme.gentoo-r1
+
+DESCRIPTION="A nice LaTeX-IDE"
+HOMEPAGE="http://www.xm1math.net/texmaker/"
+SRC_URI="http://www.xm1math.net/texmaker/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+
+COMMON_DEPEND="
+ app-text/hunspell
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXext
+ app-text/poppler:=[qt5]
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtlockedfile
+ dev-qt/qtnetwork:5
+ dev-qt/qtscript:5
+ dev-qt/qtsingleapplication[X,qt5]
+ dev-qt/qtwebkit:5[printsupport]
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+"
+RDEPEND="${COMMON_DEPEND}
+ app-text/ghostscript-gpl
+ app-text/psutils
+ media-libs/netpbm
+ virtual/latex-base"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-unbundle-hunspell-singleapp.patch"
+)
+
+DOCS=( utilities/AUTHORS utilities/CHANGELOG.txt )
+HTML_DOCS=( doc/. )
+
+src_prepare() {
+ default
+
+ find singleapp hunspell -delete || die
+
+ cat >> ${PN}.pro <<- EOF
+ exists(texmakerx_my.pri):include(texmakerx_my.pri)
+ EOF
+
+ cp "${FILESDIR}"/texmakerx_my.pri . || die
+
+ sed \
+ -e '/^#include/s:hunspell/::g' \
+ -e '/^#include/s:singleapp/::g' \
+ -i *.cpp *.h || die
+
+ DOC_CONTENTS="A user manual with many screenshots is available at:
+ ${EPREFIX}/usr/share/${PN}/usermanual_en.html"
+}
+
+src_configure() {
+ local myeqmakeargs=(
+ ${PN}.pro
+ PREFIX="${EPREFIX}/usr"
+ DESKTOPDIR="${EPREFIX}/usr/share/applications"
+ ICONDIR="${EPREFIX}/usr/share/pixmaps"
+ )
+ eqmake5 ${myeqmakeargs[@]}
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+ readme.gentoo_create_doc
+}