# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=7 inherit cmake-utils eutils DESCRIPTION="A lightweight memo tool to make text notes and voice recordings" HOMEPAGE="https://github.com/linuxdeepin/deepin-voice-note" if [[ "${PV}" == *9999* ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/linuxdeepin/${PN}.git" else SRC_URI="https://github.com/linuxdeepin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~x86" fi LICENSE="GPL-3" SLOT="0" IUSE="" RDEPEND="dev-qt/qtcore:5 dev-qt/qtmultimedia:5 dev-qt/qtwidgets:5 dev-qt/qtgui:5 dev-qt/qtsql:5 dev-qt/qtdbus:5 x11-libs/startup-notification " DEPEND="${RDEPEND} media-libs/fontconfig media-libs/freetype virtual/ffmpeg >=dde-base/dde-qt-dbus-factory-5.0.16 >=dde-base/dtkwidget-5.1.2:= " src_prepare() { sed -i "/\#include /a\#include " \ src/views/middleviewdelegate.cpp \ src/views/leftviewdelegate.cpp || die cmake-utils_src_prepare } src_configure() { local mycmakeargs=( -DVERSION=${PV} ) cmake-utils_src_configure }