diff options
author | 2017-10-16 08:43:18 +0000 | |
---|---|---|
committer | 2017-10-16 08:43:18 +0000 | |
commit | 253caa1496536e4b8312a494fccced4ba90720a8 (patch) | |
tree | 9dc44dc0f9cf67fba51f1da7c9cbc884b45feb97 | |
parent | 2017-10-04 19:52:35 UTC (diff) | |
parent | app-office/texstudio-2.12.6 from seden overlay, qt-5.9/qscintilla-2.10 friendly (diff) | |
download | bleeding-edge-253caa1496536e4b8312a494fccced4ba90720a8.tar.gz bleeding-edge-253caa1496536e4b8312a494fccced4ba90720a8.tar.bz2 bleeding-edge-253caa1496536e4b8312a494fccced4ba90720a8.zip |
Merge updates from master
-rw-r--r-- | app-office/texstudio/Manifest | 1 | ||||
-rw-r--r-- | app-office/texstudio/files/texmakerx_my.pri | 18 | ||||
-rw-r--r-- | app-office/texstudio/metadata.xml | 14 | ||||
-rw-r--r-- | app-office/texstudio/texstudio-2.12.6.ebuild | 91 |
4 files changed, 124 insertions, 0 deletions
diff --git a/app-office/texstudio/Manifest b/app-office/texstudio/Manifest new file mode 100644 index 0000000..82aa5c0 --- /dev/null +++ b/app-office/texstudio/Manifest @@ -0,0 +1 @@ +DIST texstudio-2.12.6.tar.gz 26578309 SHA256 cdae8c9f3fa84af2424cfef6d4a3abb2437cc71ecb24c1883e4ecca2f2693da3 SHA512 674667ce4137bfd30fc85e242c4ab891b3b6517cbdd2b6465fd4117ce2128e9854907cb52d42d5e4d60e8c5b38738eac95dbd140e5db67a21561ba6c617d80fb WHIRLPOOL dca20cb779139687aa91e4ad0382b9e21777b60b944a4d3efeb32d308d602215b3ec3b40596cdecd7c305ec57c579e4361dea61be8661f486be24fe917d26391 diff --git a/app-office/texstudio/files/texmakerx_my.pri b/app-office/texstudio/files/texmakerx_my.pri new file mode 100644 index 0000000..06426fc --- /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/metadata.xml b/app-office/texstudio/metadata.xml new file mode 100644 index 0000000..4cbff07 --- /dev/null +++ b/app-office/texstudio/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>tex@gentoo.org</email> + <name>Gentoo TeX Project</name> + </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.12.6.ebuild b/app-office/texstudio/texstudio-2.12.6.ebuild new file mode 100644 index 0000000..7ee81ab --- /dev/null +++ b/app-office/texstudio/texstudio-2.12.6.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit fdo-mime gnome2-utils 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" + +COMMON_DEPEND=" + app-text/hunspell:= + app-text/poppler[qt5] + >=dev-libs/quazip-0.7.2[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/qtsingleapplication[qt5,X] + dev-qt/qtsvg:5 + dev-qt/qttest:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + sys-libs/zlib + x11-libs/libX11 + x11-libs/libXext + video? ( media-libs/phonon[qt5] )" +RDEPEND="${COMMON_DEPEND} + app-text/ghostscript-gpl + app-text/psutils + media-libs/netpbm + virtual/latex-base" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${PN}${PV} + +src_prepare() { + default + 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 '/qtsingleapplication.pri/d' \ + -i ${PN}.pro || die + + cp "${FILESDIR}"/texmakerx_my.pri ${PN}.pri || die + eprefixify ${PN}.pri + + # fix build with quazip-0.7.2 - bug 597930 + sed -i ${PN}.pro -e "s|include/quazip|&5|" || die + sed -i ${PN}.pri -i ${PN}.pro -e "s/-lquazip/&5/" || die +} + +src_configure() { + eqmake5 USE_SYSTEM_HUNSPELL=1 USE_SYSTEM_QUAZIP=1 +} + +src_install() { + local i + for i in 16x16 22x22 32x32 48x48 64x64 128x128; do + newicon -s ${i} utilities/${PN}${i}.png ${PN}.png + done + emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} |