Skip to content

Commit

Permalink
media-gfx/librecad: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Jan 14, 2016
1 parent 4423efc commit 9b1cdc9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions media-gfx/librecad/librecad-2.0.9.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

0 comments on commit 9b1cdc9

Please sign in to comment.