# Copyright 2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="6" inherit eutils DESCRIPTION="Multifunctional PDF editor" HOMEPAGE="https://code-industry.net/masterpdfeditor/" # FIXME: support qt4 and i386 SRC_URI="http://get.code-industry.net/public/${P}_qt5.amd64.tar.gz" RESTRICT="mirror" # TODO: Add license from: # https://code-industry.net/masterpdfeditor-help/license_agreement/ # Adding license: # https://devmanual.gentoo.org/general-concepts/licenses/ LICENSE="code-industry-master-pdf-editor" SLOT="0" KEYWORDS="-* ~amd64" IUSE="" QA_PREBUILT="*" DEPEND="dev-qt/qtcore:5" RDEPEND="${DEPEND} media-gfx/sane-backends" S=${WORKDIR}/master-pdf-editor-4 src_install() { insinto /opt/${PN} doins -r * fperms +x /opt/${PN}/masterpdfeditor4 dosym /opt/${PN}/masterpdfeditor4 /opt/bin/masterpdfeditor4 doicon -s 128 masterpdfeditor4.png make_desktop_entry masterpdfeditor4 "Master PDF Editor" masterpdfeditor4 "Office;WordProcessor" "MimeType=application/pdf;" }