# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" inherit qt4-r2 multilib DESCRIPTION="cross-platform serial port class" HOMEPAGE="http://code.google.com/p/qextserialport/" MY_PV="${PV/_rc/rc}" SRC_URI="http://qextserialport.googlecode.com/files/${PN}-${MY_PV}.zip" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc examples udev" RDEPEND="dev-qt/qtcore:4 udev? ( virtual/udev )" DEPEND="${RDEPEND}" S=${WORKDIR}/${PN}-${MY_PV} src_prepare() { sed -e "s!\(target.path\s*=\).*!\1${EPREFIX}/usr/$(get_libdir)!" \ -e "s!\(headers.path\s*=\).*!\1${EPREFIX}/usr/include!" -i ${PN}.pro || die if use udev; then sed -e "1i \CONFIG += qesp_linux_udev" -i ${PN}.pro || die fi qt4-r2_src_prepare } src_install() { qt4-r2_src_install if use doc ; then dohtml -r doc/html/* fi if use examples ; then insinto /usr/share/${PF}/examples doins -r examples/* fi }