Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/siril/, sci-astronomy/siril/files/
Date: Mon, 16 May 2022 05:26:57
Message-Id: 1652678766.479f2008aaad0c97c277c420934fff5fc8e6c2fd.sam@gentoo
1 commit: 479f2008aaad0c97c277c420934fff5fc8e6c2fd
2 Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
3 AuthorDate: Fri Mar 25 20:13:12 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 16 05:26:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=479f2008
7
8 sci-astronomy/siril: new package
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
12 Closes: https://bugs.gentoo.org/575932
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 sci-astronomy/siril/Manifest | 1 +
16 sci-astronomy/siril/files/siril-docfiles.patch | 16 +++++++
17 sci-astronomy/siril/metadata.xml | 30 ++++++++++++
18 sci-astronomy/siril/siril-1.0.0.ebuild | 66 ++++++++++++++++++++++++++
19 sci-astronomy/siril/siril-9999.ebuild | 66 ++++++++++++++++++++++++++
20 5 files changed, 179 insertions(+)
21
22 diff --git a/sci-astronomy/siril/Manifest b/sci-astronomy/siril/Manifest
23 new file mode 100644
24 index 000000000000..4290e92f9877
25 --- /dev/null
26 +++ b/sci-astronomy/siril/Manifest
27 @@ -0,0 +1 @@
28 +DIST siril-1.0.0.tar.bz2 2830447 BLAKE2B 0c7b52682a71db6ec618357ce5ee5e88f144b0d00b0649a00755fe81fe49a90cfa5283aabbe0648670e39210ff2cb94cd0b6223f17f70458056b693d3d77eccf SHA512 b31fa0df0ae447130b20bc07a597d52e0e50991f1faebd990c5890001a46a704b1a3fe4915db118b53b3661a5888f031d5ab29e562bb8018060aea0a83cad5d3
29
30 diff --git a/sci-astronomy/siril/files/siril-docfiles.patch b/sci-astronomy/siril/files/siril-docfiles.patch
31 new file mode 100644
32 index 000000000000..f98e0210d7e6
33 --- /dev/null
34 +++ b/sci-astronomy/siril/files/siril-docfiles.patch
35 @@ -0,0 +1,16 @@
36 +--- siril-1.0.0/meson.build
37 ++++ siril-1.0.0/meson.build
38 +@@ -497,13 +497,6 @@
39 + ]
40 +
41 + install_man(man_files)
42 +-install_data(['AUTHORS', 'LICENSE.md', 'LICENSE_sleef.txt'],
43 +- rename : [
44 +- 'doc/siril/AUTHORS',
45 +- 'doc/siril/LICENSE.md',
46 +- 'doc/siril/LICENSE_sleef.txt',
47 +- ],
48 +- install_dir : siril_share)
49 +
50 +
51 + ################################################################################
52
53 diff --git a/sci-astronomy/siril/metadata.xml b/sci-astronomy/siril/metadata.xml
54 new file mode 100644
55 index 000000000000..580487d37ad5
56 --- /dev/null
57 +++ b/sci-astronomy/siril/metadata.xml
58 @@ -0,0 +1,30 @@
59 +<?xml version="1.0" encoding="UTF-8"?>
60 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
61 +<pkgmetadata>
62 + <maintainer type="person" proxied="yes">
63 + <email>mario.haustein@×××××××××××××××.de</email>
64 + <name>Mario Haustein</name>
65 + </maintainer>
66 + <maintainer type="project" proxied="proxy">
67 + <email>proxy-maint@g.o</email>
68 + <name>Proxy Maintainers</name>
69 + </maintainer>
70 + <longdescription>
71 + SIRIL is an astronomical image processing tool.
72 +
73 + It is specially tailored for noise reduction and improving the
74 + signal/noise ratio of an image from multiple captures, as required in
75 + astronomy. SIRIL can align automatically or manually, stack and enhance
76 + pictures from various file formats, even image sequence files (films
77 + and SER files). It works well with limited system resources, like in
78 + embedded platforms, but is also very fast when run on more powerful
79 + computers.
80 + </longdescription>
81 + <use>
82 + <flag name="heif">Add support for the HEIF image format</flag>
83 + <flag name="wcs">Add supprt astrometry features using <pkg>sci-astronomy/wcslib</pkg></flag>
84 + </use>
85 + <upstream>
86 + <remote-id type="gitlab">free-astro/siril</remote-id>
87 + </upstream>
88 +</pkgmetadata>
89
90 diff --git a/sci-astronomy/siril/siril-1.0.0.ebuild b/sci-astronomy/siril/siril-1.0.0.ebuild
91 new file mode 100644
92 index 000000000000..822c1fba9bfd
93 --- /dev/null
94 +++ b/sci-astronomy/siril/siril-1.0.0.ebuild
95 @@ -0,0 +1,66 @@
96 +# Copyright 1999-2022 Gentoo Authors
97 +# Distributed under the terms of the GNU General Public License v2
98 +
99 +EAPI=8
100 +
101 +inherit meson xdg
102 +
103 +DESCRIPTION="A free astronomical image processing software"
104 +HOMEPAGE="https://www.siril.org/"
105 +
106 +if [[ ${PV} == "9999" ]]; then
107 + inherit git-r3
108 + EGIT_REPO_URI="https://gitlab.com/free-astro/${PN}.git"
109 +else
110 + SRC_URI="https://gitlab.com/free-astro/siril/-/archive/${PV/_/-}/${PN}-${PV/_/-}.tar.bz2"
111 + KEYWORDS="~amd64 ~x86"
112 + S="${WORKDIR}/${PN}-${PV/_/-}"
113 +fi
114 +
115 +LICENSE="GPL-3+"
116 +SLOT="0"
117 +IUSE="curl ffmpeg gnuplot heif jpeg openmp png raw tiff wcs"
118 +
119 +DEPEND="
120 + >=dev-libs/glib-2.56.0:2
121 + >=dev-libs/json-glib-1.2.6
122 + >=dev-libs/libconfig-1.4[cxx]
123 + >=media-gfx/exiv2-0.25
124 + media-libs/librtprocess:=
125 + >=media-libs/opencv-4.4.0:=
126 + sci-libs/cfitsio
127 + sci-libs/fftw:3.0=
128 + sci-libs/gsl:=
129 + x11-libs/cairo
130 + >=x11-libs/gtk+-3.20.0:3
131 + curl? ( net-misc/curl )
132 + ffmpeg? ( media-video/ffmpeg:= )
133 + heif? ( media-libs/libheif )
134 + jpeg? ( virtual/jpeg )
135 + png? ( >=media-libs/libpng-1.6.0 )
136 + raw? ( media-libs/libraw )
137 + tiff? ( media-libs/tiff )
138 + wcs? ( >=sci-astronomy/wcslib-7.7 )
139 +"
140 +RDEPEND="
141 + ${DEPEND}
142 + gnuplot? ( sci-visualization/gnuplot )
143 +"
144 +
145 +PATCHES=(
146 + "${FILESDIR}/${PN}-docfiles.patch"
147 +)
148 +
149 +DOCS=( README.md NEWS ChangeLog LICENSE.md LICENSE_sleef.txt AUTHORS )
150 +
151 +pkg_pretend() {
152 + use openmp && tc-check-openmp
153 +}
154 +
155 +src_configure() {
156 + local emesonargs=(
157 + $(meson_use openmp)
158 + $(usex curl -Denable-libcurl=yes -Denable-libcurl=no)
159 + )
160 + meson_src_configure
161 +}
162
163 diff --git a/sci-astronomy/siril/siril-9999.ebuild b/sci-astronomy/siril/siril-9999.ebuild
164 new file mode 100644
165 index 000000000000..822c1fba9bfd
166 --- /dev/null
167 +++ b/sci-astronomy/siril/siril-9999.ebuild
168 @@ -0,0 +1,66 @@
169 +# Copyright 1999-2022 Gentoo Authors
170 +# Distributed under the terms of the GNU General Public License v2
171 +
172 +EAPI=8
173 +
174 +inherit meson xdg
175 +
176 +DESCRIPTION="A free astronomical image processing software"
177 +HOMEPAGE="https://www.siril.org/"
178 +
179 +if [[ ${PV} == "9999" ]]; then
180 + inherit git-r3
181 + EGIT_REPO_URI="https://gitlab.com/free-astro/${PN}.git"
182 +else
183 + SRC_URI="https://gitlab.com/free-astro/siril/-/archive/${PV/_/-}/${PN}-${PV/_/-}.tar.bz2"
184 + KEYWORDS="~amd64 ~x86"
185 + S="${WORKDIR}/${PN}-${PV/_/-}"
186 +fi
187 +
188 +LICENSE="GPL-3+"
189 +SLOT="0"
190 +IUSE="curl ffmpeg gnuplot heif jpeg openmp png raw tiff wcs"
191 +
192 +DEPEND="
193 + >=dev-libs/glib-2.56.0:2
194 + >=dev-libs/json-glib-1.2.6
195 + >=dev-libs/libconfig-1.4[cxx]
196 + >=media-gfx/exiv2-0.25
197 + media-libs/librtprocess:=
198 + >=media-libs/opencv-4.4.0:=
199 + sci-libs/cfitsio
200 + sci-libs/fftw:3.0=
201 + sci-libs/gsl:=
202 + x11-libs/cairo
203 + >=x11-libs/gtk+-3.20.0:3
204 + curl? ( net-misc/curl )
205 + ffmpeg? ( media-video/ffmpeg:= )
206 + heif? ( media-libs/libheif )
207 + jpeg? ( virtual/jpeg )
208 + png? ( >=media-libs/libpng-1.6.0 )
209 + raw? ( media-libs/libraw )
210 + tiff? ( media-libs/tiff )
211 + wcs? ( >=sci-astronomy/wcslib-7.7 )
212 +"
213 +RDEPEND="
214 + ${DEPEND}
215 + gnuplot? ( sci-visualization/gnuplot )
216 +"
217 +
218 +PATCHES=(
219 + "${FILESDIR}/${PN}-docfiles.patch"
220 +)
221 +
222 +DOCS=( README.md NEWS ChangeLog LICENSE.md LICENSE_sleef.txt AUTHORS )
223 +
224 +pkg_pretend() {
225 + use openmp && tc-check-openmp
226 +}
227 +
228 +src_configure() {
229 + local emesonargs=(
230 + $(meson_use openmp)
231 + $(usex curl -Denable-libcurl=yes -Denable-libcurl=no)
232 + )
233 + meson_src_configure
234 +}