diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-office/scribus | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-office/scribus')
-rw-r--r-- | app-office/scribus/Manifest | 2 | ||||
-rw-r--r-- | app-office/scribus/files/scribus-1.4.0-minizip.patch | 60 | ||||
-rw-r--r-- | app-office/scribus/files/scribus-1.4.2-docs.patch | 29 | ||||
-rw-r--r-- | app-office/scribus/files/scribus-1.4.4-ppc64-fpic.patch | 19 | ||||
-rw-r--r-- | app-office/scribus/files/scribus-1.5.0-QObject.patch | 15 | ||||
-rw-r--r-- | app-office/scribus/files/scribus-1.5.0-docdir.patch | 42 | ||||
-rw-r--r-- | app-office/scribus/files/scribus-1.5.0-fpic.patch | 178 | ||||
-rw-r--r-- | app-office/scribus/metadata.xml | 19 | ||||
-rw-r--r-- | app-office/scribus/scribus-1.4.4-r1.ebuild | 150 | ||||
-rw-r--r-- | app-office/scribus/scribus-1.5.0-r1.ebuild | 202 | ||||
-rw-r--r-- | app-office/scribus/scribus-9999.ebuild | 204 |
11 files changed, 920 insertions, 0 deletions
diff --git a/app-office/scribus/Manifest b/app-office/scribus/Manifest new file mode 100644 index 000000000000..3440d325964e --- /dev/null +++ b/app-office/scribus/Manifest @@ -0,0 +1,2 @@ +DIST scribus-1.4.4.tar.xz 71274196 SHA256 a43b9d55518ccebdb770d3cdac44ebf75c60ad11c284b210f6b0bd8c7a0217ae SHA512 aafcb0870d4a3054585d79ef7d7e7726dd8bd8eb8a177bcf812a42d00583a1d684a9abb61607e69c64bf9fdb4a98258be4a5b2df5cfb7c953238bc3a6a2d34bb WHIRLPOOL dff4f44ed0600737076a233ef3c7d2fd6b534f30e9d6016b884eadab2512c3f4a8610e932207d95a597795812ec7a45128ca66b6bc294fa1336f3411595c5df9 +DIST scribus-1.5.0.tar.xz 75867348 SHA256 a3dbe66d12719355d41ae7f2cac7a8c9d5599b12aeb5c038d939636f054e8e68 SHA512 3d3f311543019cf985e12d25d0a9bd2ea470679aee0f40d0aed4d2f1532ea3cdbd4d2e215e59b559b4301613fb71f738a348c56d09d3c6e32da0047d9e212065 WHIRLPOOL feae71d139724b4927c81cab5d13168a9e00383f9a7890484cf5ab62f001b266b4af954440bc7edc51eedb65c3ace4541a7fc0836b0f6237061d6d38371ac6ca diff --git a/app-office/scribus/files/scribus-1.4.0-minizip.patch b/app-office/scribus/files/scribus-1.4.0-minizip.patch new file mode 100644 index 000000000000..c0a4b7cb38eb --- /dev/null +++ b/app-office/scribus/files/scribus-1.4.0-minizip.patch @@ -0,0 +1,60 @@ + Scribus.pro | 4 ---- + scribus/CMakeLists.txt | 2 -- + 2 files changed, 0 insertions(+), 6 deletions(-) + +diff --git a/Scribus.pro b/Scribus.pro +index 17b5417..0cc23c9 100644 +--- a/Scribus.pro ++++ b/Scribus.pro +@@ -276,7 +276,6 @@ HEADERS += scribus/about.h \ + scribus/insertaframe.h \ + scribus/insertTable.h \ + scribus/inspage.h \ +- scribus/ioapi.h \ + scribus/javadocs.h \ + scribus/KarbonCurveFit.h \ + scribus/langmgr.h \ +@@ -496,7 +495,6 @@ HEADERS += scribus/about.h \ + scribus/undostate.h \ + scribus/unicodesearch.h \ + scribus/units.h \ +- scribus/unzip.h \ + scribus/updatemanager.h \ + scribus/upgradechecker.h \ + scribus/urllauncher.h \ +@@ -933,7 +931,6 @@ SOURCES += scribus/about.cpp \ + scribus/insertaframe.cpp \ + scribus/insertTable.cpp \ + scribus/inspage.cpp \ +- scribus/ioapi.c \ + scribus/javadocs.cpp \ + scribus/KarbonCurveFit.cpp \ + scribus/langmgr.cpp \ +@@ -1143,7 +1140,6 @@ SOURCES += scribus/about.cpp \ + scribus/undostate.cpp \ + scribus/unicodesearch.cpp \ + scribus/units.cpp \ +- scribus/unzip.c \ + scribus/updatemanager.cpp \ + scribus/upgradechecker.cpp \ + scribus/urllauncher.cpp \ +diff --git a/scribus/CMakeLists.txt b/scribus/CMakeLists.txt +index dcd7e10..3aca69b 100644 +--- a/scribus/CMakeLists.txt ++++ b/scribus/CMakeLists.txt +@@ -405,7 +405,6 @@ SET(SCRIBUS_SOURCES + insertTable.cpp + insertaframe.cpp + inspage.cpp +- ioapi.c + javadocs.cpp + KarbonCurveFit.cpp + langmgr.cpp +@@ -613,7 +612,6 @@ SET(SCRIBUS_SOURCES + undostate.cpp + unicodesearch.cpp + units.cpp +- unzip.c + updatemanager.cpp + upgradechecker.cpp + urllauncher.cpp diff --git a/app-office/scribus/files/scribus-1.4.2-docs.patch b/app-office/scribus/files/scribus-1.4.2-docs.patch new file mode 100644 index 000000000000..977bfe0e2559 --- /dev/null +++ b/app-office/scribus/files/scribus-1.4.2-docs.patch @@ -0,0 +1,29 @@ + CMakeLists.txt | 4 +--- + 1 files changed, 1 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3f34048..4880594 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -267,7 +267,7 @@ ELSE (WIN32 OR OS2) + SET(DOCDIR "share/doc/${MAIN_DIR_NAME}${TAG_VERSION}/") + ELSE(TAG_VERSION OR BUILD_OSX_BUNDLE) + IF(NOT WANT_VERSIONING) +- SET(DOCDIR "share/doc/${MAIN_DIR_NAME}/") ++ SET(DOCDIR "share/doc/${MAIN_DIR_NAME}-${GENTOOVERSION}/") + ELSE(NOT WANT_VERSIONING) + SET(DOCDIR "share/doc/${MAIN_DIR_NAME}-${VERSION}/") + ENDIF(NOT WANT_VERSIONING) +@@ -801,12 +801,11 @@ INSTALL(FILES + BUILDING + ChangeLog + ChangeLogSVN +- COPYING + LINKS + NEWS + PACKAGING + README + TODO + TRANSLATION + DESTINATION ${DOCDIR} + ) diff --git a/app-office/scribus/files/scribus-1.4.4-ppc64-fpic.patch b/app-office/scribus/files/scribus-1.4.4-ppc64-fpic.patch new file mode 100644 index 000000000000..295cec391286 --- /dev/null +++ b/app-office/scribus/files/scribus-1.4.4-ppc64-fpic.patch @@ -0,0 +1,19 @@ + scribus/plugins/tools/2geomtools/lib2geom/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/scribus/plugins/tools/2geomtools/lib2geom/CMakeLists.txt b/scribus/plugins/tools/2geomtools/lib2geom/CMakeLists.txt +index 18898a7..ba872b9 100755 +--- a/scribus/plugins/tools/2geomtools/lib2geom/CMakeLists.txt ++++ b/scribus/plugins/tools/2geomtools/lib2geom/CMakeLists.txt +@@ -18,9 +18,9 @@ SET(2GEOM_VERSION 0.1.0) + # http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 and + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559133 + +-IF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1) ++IF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") +-ENDIF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1) ++ENDIF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1) + + OPTION(2GEOM_BUILD_SHARED + "Build lib2geom and libtoy as shared libraries." diff --git a/app-office/scribus/files/scribus-1.5.0-QObject.patch b/app-office/scribus/files/scribus-1.5.0-QObject.patch new file mode 100644 index 000000000000..1ad2d1a575cc --- /dev/null +++ b/app-office/scribus/files/scribus-1.5.0-QObject.patch @@ -0,0 +1,15 @@ + scribus/sclayer.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/scribus/sclayer.cpp b/scribus/sclayer.cpp +index 502112b..4da7bd5 100644 +--- a/scribus/sclayer.cpp ++++ b/scribus/sclayer.cpp +@@ -9,6 +9,7 @@ for which a new license (GPL+exception) is in place. +
+ #include <QHash> //necessary to avoid msvc warnings induced by SCRIBUS_API on ScLayers + early instanciation of templates
+ #include <QVector> //necessary to avoid msvc warnings induced by SCRIBUS_API on ScLayers + early instanciation of templates
++#include <QObject>
+ #include <QtAlgorithms>
+
+ ScLayer::ScLayer(void)
diff --git a/app-office/scribus/files/scribus-1.5.0-docdir.patch b/app-office/scribus/files/scribus-1.5.0-docdir.patch new file mode 100644 index 000000000000..2ff316a91b57 --- /dev/null +++ b/app-office/scribus/files/scribus-1.5.0-docdir.patch @@ -0,0 +1,42 @@ + CMakeLists.txt | 28 +++++++++++++++------------- + 1 file changed, 15 insertions(+), 13 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 29d66f3..1c08cdd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -244,19 +244,21 @@ ELSE() + ENDIF() + + #SHARE - use the default on Apple as TAG_VERSION is empty +-IF(WIN32 OR OS2) +- SET(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/") +-ELSE (WIN32 OR OS2) +- IF(TAG_VERSION OR BUILD_OSX_BUNDLE) +- SET(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}${TAG_VERSION}/") +- ELSE(TAG_VERSION OR BUILD_OSX_BUNDLE) +- IF(NOT WANT_VERSIONING) +- SET(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}/") +- ELSE(NOT WANT_VERSIONING) +- SET(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}-${VERSION}/") +- ENDIF(NOT WANT_VERSIONING) +- ENDIF (TAG_VERSION OR BUILD_OSX_BUNDLE) +-ENDIF (WIN32 OR OS2) ++IF(NOT DOCDIR) ++ IF(WIN32 OR OS2) ++ SET(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/") ++ ELSE (WIN32 OR OS2) ++ IF(TAG_VERSION OR BUILD_OSX_BUNDLE) ++ SET(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}${TAG_VERSION}/") ++ ELSE(TAG_VERSION OR BUILD_OSX_BUNDLE) ++ IF(NOT WANT_VERSIONING) ++ SET(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}/") ++ ELSE(NOT WANT_VERSIONING) ++ SET(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}-${VERSION}/") ++ ENDIF(NOT WANT_VERSIONING) ++ ENDIF (TAG_VERSION OR BUILD_OSX_BUNDLE) ++ ENDIF (WIN32 OR OS2) ++ENDIF(NOT DOCDIR) + IF(NOT IS_ABSOLUTE ${DOCDIR}) + ADD_DEFINITIONS("-DDOCDIR=\\\"${CMAKE_INSTALL_PREFIX}/${DOCDIR}\\\"") + ELSE() diff --git a/app-office/scribus/files/scribus-1.5.0-fpic.patch b/app-office/scribus/files/scribus-1.5.0-fpic.patch new file mode 100644 index 000000000000..9f6a6c4e0aba --- /dev/null +++ b/app-office/scribus/files/scribus-1.5.0-fpic.patch @@ -0,0 +1,178 @@ + CMakeLists.txt | 15 +++++++++++++++ + scribus/colormgmt/CMakeLists.txt | 2 ++ + scribus/desaxe/CMakeLists.txt | 1 + + scribus/fonts/CMakeLists.txt | 1 + + scribus/styles/CMakeLists.txt | 2 ++ + scribus/text/CMakeLists.txt | 1 + + scribus/third_party/lib2geom/CMakeLists.txt | 8 +------- + scribus/third_party/pgf/CMakeLists.txt | 2 ++ + scribus/third_party/prc/CMakeLists.txt | 2 ++ + scribus/third_party/wpg/CMakeLists.txt | 7 ++++--- + scribus/third_party/zip/CMakeLists.txt | 2 ++ + 11 files changed, 33 insertions(+), 10 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 29d66f3..a92da7e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -131,6 +131,21 @@ IF (_machine_sparc64) + SET(ARCH64BIT 1) + ENDIF (_machine_sparc64) + ++STRING(REGEX MATCH "(hppa*)" _machine_hppa "${MACHINE}") ++IF (_machine_hppa) ++ MESSAGE(STATUS "Found target Hppa") ++ SET(ARCH_HPPA 1) ++ENDIF (_machine_hppa) ++ ++ ++# We need to pass -fPIC to lib2geom on amd64, mips, mipsel, and hppa. See: ++# http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 and ++# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559133 ++ ++IF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1) ++ SET(CMAKE_CXX_FLAGS_FPIC "-fPIC") ++ENDIF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1) ++ + ## Do our Apple OSX version setup + IF (APPLE AND CMAKE_SIZEOF_VOID_P EQUAL 8 AND (ARCH_X86 EQUAL 1 OR ARCH_X86_64 EQUAL 1)) + STRING(REGEX REPLACE ".*-darwin([0-9]+).*" "\\1" _apple_ver "${MACHINE}") +diff --git a/scribus/colormgmt/CMakeLists.txt b/scribus/colormgmt/CMakeLists.txt +index 7298a28..87c4f5e 100644 +--- a/scribus/colormgmt/CMakeLists.txt ++++ b/scribus/colormgmt/CMakeLists.txt +@@ -3,6 +3,8 @@ ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/scribus
+ )
+
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}")
++
+ INCLUDE_DIRECTORIES( ${LCMS2_INCLUDE_DIR} )
+ SET(SCRIBUS_LCMS_IMPL_SOURCES
+ sclcms2colormgmtengineimpl.cpp
+diff --git a/scribus/desaxe/CMakeLists.txt b/scribus/desaxe/CMakeLists.txt +index 0098028..85e76b6 100644 +--- a/scribus/desaxe/CMakeLists.txt ++++ b/scribus/desaxe/CMakeLists.txt +@@ -4,6 +4,7 @@ ${CMAKE_SOURCE_DIR}/scribus + ${FREETYPE_INCLUDE_DIRS} + ) + ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}") + + SET(SCRIBUS_DESAXE_LIB_SOURCES + saxXML.cpp +diff --git a/scribus/fonts/CMakeLists.txt b/scribus/fonts/CMakeLists.txt +index 799e102..f04c680 100644 +--- a/scribus/fonts/CMakeLists.txt ++++ b/scribus/fonts/CMakeLists.txt +@@ -4,6 +4,7 @@ ${CMAKE_SOURCE_DIR}/scribus + ${FREETYPE_INCLUDE_DIRS} + ) + ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}") + + SET(SCRIBUS_FONTS_LIB_SOURCES + scface.cpp +diff --git a/scribus/styles/CMakeLists.txt b/scribus/styles/CMakeLists.txt +index 6e0cf0a..2839689 100644 +--- a/scribus/styles/CMakeLists.txt ++++ b/scribus/styles/CMakeLists.txt +@@ -4,6 +4,8 @@ INCLUDE_DIRECTORIES( + ${FREETYPE_INCLUDE_DIRS} + ) + ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}") ++ + SET(SCRIBUS_STYLES_MOC_CLASSES + ) + +diff --git a/scribus/text/CMakeLists.txt b/scribus/text/CMakeLists.txt +index 1cd112f..4f658e3 100644 +--- a/scribus/text/CMakeLists.txt ++++ b/scribus/text/CMakeLists.txt +@@ -4,6 +4,7 @@ INCLUDE_DIRECTORIES( + ${FREETYPE_INCLUDE_DIRS} + ) + ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}") + + SET(SCRIBUS_TEXT_MOC_CLASSES + storytext.h +diff --git a/scribus/third_party/lib2geom/CMakeLists.txt b/scribus/third_party/lib2geom/CMakeLists.txt +index 6187d96..3106f6e 100755 +--- a/scribus/third_party/lib2geom/CMakeLists.txt ++++ b/scribus/third_party/lib2geom/CMakeLists.txt +@@ -5,13 +5,7 @@ ${CMAKE_SOURCE_DIR}/scribus +
+ SET(2GEOM_VERSION 0.1.0)
+
+-# We need to pass -fPIC to lib2geom on amd64, mips, mipsel, and hppa. See:
+-# http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 and
+-# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559133
+-
+-IF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1)
+- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+-ENDIF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1)
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}")
+
+ OPTION(2GEOM_BUILD_SHARED
+ "Build lib2geom and libtoy as shared libraries."
+diff --git a/scribus/third_party/pgf/CMakeLists.txt b/scribus/third_party/pgf/CMakeLists.txt +index f84b3d4..d3b1db6 100644 +--- a/scribus/third_party/pgf/CMakeLists.txt ++++ b/scribus/third_party/pgf/CMakeLists.txt +@@ -3,6 +3,8 @@ ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/scribus + ) + ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}") ++ + SET(SCRIBUS_PGF_LIB_SOURCES + Decoder.cpp + Encoder.cpp +diff --git a/scribus/third_party/prc/CMakeLists.txt b/scribus/third_party/prc/CMakeLists.txt +index 5f7c2c6..1da7177 100644 +--- a/scribus/third_party/prc/CMakeLists.txt ++++ b/scribus/third_party/prc/CMakeLists.txt +@@ -5,6 +5,8 @@ ${OPENGL_INCLUDE_DIR} + ${FREETYPE_INCLUDE_DIRS} + ) + ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}") ++ + SET(SCRIBUS_PRC_LIB_SOURCES + oPRCFile.cc + PRCbitStream.cc +diff --git a/scribus/third_party/wpg/CMakeLists.txt b/scribus/third_party/wpg/CMakeLists.txt +index ff31e9f..fbc5cd4 100644 +--- a/scribus/third_party/wpg/CMakeLists.txt ++++ b/scribus/third_party/wpg/CMakeLists.txt +@@ -2,10 +2,11 @@ INCLUDE_DIRECTORIES( + ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/scribus
+ )
++
+ SET(LIB_TYPE STATIC)
+-IF (ARCH_X86_64 EQUAL 1)
+- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+-ENDIF (ARCH_X86_64 EQUAL 1)
++
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}")
++
+ SET(WPG_SOURCES
+ WPG1Parser.cpp
+ WPG2Parser.cpp
+diff --git a/scribus/third_party/zip/CMakeLists.txt b/scribus/third_party/zip/CMakeLists.txt +index edf9683..f7676ab 100644 +--- a/scribus/third_party/zip/CMakeLists.txt ++++ b/scribus/third_party/zip/CMakeLists.txt +@@ -4,6 +4,8 @@ ${CMAKE_SOURCE_DIR}/scribus + ${ZLIB_INCLUDE_DIR} + ) + ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_FPIC}") ++ + SET(SCRIBUS_ZIP_LIB_SOURCES + unzip.cpp + zip.cpp diff --git a/app-office/scribus/metadata.xml b/app-office/scribus/metadata.xml new file mode 100644 index 000000000000..c5e265ff0076 --- /dev/null +++ b/app-office/scribus/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <maintainer> + <email>jlec@gentoo.org</email> + <name>Justin Lecher</name> + </maintainer> + <use> + <flag name="boost">Enable support for Boost based enhancement</flag> + <flag name="graphicsmagick">Add support for <pkg>media-gfx/graphicsmagick</pkg></flag> + <flag name="hunspell">Enable support for spell checking with <pkg>app-text/hunspell</pkg></flag> + <flag name="minimal">Don't install headers (only required for e.g. plug-in developers)</flag> + <flag name="osg">3D redering via <pkg>dev-games/openscenegraph</pkg></flag> + <flag name="scripts">Install the scripts</flag> + <flag name="templates">Document tamplates</flag> + <flag name="tk">Install tk based scripts e.g. FontSample.py</flag> + </use> +</pkgmetadata> diff --git a/app-office/scribus/scribus-1.4.4-r1.ebuild b/app-office/scribus/scribus-1.4.4-r1.ebuild new file mode 100644 index 000000000000..3fc88fe4a509 --- /dev/null +++ b/app-office/scribus/scribus-1.4.4-r1.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk?" + +inherit cmake-utils fdo-mime python-single-r1 + +DESCRIPTION="Desktop publishing (DTP) and layout program" +HOMEPAGE="http://www.scribus.net/" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ppc ppc64 ~sparc x86" +IUSE="cairo debug examples hunspell +minimal +pdf scripts templates tk" + +# a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a} +IUSE_LINGUAS=" af ar bg br ca cs_CZ cy da_DK de de_1901 de_CH el en_AU en_GB en_US es_ES et eu fi fr gl hu id it ja ko lt_LT nb_NO nl pl_PL pt pt_BR ru sa sk_SK sl sq sr sv th_TH tr uk zh_CN zh_TW" +IUSE+=" ${IUSE_LINGUAS// / linguas_}" + +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + tk? ( scripts )" + +COMMON_DEPEND=" + ${PYTHON_DEPS} + dev-libs/boost + dev-libs/hyphen + dev-libs/libxml2 + dev-qt/qtcore:4 + dev-qt/qtgui:4 + media-libs/fontconfig + media-libs/freetype:2 + media-libs/lcms:2 + media-libs/libpng:0 + media-libs/tiff:0 + net-print/cups + sys-libs/zlib[minizip] + virtual/jpeg:0= + cairo? ( x11-libs/cairo[X,svg] ) + !cairo? ( media-libs/libart_lgpl ) + hunspell? ( app-text/hunspell ) + pdf? ( app-text/podofo ) + scripts? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) + tk? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) +" +RDEPEND="${COMMON_DEPEND} + app-text/ghostscript-gpl" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.2-docs.patch + "${FILESDIR}"/${PN}-1.4.0-minizip.patch + "${FILESDIR}"/${P}-ppc64-fpic.patch + ) + +src_prepare() { + cat > cmake/modules/FindZLIB.cmake <<- EOF + find_package(PkgConfig) + pkg_check_modules(ZLIB minizip zlib) + SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} ) + SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} ) + MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR ) + EOF + + rm scribus/{ioapi,unzip}.[ch] || die + + sed \ + -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ + -i resources/templates/CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + local lang langs + for lang in ${IUSE_LINGUAS}; do + if use linguas_${lang}; then + langs+=",${lang}" + else + sed -e "/${lang}/d" -i scribus/doc/CMakeLists.txt || die + fi + done + + local mycmakeargs=( + -DHAVE_PYTHON=ON + -DPYTHON_INCLUDE_PATH="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" + -DWANT_NORPATH=ON + -DWANT_QT3SUPPORT=OFF + -DGENTOOVERSION=${PVR} + -DWANT_GUI_LANG=${langs#,} + $(cmake-utils_use_with pdf PODOFO) + $(cmake-utils_use_want cairo) + $(cmake-utils_use_want !cairo QTARTHUR) + $(cmake-utils_use_want debug DEBUG) + $(cmake-utils_use_want minimal NOHEADERINSTALL) + $(cmake-utils_use_want hunspell HUNSPELL) + $(cmake-utils_use_want !examples NOEXAMPLES) + $(cmake-utils_use_want !templates NOTEMPLATES) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + local lang file + for lang in ${IUSE_LINGUAS}; do + file="${ED}"/usr/share/scribus/translations/scribus.${lang}.qm + if ! use linguas_${lang} && [[ -f "${file}" ]]; then + rm "${file}" || die + fi + done + + if ! use scripts; then + rm "${ED}"/usr/share/scribus/scripts/*.py || die + elif ! use tk; then + rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die + fi + + python_fix_shebang "${ED}"/usr/share/scribus/scripts + python_optimize "${ED}"/usr/share/scribus/scripts + + mv "${ED}"/usr/share/doc/${PF}/{en,html} || die + ln -sf html "${ED}"/usr/share/doc/${PF}/en || die + cat >> "${T}"/COPYING <<- EOF + ${PN} is licensed under the "${LICENSE}". + Please visit http://www.gnu.org/licenses/gpl-2.0.html for the complete license text. + EOF + dodoc "${T}"/COPYING + docompress -x /usr/share/doc/${PF}/en /usr/share/doc/${PF}/{AUTHORS,TRANSLATION,LINKS,COPYING} + doicon resources/icons/scribus.png + domenu scribus.desktop +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} diff --git a/app-office/scribus/scribus-1.5.0-r1.ebuild b/app-office/scribus/scribus-1.5.0-r1.ebuild new file mode 100644 index 000000000000..a7ab471a3ead --- /dev/null +++ b/app-office/scribus/scribus-1.5.0-r1.ebuild @@ -0,0 +1,202 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk?" + +inherit cmake-utils fdo-mime flag-o-matic multilib python-single-r1 + +DESCRIPTION="Desktop publishing (DTP) and layout program" +HOMEPAGE="http://www.scribus.net/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}-devel/${PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+boost debug examples graphicsmagick hunspell +minimal osg +pdf scripts templates tk" + +#a=$((ls resources/translations/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'; ls resources/loremipsum/*xml | sed -e 's:\.: :g' -e 's:loremipsum\/: :g'| awk '{print $2}'; ls resources/dicts/hyph*dic | sed -e 's:\.: :g' -e 's:hyph_: :g' | awk '{print $2}'; ls resources/dicts/README_*txt | sed -e 's:_hyph::g' -e 's:\.: :g' -e 's:README_: :g' | awk '{print $2}') | sort | uniq); echo $a +IUSE_LINGUAS=" af ar bg br ca ca_ES cs cs_CZ cy cy_GB da da_DK de de_1901 de_CH de_DE el en_AU en_EN en_GB en_US eo es es_ES et eu fi fi_FI fr gl he hr hu hu_HU ia id id_ID is is_IS it ja ko ku la lt lt_LT nb_NO nl nn_NO pl pl_PL pt pt_BR pt_PT ro ro_RO ru ru_RU_0 sa sk sk_SK sl sl_SI sq sr sv sv_SE th_TH tr uk uk_UA zh_CN zh_TW" +IUSE+=" ${IUSE_LINGUAS// / linguas_}" + +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + tk? ( scripts )" + +# osg +# couple of third_party libs bundled +COMMON_DEPEND=" + ${PYTHON_DEPS} + app-text/libmspub + >=app-text/poppler-0.19.0:= + dev-libs/boost + dev-libs/hyphen + dev-libs/librevenge + dev-libs/libxml2 + dev-qt/linguist:5 + dev-qt/linguist-tools:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtprintsupport:5 + dev-qt/qtquickcontrols:5 + dev-qt/qtwebkit:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + media-libs/fontconfig + media-libs/freetype:2 + media-libs/lcms:2 + media-libs/libcdr + media-libs/libpagemaker + media-libs/libpng:0 + media-libs/libvisio + media-libs/tiff:0 + net-print/cups + sys-libs/zlib[minizip] + virtual/jpeg:0= + >=x11-libs/cairo-1.10.0[X,svg] + boost? ( dev-libs/boost ) + hunspell? ( app-text/hunspell ) + graphicsmagick? ( media-gfx/graphicsmagick ) + osg? ( dev-games/openscenegraph ) + pdf? ( app-text/podofo:0= ) + scripts? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) + tk? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) +" +RDEPEND="${COMMON_DEPEND} + app-text/ghostscript-gpl" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-docdir.patch + "${FILESDIR}"/${P}-fpic.patch + "${FILESDIR}"/${P}-QObject.patch + ) + +src_prepare() { + rm -r codegen/cheetah || die + cat > cmake/modules/FindZLIB.cmake <<- EOF + find_package(PkgConfig) + pkg_check_modules(ZLIB minizip zlib) + SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} ) + SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} ) + MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR ) + EOF + + sed \ + -e "/^\s*unzip\.[ch]/d" \ + -e "/^\s*ioapi\.[ch]/d" \ + -i scribus/CMakeLists.txt Scribus.pro || die + rm scribus/ioapi.[ch] || die + + sed \ + -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ + -i resources/templates/CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + local lang langs + for lang in ${IUSE_LINGUAS}; do + if use linguas_${lang} || [[ ${lang} == "en" ]]; then + # From the CMakeLists.txt + # "#Bit of a hack, preprocess all the filenames to generate our language string, needed for -DWANT_GUI_LANG=en_GB;de_DE , etc" + langs+=";${lang}" + else + # Don't install localized documentation + sed -e "/${lang}/d" -i doc/CMakeLists.txt || die + safe_delete file ./resources/dicts/README_${lang}.txt + safe_delete file ./resources/dicts/README_hyph_${lang}.txt + safe_delete file ./resources/dicts/hyph_${lang}.dic + safe_delete file ./resources/loremipsum/${lang}.xml + fi + done + + local mycmakeargs=( + -DHAVE_PYTHON=ON + -DPYTHON_INCLUDE_PATH="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" + -DWANT_DISTROBUILD=ON + -DDOCDIR="/usr/share/doc/${PF}/" + -DWANT_GUI_LANG="${langs#;};en" + $(cmake-utils_use_with pdf PODOFO) + $(cmake-utils_use_with boost) + $(cmake-utils_use_want graphicsmagick) + $(cmake-utils_use !osg WANT_NOOSG) + $(cmake-utils_use_want debug DEBUG) + $(cmake-utils_use_want minimal NOHEADERINSTALL) + $(cmake-utils_use_want hunspell HUNSPELL) + $(cmake-utils_use_want !examples NOEXAMPLES) + $(cmake-utils_use_want !templates NOTEMPLATES) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + local lang + for lang in ${IUSE_LINGUAS}; do + if ! use linguas_${lang}; then + safe_delete dir "${ED}"/usr/share/man/${lang} + fi + done + + if ! use scripts; then + rm "${ED}"/usr/share/scribus/scripts/*.py || die + elif ! use tk; then + rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die + fi + + use scripts && \ + python_fix_shebang "${ED}"/usr/share/scribus/scripts && \ + python_optimize "${ED}"/usr/share/scribus/scripts + + mv "${ED}"/usr/share/doc/${PF}/{en,html} || die + ln -sf html "${ED}"/usr/share/doc/${PF}/en || die + cat >> "${T}"/COPYING <<- EOF + ${PN} is licensed under the "${LICENSE}". + Please visit http://www.gnu.org/licenses/gpl-2.0.html for the complete license text. + EOF + dodoc "${T}"/COPYING + docompress -x /usr/share/doc/${PF}/en /usr/share/doc/${PF}/{AUTHORS,TRANSLATION,LINKS,COPYING} + doicon resources/icons/scribus.png + domenu scribus.desktop +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} + +safe_delete () { + case $1 in + dir) + if [[ -d "${2}" ]]; then + ebegin "Deleting ${2} recursively" + rm -r "${2}" || die + eend $? + fi + ;; + file) + if [[ -f "${2}" ]]; then + ebegin "Deleting ${2}" + rm "${2}" || die + eend $? + fi + ;; + *) + die "Wrong usage" + esac +} diff --git a/app-office/scribus/scribus-9999.ebuild b/app-office/scribus/scribus-9999.ebuild new file mode 100644 index 000000000000..18d6cffda6b1 --- /dev/null +++ b/app-office/scribus/scribus-9999.ebuild @@ -0,0 +1,204 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk?" +CMAKE_MAKEFILE_GENERATOR=ninja + +inherit cmake-utils fdo-mime flag-o-matic multilib python-single-r1 subversion + +DESCRIPTION="Desktop publishing (DTP) and layout program" +HOMEPAGE="http://www.scribus.net/" +SRC_URI="" +ESVN_REPO_URI="svn://scribus.net/trunk/Scribus" +ESVN_PROJECT=Scribus-1.5 + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="+boost debug examples graphicsmagick hunspell +minimal osg +pdf scripts templates tk" + +#a=$((ls resources/translations/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'; ls resources/loremipsum/*xml | sed -e 's:\.: :g' -e 's:loremipsum\/: :g'| awk '{print $2}'; ls resources/dicts/hyph*dic | sed -e 's:\.: :g' -e 's:hyph_: :g' | awk '{print $2}'; ls resources/dicts/README_*txt | sed -e 's:_hyph::g' -e 's:\.: :g' -e 's:README_: :g' | awk '{print $2}') | sort | uniq); echo $a +IUSE_LINGUAS=" af ar bg br ca ca_ES cs cs_CZ cy cy_GB da da_DK de de_1901 de_CH de_DE el en_AU en_EN en_GB en_US eo es es_ES et eu fi fi_FI fr gl he hr hu hu_HU ia id id_ID is is_IS it ja ko ku la lt lt_LT nb_NO nl nn_NO pl pl_PL pt pt_BR pt_PT ro ro_RO ru ru_RU_0 sa sk sk_SK sl sl_SI sq sr sv sv_SE th_TH tr uk uk_UA zh_CN zh_TW" +IUSE+=" ${IUSE_LINGUAS// / linguas_}" + +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + tk? ( scripts )" + +# osg +# couple of third_party libs bundled +COMMON_DEPEND=" + ${PYTHON_DEPS} + app-text/libmspub + >=app-text/poppler-0.19.0:= + dev-libs/boost + dev-libs/hyphen + dev-libs/librevenge + dev-libs/libxml2 + dev-qt/linguist:5 + dev-qt/linguist-tools:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtprintsupport:5 + dev-qt/qtquickcontrols:5 + dev-qt/qtwebkit:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + media-libs/fontconfig + media-libs/freetype:2 + media-libs/lcms:2 + media-libs/libcdr + media-libs/libpagemaker + media-libs/libpng:0 + media-libs/libvisio + media-libs/tiff:0 + net-print/cups + sys-libs/zlib[minizip] + virtual/jpeg:0= + >=x11-libs/cairo-1.10.0[X,svg] + boost? ( dev-libs/boost ) + hunspell? ( app-text/hunspell ) + graphicsmagick? ( media-gfx/graphicsmagick ) + osg? ( dev-games/openscenegraph ) + pdf? ( app-text/podofo ) + scripts? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) + tk? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) +" +RDEPEND="${COMMON_DEPEND} + app-text/ghostscript-gpl" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-1.5.0-docdir.patch + "${FILESDIR}"/${PN}-1.5.0-fpic.patch + ) + +src_prepare() { + rm -r codegen/cheetah || die + cat > cmake/modules/FindZLIB.cmake <<- EOF + find_package(PkgConfig) + pkg_check_modules(ZLIB minizip zlib) + SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} ) + SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} ) + MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR ) + EOF + + sed \ + -e "/^\s*unzip\.[ch]/d" \ + -e "/^\s*ioapi\.[ch]/d" \ + -i scribus/CMakeLists.txt Scribus.pro || die + rm scribus/ioapi.[ch] || die + + sed \ + -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ + -i resources/templates/CMakeLists.txt || die + + cmake-utils_src_prepare + subversion_src_prepare +} + +src_configure() { + local lang langs + for lang in ${IUSE_LINGUAS}; do + if use linguas_${lang}; then + # From the CMakeLists.txt + # "#Bit of a hack, preprocess all the filenames to generate our language string, needed for -DWANT_GUI_LANG=en_GB,de_DE , etc" + langs+=";${lang}" + else + # Don't install localized documentation + sed -e "/${lang}/d" -i doc/CMakeLists.txt || die + safe_delete file ./resources/dicts/README_${lang}.txt + safe_delete file ./resources/dicts/README_hyph_${lang}.txt + safe_delete file ./resources/dicts/hyph_${lang}.dic + safe_delete file ./resources/loremipsum/${lang}.xml + fi + done + + local mycmakeargs=( + -DHAVE_PYTHON=ON + -DPYTHON_INCLUDE_PATH="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" + -DWANT_DISTROBUILD=ON + -DDOCDIR="/usr/share/doc/${PF}/" + -DWANT_GUI_LANG=${langs#;} + $(cmake-utils_use_with pdf PODOFO) + $(cmake-utils_use_with boost) + $(cmake-utils_use_want graphicsmagick) + $(cmake-utils_use !osg WANT_NOOSG) + $(cmake-utils_use_want debug DEBUG) + $(cmake-utils_use_want minimal NOHEADERINSTALL) + $(cmake-utils_use_want hunspell HUNSPELL) + $(cmake-utils_use_want !examples NOEXAMPLES) + $(cmake-utils_use_want !templates NOTEMPLATES) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + local lang + for lang in ${IUSE_LINGUAS}; do + if ! use linguas_${lang}; then + safe_delete dir "${ED}"/usr/share/man/${lang} + fi + done + + if ! use scripts; then + rm "${ED}"/usr/share/scribus/scripts/*.py || die + elif ! use tk; then + rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die + fi + + use scripts && \ + python_fix_shebang "${ED}"/usr/share/scribus/scripts && \ + python_optimize "${ED}"/usr/share/scribus/scripts + + mv "${ED}"/usr/share/doc/${PF}/{en,html} || die + ln -sf html "${ED}"/usr/share/doc/${PF}/en || die + cat >> "${T}"/COPYING <<- EOF + ${PN} is licensed under the "${LICENSE}". + Please visit http://www.gnu.org/licenses/gpl-2.0.html for the complete license text. + EOF + dodoc "${T}"/COPYING + docompress -x /usr/share/doc/${PF}/en /usr/share/doc/${PF}/{AUTHORS,TRANSLATION,LINKS,COPYING} + doicon resources/iconsets/*/scribus.png + domenu scribus.desktop +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} + +safe_delete () { + if path_exists $2; then + case $1 in + dir) + ebegin "Deleting ${2} recursively" + rm -r "${2}" || die + eend $? + ;; + file) + ebegin "Deleting ${2}" + rm "${2}" || die + eend $? + ;; + *) + die "Wrong usage" + ;; + esac + fi +} |