From bbe7c54758ce73dd9fb9ceeeb2ecb7ac4a973875 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 29 Oct 2019 10:55:36 +0100 Subject: [PATCH] TEXstudio, new recipe (#4150) --- .../patches/texstudio-2.12.16.patchset | 45 ++++++++++ app-office/texstudio/texstudio-2.12.16.recipe | 83 +++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 app-office/texstudio/patches/texstudio-2.12.16.patchset create mode 100644 app-office/texstudio/texstudio-2.12.16.recipe diff --git a/app-office/texstudio/patches/texstudio-2.12.16.patchset b/app-office/texstudio/patches/texstudio-2.12.16.patchset new file mode 100644 index 000000000..968403a4a --- /dev/null +++ b/app-office/texstudio/patches/texstudio-2.12.16.patchset @@ -0,0 +1,45 @@ +From e0ca727f9e8e84b5dad2459da8554a0d6c5b57a6 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Sun, 1 Sep 2019 09:20:44 +0200 +Subject: Haiku doesn't support the -rdynamic flag + + +diff --git a/texstudio.pro b/texstudio.pro +index e360316..8a97f2b 100644 +--- a/texstudio.pro ++++ b/texstudio.pro +@@ -416,7 +416,7 @@ exists(./.git) { + !win32-msvc*: { + QMAKE_CXXFLAGS_DEBUG += -Wall -Wextra -Winit-self -Wmissing-include-dirs -Wtrigraphs -Wunused -Wunknown-pragmas -Wundef -Wpointer-arith -Wwrite-strings -Wempty-body -Wsign-compare -Waddress -Winline + QMAKE_CXXFLAGS += -std=c++0x +- !win32: QMAKE_LFLAGS += -rdynamic # option not supported by mingw ++ !win32:!haiku: QMAKE_LFLAGS += -rdynamic # option not supported by mingw + else { + QMAKE_CXXFLAGS += -gstabs -g + QMAKE_LFLAGS -= -Wl,-s +-- +2.23.0 + + +From 351e6f7df07e0477c10e7ced7e9fedfe6c47e43d Mon Sep 17 00:00:00 2001 +From: begasus +Date: Tue, 22 Oct 2019 17:17:25 +0200 +Subject: Add Haiku to supported OS's for default viewers + + +diff --git a/src/buildmanager.cpp b/src/buildmanager.cpp +index b69dc4b..fc136ef 100644 +--- a/src/buildmanager.cpp ++++ b/src/buildmanager.cpp +@@ -1196,7 +1196,7 @@ QString getCommandLineGhostscript() + return ""; + } + +-#elif defined(Q_WS_X11) || defined(Q_OS_LINUX) ++#elif defined(Q_WS_X11) || defined(Q_OS_LINUX) || defined(Q_OS_HAIKU) + + // xdvi %.dvi -sourceposition @:%.tex + // kdvi "file:%.dvi#src:@ %.tex" +-- +2.23.0 + diff --git a/app-office/texstudio/texstudio-2.12.16.recipe b/app-office/texstudio/texstudio-2.12.16.recipe new file mode 100644 index 000000000..ed31cd667 --- /dev/null +++ b/app-office/texstudio/texstudio-2.12.16.recipe @@ -0,0 +1,83 @@ +SUMMARY="LaTeX made comfortable" +DESCRIPTION="TeXstudio is an integrated writing environment for creating \ +LaTeX documents. Our goal is to make writing LaTeX as easy and comfortable as \ +possible. Therefore TeXstudio has numerous features like syntax-highlighting, \ +integrated viewer, reference checking and various assistants. " +HOMEPAGE="https://www.texstudio.org/" +COPYRIGHT="2019 Benito van der Zander" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://github.com/texstudio-org/texstudio/archive/$portVersion.tar.gz" +SOURCE_FILENAME="texstudio-$portVersion.tar.gz" +CHECKSUM_SHA256="a14b8912bfd15d982cfbe5f00deed37ca85fb6e38d3aa0c2dac23b4ecaab0984" +PATCHES="texstudio-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + texstudio$secondaryArchSuffix = $portVersion + cmd:texstudio = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libhunspell_1.7$secondaryArchSuffix + lib:libpoppler_qt5$secondaryArchSuffix + lib:libQt5Concurrent$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5DBus$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5PrintSupport$secondaryArchSuffix + lib:libQt5Sql$secondaryArchSuffix + lib:libQt5Svg$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + lib:libX11$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libGL$secondaryArchSuffix + devel:libhunspell_1.7$secondaryArchSuffix + devel:libpoppler_qt5$secondaryArchSuffix + devel:libQt5Concurrent$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + devel:libQt5DBus$secondaryArchSuffix + devel:libQt5Gui$secondaryArchSuffix + devel:libQt5PrintSupport$secondaryArchSuffix + devel:libQt5Sql$secondaryArchSuffix + devel:libQt5Svg$secondaryArchSuffix + devel:libQt5Widgets$secondaryArchSuffix + devel:libQt5Xml$secondaryArchSuffix + devel:libX11$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + cmd:g++$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:qmake$secondaryArchSuffix >= 5 + " + +BUILD() +{ + qmake texstudio.pro PREFIX=$prefix \ + DATADIR=$dataDir \ + USE_SYSTEM_HUNSPELL=1 + make $jobArgs +} + +INSTALL() +{ + make install + # create a link to $appsDir and Deskbar + mkdir -p $appsDir + ln -s $prefix/bin/texstudio $appsDir/TeXstudio + addAppDeskbarSymlink $appsDir/TeXstudio + # we are not Linux + rm -rf $dataDir/{appdata,applications,icons} +}