From c837192d61d3a1ac8de61bd8f4ded7e90d823804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?= Date: Wed, 3 Sep 2014 13:05:45 +0800 Subject: [PATCH] Use patch to install manpage --- debian/patches/manpage.patch | 77 ++++++++++++++++++++++++++++++++++++ debian/patches/series | 1 + debian/pcmanfm-qt.1 | 51 ------------------------ debian/pcmanfm-qt.manpages | 2 +- 4 files changed, 79 insertions(+), 52 deletions(-) create mode 100644 debian/patches/manpage.patch delete mode 100644 debian/pcmanfm-qt.1 diff --git a/debian/patches/manpage.patch b/debian/patches/manpage.patch new file mode 100644 index 0000000..750a1aa --- /dev/null +++ b/debian/patches/manpage.patch @@ -0,0 +1,77 @@ +Description: Add manpage for pcmanfm-qt +--- +Forwarded: https://github.com/lxde/pcmanfm-qt/pull/93 +--- pcmanfm-qt-0.8.0.orig/CMakeLists.txt ++++ pcmanfm-qt-0.8.0/CMakeLists.txt +@@ -81,6 +81,17 @@ add_custom_target(update_translations AL + pcmanfm_translations + ) + ++# manpage for pcmanfm-qt ++configure_file( ++ ${CMAKE_CURRENT_SOURCE_DIR}/pcmanfm-qt.1.in ++ ${CMAKE_CURRENT_BINARY_DIR}/pcmanfm-qt.1 ++ @ONLY ++) ++install(FILES ++ ${CMAKE_CURRENT_BINARY_DIR}/pcmanfm-qt.1 ++ DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 ++) ++ + # add Doxygen support to genrate API docs + # References: + # http://majewsky.wordpress.com/2010/08/14/tip-of-the-day-cmake-and-doxygen/ +--- /dev/null ++++ pcmanfm-qt-0.8.0/pcmanfm-qt.1.in +@@ -0,0 +1,51 @@ ++.TH PCManFM-Qt "1" "September 2014" "@CMAKE_PROJECT_NAME@ @PCMANFM_QT_VERSION@" "User Commands" ++.SH NAME ++PCManFM-Qt \- A lightweight Qt based file manager for X Window. ++.SH SYNOPSIS ++pcmanfm\-qt [OPTION...] [FILE1, FILE2,...] ++.SH DESCRIPTION ++PCMan File Manager Qt (\fBPCManFM-Qt\fP) is an extremly fast, lightweight, yet ++feature-rich file manager with tabbed browsing. It is the default file manager ++for the lightweight desktop environment, \fBLXQt\fP. ++.SH OPTIONS ++.SS "Help Options:" ++.TP ++\fB\-h\fR, \fB\-\-help\fR ++Show help options ++.SS "Application Options:" ++.TP ++\fB\-p\fR, \fB\-\-profile\fR=\fI\,PROFILE\/\fR ++Name of configuration profile ++.TP ++\fB\-d\fR, \fB\-\-daemon\-mode\fR ++Run PCManFM as a daemon ++.TP ++\fB\-\-quit\fR ++Quit PCManFM ++.TP ++\fB\-\-desktop\fR ++Launch desktop manager ++.TP ++\fB\-\-desktop\-off\fR ++Turn off desktop manager if it's running ++.TP ++\fB\-\-desktop\-pref\fR=\fI\,NAME\/\fR ++Open desktop preference dialog on the page with the specified name ++.TP ++\fB\-w\fR, \fB\-\-set\-wallpaper\fR=\fI\,FILE\/\fR ++Set desktop wallpaper from image FILE ++.TP ++\fB\-\-wallpaper\-mode\fR=\fI\,MODE\/\fR ++Set mode of desktop wallpaper. MODE=(color|stretch|fit|center|tile) ++.TP ++\fB\-\-show\-pref\fR=\fI\,NAME\/\fR ++Open Preferences dialog on the page with the specified name ++.TP ++\fB\-n\fR, \fB\-\-new\-window\fR ++Open new window ++.TP ++\fB\-f\fR, \fB\-\-find\-files\fR ++Open Find Files utility ++.SH "AUTHORS" ++.B pcmanfm-qt ++was primarily written by Hong Jen Yee (PCMan) . diff --git a/debian/patches/series b/debian/patches/series index a21784c..e50dca9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ cxxflags.patch +manpage.patch diff --git a/debian/pcmanfm-qt.1 b/debian/pcmanfm-qt.1 deleted file mode 100644 index 373115d..0000000 --- a/debian/pcmanfm-qt.1 +++ /dev/null @@ -1,51 +0,0 @@ -.TH PCMANFM-QT "1" "September 2014" "pcmanfm-qt" "User Commands" -.SH NAME -pcmanfm-qt \- manual page for pcmanfm-qt -.SH DESCRIPTION -.SS "Usage:" -.IP -pcmanfm\-qt [OPTION...] [FILE1, FILE2,...] -.SS "Help Options:" -.TP -\fB\-h\fR, \fB\-\-help\fR -Show help options -.SS "Application Options:" -.TP -\fB\-p\fR, \fB\-\-profile\fR=\fI\,PROFILE\/\fR -Name of configuration profile -.TP -\fB\-d\fR, \fB\-\-daemon\-mode\fR -Run PCManFM as a daemon -.TP -\fB\-\-quit\fR -Quit PCManFM -.TP -\fB\-\-desktop\fR -Launch desktop manager -.TP -\fB\-\-desktop\-off\fR -Turn off desktop manager if it's running -.TP -\fB\-\-desktop\-pref\fR=\fI\,NAME\/\fR -Open desktop preference dialog on the page with the specified name -.TP -\fB\-w\fR, \fB\-\-set\-wallpaper\fR=\fI\,FILE\/\fR -Set desktop wallpaper from image FILE -.TP -\fB\-\-wallpaper\-mode\fR=\fI\,MODE\/\fR -Set mode of desktop wallpaper. MODE=(color|stretch|fit|center|tile) -.TP -\fB\-\-show\-pref\fR=\fI\,NAME\/\fR -Open Preferences dialog on the page with the specified name -.TP -\fB\-n\fR, \fB\-\-new\-window\fR -Open new window -.TP -\fB\-f\fR, \fB\-\-find\-files\fR -Open Find Files utility -.SH "AUTHORS" -.B pcmanfm-qt -was primarily written by Hong Jen Yee . - -This manual page was written by ChangZhuo Chen for -the Debian system. diff --git a/debian/pcmanfm-qt.manpages b/debian/pcmanfm-qt.manpages index aa51a0f..8deda22 100644 --- a/debian/pcmanfm-qt.manpages +++ b/debian/pcmanfm-qt.manpages @@ -1 +1 @@ -debian/pcmanfm-qt.1 +debian/tmp/usr/share/man/man1/pcmanfm-qt.1