summaryrefslogtreecommitdiff
path: root/app-office/texstudio
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-office/texstudio
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-office/texstudio')
-rw-r--r--app-office/texstudio/Manifest2
-rw-r--r--app-office/texstudio/files/texmakerx_my.pri18
-rw-r--r--app-office/texstudio/files/texstudio-2.5-viewers-use-xdg-open.patch42
-rw-r--r--app-office/texstudio/files/texstudio-2.6.0-desktop.patch22
-rw-r--r--app-office/texstudio/files/texstudio-2.6.0-hunspell-quazip.patch93
-rw-r--r--app-office/texstudio/files/texstudio-2.6.4-hunspell-quazip.patch16
-rw-r--r--app-office/texstudio/files/texstudio-2.8.2-desktop.patch22
-rw-r--r--app-office/texstudio/metadata.xml13
-rw-r--r--app-office/texstudio/texstudio-2.8.8.ebuild88
-rw-r--r--app-office/texstudio/texstudio-2.9.4.ebuild113
10 files changed, 429 insertions, 0 deletions
diff --git a/app-office/texstudio/Manifest b/app-office/texstudio/Manifest
new file mode 100644
index 00000000000..efb3662bdd0
--- /dev/null
+++ b/app-office/texstudio/Manifest
@@ -0,0 +1,2 @@
+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/files/texmakerx_my.pri b/app-office/texstudio/files/texmakerx_my.pri
new file mode 100644
index 00000000000..06426fc6a9c
--- /dev/null
+++ b/app-office/texstudio/files/texmakerx_my.pri
@@ -0,0 +1,18 @@
+CONFIG += link_pkgconfig
+
+# System Quazip
+INCLUDEPATH += @GENTOO_PORTAGE_EPREFIX@/usr/include/quazip
+LIBS += -lquazip
+#INCLUDEPATH += @GENTOO_PORTAGE_EPREFIX@/usr/include/qt4/QCodeEdit
+#INCLUDEPATH += @GENTOO_PORTAGE_EPREFIX@/usr/include/qt4/QtSolutions
+
+# System hunspell
+PKGCONFIG += hunspell
+
+# System qtsingleapplication
+#QT += solutions
+CONFIG += qtsingleapplication
+
+# System qcodeedit
+# Not working currently
+#CONFIG += qcodeedit
diff --git a/app-office/texstudio/files/texstudio-2.5-viewers-use-xdg-open.patch b/app-office/texstudio/files/texstudio-2.5-viewers-use-xdg-open.patch
new file mode 100644
index 00000000000..667ee3186b3
--- /dev/null
+++ b/app-office/texstudio/files/texstudio-2.5-viewers-use-xdg-open.patch
@@ -0,0 +1,42 @@
+From f9a633402c81b7c252e33c0d9386ba4b48fcde7c Mon Sep 17 00:00:00 2001
+From: hannes <hannes@fedoraproject.org>
+Date: Sun, 9 Sep 2012 10:56:06 +0200
+Subject: [PATCH] viewer
+
+---
+ buildmanager.cpp | 18 +++---------------
+ 1 file changed, 3 insertions(+), 15 deletions(-)
+
+diff --git buildmanager.cpp buildmanager.cpp
+index ac7027a..ac913d0 100644
+--- buildmanager.cpp
++++ buildmanager.cpp
+@@ -762,25 +762,13 @@
+ // xdvi %.dvi -sourceposition @:%.tex
+ // kdvi "file:%.dvi#src:@ %.tex"
+ QString getCommandLineViewDvi(){
+- switch (x11desktop_env()) {
+- case 3: return "kdvi %.dvi > /dev/null";
+- case 4: return "okular %.dvi > /dev/null";
+- default:return "evince %.dvi > /dev/null";
+- }
++ return "xdg-open %.dvi > /dev/null";
+ };
+ QString getCommandLineViewPs(){
+- switch (x11desktop_env()) {
+- case 3: return "kghostview %.ps > /dev/null";
+- case 4: return "okular %.ps > /dev/null";
+- default: return "evince %.ps > /dev/null";
+- };
++ return "xdg-open %.ps > /dev/null";
+ }
+ QString getCommandLineViewPdfExternal(){
+- switch (x11desktop_env()) {
+- case 3: return "kpdf %.pdf > /dev/null";
+- case 4: return "okular %.pdf > /dev/null";
+- default: return "evince %.pdf > /dev/null";
+- };
++ return "xdg-open %.pdf > /dev/null";
+ }
+ QString getCommandLineGhostscript(){ return ""; }
+
diff --git a/app-office/texstudio/files/texstudio-2.6.0-desktop.patch b/app-office/texstudio/files/texstudio-2.6.0-desktop.patch
new file mode 100644
index 00000000000..6d23788a348
--- /dev/null
+++ b/app-office/texstudio/files/texstudio-2.6.0-desktop.patch
@@ -0,0 +1,22 @@
+ utilities/texstudio.desktop | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/utilities/texstudio.desktop b/utilities/texstudio.desktop
+index 199255f..9c95afd 100644
+--- a/utilities/texstudio.desktop
++++ b/utilities/texstudio.desktop
+@@ -1,13 +1,12 @@
+ [Desktop Entry]
+ Categories=Office;Publishing;Qt;X-SuSE-Core-Office;X-Mandriva-Office-Publishing;X-Misc;
+-Encoding=UTF-8
+ Exec=texstudio %F
+ GenericName=LaTeX Editor
+ GenericName[fr]=Editeur LaTeX
+ Comment=LaTeX development environment
+ Comment[fr]=Environnement de développement LaTeX
+ Icon=/usr/share/texstudio/texstudio.svg
+-MimeType=text/x-tex;
++MimeType=text/X-tex;
+ Name=TeXstudio
+ StartupNotify=false
+ Terminal=false
diff --git a/app-office/texstudio/files/texstudio-2.6.0-hunspell-quazip.patch b/app-office/texstudio/files/texstudio-2.6.0-hunspell-quazip.patch
new file mode 100644
index 00000000000..2cf2ec07dca
--- /dev/null
+++ b/app-office/texstudio/files/texstudio-2.6.0-hunspell-quazip.patch
@@ -0,0 +1,93 @@
+ spellerutility.h | 2 +-
+ texstudio.pro | 45 ++++++++++++---------------------------------
+ 2 files changed, 13 insertions(+), 34 deletions(-)
+
+diff --git a/spellerutility.h b/spellerutility.h
+index 7e1b980..b0bc8b8 100644
+--- a/spellerutility.h
++++ b/spellerutility.h
+@@ -13,7 +13,7 @@
+
+ #include "mostQtHeaders.h"
+
+-#include "hunspell/hunspell.hxx"
++#include <hunspell.hxx>
+ class SpellerUtility: public QObject {
+ Q_OBJECT
+ public:
+diff --git a/texstudio.pro b/texstudio.pro
+index b073255..3d4ee64 100644
+--- a/texstudio.pro
++++ b/texstudio.pro
+@@ -53,25 +53,6 @@ HEADERS += texmaker.h \
+ debughelper.h \
+ thesaurusdialog.h \
+ xmltagslistwidget.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/w_char.hxx \
+- hunspell/replist.hxx \
+ qcodeedit/lib/qeditorinputbinding.h \
+ qcodeedit/lib/qeditorinputbindinginterface.h \
+ qcodeedit/lib/qformat.h \
+@@ -171,18 +152,6 @@ SOURCES += main.cpp \
+ codesnippet.cpp \
+ thesaurusdialog.cpp \
+ xmltagslistwidget.cpp \
+- hunspell/affentry.cxx \
+- hunspell/affixmgr.cxx \
+- hunspell/csutil.cxx \
+- hunspell/dictmgr.cxx \
+- hunspell/hashmgr.cxx \
+- hunspell/hunspell.cxx \
+- hunspell/phonet.cxx \
+- hunspell/replist.cxx \
+- hunspell/suggestmgr.cxx \
+- hunspell/utf_info.cxx \
+- hunspell/filemgr.cxx \
+- hunspell/hunzip.cxx \
+ encodingdialog.cpp \
+ qcodeedit/lib/qeditorinputbinding.cpp \
+ qcodeedit/lib/qformat.cpp \
+@@ -537,10 +506,14 @@ SOURCES += qcodeedit/lib/qnfa/qnfa.cpp \
+ # ###############################
+
+ # ##########QUAZIP###############
+-DEFINES += QUAZIP_STATIC
++#DEFINES += QUAZIP_STATIC
+
+ # Input
+-include(quazip/quazip/quazip.pri)
++#include(quazip/quazip/quazip.pri)
++unix {
++ INCLUDEPATH += $${PREFIX}/include/quazip
++ LIBS += -lquazip
++}
+
+ # ###############################
+
+@@ -677,3 +650,9 @@ else {
+ QMAKE_LFLAGS_RELEASE -= -Wl,-s
+ }
+
++unix {
++ CONFIG += link_pkgconfig
++ # use system quazip
++ # use system hunspell
++ PKGCONFIG += hunspell
++}
diff --git a/app-office/texstudio/files/texstudio-2.6.4-hunspell-quazip.patch b/app-office/texstudio/files/texstudio-2.6.4-hunspell-quazip.patch
new file mode 100644
index 00000000000..0ddcccb0614
--- /dev/null
+++ b/app-office/texstudio/files/texstudio-2.6.4-hunspell-quazip.patch
@@ -0,0 +1,16 @@
+ spellerutility.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/spellerutility.h b/spellerutility.h
+index 7e1b980..b0bc8b8 100644
+--- a/spellerutility.h
++++ b/spellerutility.h
+@@ -13,7 +13,7 @@
+
+ #include "mostQtHeaders.h"
+
+-#include "hunspell/hunspell.hxx"
++#include <hunspell.hxx>
+ class SpellerUtility: public QObject {
+ Q_OBJECT
+ public:
diff --git a/app-office/texstudio/files/texstudio-2.8.2-desktop.patch b/app-office/texstudio/files/texstudio-2.8.2-desktop.patch
new file mode 100644
index 00000000000..d464e8a4881
--- /dev/null
+++ b/app-office/texstudio/files/texstudio-2.8.2-desktop.patch
@@ -0,0 +1,22 @@
+ utilities/texstudio.desktop | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/utilities/texstudio.desktop b/utilities/texstudio.desktop
+index 199255f..9c95afd 100644
+--- a/utilities/texstudio.desktop
++++ b/utilities/texstudio.desktop
+@@ -1,13 +1,12 @@
+ [Desktop Entry]
+ Categories=Office;Publishing;Qt;X-SuSE-Core-Office;X-Mandriva-Office-Publishing;X-Misc;
+-Encoding=UTF-8
+ Exec=texstudio %F
+ GenericName=LaTeX Editor
+ GenericName[fr]=Editeur LaTeX
+ Comment=LaTeX development environment
+ Comment[fr]=Environnement de développement LaTeX
+ Icon=texstudio
+-MimeType=text/x-tex;
++MimeType=text/X-tex;
+ Name=TeXstudio
+ StartupNotify=false
+ Terminal=false
diff --git a/app-office/texstudio/metadata.xml b/app-office/texstudio/metadata.xml
new file mode 100644
index 00000000000..2ec6278f9e0
--- /dev/null
+++ b/app-office/texstudio/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="video">Use phonon for video embedding</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">texstudio</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-office/texstudio/texstudio-2.8.8.ebuild b/app-office/texstudio/texstudio-2.8.8.ebuild
new file mode 100644
index 00000000000..0a3817bfb0a
--- /dev/null
+++ b/app-office/texstudio/texstudio-2.8.8.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit base fdo-mime prefix qt4-r2
+
+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"
+
+COMMON_DEPEND="
+ app-text/hunspell
+ app-text/poppler:=[qt4]
+ dev-libs/quazip
+ x11-libs/libX11
+ x11-libs/libXext
+ 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/qtsingleapplication[qt4(+)]
+ >=dev-qt/qtsvg-4.6.1:4
+ >=dev-qt/qttest-4.6.1:4
+ video? ( media-libs/phonon[qt4] )"
+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
+
+ qt4-r2_src_prepare
+}
+
+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
+ qt4-r2_src_install
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/app-office/texstudio/texstudio-2.9.4.ebuild b/app-office/texstudio/texstudio-2.9.4.ebuild
new file mode 100644
index 00000000000..27704ebf8ad
--- /dev/null
+++ b/app-office/texstudio/texstudio-2.9.4.ebuild
@@ -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
+}