media-plugins/qt-avif-image-plugin: new package

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Daniel Novomesky <dnovomesky@gmail.com>
This commit is contained in:
Daniel Novomesky
2020-05-25 16:01:29 +02:00
parent 413d811385
commit 8f24548373
2 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>dnovomesky@gmail.com</email>
<name>Daniel Novomesky</name>
</maintainer>
<longdescription>
Qt imageformat plugin which enables Qt and KDE applications
to open and save AVIF images.
Plug-in used libavif.
When installed, following applications are known to open AVIF images:
gwenview
KolourPaint
nomacs
KPhotoAlbum
digiKam
qView
LXImage-Qt
</longdescription>
</pkgmetadata>

View File

@@ -0,0 +1,41 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit cmake xdg-utils
DESCRIPTION="Qt plug-in to allow Qt and KDE based applications to read/write AVIF images."
HOMEPAGE="https://github.com/novomesk/qt-avif-image-plugin"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/novomesk/qt-avif-image-plugin.git"
else
SRC_URI="https://github.com/novomesk/qt-avif-image-plugin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS=""
fi
LICENSE="BSD-2"
SLOT="0"
IUSE=""
DEPEND=">=dev-qt/qtgui-5.12.3:5
>=media-libs/libavif-0.8.0
"
BDEPEND=">=kde-frameworks/extra-cmake-modules-5.70:5"
RDEPEND="${DEPEND}"
src_install() {
cmake_src_install
insinto /usr/share/mime/packages/
doins share/mime/packages/avif.xml
doins share/mime/packages/avifs.xml
}
pkg_postinst() {
xdg_mimeinfo_database_update
}