summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-02-28 12:50:14 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-02-28 13:26:15 +0100
commit87cf4e249479edec0cf8750afb5010f12c1c4c59 (patch)
tree5a16c9d791d5beb0166df6b7e9187a1ae012e206 /net-misc/qtm
parentmedia-libs/aften: EAPI-7 bump, switch to cmake.eclass (diff)
downloadgentoo-87cf4e249479edec0cf8750afb5010f12c1c4c59.tar.gz
gentoo-87cf4e249479edec0cf8750afb5010f12c1c4c59.tar.bz2
gentoo-87cf4e249479edec0cf8750afb5010f12c1c4c59.zip
net-misc/qtm: Switch to cmake.eclass, don't install compressed man
Closes: https://bugs.gentoo.org/740784 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'net-misc/qtm')
-rw-r--r--net-misc/qtm/files/qtm-1.3.19-nomancompress.patch34
-rw-r--r--net-misc/qtm/qtm-1.3.19-r1.ebuild60
2 files changed, 94 insertions, 0 deletions
diff --git a/net-misc/qtm/files/qtm-1.3.19-nomancompress.patch b/net-misc/qtm/files/qtm-1.3.19-nomancompress.patch
new file mode 100644
index 000000000000..a98ef2446003
--- /dev/null
+++ b/net-misc/qtm/files/qtm-1.3.19-nomancompress.patch
@@ -0,0 +1,34 @@
+--- a/CMakeLists.txt 2017-06-12 12:28:32.739628202 +0200
++++ b/CMakeLists.txt 2021-02-28 12:43:44.143779118 +0100
+@@ -123,20 +123,17 @@
+ set( MANPAGE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/man/man1 )
+ endif( NOT MANPAGE_DIRECTORY)
+
+- add_custom_command( OUTPUT qtm.1.gz
++ add_custom_command( OUTPUT qtm.1
+ COMMAND touch qtm.1
+ COMMAND sh ${QTM_SOURCE_DIR}/qtm-manpage.sh ${QTM_VERSION} >${QTM_BINARY_DIR}/qtm.1
+- COMMAND gzip -9 ${QTM_BINARY_DIR}/qtm.1
+ DEPENDS qtm-manpage.sh
+ COMMENT "Generating manpage"
+ )
+ add_custom_target( MANPAGE_FILE ALL
+- DEPENDS qtm.1.gz
++ DEPENDS qtm.1
+ )
+
+ set_directory_properties( ADDITIONAL_MAKE_CLEAN_FILES
+- qtm.1
+- qtm.1.gz
+ qtm_version.h
+ qtmico.o )
+
+@@ -367,7 +364,7 @@
+ if(UNIX AND NOT APPLE)
+ install(FILES ${QTM_BINARY_DIR}/${DESKTOP_ENTRY} DESTINATION ${DESKTOP_ENTRY_PATH})
+ install( FILES ${APP_ICON} DESTINATION share/icons )
+- install( FILES ${QTM_BINARY_DIR}/qtm.1.gz DESTINATION ${MANPAGE_DIRECTORY} )
++ install( FILES ${QTM_BINARY_DIR}/qtm.1 DESTINATION ${MANPAGE_DIRECTORY} )
+ if( UNITY_LAUNCHER )
+ install( FILES ${QTM_SOURCE_DIR}/qtm-new.py DESTINATION bin RENAME qtm-new )
+ install( FILES ${QTM_SOURCE_DIR}/qtm-choose.py DESTINATION bin RENAME qtm-choose )
diff --git a/net-misc/qtm/qtm-1.3.19-r1.ebuild b/net-misc/qtm/qtm-1.3.19-r1.ebuild
new file mode 100644
index 000000000000..27e97c211aa7
--- /dev/null
+++ b/net-misc/qtm/qtm-1.3.19-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Qt blogging client"
+HOMEPAGE="http://qtm.blogistan.co.uk"
+# FIXME find suitable SRC_URI
+SRC_URI="https://bitbucket-archive.softwareheritage.org/static/3c/3c8ca320-701e-47dc-b0ec-28870df5715b/attachments/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dbus debug"
+RESTRICT="strip"
+
+RDEPEND="
+ dev-lang/perl
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ virtual/perl-Digest-MD5
+ dbus? ( dev-qt/qtdbus:5 )"
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto
+"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+DOCS=( Changelog README )
+
+PATCHES=(
+ "${FILESDIR}/${P}-qt-5.11.patch" # TODO: upstream
+ "${FILESDIR}/${P}-nomancompress.patch" # bug 740784
+)
+
+src_prepare() {
+ cmake_src_prepare
+
+ # bug 463810
+ sed -i -e '/Categories/s/Application;//' qtm-desktop.sh || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DQt5=ON
+ -DDONT_USE_PTE=OFF
+ -DINSTALL_MARKDOWN=ON
+ -DNO_SSL=OFF
+ -DUSE_DBUS=$(usex dbus)
+ -DDONT_USE_DBUS=$(usex !dbus)
+ -DQDEBUG=$(usex debug)
+ )
+ cmake_src_configure
+}