From 9b1cdc9741e6a0950bd9690aed3a40db19e72f86 Mon Sep 17 00:00:00 2001
From: Dongxu Li <dongxuli2011@gmail.com>
Date: Thu, 14 Jan 2016 10:04:36 -0500
Subject: media-gfx/librecad: cleanup

---
 media-gfx/librecad/librecad-2.0.9.ebuild | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'media-gfx')

diff --git a/media-gfx/librecad/librecad-2.0.9.ebuild b/media-gfx/librecad/librecad-2.0.9.ebuild
index 01275c7c3634..fb31be3b1a81 100644
--- a/media-gfx/librecad/librecad-2.0.9.ebuild
+++ b/media-gfx/librecad/librecad-2.0.9.ebuild
@@ -42,12 +42,13 @@ S="${WORKDIR}/LibreCAD-${PV}"
 
 src_prepare() {
 	# currently RS_VECTOR3D causes an internal compiler error on GCC-4.8
-	use 3d || sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die
+	if ! use 3d; then
+		sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die
+	fi
 }
 
 src_configure() {
-	if use qt4
-	then
+	if use qt4; then
 		eqmake4 -r
 	else
 		eqmake5 -r
@@ -59,9 +60,9 @@ src_install() {
 	use tools && dobin unix/ttf2lff
 	insinto /usr/share/${PN}
 	doins -r unix/resources/*
-	use doc && dohtml -r librecad/support/doc/*
+	use doc && instinto html && dodoc -r librecad/support/doc/*
 	insinto /usr/share/appdata
 	doins unix/appdata/librecad.appdata.xml
-	doicon librecad/res/main/"${PN}".png
+	doicon librecad/res/main/${PN}.png
 	make_desktop_entry ${PN} LibreCAD ${PN} Graphics
 }
-- 
cgit v1.2.3-65-gdbad