summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2017-09-23 11:47:07 +0200
committerAvatar Heiko Becker <heirecka@exherbo.org> 2017-09-29 17:28:37 +0200
commit8be34e783cb39ea1680d180a9c373001f97f5382 (patch)
treeffc23b737d9444b7b7abc08378e8b590a2a76745
parent6284d38fe7a5066909bd0311a4883ca198f95e4d (diff)
downloadkde-8be34e783cb39ea1680d180a9c373001f97f5382.tar.gz
kde-8be34e783cb39ea1680d180a9c373001f97f5382.tar.xz
scribus: Version bump to 1.5.3 (masked)
I've added it masked because it's still a development version. However, this version is ported to Qt5 and seems to work well. Additionally upstream claims "1.5.3 is very fast and has been thoroughly tested. Generally, everything that works reliably in 1.4.x also works in 1.5.3, but it's faster and more versatile." Thus it would be nice if this version would get testing and maybe the mask can be lifted in the near future. Change-Id: Idfc73c8fa072255987728685c329a45d4b7a25dd
-rw-r--r--metadata/repository_mask.conf7
-rw-r--r--packages/app-office/scribus/files/scribus-1.5.3-cmake-Adjust-OpenSSL-finding-code-for-podofo.patch17
-rw-r--r--packages/app-office/scribus/scribus-1.5.3.exheres-0115
3 files changed, 139 insertions, 0 deletions
diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf
index 50216c4..20321b4 100644
--- a/metadata/repository_mask.conf
+++ b/metadata/repository_mask.conf
@@ -587,3 +587,10 @@ net-irc/kvirc [[
*token = pre-release
*description = [ Beta version ]
]]
+
+app-office/scribus[~>1.5.3] [[
+ author = [ Heiko Becker <heirecka@exherbo.org> ]
+ date = [ 23 Sep 2017 ]
+ token = pre-release
+ description = [ Development version ]
+]]
diff --git a/packages/app-office/scribus/files/scribus-1.5.3-cmake-Adjust-OpenSSL-finding-code-for-podofo.patch b/packages/app-office/scribus/files/scribus-1.5.3-cmake-Adjust-OpenSSL-finding-code-for-podofo.patch
new file mode 100644
index 0000000..2240f5b
--- /dev/null
+++ b/packages/app-office/scribus/files/scribus-1.5.3-cmake-Adjust-OpenSSL-finding-code-for-podofo.patch
@@ -0,0 +1,17 @@
+Upstream: yes
+Source: https://www.scribus.net/websvn/comp.php?repname=Scribus&compare[]=/trunk/Scribus/cmake/modules/FindLIBPODOFO.cmake@22055&compare[]=/trunk/Scribus/cmake/modules/FindLIBPODOFO.cmake@22056
+Reason: Fix finding OpenSSL for podofo
+
+Index: cmake/modules/FindLIBPODOFO.cmake
+===================================================================
+--- cmake/modules/FindLIBPODOFO.cmake (Revision 22055)
++++ cmake/modules/FindLIBPODOFO.cmake (Revision 22056)
+@@ -45,7 +45,7 @@
+ #message(STATUS "PODOFO PATCH VERSION ${PODOFO_PATCH_VER}")
+ set(LIBPODOFO_VERSION "${PODOFO_MAJOR_VER}.${PODOFO_MINOR_VER}.${PODOFO_PATCH_VER}" CACHE STRING "PoDoFo version string")
+ if(LIBPODOFO_VERSION VERSION_GREATER "0.9.4")
+- find_package(OPENSSL)
++ find_package(OpenSSL)
+ if (OPENSSL_FOUND)
+ message("OpenSSL found OK for installed version of PoDoFo (>= 0.9.5) - Enabling support for PDF embedded in AI")
+ set(LIBPODOFO_FOUND TRUE CACHE BOOLEAN "Was libpodofo found")
diff --git a/packages/app-office/scribus/scribus-1.5.3.exheres-0 b/packages/app-office/scribus/scribus-1.5.3.exheres-0
new file mode 100644
index 0000000..b73c40e
--- /dev/null
+++ b/packages/app-office/scribus/scribus-1.5.3.exheres-0
@@ -0,0 +1,115 @@
+# Copyright 2009 Xavier Barrachina
+# Copyright 2009 Erik Li
+# Distributed under the terms of the GNU General Public License v2
+# Based in part upon 'scribus-1.3.5.1-r2.ebuild' from Gentoo, which is:
+# Copyright 1999-2007 Gentoo Foundation
+
+require sourceforge [ suffix=tar.xz ] cmake [ api=2 cmake_minimum_version=3.2.0 ]
+require freedesktop-desktop gtk-icon-cache
+
+SUMMARY="A Desktop Publishing application"
+DESCRIPTION="
+Scribus is an Open Source program that brings award-winning professional page layout with a
+combination of press-ready output and new approaches to page layout. Underneath the modern and user
+friendly interface, Scribus supports professional publishing features, such as CMYK color,
+separations, Spot Colors, ICC color management and versatile PDF creation.
+"
+HOMEPAGE+=" http://www.scribus.net"
+
+UPSTREAM_CHANGELOG="http://bugs.scribus.net/changelog_page.php [[ lang = en ]]"
+UPSTREAM_DOCUMENTATION="http://docs.scribus.net [[ lang = en ]]"
+
+LICENCES="GPL-2"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS="
+ 3d-objects [[ description = [ Enables importing 3D objects and embedding them in PDFs ] ]]
+ debug
+ image-import [[ description = [ Allows importing various image formats via GraphicsMagick ] ]]
+ podofo [[ description = [ Use PoDoFo for AI PDF import ] ]]
+ spell
+ ( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]]
+"
+# [[ description = [ Use aspell for spelling support ] ]]
+
+DEPENDENCIES="
+ build:
+ virtual/pkg-config
+ build+run:
+ app-text/poppler[>=0.19.0]
+ dev-lang/python:=[>=2.3&<3]
+ dev-libs/boost
+ dev-libs/icu:=
+ dev-libs/libxml2:2.0[>=2.6.0]
+ media-libs/fontconfig[>=2.0]
+ media-libs/freetype:2[>=2.3.11]
+ media-libs/lcms2[>=2.1]
+ media-libs/libcdr[>=0.1]
+ media-libs/libpng:=
+ media-libs/libvisio[>=0.1]
+ media-libs/tiff[>=3.6]
+ net-print/cups
+ office-libs/libfreehand[>=0.1]
+ office-libs/libmspub[>=0.1]
+ office-libs/libpagemaker
+ office-libs/librevenge [[ note = [ automagic dep ] ]]
+ sys-libs/zlib
+ x11-libs/cairo[>=1.4.10][X]
+ x11-libs/harfbuzz[>=0.9.42]
+ x11-libs/qtbase:5[>=5.5.0]
+ x11-libs/qttools:5[>=5.5.0]
+ 3d-objects? ( dev-games/OpenSceneGraph )
+ image-import? ( media-gfx/GraphicsMagick )
+ podofo? ( app-text/podofo[>=0.5.0] )
+ providers:ijg-jpeg? ( media-libs/jpeg:=[>=8] )
+ providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
+ spell? ( app-spell/hunspell )
+ suggestion:
+ app-text/ghostscript[>=8.60] [[ note = [ Export PDF files ] ]]
+"
+
+DEFAULT_SRC_PREPARE_PATCHES+=(
+ -p0 "${FILES}"/${PNV}-cmake-Adjust-OpenSSL-finding-code-for-podofo.patch
+)
+
+CMAKE_SRC_CONFIGURE_PARAMS+=(
+ -DQT_PREFIX="/usr/$(exhost --target)"
+ -D2GEOM_BUILD_SHARED=ON
+ -DHAVE_CMS=ON
+ -DHAVE_FONTCONFIG=1
+ -DHAVE_LIBZ=ON
+ -DWANT_NORPATH=ON
+ -DHAVE_TIFF=ON
+ -DHAVE_XML=1
+)
+CMAKE_SRC_CONFIGURE_OPTION_WANTS+=(
+ '!3d-objects NOOSG'
+ DEBUG
+ 'image-import GRAPHICSMAGICK'
+ 'spell HUNSPELL'
+)
+CMAKE_SRC_CONFIGURE_OPTION_WITHS+=(
+ PODOFO
+)
+
+CMAKE_SOURCE=${WORKBASE}/${PNV}
+
+src_prepare() {
+ cmake_src_prepare
+
+ # remove hard-disabling of cmake verbose output
+ edo sed \
+ -e '/CMAKE_VERBOSE_MAKEFILE/d' \
+ -i "${CMAKE_SOURCE}"/CMakeLists.txt
+}
+
+pkg_postinst() {
+ freedesktop-desktop_pkg_postinst
+ gtk-icon-cache_pkg_postinst
+}
+
+pkg_postrm() {
+ freedesktop-desktop_pkg_postrm
+ gtk-icon-cache_pkg_postrm
+}
+