summaryrefslogtreecommitdiff
path: root/graphics/ipe
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ipe')
-rw-r--r--graphics/ipe/Makefile55
-rw-r--r--graphics/ipe/distinfo6
-rw-r--r--graphics/ipe/pkg-plist3
3 files changed, 49 insertions, 15 deletions
diff --git a/graphics/ipe/Makefile b/graphics/ipe/Makefile
index 3cf876de2381..64157dfc7e34 100644
--- a/graphics/ipe/Makefile
+++ b/graphics/ipe/Makefile
@@ -1,9 +1,8 @@
PORTNAME= ipe
-PORTVERSION= 7.2.23
+DISTVERSION= 7.2.27
DISTVERSIONSUFFIX= -src
-PORTREVISION= 4
CATEGORIES= graphics
-MASTER_SITES= https://dl.bintray.com/otfried/generic/ipe/${PORTVERSION:R}/
+MASTER_SITES= https://github.com/otfried/ipe/releases/download/v${DISTVERSION}/
MAINTAINER= bofh@FreeBSD.org
COMMENT= Extensible vector graphics editor with LaTeX support
@@ -11,20 +10,19 @@ WWW= https://ipe.otfried.org/
LICENSE= GPLv3+
-RUN_DEPENDS= xdg-open:devel/xdg-utils
LIB_DEPENDS= libcurl.so:ftp/curl \
libfreetype.so:print/freetype2 \
libgsl.so:math/gsl \
libpng.so:graphics/png \
libspiro.so:graphics/libspiro
+RUN_DEPENDS= xdg-open:devel/xdg-utils
-USES= compiler:c++11-lib gmake gnome jpeg lua:52 pkgconfig shebangfix qt:5 tex
+USES= compiler:c++11-lib gmake gnome jpeg lua:54 pkgconfig shebangfix qt:6 tex
USE_GNOME= cairo
USE_LDCONFIG= yes
-USE_QT= buildtools:build core gui qmake:build widgets
+USE_QT= base
USE_TEX= pdftex
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
SHEBANG_FILES= ${WRKSRC}/ipecurl/ipecurl.sh
MAKE_ENV= DL_LIBS="" \
@@ -39,19 +37,54 @@ MAKE_ENV= DL_LIBS="" \
JPEG_CFLAGS="-I${LOCALBASE}/include" \
JPEG_LIBS="-L${LOCALBASE}/lib -ljpeg" \
LUA_PACKAGE="lua-${LUA_VER}" \
- MOC="${MOC}"
+ MOC="${MOC}" \
+ IPE_NO_SPELLCHECK="1"
-PLIST_SUB= VERSION="${PORTVERSION}"
-
-PORTDOCS= *
+CPPFLAGS+= -I${LOCALBASE}/${QT_INCDIR_REL} \
+ -I${LOCALBASE}/include/cairo \
+ -I${LUA_INCDIR} \
+ -I${WRKSRC}/include \
+ -I${WRKSRC}/ipecairo \
+ -I${WRKSRC}/ipecanvas
DESKTOP_ENTRIES="Ipe" "" "ipe" "ipe" "" ""
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}/src
+
+PLIST_SUB= VERSION="${DISTVERSION}"
+PORTDOCS= *
+
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|\([[:blank:]]\)=|\1?=|' ${WRKSRC}/config.mak
+ @${REINPLACE_CMD} -e 's|<QWidget>|<QtWidgets/QWidget>|' \
+ ${WRKSRC}/ipeui/ipeui_common.h \
+ ${WRKSRC}/ipecanvas/ipepdfview_qt.h
+ @${REINPLACE_CMD} -e 's|<QDialog>|<QtWidgets/QDialog>|; \
+ s|<QGridLayout>|<QtWidgets/QGridLayout>|; \
+ s|<QMenu>|<QtWidgets/QMenu>|; \
+ s|<QApplication>|<QtWidgets/QApplication>|; \
+ s|<QAction>|<QtGui/QAction>|' \
+ ${WRKSRC}/ipeui/ipeui_qt.h
+ @${REINPLACE_CMD} -e 's|<QApplication>|<QtWidgets/QApplication>|; \
+ s|<QCloseEvent>|<QtGui/QCloseEvent>|; \
+ s|<QColorDialog>|<QtWidgets/QColorDialog>|; \
+ s|<QComboBox>|<QtWidgets/QComboBox>|; \
+ s|<QCheckBox>|<QtWidgets/QCheckBox>|' \
+ ${WRKSRC}/ipeui/ipeui_qt.cpp
+ @${REINPLACE_CMD} -e 's|<QListWidget>|<QtWidgets/QListWidget>|' \
+ ${WRKSRC}/ipecanvas/ipeselector_qt.h
+ @${REINPLACE_CMD} -e 's|<QLabel>|<QtWidgets/QLabel>|; \
+ s|<QTime>|<QtCore/QTime>|; \
+ s|<QTimer>|<QtCore/QTimer>|' \
+ ${WRKSRC}/ipepresenter/timelabel_qt.h
+ @${REINPLACE_CMD} -e 's|<QInputDialog>|<QtWidgets/QInputDialog>|' \
+ ${WRKSRC}/ipepresenter/timelabel_qt.cpp
+ @${REINPLACE_CMD} -e 's|<QMainWindow>|<QtWidgets/QMainWindow>|; \
+ s|<QPlainTextEdit>|<QtWidgets/QPlainTextEdit>|' \
+ ${WRKSRC}/ipepresenter/ipepresenter_qt.h
post-install:
@${LN} -sf ${DATADIR}/${PORTVERSION}/ipe.png \
diff --git a/graphics/ipe/distinfo b/graphics/ipe/distinfo
index 1c2a939c4753..4d10b82ebb68 100644
--- a/graphics/ipe/distinfo
+++ b/graphics/ipe/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1611709798
-SHA256 (ipe-7.2.23-src.tar.gz) = a19ba29822e63fc7c12c3b85ca5bb58f9ee72fdf566e148af79206b5dc1f757b
-SIZE (ipe-7.2.23-src.tar.gz) = 1030938
+TIMESTAMP = 1757156157
+SHA256 (ipe-7.2.27-src.tar.gz) = c31fdb672f2407b76966ccf9f0179119d4b50736eb22869f80498bc8583bc195
+SIZE (ipe-7.2.27-src.tar.gz) = 1036884
diff --git a/graphics/ipe/pkg-plist b/graphics/ipe/pkg-plist
index 5a74f9513ae7..1819a5415694 100644
--- a/graphics/ipe/pkg-plist
+++ b/graphics/ipe/pkg-plist
@@ -4,6 +4,7 @@ bin/ipe6upgrade
bin/ipeextract
bin/ipepresenter
bin/iperender
+bin/iperender-par
bin/ipescript
bin/ipetoipe
include/ipeattributes.h
@@ -24,7 +25,6 @@ include/ipelatex.h
include/ipelet.h
include/ipelib.h
include/ipeobject.h
-include/ipeosx.h
include/ipepage.h
include/ipepainter.h
include/ipepath.h
@@ -83,6 +83,7 @@ share/man/man1/ipetoipe.1.gz
%%DATADIR%%/%%VERSION%%/scripts/add-style.lua
%%DATADIR%%/%%VERSION%%/scripts/onepage.lua
%%DATADIR%%/%%VERSION%%/scripts/page-labels.lua
+%%DATADIR%%/%%VERSION%%/scripts/scratchpad.lua
%%DATADIR%%/%%VERSION%%/scripts/update-master.lua
%%DATADIR%%/%%VERSION%%/scripts/update-styles.lua
%%DATADIR%%/%%VERSION%%/styles/arabic.isy