summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2019-06-23 18:43:20 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2019-06-23 18:44:41 +0200
commitb8163a1828bcf65ede1b6e55f99d926147575f2f (patch)
treecc9b97de6c44e6429a2c12eee10f8f3cc43b5963 /app-office/scribus/files
parentsys-devel/binutils-hppa64: stable 2.31.1-r6 for hppa, bug #685416 (diff)
downloadgentoo-b8163a1828bcf65ede1b6e55f99d926147575f2f.tar.gz
gentoo-b8163a1828bcf65ede1b6e55f99d926147575f2f.tar.bz2
gentoo-b8163a1828bcf65ede1b6e55f99d926147575f2f.zip
app-office/scribus-9999: updated docdir patch
Package-Manager: Portage-2.3.67, Repoman-2.3.15 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'app-office/scribus/files')
-rw-r--r--app-office/scribus/files/scribus-1.5.5-docdir.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-office/scribus/files/scribus-1.5.5-docdir.patch b/app-office/scribus/files/scribus-1.5.5-docdir.patch
new file mode 100644
index 000000000000..897a8a75ae95
--- /dev/null
+++ b/app-office/scribus/files/scribus-1.5.5-docdir.patch
@@ -0,0 +1,29 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f5b3e77..4c5fd3f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -313,14 +313,16 @@ else()
+ endif()
+
+ #SHARE - use the default on Apple as TAG_VERSION is empty
+-if(WIN32 OR OS2)
+- set(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/")
+-elseif(TAG_VERSION OR BUILD_OSX_BUNDLE)
+- set(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
+-elseif(NOT WANT_VERSIONING)
+- set(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}/")
+-else()
+- set(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}-${VERSION}/")
++if(NOT DOCDIR)
++ if(WIN32 OR OS2)
++ set(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/")
++ elseif(TAG_VERSION OR BUILD_OSX_BUNDLE)
++ set(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
++ elseif(NOT WANT_VERSIONING)
++ set(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}/")
++ else()
++ set(DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${MAIN_DIR_NAME}-${VERSION}/")
++ endif()
+ endif()
+
+ if(IS_ABSOLUTE ${DOCDIR} AND WANT_RELOCATABLE)