mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
graphics/klatexformula:
- Update to 3.2.8 - Add dependence on help2man and install man pages - Fix build with clang-3.4
This commit is contained in:
parent
6ed528f89a
commit
f7670aefe0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351527
4 changed files with 80 additions and 7 deletions
|
@ -1,23 +1,26 @@
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= klatexformula
|
PORTNAME= klatexformula
|
||||||
PORTVERSION= 3.2.7
|
PORTVERSION= 3.2.8
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= makc@FreeBSD.org
|
MAINTAINER= makc@FreeBSD.org
|
||||||
COMMENT= Convert LaTeX formula to image
|
COMMENT= Convert LaTeX formula to image
|
||||||
|
|
||||||
|
BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man
|
||||||
|
|
||||||
USES= cmake:outsource shared-mime-info
|
USES= cmake:outsource shared-mime-info
|
||||||
USE_QT4= gui xml dbus designer_build linguist_build \
|
USE_QT4= gui xml dbus designer_build linguist_build \
|
||||||
qmake_build moc_build rcc_build uic_build
|
qmake_build moc_build rcc_build uic_build
|
||||||
USE_TEX= latex dvipsk
|
USE_TEX= latex dvipsk
|
||||||
HAS_CONFIGURE= yes
|
USE_GHOSTSCRIPT_RUN= yes
|
||||||
USE_GHOSTSCRIPT= yes
|
|
||||||
CMAKE_ARGS= -DQT_QMAKE_EXECUTABLE_FINDQT=${QMAKE} \
|
CMAKE_ARGS= -DQT_QMAKE_EXECUTABLE_FINDQT=${QMAKE} \
|
||||||
-DKLF_BUILD_KTEXTEDITORPLUGIN=off \
|
-DKLF_BUILD_KTEXTEDITORPLUGIN=off \
|
||||||
-DKLF_INSTALL_POST_UPDATEMIMEDATABASE=off
|
-DKLF_INSTALL_POST_UPDATEMIMEDATABASE=off \
|
||||||
|
-DKLF_INSTALL_SHARE_MAN1_DIR=man/man1
|
||||||
CXXFLAGS= -I${LOCALBASE}/include
|
CXXFLAGS= -I${LOCALBASE}/include
|
||||||
|
MAKE_ENV= HOME=/dev/null
|
||||||
|
|
||||||
PLIST_SUB= VERSION=${PORTVERSION}
|
PLIST_SUB= VERSION=${PORTVERSION}
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SHA256 (klatexformula-3.2.7.tar.gz) = 828fec5c94f97f6d6c13247c48db294fed7554caf9d52d45cfbf3488c3b84c0b
|
SHA256 (klatexformula-3.2.8.tar.gz) = fc5dae18785557f274024c4ed6f09c425a3f7700def5dc93de94ab82f5896186
|
||||||
SIZE (klatexformula-3.2.7.tar.gz) = 3237476
|
SIZE (klatexformula-3.2.8.tar.gz) = 3233051
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- ./src/main.cpp.orig 2013-06-23 10:52:34.000000000 +0000
|
--- ./src/main.cpp.orig 2013-06-23 10:52:34.000000000 +0000
|
||||||
+++ ./src/main.cpp 2013-10-30 17:20:58.186667121 +0000
|
+++ ./src/main.cpp 2014-04-05 20:24:47.184482481 +0000
|
||||||
@@ -241,8 +241,8 @@
|
@@ -241,8 +241,8 @@
|
||||||
fprintf(ftty, "Interrupt\n");
|
fprintf(ftty, "Interrupt\n");
|
||||||
if (ftty != stderr) fprintf(stderr, "*** Interrupt\n");
|
if (ftty != stderr) fprintf(stderr, "*** Interrupt\n");
|
||||||
|
@ -11,3 +11,71 @@
|
||||||
time(&curtime);
|
time(&curtime);
|
||||||
bool isInsisted = (curtime - last_sigint_time <= 2); // re-pressed Ctrl-C after less than 2 secs
|
bool isInsisted = (curtime - last_sigint_time <= 2); // re-pressed Ctrl-C after less than 2 secs
|
||||||
if (!isInsisted && qApp != NULL) {
|
if (!isInsisted && qApp != NULL) {
|
||||||
|
@@ -446,6 +446,30 @@
|
||||||
|
KLFBackend::saveOutputToFile(klfoutput, f_output, format);
|
||||||
|
}
|
||||||
|
|
||||||
|
+void dumpDir(const QDir& d, int indent = 0)
|
||||||
|
+{
|
||||||
|
+ char sindent[] = " ";
|
||||||
|
+ uint nindent = indent*2; // 2 spaces per indentation
|
||||||
|
+ if (nindent < strlen(sindent))
|
||||||
|
+ sindent[nindent] = '\0';
|
||||||
|
+
|
||||||
|
+ QStringList dchildren = d.entryList(QDir::Dirs);
|
||||||
|
+
|
||||||
|
+ int k;
|
||||||
|
+ for (k = 0; k < dchildren.size(); ++k) {
|
||||||
|
+ // skip system ":/trolltech"
|
||||||
|
+ if (indent == 0 && dchildren[k] == "trolltech")
|
||||||
|
+ continue;
|
||||||
|
+ qDebug("%s%s/", sindent, qPrintable(dchildren[k]));
|
||||||
|
+ dumpDir(QDir(d.absoluteFilePath(dchildren[k])), indent+1);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ QStringList fchildren = d.entryList(QDir::Files);
|
||||||
|
+ for (k = 0; k < fchildren.size(); ++k) {
|
||||||
|
+ qDebug("%s%s", sindent, qPrintable(fchildren[k]));
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void main_load_extra_resources()
|
||||||
|
{
|
||||||
|
KLF_DEBUG_BLOCK(KLF_FUNC_NAME) ;
|
||||||
|
@@ -518,36 +542,11 @@
|
||||||
|
// set the global "can-import" flag
|
||||||
|
klf_addons_canimport = klfsettings_can_import;
|
||||||
|
|
||||||
|
- void dumpDir(const QDir&, int = 0);
|
||||||
|
klfDbg( "dump of :/ :" ) ;
|
||||||
|
dumpDir(QDir(":/"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-void dumpDir(const QDir& d, int indent = 0)
|
||||||
|
-{
|
||||||
|
- char sindent[] = " ";
|
||||||
|
- uint nindent = indent*2; // 2 spaces per indentation
|
||||||
|
- if (nindent < strlen(sindent))
|
||||||
|
- sindent[nindent] = '\0';
|
||||||
|
-
|
||||||
|
- QStringList dchildren = d.entryList(QDir::Dirs);
|
||||||
|
-
|
||||||
|
- int k;
|
||||||
|
- for (k = 0; k < dchildren.size(); ++k) {
|
||||||
|
- // skip system ":/trolltech"
|
||||||
|
- if (indent == 0 && dchildren[k] == "trolltech")
|
||||||
|
- continue;
|
||||||
|
- qDebug("%s%s/", sindent, qPrintable(dchildren[k]));
|
||||||
|
- dumpDir(QDir(d.absoluteFilePath(dchildren[k])), indent+1);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- QStringList fchildren = d.entryList(QDir::Files);
|
||||||
|
- for (k = 0; k < fchildren.size(); ++k) {
|
||||||
|
- qDebug("%s%s", sindent, qPrintable(fchildren[k]));
|
||||||
|
- }
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
/** \internal */
|
||||||
|
class VersionCompareWithPrefixGreaterThan {
|
||||||
|
int prefixLen;
|
||||||
|
|
|
@ -36,6 +36,8 @@ include/klftools/qtcolortriangle.h
|
||||||
lib/libklfapp.a
|
lib/libklfapp.a
|
||||||
lib/libklfbackend.a
|
lib/libklfbackend.a
|
||||||
lib/libklftools.a
|
lib/libklftools.a
|
||||||
|
man/man1/klatexformula.1.gz
|
||||||
|
man/man1/klatexformula_cmdl.1.gz
|
||||||
share/applications/klatexformula.desktop
|
share/applications/klatexformula.desktop
|
||||||
share/klatexformula/rccresources/klfbaseplugins-%%VERSION%%.rcc
|
share/klatexformula/rccresources/klfbaseplugins-%%VERSION%%.rcc
|
||||||
share/mime/packages/klatexformula-mime.xml
|
share/mime/packages/klatexformula-mime.xml
|
||||||
|
|
Loading…
Add table
Reference in a new issue