summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@prydeworx.com>2023-11-27 11:25:57 +0100
committerSven Eden <sven.eden@prydeworx.com>2023-11-27 11:25:57 +0100
commit756eb8fa07eac343ea9cad161a777cd91718ac52 (patch)
tree8bbab67481d81fb4acd74804db25ff7f16c96949
parentnet-im/skypeforlinux: new package, add 8.106.0.212 (diff)
downloadseden-756eb8fa07eac343ea9cad161a777cd91718ac52.tar.gz
seden-756eb8fa07eac343ea9cad161a777cd91718ac52.tar.bz2
seden-756eb8fa07eac343ea9cad161a777cd91718ac52.zip
app-office/texstudio: new package, add 4.6.3
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
-rw-r--r--app-office/texstudio/Manifest4
-rw-r--r--app-office/texstudio/files/texstudio-4.6.3-quazip5.patch17
-rw-r--r--app-office/texstudio/metadata.xml15
-rw-r--r--app-office/texstudio/texstudio-4.6.3.ebuild80
4 files changed, 116 insertions, 0 deletions
diff --git a/app-office/texstudio/Manifest b/app-office/texstudio/Manifest
new file mode 100644
index 0000000..b334f2d
--- /dev/null
+++ b/app-office/texstudio/Manifest
@@ -0,0 +1,4 @@
+AUX texstudio-4.6.3-quazip5.patch 598 BLAKE2B 82cfa56e89783ca7da30a68d74e654400c56d7bb7ebe0e20c71848eed3f56274c9b3e82cb784770abe59fa2970179fe83c23596d594d302d4fcd13504219c8ec SHA512 414ecc4a95706c7fce79cb94a93c339b190afd021d8ce655a789277402dd6284d1f39c17bf4d43ec7e479dcf98c973b12848862908a74a6b7340ab326bf04865
+DIST texstudio-4.6.3.tar.gz 111413199 BLAKE2B bf855614630b349bd674beab5fb2251ab4f49719377aa89091e9d133694d6120e9821333cb990a34e196f1538e7dc860d2fce8a9827fbd5484e2ce6195d90bdb SHA512 4d452574dede32442b40d5c84b79f5e62d02105fd2ff34d2900db1c7e0dd3e945ab93f2e28d6944f1ec206d1847a0779742c4e86dc8cc828bb186a77840787a0
+EBUILD texstudio-4.6.3.ebuild 1807 BLAKE2B 3e1d75b3fa2e2594a7cce8a02757d42d828286a018ff6a96802e558d0f727d28cb5c6914ea11628936075a90d6794f06a472962a42cfcf4ff3f525b8dcabf06d SHA512 0efeab980b82d8f775cd09c7a3a436f2420fd56abace8e5a3501922010cfad56eb891f877797a987020b5cb7fe8d473c43e1d27d65f8fa76e3b970dae33cb28d
+MISC metadata.xml 523 BLAKE2B a16bc006c6ab5dd0536e77a5bbe1681cc84c3aa5be50bdb567eccecab426688c751c0bec2c34bf221ec54f5ba772236a81a227067e426bb545755a129ebb6e41 SHA512 91f8748cb661e3e2ef7c027d02aecccbe23cce00c0da8486227d237ee6429e84ac9a8c2b32d4c518a4583d0643871b0c50c838d3c40004c0df7ae9c8ecefceed
diff --git a/app-office/texstudio/files/texstudio-4.6.3-quazip5.patch b/app-office/texstudio/files/texstudio-4.6.3-quazip5.patch
new file mode 100644
index 0000000..7541128
--- /dev/null
+++ b/app-office/texstudio/files/texstudio-4.6.3-quazip5.patch
@@ -0,0 +1,17 @@
+--- a/texstudio.pro 2023-11-27 11:17:21.022183360 +0100
++++ b/texstudio.pro 2023-11-27 11:18:29.812186975 +0100
+@@ -371,11 +371,9 @@
+ PKGCONFIG += quazip1-qt6
+ }
+ !versionGreaterOrEqual($$QT_VERSION, "6.0.0") {
+- message(System quazip5)
+- isEmpty(QUAZIP_LIB): QUAZIP_LIB = -lquazip5
+- isEmpty(QUAZIP_INCLUDE): QUAZIP_INCLUDE = $${PREFIX}/include/quazip5
+- INCLUDEPATH += $${QUAZIP_INCLUDE}
+- LIBS += $${QUAZIP_LIB}
++ message(System QuaZip)
++ CONFIG += link_pkgconfig
++ PKGCONFIG += quazip1-qt5
+ }
+ }
+
diff --git a/app-office/texstudio/metadata.xml b/app-office/texstudio/metadata.xml
new file mode 100644
index 0000000..66abc48
--- /dev/null
+++ b/app-office/texstudio/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://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="github">texstudio-org/texstudio</remote-id>
+ <changelog>https://github.com/texstudio-org/texstudio/blob/master/utilities/manual/CHANGELOG.txt</changelog>
+ </upstream>
+</pkgmetadata>
diff --git a/app-office/texstudio/texstudio-4.6.3.ebuild b/app-office/texstudio/texstudio-4.6.3.ebuild
new file mode 100644
index 0000000..b782a1a
--- /dev/null
+++ b/app-office/texstudio/texstudio-4.6.3.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop qmake-utils xdg
+
+MY_PV="${PV/_/}"
+DESCRIPTION="Free cross-platform LaTeX editor (fork from texmakerX)"
+HOMEPAGE="https://www.texstudio.org https://github.com/texstudio-org/texstudio"
+SRC_URI="https://github.com/texstudio-org/texstudio/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
+IUSE="video"
+
+DEPEND="
+ app-text/hunspell:=
+ app-text/poppler:=[qt5]
+ >=dev-libs/quazip-1.0:0=[qt5(+)]
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtconcurrent:5
+ dev-qt/qtdeclarative:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport: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-4.11.0 )
+"
+RDEPEND="
+ ${DEPEND}
+ app-text/ghostscript-gpl
+ app-text/psutils
+ media-libs/netpbm
+ virtual/latex-base
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-quazip5.patch
+)
+
+src_prepare() {
+ # TODO: find hunspell quazip utilities/poppler-data qtsingleapplication -delete || die
+ rm -r src/quazip || die
+
+ if use video; then
+ sed "/^PHONON/s:$:true:g" -i ${PN}.pro || die
+ fi
+
+ sed -e "/qtsingleapplication.pri/s/.*/CONFIG += qtsingleapplication/" \
+ -i ${PN}.pro || die
+ default
+}
+
+src_configure() {
+ eqmake5 USE_SYSTEM_HUNSPELL=1 USE_SYSTEM_QUAZIP=1 NO_TESTS=false
+}
+
+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
+
+ # We don't install licences per package
+ rm "${ED}"/usr/share/texstudio/COPYING || die
+}