app-emulation/genymotion-bin: correct bash completion
authorDa Risk <da_risk@geekorum.com>
Tue, 09 May 2017 14:14:58 -0700
changeset 214 39e314e94c59
parent 213 83b6f114ac24
child 215 8c89db9f45f4
app-emulation/genymotion-bin: correct bash completion
app-emulation/genymotion-bin/genymotion-bin-2.9.0.ebuild
--- a/app-emulation/genymotion-bin/genymotion-bin-2.9.0.ebuild	Tue May 09 12:44:39 2017 -0700
+++ b/app-emulation/genymotion-bin/genymotion-bin-2.9.0.ebuild	Tue May 09 14:14:58 2017 -0700
@@ -55,6 +55,13 @@
 	tail -n +$skip "${DISTDIR}/${A}" | tar -xj -C "${S}"
 }
 
+src_prepare() {
+	default
+
+	# removed windows line for bashcompletion
+	sed -i -e "s/complete\ -F\ _gmtool\ gmtool.exe//" "completion/bash/gmtool.bash" || die "sed failed"
+}
+
 QA_PREBUILT="
 	opt/${MY_PN}/*.so*
 	opt/${MY_PN}/imageformats/*.so