mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
texmaker, new recipe (#4324)
This commit is contained in:
committed by
Jérôme Duval
parent
47c329b355
commit
db5f1a50b5
88
app-office/texmaker/patches/texmaker-5.0.3.patchset
Normal file
88
app-office/texmaker/patches/texmaker-5.0.3.patchset
Normal file
@@ -0,0 +1,88 @@
|
||||
From 04446c1bd04d49422e4c04b058aa8c3fc88315bf Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Wed, 30 Oct 2019 11:01:35 +0000
|
||||
Subject: Add Haiku to the platforms
|
||||
|
||||
|
||||
diff --git a/pdfium/core/fxcrt/include/fx_system.h b/pdfium/core/fxcrt/include/fx_system.h
|
||||
index f4fc2e8..5c9aa84 100644
|
||||
--- a/pdfium/core/fxcrt/include/fx_system.h
|
||||
+++ b/pdfium/core/fxcrt/include/fx_system.h
|
||||
@@ -23,6 +23,7 @@
|
||||
#define _FX_LINUX_DESKTOP_ 4
|
||||
#define _FX_MACOSX_ 7
|
||||
#define _FX_ANDROID_ 12
|
||||
+#define _FX_HAIKU_ 16
|
||||
|
||||
// _FXM_PLATFORM_ values;
|
||||
#define _FXM_PLATFORM_WINDOWS_ 1 // _FX_WIN32_DESKTOP_ or _FX_WIN64_DESKTOP_.
|
||||
@@ -46,6 +47,9 @@
|
||||
#elif defined(__APPLE__)
|
||||
#define _FX_OS_ _FX_MACOSX_
|
||||
#define _FXM_PLATFORM_ _FXM_PLATFORM_APPLE_
|
||||
+#elif defined(__HAIKU__)
|
||||
+#define _FX_OS_ _FX_HAIKU_
|
||||
+#define _FXM_PLATFORM_ _FXM_PLATFORM_LINUX_
|
||||
#endif
|
||||
#endif // _FX_OS_
|
||||
|
||||
--
|
||||
2.23.0
|
||||
|
||||
|
||||
From 1610bcbdcbe9c42088273c1cb0d1f6b23e7188ca Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Wed, 30 Oct 2019 11:02:46 +0000
|
||||
Subject: Haiku doesn't have d_type
|
||||
|
||||
|
||||
diff --git a/pdfium/core/fxcrt/fx_basic_util.cpp b/pdfium/core/fxcrt/fx_basic_util.cpp
|
||||
index abd84a8..65c0551 100644
|
||||
--- a/pdfium/core/fxcrt/fx_basic_util.cpp
|
||||
+++ b/pdfium/core/fxcrt/fx_basic_util.cpp
|
||||
@@ -199,7 +199,9 @@ FX_BOOL FX_GetNextFile(void* handle,
|
||||
return FALSE;
|
||||
}
|
||||
filename = de->d_name;
|
||||
+#ifndef __HAIKU__
|
||||
bFolder = de->d_type == DT_DIR;
|
||||
+#endif
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
@@ -229,7 +231,9 @@ FX_BOOL FX_GetNextFile(void* handle,
|
||||
return FALSE;
|
||||
}
|
||||
filename = CFX_WideString::FromLocal(de->d_name);
|
||||
+#ifndef __HAIKU__
|
||||
bFolder = de->d_type == DT_DIR;
|
||||
+#endif
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
--
|
||||
2.23.0
|
||||
|
||||
|
||||
From a57e6dea86fc92d48c66cdf907395927511538f2 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Wed, 30 Oct 2019 11:04:00 +0000
|
||||
Subject: Fix utilities.path
|
||||
|
||||
|
||||
diff --git a/texmaker.pro b/texmaker.pro
|
||||
index 9cffdcc..ff37035 100644
|
||||
--- a/texmaker.pro
|
||||
+++ b/texmaker.pro
|
||||
@@ -1064,7 +1064,7 @@ DEFINES += AUTHORIZE_LINUX_QSTYLES
|
||||
|
||||
|
||||
target.path = $${PREFIX}/bin
|
||||
-utilities.path = $${PREFIX}/share/texmaker
|
||||
+utilities.path = $${PREFIX}/data/texmaker
|
||||
desktop.path = $${DESKTOPDIR}
|
||||
icon.path = $${ICONDIR}
|
||||
#not for openSUSE :
|
||||
--
|
||||
2.23.0
|
||||
|
||||
70
app-office/texmaker/texmaker-5.0.3.recipe
Normal file
70
app-office/texmaker/texmaker-5.0.3.recipe
Normal file
@@ -0,0 +1,70 @@
|
||||
SUMMARY="A nice LaTeX-IDE"
|
||||
DESCRIPTION="Texmaker is a free, modern and cross-platform LaTeX editor for \
|
||||
linux, macosx, haiku and windows systems that integrates many tools needed to \
|
||||
develop documents with LaTeX, in just one application.
|
||||
Texmaker includes unicode support, spell checking, auto-completion, code \
|
||||
folding and a built-in pdf viewer with synctex support and continuous view \
|
||||
mode.
|
||||
Texmaker is easy to use and to configure."
|
||||
HOMEPAGE="https://xm1math.net/texmaker/"
|
||||
COPYRIGHT="2003-2019 Pascal Brachet"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://xm1math.net/texmaker/texmaker-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="6074dffa82c431f8727c39e046f62cb70f5fe1457f158b46306e8f490b4f326f"
|
||||
PATCHES="texmaker-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
texmaker$secondaryArchSuffix = $portVersion
|
||||
cmd:texmaker = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt5Concurrent$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix
|
||||
lib:libQt5Script$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libQt5Xml$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libQt5Concurrent$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix
|
||||
devel:libQt5Script$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libQt5Xml$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:qmake$secondaryArchSuffix >= 5
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
qmake texmaker.pro PREFIX=$prefix
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
# create a link to $appsDir and Deskbar
|
||||
mkdir -p $appsDir
|
||||
ln -s $prefix/bin/texmaker $appsDir/Texmaker
|
||||
addAppDeskbarSymlink $appsDir/Texmaker
|
||||
}
|
||||
Reference in New Issue
Block a user