app-office/texstudio: Version Bump
authorJustin Lecher <jlec@gentoo.org>
Mon, 14 Sep 2015 08:14:08 +0000 (10:14 +0200)
committerJustin Lecher <jlec@gentoo.org>
Mon, 14 Sep 2015 08:14:20 +0000 (10:14 +0200)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=560292

Package-Manager: portage-2.2.20.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
app-office/texstudio/Manifest
app-office/texstudio/texstudio-2.10.0.ebuild [new file with mode: 0644]

index efb3662bdd0c7163af1a58be1fd44f9a99d4980d..85c4ae6f6ad75aab7c701cc49f428b0bbb38caf5 100644 (file)
@@ -1,2 +1,3 @@
+DIST texstudio-2.10.0.tar.gz 25674717 SHA256 cb055b5c5d40e129ff6fc87362501f45bdf11a6ee24bd733d9f7f28ae69169e8 SHA512 c8df9f8176e4d776b76efcf9abe1ff56b87e8ea7093b04f1d5766f8c8b4e5aafbdb6f40c811e7e08d3c5c8ae030327767beca2f1e79ff712c2a2a281fe8a6543 WHIRLPOOL 1eef24c4b923cda51a99fb63aa216df59e4605df81dff5bfc86b1a49c1e50f7f46173d38a4965a8640e636beff4a38971a4c6786b125067353a62d5d0a222ed8
 DIST texstudio-2.8.8.tar.gz 25198033 SHA256 5d00c42425c0d1464438c0c1701508fef281f5dbdd0fbcebdbba9de60ac6db95 SHA512 b4f50368ac4a145ad6cb6c764d2d84ac0c3b0b08903b53390e34fb3a8d2e2c12b72cdf77cf97ea22df94a29438be6db3004f8663e04c5254ae40bf28bc2be152 WHIRLPOOL 08d4af41163ebfa85539001fe540a5f48b86e341d93983a42da03015d00460b30280f5fa08c50c90c97d7e1ed38d324efea666c6640b6bba421cffd832031e27
 DIST texstudio-2.9.4.tar.gz 25292627 SHA256 dc71590e3745ac193a640667737befd665d549e642e268eec7a8238d3b61b5ea SHA512 6fd35a6490451f9cc3292245857e66d6b0d18d2fb06e0482a8e9bbb8695923c8d3da32a6aa6b8ec591c74ccd81f797ddb958e85db26c90d0096cc678a5f14a49 WHIRLPOOL 9ca5ad727d0096bd986b39b34691167bfafe6ae44c4193fdd1f6f02bdd8c4b8b0cd4ac31af3c1c2833c1ba13f0acf814d3ba14fb0709dc3bbd5ee50729968cdf
diff --git a/app-office/texstudio/texstudio-2.10.0.ebuild b/app-office/texstudio/texstudio-2.10.0.ebuild
new file mode 100644 (file)
index 0000000..4a6d581
--- /dev/null
@@ -0,0 +1,113 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit base fdo-mime prefix qmake-utils
+
+DESCRIPTION="Free cross-platform LaTeX editor (fork from texmakerX)"
+HOMEPAGE="http://texstudio.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/TeXstudio%20${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="video qt4 +qt5"
+
+REQUIRED_USE="^^ ( qt4 qt5 )"
+
+COMMON_DEPEND="
+       app-text/hunspell
+       app-text/poppler:=[qt4?,qt5?]
+       >=dev-libs/quazip-0.7.1[qt4?,qt5?]
+       dev-qt/qtsingleapplication[qt4?,qt5?]
+       x11-libs/libX11
+       x11-libs/libXext
+       qt4? (
+               dev-qt/designer:4
+               >=dev-qt/qtgui-4.8.5:4
+               >=dev-qt/qtcore-4.6.1:4
+               >=dev-qt/qtscript-4.6.1:4
+               >=dev-qt/qtsvg-4.6.1:4
+               >=dev-qt/qttest-4.6.1:4
+       )
+       qt5? (
+               dev-qt/designer:5
+               dev-qt/qtcore:5
+               dev-qt/qtconcurrent:5
+               dev-qt/qtgui:5
+               dev-qt/qtnetwork:5
+               dev-qt/qtprintsupport:5
+               dev-qt/qtscript:5
+               dev-qt/qtsvg:5
+               dev-qt/qttest:5
+               dev-qt/qtwidgets:5
+               dev-qt/qtxml:5
+       )
+       video? ( media-libs/phonon[qt4?,qt5?] )"
+RDEPEND="${COMMON_DEPEND}
+       virtual/latex-base
+       app-text/psutils
+       app-text/ghostscript-gpl
+       media-libs/netpbm"
+DEPEND="${COMMON_DEPEND}
+       virtual/pkgconfig"
+
+S="${WORKDIR}"/${P/-/}
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.6.4-hunspell-quazip.patch
+       "${FILESDIR}"/${PN}-2.8.2-desktop.patch
+# Get it from fedora
+       "${FILESDIR}"/${PN}-2.5-viewers-use-xdg-open.patch
+       )
+
+src_prepare() {
+       find hunspell quazip utilities/poppler-data qtsingleapplication -delete || die
+
+       if use video; then
+               sed "/^PHONON/s:$:true:g" -i ${PN}.pro || die
+       fi
+
+       sed \
+               -e '/hunspell.pri/d' \
+               -e '/quazip.pri/d' \
+               -e '/qtsingleapplication.pri/d' \
+               -e '/QUAZIP_STATIC/d' \
+               -i ${PN}.pro || die
+
+#      cat >> ${PN}.pro <<- EOF
+#      exists(texmakerx_my.pri):include(texmakerx_my.pri)
+#      EOF
+
+       cp "${FILESDIR}"/texmakerx_my.pri ${PN}.pri || die
+       eprefixify ${PN}.pri
+
+       epatch ${PATCHES[@]}
+}
+
+src_configure() {
+       if use qt5; then
+               eqmake5
+       else
+               eqmake4
+       fi
+}
+
+src_install() {
+       local i
+       for i in 16x16 22x22 32x32 48x48 64x64 128x128; do
+               insinto /usr/share/icons/hicolor/${i}
+               newins utilities/${PN}${i}.png ${PN}.png
+       done
+       emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install
+}
+
+pkg_postinst() {
+       fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+       fdo-mime_desktop_database_update
+}