Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't hardcode share dir but use CMAKE_INSTALL.. #99

Merged
merged 1 commit into from Jan 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,3 +1,4 @@
# Gettext ITS information for MetaInfo files

install(FILES metainfo.its metainfo.loc DESTINATION share/gettext/its)
install(FILES metainfo.its metainfo.loc
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gettext/its)
@@ -22,6 +22,6 @@ add_custom_command (OUTPUT ${APPSTREAM_VAPI_FILE}
)
add_custom_target(vapi ALL DEPENDS ${APPSTREAM_VAPI_FILE})

install(FILES ${APPSTREAM_VAPI_FILE} DESTINATION share/vala/vapi)
install(FILES ${APPSTREAM_VAPI_FILE} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/vala/vapi)

endif()
@@ -22,5 +22,5 @@ add_custom_target (merge-l10n ALL
)

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.appstream.cli.metainfo.xml
DESTINATION share/metainfo
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo
)
@@ -72,7 +72,7 @@ macro(gir_add_introspections introspections_girs)
VERBATIM
)
list(APPEND _gir_girs ${CMAKE_CURRENT_BINARY_DIR}/${gir})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${gir} DESTINATION share/gir-1.0)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${gir} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gir-1.0)

string(REPLACE ".gir" ".typelib" _typelib "${gir}")
add_custom_command(
@@ -50,7 +50,7 @@ macro(add_xml_manpages target manpages translations entities)
set(commands ${commands} ${CMAKE_CURRENT_BINARY_DIR}/${manpage_name})

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${manpage_name}
DESTINATION share/man/man${section})
DESTINATION ${CMAKE_INSTALL_MANDIR}/man${section})

# Add the translations for the manpage.
foreach(translation ${translations})
@@ -79,7 +79,7 @@ macro(add_xml_manpages target manpages translations entities)

set(nls-cmd ${nls-cmd} ${transdir}/${manpage})
install(FILES ${transdir}/${manpage}
DESTINATION share/man/${translation}/man${section})
DESTINATION ${CMAKE_INSTALL_MANDIR}/${translation}/man${section})

endforeach(translation ${translations})
endforeach(manpage ${manpages})
@@ -96,14 +96,14 @@ macro(add_manpages target manpages translations)
string(LENGTH ${man} manpage_length)
math(EXPR manpage_length ${manpage_length}-1)
string(SUBSTRING ${man} ${manpage_length} 1 section)
install(FILES ${man} DESTINATION share/man/man${section})
install(FILES ${man} DESTINATION ${CMAKE_INSTALL_MANDIR}/man${section})

if (USE_NLS)
foreach(translation ${translations})
set(transdir ${CMAKE_CURRENT_BINARY_DIR}/${translation})
add_po4a(man ${man} po/${translation}.po ${transdir}/${man} "")
install(FILES ${transdir}/${man}
DESTINATION share/man/${translation}/man${section})
DESTINATION ${CMAKE_INSTALL_MANDIR}/${translation}/man${section})
set(files ${files} ${transdir}/${man})
endforeach(translation ${translations})
endif(USE_NLS)