Gentoo Archives: gentoo-commits

From: Markus Meier <maekke@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/hugin/
Date: Sat, 25 Dec 2021 10:49:10
Message-Id: 1640429343.126162d5f2f37820cb8eb3af79c5e91da9bdcb09.maekke@gentoo
1 commit: 126162d5f2f37820cb8eb3af79c5e91da9bdcb09
2 Author: Markus Meier <maekke <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 25 10:49:03 2021 +0000
4 Commit: Markus Meier <maekke <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 25 10:49:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=126162d5
7
8 media-gfx/hugin: version bump
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Markus Meier <maekke <AT> gentoo.org>
12
13 media-gfx/hugin/Manifest | 1 +
14 media-gfx/hugin/hugin-2021.0_rc1.ebuild | 98 +++++++++++++++++++++++++++++++++
15 2 files changed, 99 insertions(+)
16
17 diff --git a/media-gfx/hugin/Manifest b/media-gfx/hugin/Manifest
18 index d7d176549e20..90d1547caf8f 100644
19 --- a/media-gfx/hugin/Manifest
20 +++ b/media-gfx/hugin/Manifest
21 @@ -1 +1,2 @@
22 DIST hugin-2020.0.0.tar.bz2 10371301 BLAKE2B f5092dfe3c61344f8b03e14dd85903ae6f5170989b6824578bd3350408d7a11be2c2f9cd83d030a3967b81e4125cf97af075d79136a93e06de3fac8901859c6d SHA512 4c55767c630ea03faf359bda606e5e9e7709a47ab41e821772da8c6da0cf658b1d31d7d8e96ea1c41ec61bdeb2da8c86c92b5d6964a9301732a13137178ec04e
23 +DIST hugin-2021.0_rc1.tar.bz2 10333665 BLAKE2B f9453a8478b700a964eaae4c8e15109717b6af7361b0596e17b8a1ba4377ff9f932ed8ab9d154981d4aa46908a365ac6b05fa12f63ec743e939c8318525abb58 SHA512 076ce4260d325ed703e61e26771bae6f478475d3d2863036ae9dc3bb0465eff037ca6a2f04c0c9fe02b42b984bc7025fb7dc84e521d49baa2bb78749931f63de
24
25 diff --git a/media-gfx/hugin/hugin-2021.0_rc1.ebuild b/media-gfx/hugin/hugin-2021.0_rc1.ebuild
26 new file mode 100644
27 index 000000000000..3e91a000b936
28 --- /dev/null
29 +++ b/media-gfx/hugin/hugin-2021.0_rc1.ebuild
30 @@ -0,0 +1,98 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +WX_GTK_VER="3.0-gtk3"
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +
39 +inherit python-single-r1 wxwidgets cmake xdg
40 +
41 +DESCRIPTION="GUI for the creation & processing of panoramic images"
42 +HOMEPAGE="http://hugin.sf.net"
43 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
44 +
45 +LICENSE="GPL-2+ BSD BSD-2 MIT wxWinLL-3 ZLIB FDL-1.2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm64 ~x86"
48 +
49 +LANGS=" ca ca-valencia cs da de en-GB es eu fi fr hu it ja nl pl pt-BR ro ru sk sv zh-CN zh-TW"
50 +IUSE="debug lapack python raw sift $(echo ${LANGS//\ /\ l10n_})"
51 +
52 +CDEPEND="
53 + !!dev-util/cocom
54 + dev-db/sqlite:3
55 + dev-libs/boost:=
56 + dev-libs/zthread
57 + >=media-gfx/enblend-4.0
58 + media-gfx/exiv2:=
59 + media-libs/freeglut
60 + media-libs/glew:=
61 + >=media-libs/libpano13-2.9.19_beta1:0=
62 + media-libs/libpng:0=
63 + media-libs/openexr:0=
64 + media-libs/tiff:0
65 + >=media-libs/vigra-1.11.0[openexr]
66 + sci-libs/fftw:3.0=
67 + sci-libs/flann
68 + sys-libs/zlib
69 + virtual/glu
70 + virtual/jpeg:0
71 + virtual/opengl
72 + x11-libs/wxGTK:${WX_GTK_VER}=[X,opengl]
73 + lapack? ( virtual/blas virtual/lapack )
74 + python? ( ${PYTHON_DEPS} )
75 + sift? ( media-gfx/autopano-sift-C )"
76 +RDEPEND="${CDEPEND}
77 + media-libs/exiftool
78 + raw? ( media-gfx/dcraw )"
79 +DEPEND="${CDEPEND}
80 + dev-cpp/tclap
81 + sys-devel/gettext
82 + virtual/pkgconfig
83 + python? ( >=dev-lang/swig-2.0.4 )"
84 +
85 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
86 +
87 +DOCS=( authors.txt README TODO )
88 +
89 +S=${WORKDIR}/${PN}-$(ver_cut 1-2).0
90 +
91 +pkg_setup() {
92 + use python && python-single-r1_pkg_setup
93 + setup-wxwidgets
94 +}
95 +
96 +src_prepare() {
97 + sed -i \
98 + -e "/COMMAND.*GZIP/d" \
99 + -e "s/\.gz//g" \
100 + "${S}"/doc/CMakeLists.txt || die
101 + cmake_src_prepare
102 +}
103 +
104 +src_configure() {
105 + local mycmakeargs=(
106 + -DBUILD_HSI=$(usex python)
107 + -DENABLE_LAPACK=$(usex lapack)
108 + )
109 + cmake_src_configure
110 +}
111 +
112 +src_install() {
113 + cmake_src_install
114 + use python && python_optimize
115 +
116 + local lang
117 + for lang in ${LANGS} ; do
118 + case ${lang} in
119 + ca) dir=ca_ES;;
120 + ca-valencia) dir=ca_ES@valencia;;
121 + cs) dir=cs_CZ;;
122 + *) dir=${lang/-/_};;
123 + esac
124 + if ! use l10n_${lang} ; then
125 + rm -r "${ED}"/usr/share/locale/${dir} || die
126 + fi
127 + done
128 +}