aboutsummaryrefslogtreecommitdiff
path: root/textproc/sigil
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-05-10 17:46:00 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-05-10 17:46:00 +0000
commit3599372189775ef788a25e218a1036fbb92825e4 (patch)
treec6d3681aa3bd2a95d849b56bb9ce011c8aef1f23 /textproc/sigil
parent6918d8cc73bf7859769e23789104f2772cab0d28 (diff)
downloadports-3599372189775ef788a25e218a1036fbb92825e4.tar.gz
ports-3599372189775ef788a25e218a1036fbb92825e4.zip
textproc/sigil: update to 0.8.6 and improve
- Convert to system minizip & utf8-cpp, which are newer - Prevent accidentally mixing bundled/system headers - Prefer ninja over make(1) to max out CPU during build - Turn off asserts in bundled tidyLib - Check actual compiler when disabling PCH and fix cmake warning - Drop some unused RUN_DEPENDS (qmake, moc, linguist*) - Sort LIB_DEPENDS according to port origin - Require devel/pcre with pcre16 support - Pet portlint (DATADIR, makepatch) Changes: https://github.com/user-none/Sigil/blob/0.8.6/ChangeLog.txt
Notes
Notes: svn path=/head/; revision=385970
Diffstat (limited to 'textproc/sigil')
-rw-r--r--textproc/sigil/Makefile44
-rw-r--r--textproc/sigil/distinfo4
-rw-r--r--textproc/sigil/files/patch-CMakeLists14
-rw-r--r--textproc/sigil/files/patch-src_Sigil_CMakeLists.txt6
-rw-r--r--textproc/sigil/files/patch-src_minizip_ioapi.h17
-rw-r--r--textproc/sigil/pkg-plist112
6 files changed, 109 insertions, 88 deletions
diff --git a/textproc/sigil/Makefile b/textproc/sigil/Makefile
index f9036a25be51..f4118f69ad79 100644
--- a/textproc/sigil/Makefile
+++ b/textproc/sigil/Makefile
@@ -2,35 +2,57 @@
# $FreeBSD$
PORTNAME= sigil
-PORTVERSION= 0.6.0
-PORTREVISION= 5
+PORTVERSION= 0.8.6
CATEGORIES= textproc
MAINTAINER= ports@FreeBSD.org
COMMENT= WYSIWYG ePub editor
-LICENSE= GPLv3
+LICENSE= GPLv3 # or any later version
-LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs \
- libxerces-c.so:${PORTSDIR}/textproc/xerces-c3 \
+BUILD_DEPENDS= ${LOCALBASE}/include/utf8.h:${PORTSDIR}/devel/utf8cpp
+LIB_DEPENDS= libminizip.so:${PORTSDIR}/archivers/minizip \
+ libboost_thread.so:${PORTSDIR}/devel/boost-libs \
+ libpcre16.so:${PORTSDIR}/devel/pcre \
libhunspell-1.3.so:${PORTSDIR}/textproc/hunspell \
- libpcre.so:${PORTSDIR}/devel/pcre
+ libxerces-c.so:${PORTSDIR}/textproc/xerces-c3
USE_GITHUB= yes
GH_ACCOUNT= user-none
GH_PROJECT= Sigil
-USES= cmake compiler desktop-file-utils pkgconfig
-USE_QT4= qmake gui svg webkit xml moc uic rcc imageformats linguist
+USES= cmake compiler:c++11-lib desktop-file-utils dos2unix \
+ ninja pkgconfig python:run shebangfix
+USE_QT5= qmake_build buildtools_build linguisttools_build \
+ concurrent gui network printsupport svg webkit \
+ widgets xml xmlpatterns
+EXCLUDE= BoostParts Xerces hunspell minizip pcre utf8-cpp zlib
+EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude src/,}
+DOS2UNIX_FILES= src/FlightCrew/CMakeLists.txt
+SHEBANG_FILES= src/Sigil/Resource_Files/plugin_launchers/python/*.py
+python_OLD_CMD= /usr/bin/env python
+
+OPTIONS_DEFINE= DEBUG
+DEBUG_CFLAGS_OFF= -DNDEBUG # tidyLib
.include <bsd.port.pre.mk>
post-patch:
- @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/CMakeLists.txt
-.if ${COMPILER_TYPE} == gcc
+ @${REINPLACE_CMD} -e 's|../utf8-cpp|${LOCALBASE}/include|' \
+ ${WRKSRC}/src/FlightCrew/CMakeLists.txt
+# Gentoo: sigil tries to copy non-needed qt libs for deb package, safe
+# to ignore this completely
+ @${REINPLACE_CMD} -e '/set( QT_LIBS/d' \
+ ${WRKSRC}/src/Sigil/CMakeLists.txt
+.if ${CHOSEN_COMPILER_TYPE} == gcc
# GCC is broken with PCH: https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html
- @${REINPLACE_CMD} -e '/precompiled_header/d' \
+ @${REINPLACE_CMD} -i .gch.bak \
+ -e '/precompiled_header/d' \
+ -e '/add_depend.*PCH/d' \
${WRKSRC}/src/FlightCrew/CMakeLists.txt
.endif
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${DATADIR}/${PORTNAME}-real
+
.include <bsd.port.post.mk>
diff --git a/textproc/sigil/distinfo b/textproc/sigil/distinfo
index 518b8b7fba57..c4b7bc33c8fa 100644
--- a/textproc/sigil/distinfo
+++ b/textproc/sigil/distinfo
@@ -1,2 +1,2 @@
-SHA256 (user-none-Sigil-0.6.0_GH0.tar.gz) = 1ed9f614428c67e0418a733997cb4ca039e380fe657d96fabe456314b6ac470a
-SIZE (user-none-Sigil-0.6.0_GH0.tar.gz) = 10361000
+SHA256 (user-none-Sigil-0.8.6_GH0.tar.gz) = 5f89b47abbf0a7befa4e776083db5426456f8ef1ef50bd168dc98d621fb2ad26
+SIZE (user-none-Sigil-0.8.6_GH0.tar.gz) = 19394568
diff --git a/textproc/sigil/files/patch-CMakeLists b/textproc/sigil/files/patch-CMakeLists
deleted file mode 100644
index 7f530ec130c0..000000000000
--- a/textproc/sigil/files/patch-CMakeLists
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -ruN /tmp/Sigil-0.5.3-Code/src/CMakeLists.txt ./src/CMakeLists.txt
-*** ./CMakeLists.txt.orig 2012-02-28 10:17:24.000000000 +1300
---- ./CMakeLists.txt 2012-02-28 10:17:51.000000000 +1300
-***************
-*** 22,27 ****
---- 22,29 ----
- set( SIGIL_REVISION_VERSION 3 )
- set( SIGIL_FULL_VERSION ${SIGIL_MAJOR_VERSION}.${SIGIL_MINOR_VERSION}.${SIGIL_REVISION_VERSION} )
-
-+ link_directories (%%LOCALBASE%%/lib)
-+
- # Check if platform is 64 bit
- if( NOT APPLE )
- if( CMAKE_SIZEOF_VOID_P EQUAL 4 )
diff --git a/textproc/sigil/files/patch-src_Sigil_CMakeLists.txt b/textproc/sigil/files/patch-src_Sigil_CMakeLists.txt
index f0a03b62fc0a..48049a324620 100644
--- a/textproc/sigil/files/patch-src_Sigil_CMakeLists.txt
+++ b/textproc/sigil/files/patch-src_Sigil_CMakeLists.txt
@@ -1,9 +1,9 @@
See ports/180350: if archivers/libzip is installed there's a conflict because
/usr/local/include ends up being included before the minizip directory inside
the port.
---- src/Sigil/CMakeLists.txt.orig 2012-10-27 20:24:40.000000000 +0300
-+++ src/Sigil/CMakeLists.txt 2014-01-18 19:08:50.000000000 +0200
-@@ -594,11 +594,11 @@
+--- src/Sigil/CMakeLists.txt.orig 2015-04-12 15:08:13 UTC
++++ src/Sigil/CMakeLists.txt
+@@ -606,11 +606,11 @@ include_directories( BEFORE
${HUNSPELL_INCLUDE_DIRS}
${PCRE_INCLUDE_DIRS}
${tidyLib_SOURCE_DIR}
diff --git a/textproc/sigil/files/patch-src_minizip_ioapi.h b/textproc/sigil/files/patch-src_minizip_ioapi.h
deleted file mode 100644
index b383ef5c9627..000000000000
--- a/textproc/sigil/files/patch-src_minizip_ioapi.h
+++ /dev/null
@@ -1,17 +0,0 @@
---- src/minizip/ioapi.h.orig 2012-10-27 20:24:40.000000000 +0400
-+++ src/minizip/ioapi.h 2012-11-02 19:04:46.652602414 +0400
-@@ -44,7 +44,13 @@
- #include <stdlib.h>
- #include "zlib.h"
-
--#if defined(USE_FILE32API)
-+#if defined(__FreeBSD__)
-+ #define FILE_FUNCTIONS_64B_BY_DEFAULT
-+#else
-+ #undef FILE_FUNCTIONS_64B_BY_DEFAULT
-+#endif
-+
-+#if defined(USE_FILE32API) || defined(FILE_FUNCTIONS_64B_BY_DEFAULT)
- #define fopen64 fopen
- #define ftello64 ftell
- #define fseeko64 fseek
diff --git a/textproc/sigil/pkg-plist b/textproc/sigil/pkg-plist
index 68bcbf65a92b..ff87c9749709 100644
--- a/textproc/sigil/pkg-plist
+++ b/textproc/sigil/pkg-plist
@@ -1,44 +1,74 @@
bin/sigil
share/applications/sigil.desktop
share/pixmaps/sigil.png
-share/sigil/examples/clip_entries.ini
-share/sigil/examples/search_entries.ini
-share/sigil/hunspell_dictionaries/About.txt
-share/sigil/hunspell_dictionaries/de_DE.aff
-share/sigil/hunspell_dictionaries/de_DE.dic
-share/sigil/hunspell_dictionaries/en_GB.aff
-share/sigil/hunspell_dictionaries/en_GB.dic
-share/sigil/hunspell_dictionaries/en_US.aff
-share/sigil/hunspell_dictionaries/en_US.dic
-share/sigil/hunspell_dictionaries/es.aff
-share/sigil/hunspell_dictionaries/es.dic
-share/sigil/hunspell_dictionaries/fr.aff
-share/sigil/hunspell_dictionaries/fr.dic
-share/sigil/hunspell_dictionaries/hyph_de_DE.dic
-share/sigil/hunspell_dictionaries/hyph_en_GB.dic
-share/sigil/hunspell_dictionaries/hyph_en_US.dic
-share/sigil/hunspell_dictionaries/hyph_es.dic
-share/sigil/hunspell_dictionaries/hyph_fr.dic
-share/sigil/translations/sigil_cs.qm
-share/sigil/translations/sigil_da_DK.qm
-share/sigil/translations/sigil_de.qm
-share/sigil/translations/sigil_el_GR.qm
-share/sigil/translations/sigil_en.qm
-share/sigil/translations/sigil_es_ES.qm
-share/sigil/translations/sigil_fr.qm
-share/sigil/translations/sigil_gl.qm
-share/sigil/translations/sigil_id_ID.qm
-share/sigil/translations/sigil_it.qm
-share/sigil/translations/sigil_ja.qm
-share/sigil/translations/sigil_km.qm
-share/sigil/translations/sigil_ko.qm
-share/sigil/translations/sigil_nl.qm
-share/sigil/translations/sigil_pl.qm
-share/sigil/translations/sigil_pt_BR.qm
-share/sigil/translations/sigil_ro_RO.qm
-share/sigil/translations/sigil_ru.qm
-share/sigil/translations/sigil_sk.qm
-share/sigil/translations/sigil_tr_TR.qm
-share/sigil/translations/sigil_ug.qm
-share/sigil/translations/sigil_zh_CN.qm
-share/sigil/translations/sigil_zh_TW.qm
+%%DATADIR%%/examples/clip_entries.ini
+%%DATADIR%%/examples/search_entries.ini
+%%DATADIR%%/hunspell_dictionaries/About.txt
+%%DATADIR%%/hunspell_dictionaries/de_DE.aff
+%%DATADIR%%/hunspell_dictionaries/de_DE.dic
+%%DATADIR%%/hunspell_dictionaries/en_GB.aff
+%%DATADIR%%/hunspell_dictionaries/en_GB.dic
+%%DATADIR%%/hunspell_dictionaries/en_US.aff
+%%DATADIR%%/hunspell_dictionaries/en_US.dic
+%%DATADIR%%/hunspell_dictionaries/es.aff
+%%DATADIR%%/hunspell_dictionaries/es.dic
+%%DATADIR%%/hunspell_dictionaries/fr.aff
+%%DATADIR%%/hunspell_dictionaries/fr.dic
+%%DATADIR%%/hunspell_dictionaries/hyph_de_DE.dic
+%%DATADIR%%/hunspell_dictionaries/hyph_en_GB.dic
+%%DATADIR%%/hunspell_dictionaries/hyph_en_US.dic
+%%DATADIR%%/hunspell_dictionaries/hyph_es.dic
+%%DATADIR%%/hunspell_dictionaries/hyph_fr.dic
+%%DATADIR%%/plugin_launchers/python/bookcontainer.py
+%%DATADIR%%/plugin_launchers/python/compatibility_utils.py
+%%DATADIR%%/plugin_launchers/python/epub_utils.py
+%%DATADIR%%/plugin_launchers/python/inputcontainer.py
+%%DATADIR%%/plugin_launchers/python/launcher.py
+%%DATADIR%%/plugin_launchers/python/opf_parser.py
+%%DATADIR%%/plugin_launchers/python/outputcontainer.py
+%%DATADIR%%/plugin_launchers/python/preferences.py
+%%DATADIR%%/plugin_launchers/python/quickparser.py
+%%DATADIR%%/plugin_launchers/python/unipath.py
+%%DATADIR%%/plugin_launchers/python/validationcontainer.py
+%%DATADIR%%/plugin_launchers/python/validationresult.py
+%%DATADIR%%/plugin_launchers/python/wrapper.py
+%%DATADIR%%/sigil-real
+%%DATADIR%%/translations/sigil_bg.qm
+%%DATADIR%%/translations/sigil_ca.qm
+%%DATADIR%%/translations/sigil_cmn.qm
+%%DATADIR%%/translations/sigil_cs.qm
+%%DATADIR%%/translations/sigil_da_DK.qm
+%%DATADIR%%/translations/sigil_de.qm
+%%DATADIR%%/translations/sigil_el_GR.qm
+%%DATADIR%%/translations/sigil_en.qm
+%%DATADIR%%/translations/sigil_es.qm
+%%DATADIR%%/translations/sigil_es_419.qm
+%%DATADIR%%/translations/sigil_fi.qm
+%%DATADIR%%/translations/sigil_fr.qm
+%%DATADIR%%/translations/sigil_gl.qm
+%%DATADIR%%/translations/sigil_he.qm
+%%DATADIR%%/translations/sigil_hu_HU.qm
+%%DATADIR%%/translations/sigil_id_ID.qm
+%%DATADIR%%/translations/sigil_is.qm
+%%DATADIR%%/translations/sigil_it.qm
+%%DATADIR%%/translations/sigil_ja.qm
+%%DATADIR%%/translations/sigil_kk.qm
+%%DATADIR%%/translations/sigil_km.qm
+%%DATADIR%%/translations/sigil_ko.qm
+%%DATADIR%%/translations/sigil_lv_LV.qm
+%%DATADIR%%/translations/sigil_nl.qm
+%%DATADIR%%/translations/sigil_pl.qm
+%%DATADIR%%/translations/sigil_pt.qm
+%%DATADIR%%/translations/sigil_pt_BR.qm
+%%DATADIR%%/translations/sigil_ro_RO.qm
+%%DATADIR%%/translations/sigil_ru.qm
+%%DATADIR%%/translations/sigil_sk.qm
+%%DATADIR%%/translations/sigil_sv.qm
+%%DATADIR%%/translations/sigil_tr_TR.qm
+%%DATADIR%%/translations/sigil_ug.qm
+%%DATADIR%%/translations/sigil_uk.qm
+%%DATADIR%%/translations/sigil_uk_UA.qm
+%%DATADIR%%/translations/sigil_vi.qm
+%%DATADIR%%/translations/sigil_vi_VN.qm
+%%DATADIR%%/translations/sigil_zh_CN.qm
+%%DATADIR%%/translations/sigil_zh_TW.qm