View | Details | Raw Unified | Return to bug 205225
Collapse All | Expand All

(-)textproc/sigil/Makefile (-38 / +18 lines)
Lines 2-57 Link Here
2
# $FreeBSD: head/textproc/sigil/Makefile 399684 2015-10-19 14:50:52Z amdmi3 $
2
# $FreeBSD: head/textproc/sigil/Makefile 399684 2015-10-19 14:50:52Z amdmi3 $
3
3
4
PORTNAME=	sigil
4
PORTNAME=	sigil
5
PORTVERSION=	0.8.6
5
PORTVERSION=	0.9.1
6
CATEGORIES=	textproc
6
CATEGORIES=	textproc
7
MASTER_SITES=	GH
7
8
8
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
9
COMMENT=	WYSIWYG ePub editor
10
COMMENT=	WYSIWYG ePub editor
10
11
11
LICENSE=	GPLv3 # or any later version
12
LICENSE=	GPLv3 # or any later version
12
13
13
BUILD_DEPENDS=	${LOCALBASE}/include/utf8.h:${PORTSDIR}/devel/utf8cpp
14
LIB_DEPENDS=	libminizip.so:${PORTSDIR}/archivers/minizip \
14
LIB_DEPENDS=	libminizip.so:${PORTSDIR}/archivers/minizip \
15
		libboost_thread.so:${PORTSDIR}/devel/boost-libs \
15
		libpcre.so:${PORTSDIR}/devel/pcre \
16
		libpcre16.so:${PORTSDIR}/devel/pcre \
16
		libhunspell-1.3.so:${PORTSDIR}/textproc/hunspell
17
		libhunspell-1.3.so:${PORTSDIR}/textproc/hunspell \
18
		libxerces-c.so:${PORTSDIR}/textproc/xerces-c3
19
17
20
USE_GITHUB=	yes
18
USE_GITHUB=	yes
21
GH_ACCOUNT=	user-none
19
GH_ACCOUNT=	Sigil-Ebook
22
GH_PROJECT=	Sigil
20
GH_PROJECT=	Sigil
23
21
24
USES=		cmake compiler:c++11-lib desktop-file-utils dos2unix \
22
USES=		cmake compiler:c++11-lib desktop-file-utils pkgconfig \
25
		ninja pkgconfig python:run shebangfix
23
		python:3 shebangfix
