commit:     0d52299907f1182bb2cfc2e8b44ed5a0f84b4213
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 24 14:55:43 2019 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Wed Jul 24 14:56:50 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d522999

media-radio/wsjtx: Fix build of documentation

- drop unicode characters from man pages source
- fix DOCDIR
- fix installation of DOCS

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 media-radio/wsjtx/files/wsjtx-drop-docs.patch   | 21 +++++++++++++++++++++
 media-radio/wsjtx/files/wsjtx-fix-unicode.patch | 11 +++++++++++
 media-radio/wsjtx/wsjtx-2.1.0.ebuild            | 14 +++++++++-----
 3 files changed, 41 insertions(+), 5 deletions(-)

diff --git a/media-radio/wsjtx/files/wsjtx-drop-docs.patch 
b/media-radio/wsjtx/files/wsjtx-drop-docs.patch
new file mode 100644
index 00000000000..50bd9cc095b
--- /dev/null
+++ b/media-radio/wsjtx/files/wsjtx-drop-docs.patch
@@ -0,0 +1,21 @@
+--- a/CMakeLists.txt   2019-07-24 16:42:07.128890166 +0200
++++ b/CMakeLists.txt   2019-07-24 16:42:40.001023963 +0200
+@@ -1493,18 +1493,6 @@
+   )
+ 
+ install (FILES
+-  README
+-  COPYING
+-  AUTHORS
+-  THANKS
+-  NEWS
+-  INSTALL
+-  BUGS
+-  DESTINATION ${CMAKE_INSTALL_DOCDIR}
+-  #COMPONENT runtime
+-  )
+-
+-install (FILES
+   contrib/Ephemeris/JPLEPH
+   DESTINATION ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}
+   #COMPONENT runtime

diff --git a/media-radio/wsjtx/files/wsjtx-fix-unicode.patch 
b/media-radio/wsjtx/files/wsjtx-fix-unicode.patch
new file mode 100644
index 00000000000..925199863a1
--- /dev/null
+++ b/media-radio/wsjtx/files/wsjtx-fix-unicode.patch
@@ -0,0 +1,11 @@
+--- a/manpages/man1/jt65code.1.txt     2019-07-23 19:27:07.690602674 +0200
++++ b/manpages/man1/jt65code.1.txt     2019-07-23 19:27:22.098060819 +0200
+@@ -31,7 +31,7 @@
+ 
+ *jt65code*, *jt9code* and *jt4code* are utility programs that let you
+ explore the conversion of user-level messages into channel symbols or
+-“tone numbers.”  These programs can be useful to someone designing a
++"tone numbers."  These programs can be useful to someone designing a
+ beacon generator for JT9 or JT65, or for studying behavior of the
+ error-control codes for each of the protocols.
+ 

diff --git a/media-radio/wsjtx/wsjtx-2.1.0.ebuild 
b/media-radio/wsjtx/wsjtx-2.1.0.ebuild
index 36351332cfb..15c7d5cf22d 100644
--- a/media-radio/wsjtx/wsjtx-2.1.0.ebuild
+++ b/media-radio/wsjtx/wsjtx-2.1.0.ebuild
@@ -37,7 +37,11 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/wsjtx
 
-PATCHES=( "${FILESDIR}/${PN}-2.0.1-hamlib.patch" )
+PATCHES=( "${FILESDIR}/${PN}-2.0.1-hamlib.patch"
+                 "${FILESDIR}/${PN}-fix-unicode.patch"
+                 "${FILESDIR}/${PN}-drop-docs.patch" )
+
+DOCS=( AUTHORS BUGS NEWS README THANKS )
 
 src_unpack() {
        unpack ${A}
@@ -45,9 +49,11 @@ src_unpack() {
 }
 
 src_configure() {
+       cmake_comment_add_subdirectory debian
+
        local mycmakeargs=(
                -DWSJT_GENERATE_DOCS="$(usex doc)"
-               -DWSJT_DOC_DESTINATION="/doc/${PF}"
+               -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
        )
        cmake-utils_src_configure
 }
@@ -59,7 +65,5 @@ src_compile() {
 src_install() {
        cmake-utils_src_install
        rm "${D}"/usr/bin/rigctl{,d}-wsjtx || die
-       rm "${D}"/usr/share/man/man1/rigctl{,d}-wsjtx.1.gz || die
-       rm "${D}"/usr/share/doc/WSJT-X -R || die
-
+       rm "${D}"/usr/share/man/man1/rigctl{,d,com}-wsjtx.1.gz || die
 }

Reply via email to