[kde-doc-english] [frameworks-kdoctools] [Bug 357428] New: kf5-kdoctools: several issues with kdoctools_install()

MaxiPunkt via KDE Bugzilla bugzilla_noreply at kde.org
Sat Jan 2 13:04:33 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=357428

            Bug ID: 357428
           Summary: kf5-kdoctools: several issues with kdoctools_install()
           Product: frameworks-kdoctools
           Version: unspecified
          Platform: Fedora RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kde-doc-english at kde.org
          Reporter: maxantispam at freenet.de
                CC: kdelibs-bugs at kde.org

I'm trying to use the cmake-magic to include translations (po's & doc's) in a
project.

For translations I'm using a self-made script which downloads l10n-data from
SVN-server:
* po-files are stored in a directory named: l10n-messages/<LANG>/*.po
* doc-files are stored in a directory named: l10n-docs/<LANG>/docs/*.docbook

The application-code was downloaded from GIT-server before.
To combine it with translations, I've copied the translation-dirs
(l10n-messages & l10n-docs) into the application-code. Then I tried to append
original CMakeLists.txt with the following lines:

find_package(KF5I18n CONFIG REQUIRED)
ki18n_install(l10n-messages)
find_package(KF5DocTools REQUIRED)
kdoctools_install(l10n-docs)

1. issue:
Found out that doc's strictly have to be placed into the same directory as the
po-files, otherwise cmake breaks while processing kdoctools_install() .

But shouldn't the functions kdoctools_install(DIR) and ki18n_install(DIR) work
independently from each other? It seems that it is not possible to have po's in
<DIR1> and doc's in <DIR2>

2. issue:
Because of 1st issue I changed my script to download l10n-data from SVN-server
like this:
* po-files are stored in a directory named: translations/<LANG>/*.po
* doc-files are stored in a directory named: translations/<LANG>/docs/*.docbook

But cmake still breaks while processing kdoctools_install(), now with the
following error: 

CMake Error at /usr/lib64/cmake/KF5DocTools/KF5DocToolsMacros.cmake:106
(message):
  SUBDIR needs to be defined when calling kdoctools_create_handbook
Call Stack (most recent call first):
  /usr/lib64/cmake/KF5DocTools/KF5DocToolsMacros.cmake:231
(kdoctools_create_handbook)
  CMakeLists.txt:116 (kdoctools_install)

How to define the missing "SUBDIR"?
Shouldn't this be done by kdoctools_install()  automatically?


Used kf5-kdoctools version: 5.17.0

Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-doc-english mailing list