26
USE_QT5=	qmake_build buildtools_build linguisttools_build \
24
SHEBANG_FILES=	src/Resource_Files/plugin_launchers/python/*.py \
27
		concurrent gui network printsupport svg webkit \
25
		src/Resource_Files/python3lib/*.py
28
		widgets xml xmlpatterns
26
USE_QT5=	concurrent gui network printsupport svg webkit widgets \
29
EXCLUDE=	BoostParts Xerces hunspell minizip pcre utf8-cpp zlib
27
		xml xmlpatterns \
30
EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude src/,}
28
		buildtools_build linguisttools_build qmake_build \
31
DOS2UNIX_FILES=	src/FlightCrew/CMakeLists.txt
29
		imageformats_run
32
SHEBANG_FILES=	src/Sigil/Resource_Files/plugin_launchers/python/*.py
30
CMAKE_ARGS=	-DUSE_SYSTEM_LIBS:BOOL=ON \
33
31
		-DINSTALL_BUNDLED_DICTS:BOOL=OFF
34
OPTIONS_DEFINE=	DEBUG
32
USE_LDCONFIG=	${PREFIX}/lib/sigil
35
DEBUG_CFLAGS_OFF=	-DNDEBUG # tidyLib
36
37
.include <bsd.port.pre.mk>
38
39
post-patch:
40
	@${REINPLACE_CMD} -e 's|../utf8-cpp|${LOCALBASE}/include|' \
41
		${WRKSRC}/src/FlightCrew/CMakeLists.txt
42
# Gentoo: sigil tries to copy non-needed qt libs for deb package, safe
43
# to ignore this completely
44
	@${REINPLACE_CMD} -e '/set( QT_LIBS/d' \
45
		${WRKSRC}/src/Sigil/CMakeLists.txt
46
.if ${CHOSEN_COMPILER_TYPE} == gcc
47
# GCC is broken with PCH: https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html
48
	@${REINPLACE_CMD} -i .gch.bak \
49
		-e '/precompiled_header/d' \
50
		-e '/add_depend.*PCH/d' \
51
		${WRKSRC}/src/FlightCrew/CMakeLists.txt
52
.endif
53
33
54
post-install:
34
post-install:
55
	${STRIP_CMD} ${STAGEDIR}${DATADIR}/${PORTNAME}-real
35
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sigil/*.so
56
36
57
.include <bsd.port.post.mk>
37
.include <bsd.port.mk>
(-)textproc/sigil/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (user-none-Sigil-0.8.6_GH0.tar.gz) = 5f89b47abbf0a7befa4e776083db5426456f8ef1ef50bd168dc98d621fb2ad26
1
SHA256 (Sigil-Ebook-Sigil-0.9.1_GH0.tar.gz) = 7ef13ae9f570ac51aa8d80890ff31bcdf8d1b488c1c4bbb315f1ca4b75237a63
2
SIZE (user-none-Sigil-0.8.6_GH0.tar.gz) = 19394568
2
SIZE (Sigil-Ebook-Sigil-0.9.1_GH0.tar.gz) = 17451106
(-)textproc/sigil/files/patch-src_Sigil_CMakeLists.txt (-18 lines)
Lines 1-18 Link Here
1
See ports/180350: if archivers/libzip is installed there's a conflict because
2
/usr/local/include ends up being included before the minizip directory inside
3
the port.
4
--- src/Sigil/CMakeLists.txt.orig	2015-04-12 15:08:13 UTC
5
+++ src/Sigil/CMakeLists.txt
6
@@ -606,11 +606,11 @@ include_directories( BEFORE
7
                      ${HUNSPELL_INCLUDE_DIRS}
8
                      ${PCRE_INCLUDE_DIRS}
9
                      ${tidyLib_SOURCE_DIR}
10
-                     ${MINIZIP_INCLUDE_DIRS}
11
                      ${ZLIB_INCLUDE_DIRS}
12
                      ${XERCESEXTENSIONS_INCLUDE_DIRS}
13
                      ${XERCES_INCLUDE_DIRS}
14
                      ${BOOST_INCLUDE_DIRS}
15
+                     ${MINIZIP_INCLUDE_DIRS}
16
                      ${CMAKE_CURRENT_SOURCE_DIR}
17
                      ${CMAKE_CURRENT_BINARY_DIR} )
18
 
(-)textproc/sigil/files/patch-src__SourceUpdates__AnchorUpdates.cpp (+14 lines)
Line 0 Link Here
1
--- src/SourceUpdates/AnchorUpdates.cpp.orig	2015-11-04 13:52:16 UTC
2
+++ src/SourceUpdates/AnchorUpdates.cpp
3
@@ -19,10 +19,10 @@
4
 **
5
 *************************************************************************/
6
 
7
+#include "Misc/EmbeddedPython.h"
8
 #include <memory>
9
 #include <functional>
10
 
11
-#include "Misc/EmbeddedPython.h"
12
 #include <QtCore/QtCore>
13
 #include <QtCore/QString>
14
 #include <QtCore/QHash>
(-)textproc/sigil/pkg-descr (-22 / +19 lines)
Lines 1-24 Link Here
1
Sigil is a multi-platform WYSIWYG ebook editor. It is designed to edit books
1
Sigil is a multi-platform EPUB ebook editor with the following features:
2
in ePub format. 
2
3
* Free and open source software under GPLv3
3
 * Free and open source software under GPLv3
4
* Multi-platform: runs on Windows, FreeBSD, Linux and Mac
4
 * Multi-platform
5
* Full Unicode support: everything you see in Sigil is in UTF-16
5
 * Full UTF-16 support
6
* Full EPUB spec support
6
 * EPUB 2 spec support with limited EPUB 3 support
7
* WYSIWYG editing
7
 * Multiple Views: Book View, Code View and Preview View
8
* Multiple Views: Book View, Code View and Split View
8
 * WYSIWYG editing in Book View
9
* Metadata editor with full support for all possible metadata entries
9
 * Complete control over directly editing EPUB syntax in Code View
10
(more than 200) with full descriptions for each
10
 * Table of Contents generator with multi-level heading support
11
* Table Of Contents editor
11
 * Metadata editor
12
* Multi-level TOC support
12
 * User interface translated into many languages
13
* Book View fully supports the display of any XHTML document possible
13
 * Spell checking with default and user configurable dictionaries
14
under the OPS spec
14
 * Full Regular Expression (PCRE) support for Find & Replace
15
* SVG support
15
 * Supports import of EPUB and HTML files, images, and style sheets
16
* Basic XPGT support
16
 * Documents can be validated for EPUB compliance with the integrated
17
* Advanced automatic conversion of all imported documents to Unicode
17
 * All imported files have their formatting corrected, and your editing
18
* Currently imports TXT, HTML and EPUB files; more will be added with time
18
   can be optionally cleaned
