x11-misc/qterm: tidy
authorAkinori Hattori <hattya@gentoo.org>
Sat, 18 Aug 2018 01:57:42 +0000 (10:57 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sat, 18 Aug 2018 01:57:42 +0000 (10:57 +0900)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

x11-misc/qterm/metadata.xml
x11-misc/qterm/qterm-0.7.1.ebuild

index d9de788cca8b765acd13e3232da54dced8a72e81..59fe2d65e616176ac5a1eadc7d3eef0f7332607a 100644 (file)
@@ -6,7 +6,7 @@
                <name>Cjk</name>
        </maintainer>
        <upstream>
-               <remote-id type="sourceforge">qterm</remote-id>
                <remote-id type="github">qterm/qterm</remote-id>
+               <remote-id type="sourceforge">qterm</remote-id>
        </upstream>
 </pkgmetadata>
index 9196ecbc57cb0137bd0f7a0482897320097dbe54..2273e5d30691458f4367c65297d06e6af301b0b9 100644 (file)
@@ -1,21 +1,20 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI="6"
 
 inherit cmake-utils gnome2-utils xdg-utils
 
-DESCRIPTION="A BBS client for Linux"
+DESCRIPTION="A BBS client based on Qt"
 HOMEPAGE="https://github.com/qterm/qterm"
-SRC_URI="https://github.com/qterm/qterm/archive/0.7.1.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE="libressl"
 
-RDEPEND="
-       dev-qt/qtcore:5
+RDEPEND="dev-qt/qtcore:5
        dev-qt/qtgui:5
        dev-qt/qtmultimedia:5
        dev-qt/qtnetwork:5
@@ -25,41 +24,30 @@ RDEPEND="
        dev-qt/qtxml:5
        x11-libs/libX11
        !libressl? ( dev-libs/openssl:0= )
-       libressl? ( dev-libs/libressl:= )
-"
+       libressl? ( dev-libs/libressl:= )"
 DEPEND="${RDEPEND}
        dev-qt/linguist-tools:5
        dev-qt/qthelp:5
-       x11-base/xorg-proto
-"
+       x11-base/xorg-proto"
 
 DOCS=( README.rst RELEASE_NOTES TODO )
 
 src_prepare() {
-       cmake-utils_src_prepare
+       # file collision with sys-cluster/torque, bug #176533
+       sed -i "/PROGRAME /s/qterm/QTerm/" CMakeLists.txt
+       sed -i "s/Exec=qterm/Exec=QTerm/" src/${PN}.desktop
 
-       sed -i -e "s/Exec=qterm/Exec=QTerm/" src/${PN}.desktop || die
+       cmake-utils_src_prepare
+       xdg_environment_reset
 }
 
 src_configure() {
-       xdg_environment_reset
-
        local mycmakeargs=(
                -DQT5=ON
        )
-
        cmake-utils_src_configure
 }
 
-src_install() {
-       cmake-utils_src_install
-       mv "${D}"/usr/bin/qterm "${D}"/usr/bin/QTerm || die
-}
-
-pkg_preinst() {
-       gnome2_icon_savelist
-}
-
 pkg_postinst() {
        gnome2_icon_cache_update
 }