Skip to content

Commit

Permalink
app-misc/xmind: QA fixes
Browse files Browse the repository at this point in the history
Fix leading whitespaces
Unnecessary die
Unecessary dodir

Package-Manager: portage-2.2.21
Signed-off-by: Justin Lecher <[email protected]>
  • Loading branch information
jlec committed Sep 25, 2015
1 parent ef5fd42 commit d2e84cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
13 changes: 7 additions & 6 deletions app-misc/xmind/xmind-3.4.1.201401221918.ebuild
Original file line number Diff line number Diff line change
@@ -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$

Expand Down Expand Up @@ -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 '[email protected]/.xmind/workspace-cathy' >> XMind/XMind.ini || die
echo '[email protected]/.xmind/configuration-cathy' >> XMind/XMind.ini || die
}
Expand All @@ -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

Expand Down
11 changes: 6 additions & 5 deletions app-misc/xmind/xmind-3.5.1.201411201906.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 '[email protected]/.xmind/workspace-cathy' >> XMind/XMind.ini || die
echo '[email protected]/.xmind/configuration-cathy' >> XMind/XMind.ini || die
}
Expand All @@ -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

Expand Down
11 changes: 6 additions & 5 deletions app-misc/xmind/xmind-3.5.3.201506180105.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 '[email protected]/.xmind/workspace-cathy' >> XMind/XMind.ini || die
echo '[email protected]/.xmind/configuration-cathy' >> XMind/XMind.ini || die
}
Expand All @@ -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

Expand Down

0 comments on commit d2e84cf

Please sign in to comment.