19
* Embedded HTML Tidy; all imported documents are thoroughly cleaned;
19
 * Plugins!
20
  changing views cleans the document so no matter how much you screw
21
  up your code, it will fix it (usually)
22
* An actually usable user interface
23
20
24
WWW: http://sigil-ebook.com/
21
WWW: http://sigil-ebook.com/
(-)textproc/sigil/pkg-plist (-23 / +21 lines)
Lines 1-24 Link Here
1
bin/sigil
1
bin/sigil
2
lib/sigil/libsigilgumbo.so
3
lib/sigil/sigil
2
share/applications/sigil.desktop
4
share/applications/sigil.desktop
3
share/pixmaps/sigil.png
5
share/pixmaps/sigil.png
4
%%DATADIR%%/examples/clip_entries.ini
6
%%DATADIR%%/examples/clip_entries.ini
5
%%DATADIR%%/examples/search_entries.ini
7
%%DATADIR%%/examples/search_entries.ini
6
%%DATADIR%%/hunspell_dictionaries/About.txt
7
%%DATADIR%%/hunspell_dictionaries/de_DE.aff
8
%%DATADIR%%/hunspell_dictionaries/de_DE.dic
9
%%DATADIR%%/hunspell_dictionaries/en_GB.aff
10
%%DATADIR%%/hunspell_dictionaries/en_GB.dic
11
%%DATADIR%%/hunspell_dictionaries/en_US.aff
12
%%DATADIR%%/hunspell_dictionaries/en_US.dic
13
%%DATADIR%%/hunspell_dictionaries/es.aff
14
%%DATADIR%%/hunspell_dictionaries/es.dic
15
%%DATADIR%%/hunspell_dictionaries/fr.aff
16
%%DATADIR%%/hunspell_dictionaries/fr.dic
17
%%DATADIR%%/hunspell_dictionaries/hyph_de_DE.dic
18
%%DATADIR%%/hunspell_dictionaries/hyph_en_GB.dic
19
%%DATADIR%%/hunspell_dictionaries/hyph_en_US.dic
20
%%DATADIR%%/hunspell_dictionaries/hyph_es.dic
21
%%DATADIR%%/hunspell_dictionaries/hyph_fr.dic
22
%%DATADIR%%/plugin_launchers/python/bookcontainer.py
8
%%DATADIR%%/plugin_launchers/python/bookcontainer.py
23
%%DATADIR%%/plugin_launchers/python/compatibility_utils.py
9
%%DATADIR%%/plugin_launchers/python/compatibility_utils.py
24
%%DATADIR%%/plugin_launchers/python/epub_utils.py
10
%%DATADIR%%/plugin_launchers/python/epub_utils.py
Lines 26-41 Link Here
26
%%DATADIR%%/plugin_launchers/python/launcher.py
12
%%DATADIR%%/plugin_launchers/python/launcher.py
27
%%DATADIR%%/plugin_launchers/python/opf_parser.py
13
%%DATADIR%%/plugin_launchers/python/opf_parser.py
28
%%DATADIR%%/plugin_launchers/python/outputcontainer.py
14
%%DATADIR%%/plugin_launchers/python/outputcontainer.py
15
%%DATADIR%%/plugin_launchers/python/pluginhunspell.py
29
%%DATADIR%%/plugin_launchers/python/preferences.py
16
%%DATADIR%%/plugin_launchers/python/preferences.py
30
%%DATADIR%%/plugin_launchers/python/quickparser.py
17
%%DATADIR%%/plugin_launchers/python/quickparser.py
18
%%DATADIR%%/plugin_launchers/python/sigil_bs4/AUTHORS.txt
19
%%DATADIR%%/plugin_launchers/python/sigil_bs4/COPYING.txt
20
%%DATADIR%%/plugin_launchers/python/sigil_bs4/__init__.py
21
%%DATADIR%%/plugin_launchers/python/sigil_bs4/builder/__init__.py
22
%%DATADIR%%/plugin_launchers/python/sigil_bs4/builder/_html5lib.py
23
%%DATADIR%%/plugin_launchers/python/sigil_bs4/builder/_htmlparser.py
24
%%DATADIR%%/plugin_launchers/python/sigil_bs4/builder/_lxml.py
25
%%DATADIR%%/plugin_launchers/python/sigil_bs4/dammit.py
26
%%DATADIR%%/plugin_launchers/python/sigil_bs4/diagnose.py
27
%%DATADIR%%/plugin_launchers/python/sigil_bs4/element.py
28
%%DATADIR%%/plugin_launchers/python/sigil_bs4/sigil_custom_changes_to_bs4-4.4.0.patch.txt
29
%%DATADIR%%/plugin_launchers/python/sigil_gumbo_bs4_adapter.py
30
%%DATADIR%%/plugin_launchers/python/sigil_gumboc.py
31
%%DATADIR%%/plugin_launchers/python/sigil_gumboc_tags.py
31
%%DATADIR%%/plugin_launchers/python/unipath.py
32
%%DATADIR%%/plugin_launchers/python/unipath.py
32
%%DATADIR%%/plugin_launchers/python/validationcontainer.py
33
%%DATADIR%%/plugin_launchers/python/validationcontainer.py
33
%%DATADIR%%/plugin_launchers/python/validationresult.py
34
%%DATADIR%%/plugin_launchers/python/validationresult.py
34
%%DATADIR%%/plugin_launchers/python/wrapper.py
35
%%DATADIR%%/plugin_launchers/python/wrapper.py
35
%%DATADIR%%/sigil-real
36
%%DATADIR%%/python3lib/opf_newparser.py
37
%%DATADIR%%/python3lib/sanitycheck.py
38
%%DATADIR%%/python3lib/xmlprocessor.py
36
%%DATADIR%%/translations/sigil_bg.qm
39
%%DATADIR%%/translations/sigil_bg.qm
37
%%DATADIR%%/translations/sigil_ca.qm
40
%%DATADIR%%/translations/sigil_ca.qm
38
%%DATADIR%%/translations/sigil_cmn.qm
39
%%DATADIR%%/translations/sigil_cs.qm
41
%%DATADIR%%/translations/sigil_cs.qm
40
%%DATADIR%%/translations/sigil_da_DK.qm
42
%%DATADIR%%/translations/sigil_da_DK.qm
41
%%DATADIR%%/translations/sigil_de.qm
43
%%DATADIR%%/translations/sigil_de.qm
Lines 49-59 Link Here
49
%%DATADIR%%/translations/sigil_he.qm
51
%%DATADIR%%/translations/sigil_he.qm
50
%%DATADIR%%/translations/sigil_hu_HU.qm
52
%%DATADIR%%/translations/sigil_hu_HU.qm
51
%%DATADIR%%/translations/sigil_id_ID.qm
53
%%DATADIR%%/translations/sigil_id_ID.qm
52
%%DATADIR%%/translations/sigil_is.qm
53
%%DATADIR%%/translations/sigil_it.qm
54
%%DATADIR%%/translations/sigil_it.qm
54
%%DATADIR%%/translations/sigil_ja.qm
55
%%DATADIR%%/translations/sigil_ja.qm
55
%%DATADIR%%/translations/sigil_kk.qm
56
%%DATADIR%%/translations/sigil_km.qm
57
%%DATADIR%%/translations/sigil_ko.qm
56
%%DATADIR%%/translations/sigil_ko.qm
58
%%DATADIR%%/translations/sigil_lv_LV.qm
57
%%DATADIR%%/translations/sigil_lv_LV.qm
59
%%DATADIR%%/translations/sigil_nl.qm
58
%%DATADIR%%/translations/sigil_nl.qm
Lines 63-74 Link Here
63
%%DATADIR%%/translations/sigil_ro_RO.qm
62
%%DATADIR%%/translations/sigil_ro_RO.qm
64
%%DATADIR%%/translations/sigil_ru.qm
63
%%DATADIR%%/translations/sigil_ru.qm
65
%%DATADIR%%/translations/sigil_sk.qm
64
%%DATADIR%%/translations/sigil_sk.qm
66
%%DATADIR%%/translations/sigil_sv.qm
65
%%DATADIR%%/translations/sigil_sr.qm
67
%%DATADIR%%/translations/sigil_tr_TR.qm
66
%%DATADIR%%/translations/sigil_tr_TR.qm
68
%%DATADIR%%/translations/sigil_ug.qm
67
%%DATADIR%%/translations/sigil_ug.qm
69
%%DATADIR%%/translations/sigil_uk.qm
68
%%DATADIR%%/translations/sigil_uk.qm
70
%%DATADIR%%/translations/sigil_uk_UA.qm
69
%%DATADIR%%/translations/sigil_uk_UA.qm
71
%%DATADIR%%/translations/sigil_vi.qm
70
%%DATADIR%%/translations/sigil_vi.qm
72
%%DATADIR%%/translations/sigil_vi_VN.qm
73
%%DATADIR%%/translations/sigil_zh_CN.qm
71
%%DATADIR%%/translations/sigil_zh_CN.qm
74
%%DATADIR%%/translations/sigil_zh_TW.qm
72
%%DATADIR%%/translations/sigil_zh_TW.qm

Return to bug 205225