mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-23 07:29:19 +02:00
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> Part-of: https://github.com/gentoo/gentoo/pull/42819 Signed-off-by: Sam James <sam@gentoo.org>
95 lines
2.2 KiB
Bash
95 lines
2.2 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson toolchain-funcs xdg
|
|
|
|
DESCRIPTION="A free astronomical image processing software"
|
|
HOMEPAGE="https://siril.org/"
|
|
|
|
if [[ ${PV} == "9999" ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://gitlab.com/free-astro/${PN}.git"
|
|
else
|
|
SRC_URI="https://gitlab.com/free-astro/siril/-/archive/${PV/_/-}/${PN}-${PV/_/-}.tar.bz2"
|
|
KEYWORDS="~amd64 ~x86"
|
|
S="${WORKDIR}/${PN}-${PV/_/-}"
|
|
fi
|
|
|
|
LICENSE="GPL-3+ Boost-1.0"
|
|
SLOT="0"
|
|
IUSE="curl exif ffmpeg git heif jpeg jpegxl openmp png raw tiff"
|
|
|
|
# TODO: Siril depends optionally on gtksourceview-4, which is deprecated. Add
|
|
# gui-libs/gtksourceview if version 5 is supported by upstream.
|
|
DEPEND="
|
|
>=dev-libs/glib-2.56.0:2
|
|
>=dev-libs/yyjson-0.10.0:=
|
|
media-libs/lcms:=
|
|
media-libs/librtprocess
|
|
>=media-libs/opencv-4.2.0:=[features2d]
|
|
>=sci-astronomy/wcslib-7.12:=
|
|
sci-libs/cfitsio:=
|
|
sci-libs/fftw:3.0=
|
|
sci-libs/gsl:=
|
|
x11-libs/gdk-pixbuf:2
|
|
x11-libs/cairo
|
|
x11-libs/pango
|
|
>=x11-libs/gtk+-3.22.0:3
|
|
curl? ( net-misc/curl )
|
|
exif? ( >=media-gfx/exiv2-0.25:= )
|
|
ffmpeg? ( media-video/ffmpeg:= )
|
|
git? ( dev-libs/libgit2:= )
|
|
heif? ( media-libs/libheif:= )
|
|
jpeg? ( media-libs/libjpeg-turbo:= )
|
|
jpegxl? ( media-libs/libjxl:= )
|
|
png? ( >=media-libs/libpng-1.6.0:= )
|
|
raw? ( media-libs/libraw:= )
|
|
tiff? ( media-libs/tiff:= )
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
"
|
|
BDEPEND="dev-build/cmake
|
|
x11-base/xorg-proto"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-docfiles.patch"
|
|
)
|
|
|
|
DOCS=( README.md ChangeLog AUTHORS )
|
|
|
|
pkg_pretend() {
|
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
}
|
|
|
|
pkg_setup() {
|
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
}
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
-DlibXISF=false
|
|
-Dffms2=false
|
|
-Dcriterion=false
|
|
$(meson_use curl libcurl)
|
|
$(meson_use exif exiv2)
|
|
$(meson_use ffmpeg)
|
|
$(meson_use git libgit2)
|
|
$(meson_use heif libheif)
|
|
$(meson_use jpeg libjpeg)
|
|
$(meson_use jpegxl libjxl)
|
|
$(meson_use openmp)
|
|
$(meson_use png libpng)
|
|
$(meson_use raw libraw)
|
|
$(meson_use tiff libtiff)
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_desktop_database_update
|
|
xdg_icon_cache_update
|
|
xdg_mimeinfo_database_update
|
|
}
|