app-misc/xmind: QA fixes
authorJustin Lecher <jlec@gentoo.org>
Fri, 25 Sep 2015 08:09:32 +0000 (10:09 +0200)
committerJustin Lecher <jlec@gentoo.org>
Fri, 25 Sep 2015 08:09:32 +0000 (10:09 +0200)
Fix leading whitespaces
Unnecessary die
Unecessary dodir

Package-Manager: portage-2.2.21
Signed-off-by: Justin Lecher <jlec@gentoo.org>
app-misc/xmind/xmind-3.4.1.201401221918.ebuild
app-misc/xmind/xmind-3.5.1.201411201906.ebuild
app-misc/xmind/xmind-3.5.3.201506180105.ebuild

index 252f66de4ca866c7d76c9c11e2b5857dc6ed0001..7fd52347451a07f6a420dfe35d5e6da61355cbb6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -43,11 +43,13 @@ src_configure() {
        mv XMind/.eclipseproduct Commons || die
        cp "${FILESDIR}"/${PN}-3.4.0-config.ini Commons/configuration || die #Combined common+linux config.ini
        # force data instance & config area to be at home/.xmind directory
-       sed -i -e '/-configuration/d' \
+       sed \
+               -e '/-configuration/d' \
                -e '/\.\/configuration/d' \
                -e '/-data/d' \
-        -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
-               -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' XMind/XMind.ini || die
+               -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
+               -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' \
+               -i XMind/XMind.ini || die
        echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
        echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
 }
@@ -58,10 +60,9 @@ src_compile() {
 
 src_install() {
        insinto /opt/xmind
-       doins -r Commons XMind || die
+       doins -r Commons XMind
        fperms a+rx  "/opt/xmind/XMind/XMind"
 
-       dodir /opt/bin
        exeinto /opt/bin
        newexe "${FILESDIR}/xmind-wrapper" xmind
 
index 4a1c82e474d98584753534ac6f9fca6e1bf5f4d4..0dcc285605d4511b4507818f764fd053ca442a8d 100644 (file)
@@ -43,11 +43,13 @@ src_configure() {
        mv XMind/.eclipseproduct Commons || die
        cp "${FILESDIR}"/${PN}-3.4.0-config.ini Commons/configuration || die #Combined common+linux config.ini
        # force data instance & config area to be at home/.xmind directory
-       sed -i -e '/-configuration/d' \
+       sed \
+               -e '/-configuration/d' \
                -e '/\.\/configuration/d' \
                -e '/-data/d' \
-        -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
-               -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' XMind/XMind.ini || die
+               -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
+               -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' \
+               -i XMind/XMind.ini || die
        echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
        echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
 }
@@ -58,10 +60,9 @@ src_compile() {
 
 src_install() {
        insinto /opt/xmind
-       doins -r Commons XMind || die
+       doins -r Commons XMind
        fperms a+rx  "/opt/xmind/XMind/XMind"
 
-       dodir /opt/bin
        exeinto /opt/bin
        newexe "${FILESDIR}/xmind-wrapper" xmind
 
index 4a1c82e474d98584753534ac6f9fca6e1bf5f4d4..0dcc285605d4511b4507818f764fd053ca442a8d 100644 (file)
@@ -43,11 +43,13 @@ src_configure() {
        mv XMind/.eclipseproduct Commons || die
        cp "${FILESDIR}"/${PN}-3.4.0-config.ini Commons/configuration || die #Combined common+linux config.ini
        # force data instance & config area to be at home/.xmind directory
-       sed -i -e '/-configuration/d' \
+       sed \
+               -e '/-configuration/d' \
                -e '/\.\/configuration/d' \
                -e '/-data/d' \
-        -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
-               -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' XMind/XMind.ini || die
+               -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
+               -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' \
+               -i XMind/XMind.ini || die
        echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
        echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
 }
@@ -58,10 +60,9 @@ src_compile() {
 
 src_install() {
        insinto /opt/xmind
-       doins -r Commons XMind || die
+       doins -r Commons XMind
        fperms a+rx  "/opt/xmind/XMind/XMind"
 
-       dodir /opt/bin
        exeinto /opt/bin
        newexe "${FILESDIR}/xmind-wrapper" xmind