diff --git a/CMakeLists.txt b/CMakeLists.txt index ce91642..5568df4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ include( TDEVersion ) cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} ) tde_set_project_version( ) +set( PACKAGE_VERSION 0.99.4 ) #### general package setup @@ -69,7 +70,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### directories add_subdirectory( zlibrary ) -#add_subdirectory( tde-ebook-reader ) +add_subdirectory( reader ) ##### write configure files diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index a69a3c7..478f610 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -56,6 +56,13 @@ if( NOT FRIBIDI_FOUND ) endif( ) +##### check for sqlite3 +pkg_search_module( SQLITE sqlite3 ) +if( NOT SQLITE_FOUND ) + tde_message_fatal( "sqlite3 is required, but not found on your system" ) +endif( ) + + ##### check for unibreak pkg_search_module( UNIBREAK libunibreak ) if( NOT UNIBREAK_FOUND ) diff --git a/reader/LICENSE b/LICENSE similarity index 100% rename from reader/LICENSE rename to LICENSE diff --git a/config.h.cmake b/config.h.cmake index 5edc539..d0eb046 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,4 +1,4 @@ -#define VERSION "@VERSION@" +#define VERSION "@PACKAGE_VERSION@" // Defined if you have fvisibility and fvisibility-inlines-hidden support. #cmakedefine __KDE_HAVE_GCC_VISIBILITY 1 diff --git a/debian/control b/debian/control index 97e81ed..3ffd947 100644 --- a/debian/control +++ b/debian/control @@ -4,8 +4,8 @@ Priority: optional Maintainer: TDE Debian Team XSBC-Original-Maintainer: Debian QA Group Build-Depends: cdbs, debhelper (>= 10~), quilt, tde-cmake, ninja-build, libtqtinterface-dev, - libbz2-dev, libcurl4-gnutls-dev, libexpat1-dev, libfribidi-dev, - libjpeg-dev, libsqlite3-dev, libunibreak-dev, libz-dev, pkgconf + libbz2-dev, libexpat1-dev, libfribidi-dev, + libsqlite3-dev, libunibreak-dev, libz-dev, pkgconf Standards-Version: 4.7.0 Package: tde-ebook-reader diff --git a/debian/tde-ebook-reader.install b/debian/tde-ebook-reader.install index 0a08ffe..59065ad 100644 --- a/debian/tde-ebook-reader.install +++ b/debian/tde-ebook-reader.install @@ -1 +1,2 @@ -#usr/lib +/opt/trinity/bin +/opt/trinity/share diff --git a/reader/CMakeLists.txt b/reader/CMakeLists.txt new file mode 100644 index 0000000..0fd2489 --- /dev/null +++ b/reader/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory( data ) +add_subdirectory( desktop ) +add_subdirectory( src ) diff --git a/reader/data/CMakeLists.txt b/reader/data/CMakeLists.txt new file mode 100644 index 0000000..bbd3519 --- /dev/null +++ b/reader/data/CMakeLists.txt @@ -0,0 +1,49 @@ +##### default files + +file( GLOB _default_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/default/*.xml ) +install( + FILES ${_default_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/default +) + + +##### format files + +file( GLOB _formats_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/formats/fb2/* ) +install( + FILES ${_formats_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/formats/fb2 +) + +file( GLOB _formats_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/formats/html/* ) +install( + FILES ${_formats_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/formats/html +) + + +##### help files + +file( GLOB _help_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/help/*.fb2 ) +install( + FILES ${_help_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/help +) + + +##### icons files + +file( GLOB_RECURSE _icon_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/icons/*) +install( + FILES ${_icon_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/icons +) + + +##### resource files + +file( GLOB _xml_resource_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/resources/*.xml ) +install( + FILES ${_xml_resource_files} + DESTINATION ${DATA_INSTALL_DIR}/tde-ebook-reader/resources +) diff --git a/reader/data/default/config.desktop.xml b/reader/data/default/config.xml similarity index 100% rename from reader/data/default/config.desktop.xml rename to reader/data/default/config.xml diff --git a/reader/data/default/external.desktop.xml b/reader/data/default/external.xml similarity index 100% rename from reader/data/default/external.desktop.xml rename to reader/data/default/external.xml diff --git a/reader/data/default/fullscreen_toolbar.desktop.xml b/reader/data/default/fullscreen_toolbar.xml similarity index 100% rename from reader/data/default/fullscreen_toolbar.desktop.xml rename to reader/data/default/fullscreen_toolbar.xml diff --git a/reader/data/default/keymap.desktop.xml b/reader/data/default/keymap.xml similarity index 100% rename from reader/data/default/keymap.desktop.xml rename to reader/data/default/keymap.xml diff --git a/reader/data/default/menubar.xml b/reader/data/default/menubar.xml deleted file mode 100644 index bbe89f5..0000000 --- a/reader/data/default/menubar.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/reader/data/default/styles.desktop.xml b/reader/data/default/styles.xml similarity index 100% rename from reader/data/default/styles.desktop.xml rename to reader/data/default/styles.xml diff --git a/reader/data/default/toolbar.full.xml b/reader/data/default/toolbar.full.xml deleted file mode 100644 index 99cb8a0..0000000 --- a/reader/data/default/toolbar.full.xml +++ /dev/null @@ -1,25 +0,0 @@ - - -