# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/plcedit/plcedit-2.2.1.ebuild,v 1.6 2013/03/03 07:37:07 dirtyepic Exp $ EAPI="2" inherit eutils versionator qt4-r2 MY_PN="PLCEdit" DESCRIPTION="Qt4 notepad for PLC programming" HOMEPAGE="http://www.qt-apps.org/content/show.php/PLCEdit?content=78380" #upstreams default tarball is quite messy. Better repack it myself :/ SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="debug doc" RDEPEND="dev-qt/qtgui:4" DEPEND="${RDEPEND}" src_prepare() { epatch "${FILESDIR}"/${P}-gcc47.patch if use doc; then sed -i -e "/helpDir =/s:Help:html:" \ -e "s:(QApplication\:\:applicationDirPath():\"/usr/share/doc/${PF}\":g" \ -e "/ + helpDir/s:helpDir):helpDir:" \ src/helpwidget.cpp fi qt4-r2_src_prepare } src_install() { newbin release/${MY_PN} ${PN} || die "dobin failed" newicon src/ressources/images/icon.png ${PN}.png make_desktop_entry ${PN} ${MY_PN} ${PN} 'Qt;Electronics' dodoc readme.txt || die "dodoc failed" if use doc; then dohtml -r Docs/html/* || die "dohtml failed" fi }