diff options
Diffstat (limited to '')
-rw-r--r-- | external/libepubgen/ExternalProject_libepubgen.mk | 43 | ||||
-rw-r--r-- | external/libepubgen/Makefile | 7 | ||||
-rw-r--r-- | external/libepubgen/Module_libepubgen.mk | 17 | ||||
-rw-r--r-- | external/libepubgen/README | 3 | ||||
-rw-r--r-- | external/libepubgen/UnpackedTarball_libepubgen.mk | 25 | ||||
-rw-r--r-- | external/libepubgen/tdf-120491.patch | 33 |
6 files changed, 128 insertions, 0 deletions
diff --git a/external/libepubgen/ExternalProject_libepubgen.mk b/external/libepubgen/ExternalProject_libepubgen.mk new file mode 100644 index 000000000..f0dbf70a2 --- /dev/null +++ b/external/libepubgen/ExternalProject_libepubgen.mk @@ -0,0 +1,43 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ExternalProject_ExternalProject,libepubgen)) + +$(eval $(call gb_ExternalProject_use_autoconf,libepubgen,build)) + +$(eval $(call gb_ExternalProject_register_targets,libepubgen,\ + build \ +)) + +$(eval $(call gb_ExternalProject_use_externals,libepubgen,\ + boost_headers \ + revenge \ +)) + +$(call gb_ExternalProject_get_state_target,libepubgen,build) : + $(call gb_Trace_StartRange,libepubgen,EXTERNAL) + $(call gb_ExternalProject_run,build,\ + export PKG_CONFIG="" \ + && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \ + --with-pic \ + --enable-static \ + --disable-shared \ + --without-docs \ + $(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \ + --disable-werror \ + $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \ + CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libepubgen)" \ + CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \ + LDFLAGS="$(call gb_ExternalProject_get_link_flags,libepubgen)" \ + $(gb_CONFIGURE_PLATFORMS) \ + && $(MAKE) \ + ) + $(call gb_Trace_EndRange,libepubgen,EXTERNAL) + +# vim: set noet sw=4 ts=4: diff --git a/external/libepubgen/Makefile b/external/libepubgen/Makefile new file mode 100644 index 000000000..e4968cf85 --- /dev/null +++ b/external/libepubgen/Makefile @@ -0,0 +1,7 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- + +module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +include $(module_directory)/../../solenv/gbuild/partial_build.mk + +# vim: set noet sw=4 ts=4: diff --git a/external/libepubgen/Module_libepubgen.mk b/external/libepubgen/Module_libepubgen.mk new file mode 100644 index 000000000..a0ed770be --- /dev/null +++ b/external/libepubgen/Module_libepubgen.mk @@ -0,0 +1,17 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_Module_Module,libepubgen)) + +$(eval $(call gb_Module_add_targets,libepubgen,\ + ExternalProject_libepubgen \ + UnpackedTarball_libepubgen \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libepubgen/README b/external/libepubgen/README new file mode 100644 index 000000000..4d1dca7f8 --- /dev/null +++ b/external/libepubgen/README @@ -0,0 +1,3 @@ +An EPUB generator library for librevenge from + +[https://sourceforge.net/projects/libepubgen/] diff --git a/external/libepubgen/UnpackedTarball_libepubgen.mk b/external/libepubgen/UnpackedTarball_libepubgen.mk new file mode 100644 index 000000000..3c505ea1b --- /dev/null +++ b/external/libepubgen/UnpackedTarball_libepubgen.mk @@ -0,0 +1,25 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +epubgen_patches := +epubgen_patches += tdf-120491.patch + +$(eval $(call gb_UnpackedTarball_UnpackedTarball,libepubgen)) + +$(eval $(call gb_UnpackedTarball_set_tarball,libepubgen,$(EPUBGEN_TARBALL))) + +$(eval $(call gb_UnpackedTarball_update_autoconf_configs,libepubgen)) + +$(eval $(call gb_UnpackedTarball_set_patchlevel,libepubgen,0)) + +$(eval $(call gb_UnpackedTarball_add_patches,libepubgen,\ + $(foreach patch,$(epubgen_patches),external/libepubgen/$(patch)) \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libepubgen/tdf-120491.patch b/external/libepubgen/tdf-120491.patch new file mode 100644 index 000000000..2a02a66e4 --- /dev/null +++ b/external/libepubgen/tdf-120491.patch @@ -0,0 +1,33 @@ +From 92760e4b0b8da126029c5ff858ebec27df4acfa8 Mon Sep 17 00:00:00 2001 +Subject: [PATCH] tdf#120491 EPUBHTMLGenerator: remove not needed <meta + content="text/html..."> + +IngramSpark flags this as an error, and not writing it still passes +epubcheck. +--- + src/lib/EPUBHTMLGenerator.cpp | 7 +------ + 1 file changed, 1 insertion(+), 6 deletions(-) + +diff --git a/src/lib/EPUBHTMLGenerator.cpp b/src/lib/EPUBHTMLGenerator.cpp +index a950ea5..f6c2527 100644 +--- src/lib/EPUBHTMLGenerator.cpp ++++ src/lib/EPUBHTMLGenerator.cpp +@@ -579,14 +579,9 @@ void EPUBHTMLGenerator::endDocument() + m_impl->m_document.openElement("title", RVNGPropertyList()); + m_impl->m_document.closeElement("title"); + } +- RVNGPropertyList metaAttrs; +- metaAttrs.insert("http-equiv", "content-type"); +- metaAttrs.insert("content", "text/html; charset=UTF-8"); +- m_impl->m_document.openElement("meta", metaAttrs); +- m_impl->m_document.closeElement("meta"); + if (m_impl->m_version >= 30 && m_impl->m_layoutMethod == EPUB_LAYOUT_METHOD_FIXED) + { +- metaAttrs.clear(); ++ RVNGPropertyList metaAttrs; + metaAttrs.insert("name", "viewport"); + std::stringstream content; + if (const librevenge::RVNGProperty *pageWidth = m_impl->m_actualPageProperties["fo:page-width"]) +-- +2.16.4 + |