summaryrefslogtreecommitdiff
path: root/sci-astronomy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-15 13:42:19 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-15 13:42:19 +0100
commitbd8ca999980e9c0c9ae40a11789c858bb58769e3 (patch)
tree355d68a84921e04a81231e74fc062f229f76a733 /sci-astronomy
parentb3f2504c1d05b5999b74b2135860fc721e3adf68 (diff)
gentoo auto-resync : 15:07:2022 - 13:42:19
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/Manifest.gzbin6846 -> 6836 bytes
-rw-r--r--sci-astronomy/siril/Manifest8
-rw-r--r--sci-astronomy/siril/files/siril-1.0.3-dependencies.patch177
-rw-r--r--sci-astronomy/siril/files/siril-9999-dependencies.patch198
-rw-r--r--sci-astronomy/siril/metadata.xml1
-rw-r--r--sci-astronomy/siril/siril-1.0.3.ebuild83
-rw-r--r--sci-astronomy/siril/siril-9999.ebuild26
7 files changed, 485 insertions, 8 deletions
diff --git a/sci-astronomy/Manifest.gz b/sci-astronomy/Manifest.gz
index 76d70d85312b..b8ecfb0906b6 100644
--- a/sci-astronomy/Manifest.gz
+++ b/sci-astronomy/Manifest.gz
Binary files differ
diff --git a/sci-astronomy/siril/Manifest b/sci-astronomy/siril/Manifest
index 54bb916b9f6c..bbad7ff33456 100644
--- a/sci-astronomy/siril/Manifest
+++ b/sci-astronomy/siril/Manifest
@@ -1,5 +1,9 @@
+AUX siril-1.0.3-dependencies.patch 4623 BLAKE2B a6a92adfdf0f3166325516036b5b15a683456d567653cc1a08e52f4754a4b59dede1a894f32eb1fb2b92dc0b9ca729e3705927889a040608602455d648e8c5e2 SHA512 bb73384fbc4f092ffb07dc6b0e4d2edd564b9fc1ec462f54b6fc28ce933a939e8f72cd8830a36f3e1bd73cac83dad5d80af1ca3b673c39e90a5730bc56a10f0e
+AUX siril-9999-dependencies.patch 5217 BLAKE2B 3f9753c47b8ee337c75ea47d811c5df7e4a08fabdbd8d53546fbe94a56a298a74067ea34cfe98d8c443741fdb36a735e897534b078959f8747fbfb5b1b4114b8 SHA512 c2c695ff725a8c761c1a1f3bfc0e0952ad6faa29201aaec07ba61d1b6387f8ed847c0786299cc40f3a0fef2b7f6ea087186d1177c11a509c3a80ba7ec32dc221
AUX siril-docfiles.patch 433 BLAKE2B 3c781f4a0604f56ada235094eb481b4b51912921719ee198c7d2400a7dffbb4034d34505f5d7221b033efbbbe11b07332938a6dc0bc616bb6f6480e41475653e SHA512 2d770a2cb86d95c291beb6077ab01560e118bc84d838dfeef50bc9a812469fea568cdfe1c9b5d1a90b778527b65a397aac1656008739cff88ffc80ba6fd09c72
DIST siril-1.0.1.tar.bz2 2846127 BLAKE2B 15c87e9d3ae175170ad67c1fc65abcca43220d8320df3ba2351cc49d495f9b9dde85d4143b2aa52950b92eb36f10e0ca6548d10e22e072e00596b8fdb535ce1c SHA512 ea35940b370b35802816a90789982dd328ba20d322d092c623c244de949b08810e3ad9552ce3dcc4cc6e2d6b5bf128ac668cbe4ff6ef78d22a4e6ed94b850ffa
+DIST siril-1.0.3.tar.bz2 2900334 BLAKE2B 7ec4995ae0f2b66a8575ac6d680dd639bc6d4c429428c2b29eebf8ea1989dae4669bf81b957d4be7889616b09a3b4febb7c1f1da950d36c68bbec152d4cc0041 SHA512 bd8e5d1bba71b0f14f9284a5072e7524d6005c22c55bed45a8e0113456c94ea5ac2a2befbe84c1e827fa410ee9031215343183d2d49f52df681ee4f5dc1a478a
EBUILD siril-1.0.1.ebuild 1609 BLAKE2B 933c63c2afe10cb6948bfa94e3599fc70477ff1e9ed78e4acf3fd460e8de4464c2494d055693d8d0883b723a49e8ff8aed3b2710f529affdc732b5a09b5cdd64 SHA512 e6d718dc597bf50ce8a78b6ac06c57e4986004c7fbf569e94bd819369670b8423074c9ea11fa8385b1159ad1b361c326345b8d0fe24f2580aff3ea20e8d56530
-EBUILD siril-9999.ebuild 1609 BLAKE2B 933c63c2afe10cb6948bfa94e3599fc70477ff1e9ed78e4acf3fd460e8de4464c2494d055693d8d0883b723a49e8ff8aed3b2710f529affdc732b5a09b5cdd64 SHA512 e6d718dc597bf50ce8a78b6ac06c57e4986004c7fbf569e94bd819369670b8423074c9ea11fa8385b1159ad1b361c326345b8d0fe24f2580aff3ea20e8d56530
-MISC metadata.xml 1193 BLAKE2B 9f96f4e276f27e19f5e3d5d9807a8d7f18ae50b5baa2f158130d3fac1dbda96aa70a7fb9126f6987fc518f214d4a6cfcee548c0d22beac74e434f25c001ae990 SHA512 4fb382297b5098d66c12ffdbda55e6fa6e085c9cc050ec0584497020ee4820d76cefc7a93de504642c4a27181685f69cc0d31eb3398a5d168aa15ea7c3ea72db
+EBUILD siril-1.0.3.ebuild 1888 BLAKE2B 034555c7cf929d1725e745c5f767c0b24f744826c5c736525b1abeb9e07ddc28e2507bf9a6d4e3d4fe346a4d9976c808d4162956fe08d58107546b93bd7f5814 SHA512 eb67bdfb163e863b4f94e4394eafb17273809a5b7a2af539ad55d5ab668b6fa84fa63a6a1c3f71b02936674acee830de498d7640100cef3f4971a03500180a76
+EBUILD siril-9999.ebuild 1944 BLAKE2B 502cf3e442b0c0c171edc8044d7a5af3852fc4346fcf6f87bc8e5fe407596358381ae70765a2a0d61840451ef5f5c3202a4a48c40a2de30789093ea0d1eb6357 SHA512 76c9542cf1018d004e1e4a35033a30e3fa5a44efa1ca8ace70222f553b5f7dd004fe128b1a061d5da2f7989470b069ce8b4c54af70085c7324b010dd91213dc8
+MISC metadata.xml 1295 BLAKE2B fa25ab59a14b1fcf3fefcb2d94c5b4c18d6925c6c38643db8a8ab7472d276d62a0576893540c95301d6fa9845f49be51cf9cca6593bbcb61581d7c1a0fdb404e SHA512 ba7d178394de1bc3326969647108771efe82c4b4bc3c293592840d55fa9ec5f6fafcb852f4fd0e427e445cc5984c74df436f7d95538631942a145f7f9dfd3dc3
diff --git a/sci-astronomy/siril/files/siril-1.0.3-dependencies.patch b/sci-astronomy/siril/files/siril-1.0.3-dependencies.patch
new file mode 100644
index 000000000000..84595472e63f
--- /dev/null
+++ b/sci-astronomy/siril/files/siril-1.0.3-dependencies.patch
@@ -0,0 +1,177 @@
+diff --git a/meson.build b/meson.build
+index 3d8e5508..5572bf61 100644
+--- a/meson.build
++++ b/meson.build
+@@ -42,7 +42,16 @@ srcInclude = include_directories('src')
+
+ warnings = []
+
+-enable_openmp = get_option('openmp')
++enable_openmp = get_option('openmp')
++enable_libraw = get_option('libraw')
++enable_libtiff = get_option('libtiff')
++enable_libjpeg = get_option('libjpeg')
++enable_libpng = get_option('libpng')
++enable_libheif = get_option('libheif')
++enable_ffms2 = get_option('ffms2')
++enable_ffmpeg = get_option('ffmpeg')
++enable_wcslib = get_option('wcslib')
++enable_criterion = get_option('criterion')
+
+ # General version
+ siril_version = meson.project_version()
+@@ -257,32 +266,67 @@ if enable_openmp
+ siril_cpp_flag += ['-Xpreprocessor', '-fopenmp']
+ siril_c_flag += ['-Xpreprocessor', '-fopenmp']
+ else
+- openmp_dep = dependency('openmp', required : false)
++ openmp_dep = dependency('openmp', required : true)
+ endif
+ else
+ message('OpenMP disabled')
+ endif
+
+-libraw_dep = dependency('libraw', required : false)
+-libtiff_dep = dependency('libtiff-4', required : false)
+-libjpeg_dep = dependency('libjpeg', required : false)
+-libpng_dep = dependency('libpng', required : false, version: '>= 1.6.0')
+-libheif_dep = dependency('libheif', required : false)
+-ffms2_dep = dependency('ffms2', required : false)
+-ffmpeg = [
+- dependency('libavformat', required : false),
+- dependency('libavcodec', required : false),
+- dependency('libavutil', version : '>= 55.20', required : false),
+- dependency('libswscale', required : false),
+- dependency('libswresample', required : false)
+-]
++libraw_dep = no_dep
++if enable_libraw
++ libraw_dep = dependency('libraw', required : true)
++endif
++
++libtiff_dep = no_dep
++if enable_libtiff
++ libtiff_dep = dependency('libtiff-4', required : true)
++endif
++
++libjpeg_dep = no_dep
++if enable_libjpeg
++ libjpeg_dep = dependency('libjpeg', required : true)
++endif
++
++libpng_dep = no_dep
++if enable_libpng
++ libpng_dep = dependency('libpng', required : true, version: '>= 1.6.0')
++endif
++
++libheif_dep = no_dep
++if enable_libheif
++ libheif_dep = dependency('libheif', required : true)
++endif
++
++ffms2_dep = no_dep
++if enable_ffms2
++ ffms2_dep = dependency('ffms2', required : true)
++endif
++
++ffmpeg = []
++if enable_ffmpeg
++ ffmpeg = [
++ dependency('libavformat', required : true),
++ dependency('libavcodec', required : true),
++ dependency('libavutil', version : '>= 55.20', required : true),
++ dependency('libswscale', required : true),
++ dependency('libswresample', required : true)
++ ]
++endif
++
+ libcurl_dep = no_dep
+ if enable_libcurl
+- libcurl_dep = dependency('libcurl', required : false)
++ libcurl_dep = dependency('libcurl', required : true)
++endif
++
++criterion_dep = no_dep
++if enable_criterion
++ criterion_dep = dependency('criterion', required : true)
+ endif
+-criterion_dep = dependency('criterion', required : false)
+
+-wcslib_dep = dependency('wcslib', fallback : ['wcslib', 'wcslib_dep'], required : false)
++wcslib_dep = no_dep
++if enable_wcslib
++ wcslib_dep = dependency('wcslib', fallback : ['wcslib', 'wcslib_dep'], required : true)
++endif
+
+ ################################################################################
+ # Configuration
+diff --git a/meson_options.txt b/meson_options.txt
+index cd4b9cc1..5e48ae1f 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -12,9 +12,63 @@ option('openmp',
+ description: 'build with OpenMP support'
+ )
+
++option('libraw',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with LibRaw support'
++)
++
++option('libtiff',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with TIFF support'
++)
++
++option('libjpeg',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with JPEG support'
++)
++
++option('libpng',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with PNG support'
++)
++
++option('libheif',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with HEIF support'
++)
++
++option('ffms2',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with FFMS2 support'
++)
++
++option('ffmpeg',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with FFmpeg support'
++)
++
+ option('enable-libcurl',
+ type: 'combo',
+ value: 'platform-default',
+ description: 'Use libcurl instead of GIO',
+ choices: [ 'yes', 'no', 'platform-default' ]
+-)
+\ No newline at end of file
++)
++
++option('criterion',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with criterion support'
++)
++
++option('wcslib',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with WCSLIB support'
++)
diff --git a/sci-astronomy/siril/files/siril-9999-dependencies.patch b/sci-astronomy/siril/files/siril-9999-dependencies.patch
new file mode 100644
index 000000000000..b9ed88f98e8a
--- /dev/null
+++ b/sci-astronomy/siril/files/siril-9999-dependencies.patch
@@ -0,0 +1,198 @@
+diff --git a/meson.build b/meson.build
+index fdfc3745..c8823c6f 100644
+--- a/meson.build
++++ b/meson.build
+@@ -42,7 +42,17 @@ srcInclude = include_directories('src')
+
+ warnings = []
+
+-enable_openmp = get_option('openmp')
++enable_openmp = get_option('openmp')
++enable_libraw = get_option('libraw')
++enable_libtiff = get_option('libtiff')
++enable_libjpeg = get_option('libjpeg')
++enable_libpng = get_option('libpng')
++enable_libheif = get_option('libheif')
++enable_ffms2 = get_option('ffms2')
++enable_ffmpeg = get_option('ffmpeg')
++enable_libconfig = get_option('libconfig')
++enable_criterion = get_option('criterion')
++enable_wcslib = get_option('wcslib')
+
+ # General version
+ siril_version = meson.project_version()
+@@ -256,33 +266,72 @@ if enable_openmp
+ siril_cpp_flag += ['-Xpreprocessor', '-fopenmp']
+ siril_c_flag += ['-Xpreprocessor', '-fopenmp']
+ else
+- openmp_dep = dependency('openmp', required : false)
++ openmp_dep = dependency('openmp', required : true)
+ endif
+ else
+ message('OpenMP disabled')
+ endif
+
+-libraw_dep = dependency('libraw', required : false)
+-libtiff_dep = dependency('libtiff-4', required : false)
+-libjpeg_dep = dependency('libjpeg', required : false)
+-libpng_dep = dependency('libpng', required : false, version: '>= 1.6.0')
+-libheif_dep = dependency('libheif', required : false)
+-ffms2_dep = dependency('ffms2', required : false)
+-ffmpeg = [
+- dependency('libavformat', required : false),
+- dependency('libavcodec', required : false),
+- dependency('libavutil', version : '>= 55.20', required : false),
+- dependency('libswscale', required : false),
+- dependency('libswresample', required : false)
+-]
++libraw_dep = no_dep
++if enable_libraw
++ libraw_dep = dependency('libraw', required : true)
++endif
++
++libtiff_dep = no_dep
++if enable_libtiff
++ libtiff_dep = dependency('libtiff-4', required : true)
++endif
++
++libjpeg_dep = no_dep
++if enable_libjpeg
++ libjpeg_dep = dependency('libjpeg', required : true)
++endif
++
++libpng_dep = no_dep
++if enable_libpng
++ libpng_dep = dependency('libpng', required : true, version: '>= 1.6.0')
++endif
++
++libheif_dep = no_dep
++if enable_libheif
++ libheif_dep = dependency('libheif', required : true)
++endif
++
++ffms2_dep = no_dep
++if enable_ffms2
++ ffms2_dep = dependency('ffms2', required : true)
++endif
++
++ffmpeg = []
++if enable_ffmpeg
++ ffmpeg = [
++ dependency('libavformat', required : true),
++ dependency('libavcodec', required : true),
++ dependency('libavutil', version : '>= 55.20', required : true),
++ dependency('libswscale', required : true),
++ dependency('libswresample', required : true)
++ ]
++endif
++
+ libcurl_dep = no_dep
+ if enable_libcurl
+- libcurl_dep = dependency('libcurl', required : false)
++ libcurl_dep = dependency('libcurl', required : true)
+ endif
+-libconfig_dep = dependency('libconfig', required : false)
+-criterion_dep = dependency('criterion', required : false)
+
+-wcslib_dep = dependency('wcslib', fallback : ['wcslib', 'wcslib_dep'], required : false)
++libconfig_dep = no_dep
++if enable_libconfig
++ libconfig_dep = dependency('libconfig', required : true)
++endif
++
++criterion_dep = no_dep
++if enable_criterion
++ criterion_dep = dependency('criterion', required : true)
++endif
++
++wcslib_dep = no_dep
++if enable_wcslib
++ wcslib_dep = dependency('wcslib', fallback : ['wcslib', 'wcslib_dep'], required : true)
++endif
+
+ ################################################################################
+ # Configuration
+@@ -546,6 +595,7 @@ summary(
+ 'FFMPEG' : ffmpeg_found,
+ 'libcurl' : libcurl_dep.found(),
+ 'wcslib' : wcslib_dep.found(),
++ 'libconfig' : libconfig_dep.found(),
+ 'criterion' : criterion_dep.found(),
+ }, section: 'Optional dependencies'
+ )
+diff --git a/meson_options.txt b/meson_options.txt
+index cd4b9cc1..07b4b904 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -12,9 +12,69 @@ option('openmp',
+ description: 'build with OpenMP support'
+ )
+
++option('libraw',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with LibRaw support'
++)
++
++option('libtiff',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with TIFF support'
++)
++
++option('libjpeg',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with JPEG support'
++)
++
++option('libpng',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with PNG support'
++)
++
++option('libheif',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with HEIF support'
++)
++
++option('ffms2',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with FFMS2 support'
++)
++
++option('ffmpeg',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with FFmpeg support'
++)
++
+ option('enable-libcurl',
+ type: 'combo',
+ value: 'platform-default',
+ description: 'Use libcurl instead of GIO',
+ choices: [ 'yes', 'no', 'platform-default' ]
+-)
+\ No newline at end of file
++)
++
++option('libconfig',
++ type : 'boolean',
++ value : 'true',
++ description: 'build with libconfig support'
++)
++
++option('criterion',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with criterion support'
++)
++
++option('wcslib',
++ type : 'boolean',
++ value : 'false',
++ description: 'build with WCSLIB support'
++)
diff --git a/sci-astronomy/siril/metadata.xml b/sci-astronomy/siril/metadata.xml
index 580487d37ad5..3279b152afca 100644
--- a/sci-astronomy/siril/metadata.xml
+++ b/sci-astronomy/siril/metadata.xml
@@ -22,6 +22,7 @@
</longdescription>
<use>
<flag name="heif">Add support for the HEIF image format</flag>
+ <flag name="libconfig">Require <pkg>dev-libs/libconfig</pkg> to read old configuration files</flag>
<flag name="wcs">Add supprt astrometry features using <pkg>sci-astronomy/wcslib</pkg></flag>
</use>
<upstream>
diff --git a/sci-astronomy/siril/siril-1.0.3.ebuild b/sci-astronomy/siril/siril-1.0.3.ebuild
new file mode 100644
index 000000000000..4954c6f5912e
--- /dev/null
+++ b/sci-astronomy/siril/siril-1.0.3.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson optfeature toolchain-funcs xdg
+
+DESCRIPTION="A free astronomical image processing software"
+HOMEPAGE="https://www.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 ffmpeg heif jpeg openmp png raw tiff wcs"
+
+DEPEND="
+ >=dev-libs/glib-2.56.0:2
+ >=dev-libs/json-glib-1.2.6
+ >=dev-libs/libconfig-1.4[cxx]
+ >=media-gfx/exiv2-0.25
+ media-libs/librtprocess:=
+ >=media-libs/opencv-4.4.0:=
+ sci-libs/cfitsio
+ sci-libs/fftw:3.0=
+ sci-libs/gsl:=
+ x11-libs/cairo
+ >=x11-libs/gtk+-3.20.0:3
+ curl? ( net-misc/curl )
+ ffmpeg? ( media-video/ffmpeg:= )
+ heif? ( media-libs/libheif )
+ jpeg? ( media-libs/libjpeg-turbo:= )
+ png? ( >=media-libs/libpng-1.6.0 )
+ raw? ( media-libs/libraw )
+ tiff? ( media-libs/tiff )
+ wcs? ( >=sci-astronomy/wcslib-7.7 )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-docfiles.patch"
+ "${FILESDIR}/${P}-dependencies.patch"
+)
+
+DOCS=( README.md NEWS 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=(
+ -Dffms2=false
+ -Dcriterion=false
+ $(meson_use ffmpeg)
+ $(meson_use heif libheif)
+ $(meson_use jpeg libjpeg)
+ $(meson_use openmp)
+ $(meson_use png libpng)
+ $(meson_use raw libraw)
+ $(meson_use tiff libtiff)
+ $(meson_use wcs wcslib)
+ $(usex curl -Denable-libcurl=yes -Denable-libcurl=no)
+ )
+ meson_src_configure
+}
+
+pkg_postinst() {
+ optfeature "gnuplot support" sci-visualization/gnuplot
+}
diff --git a/sci-astronomy/siril/siril-9999.ebuild b/sci-astronomy/siril/siril-9999.ebuild
index 9f673bad189f..ebbd20b9dcf6 100644
--- a/sci-astronomy/siril/siril-9999.ebuild
+++ b/sci-astronomy/siril/siril-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit meson toolchain-funcs xdg
+inherit meson optfeature toolchain-funcs xdg
DESCRIPTION="A free astronomical image processing software"
HOMEPAGE="https://www.siril.org/"
@@ -17,14 +17,13 @@ else
S="${WORKDIR}/${PN}-${PV/_/-}"
fi
-LICENSE="GPL-3+"
+LICENSE="GPL-3+ Boost-1.0"
SLOT="0"
-IUSE="curl ffmpeg gnuplot heif jpeg openmp png raw tiff wcs"
+IUSE="curl ffmpeg heif jpeg libconfig openmp png raw tiff wcs"
DEPEND="
>=dev-libs/glib-2.56.0:2
>=dev-libs/json-glib-1.2.6
- >=dev-libs/libconfig-1.4[cxx]
>=media-gfx/exiv2-0.25
media-libs/librtprocess:=
>=media-libs/opencv-4.4.0:=
@@ -36,6 +35,7 @@ DEPEND="
curl? ( net-misc/curl )
ffmpeg? ( media-video/ffmpeg:= )
heif? ( media-libs/libheif )
+ libconfig? ( >=dev-libs/libconfig-1.4[cxx] )
jpeg? ( media-libs/libjpeg-turbo:= )
png? ( >=media-libs/libpng-1.6.0 )
raw? ( media-libs/libraw )
@@ -44,14 +44,14 @@ DEPEND="
"
RDEPEND="
${DEPEND}
- gnuplot? ( sci-visualization/gnuplot )
"
PATCHES=(
"${FILESDIR}/${PN}-docfiles.patch"
+ "${FILESDIR}/${PN}-9999-dependencies.patch"
)
-DOCS=( README.md NEWS ChangeLog LICENSE.md LICENSE_sleef.txt AUTHORS )
+DOCS=( README.md NEWS ChangeLog AUTHORS )
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
@@ -63,8 +63,22 @@ pkg_setup() {
src_configure() {
local emesonargs=(
+ -Dffms2=false
+ -Dcriterion=false
+ $(meson_use ffmpeg)
+ $(meson_use heif libheif)
+ $(meson_use jpeg libjpeg)
+ $(meson_use libconfig)
$(meson_use openmp)
+ $(meson_use png libpng)
+ $(meson_use raw libraw)
+ $(meson_use tiff libtiff)
+ $(meson_use wcs wcslib)
$(usex curl -Denable-libcurl=yes -Denable-libcurl=no)
)
meson_src_configure
}
+
+pkg_postinst() {
+ optfeature "gnuplot support" sci-visualization/gnuplot
+}