mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
media-plugins/photoqt-extensions: new package, add 5.2
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://codeberg.org/gentoo/gentoo/pulls/839 Merges: https://codeberg.org/gentoo/gentoo/pulls/839 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
814a25aa0d
commit
5b4407a698
1
media-plugins/photoqt-extensions/Manifest
Normal file
1
media-plugins/photoqt-extensions/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST photoqt-extensions-v5.2.tar.bz2 81461 BLAKE2B 3d80ca8a73d43d9aa55604d81eac56fd6574797e381b2f8be0885c0629ddddc3e5c7e7f74c99037195eb8833e77ac9af287400f95a87df23832e7cdf5984c297 SHA512 2ef100d91c23f09502e5c65eefd34735e6f5ae9d11126d69a1579737f5ae25b810fdf335b8e72f087ef7f742ebd3d4aaa30235c07b6d9ed4dd77c30ea0902031
|
||||
19
media-plugins/photoqt-extensions/metadata.xml
Normal file
19
media-plugins/photoqt-extensions/metadata.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>nicolas.parlant@parhuet.fr</email>
|
||||
<name>Nicolas PARLANT</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="histogram">Support histogram using <pkg>dev-qt/qtcharts</pkg></flag>
|
||||
<flag name="imagemagick">Support image manipulation: crop, export, scale</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="gitlab">lspies/photoqt-extensions</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,53 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Official extensions for PhotoQt"
|
||||
HOMEPAGE="https://photoqt.org/extensions"
|
||||
SRC_URI="https://gitlab.com/lspies/photoqt-extensions/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
|
||||
S="${WORKDIR}/${PN}-v${PV}"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="geolocation graphicsmagick histogram +imagemagick"
|
||||
|
||||
DEPEND="
|
||||
dev-qt/qtbase:6[dbus,gui,network,opengl,sql,sqlite,widgets]
|
||||
dev-qt/qtdeclarative:6[opengl]
|
||||
dev-qt/qtsvg:6
|
||||
imagemagick? (
|
||||
!graphicsmagick? ( media-gfx/imagemagick:=[cxx,hdri] )
|
||||
graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
~media-gfx/photoqt-${PV}[extensions]
|
||||
geolocation? (
|
||||
dev-qt/qtlocation:6
|
||||
dev-qt/qtpositioning:6[qml]
|
||||
)
|
||||
histogram? ( dev-qt/qtcharts:6[qml] )
|
||||
"
|
||||
BDEPEND="dev-qt/qttools:6[linguist]"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_MAPCURRENT=$(usex geolocation)
|
||||
-DBUILD_HISTOGRAM=$(usex histogram)
|
||||
-DBUILD_CROPIMAGE=$(usex imagemagick)
|
||||
-DBUILD_EXPORTIMAGE=$(usex imagemagick)
|
||||
-DBUILD_SCALEIMAGE=$(usex imagemagick)
|
||||
)
|
||||
|
||||
use imagemagick && mycmakeargs+=(
|
||||
-DWITH_GRAPHICSMAGICK=$(usex graphicsmagick $(usex imagemagick))
|
||||
-DWITH_IMAGEMAGICK=$(usex imagemagick $(usex !graphicsmagick))
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user