mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
TEXstudio, new recipe (#4150)
This commit is contained in:
committed by
Jérôme Duval
parent
0764c39f13
commit
bbe7c54758
45
app-office/texstudio/patches/texstudio-2.12.16.patchset
Normal file
45
app-office/texstudio/patches/texstudio-2.12.16.patchset
Normal file
@@ -0,0 +1,45 @@
|
||||
From e0ca727f9e8e84b5dad2459da8554a0d6c5b57a6 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
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 <begasus@gmail.com>
|
||||
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
|
||||
|
||||
83
app-office/texstudio/texstudio-2.12.16.recipe
Normal file
83
app-office/texstudio/texstudio-2.12.16.recipe
Normal file
@@ -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}
|
||||
}
|
||||
Reference in New Issue
Block a user