Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/gwyddion/files/, sci-visualization/gwyddion/
Date: Mon, 28 Mar 2022 19:32:54
Message-Id: 1648495964.6b07203c63d31ecd1ac1beb61a7229347634dacf.andrewammerlaan@gentoo
1 commit: 6b07203c63d31ecd1ac1beb61a7229347634dacf
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 28 19:31:07 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 28 19:32:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b07203c
7
8 sci-visualization/gwyddion: add 2.60
9
10 Bug: https://bugs.gentoo.org/598682
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 sci-visualization/gwyddion/Manifest | 1 +
14 .../gwyddion/files/gwyddion-2.60-automagic.patch | 35 +++++++++
15 sci-visualization/gwyddion/gwyddion-2.60.ebuild | 83 ++++++++++++++++++++++
16 sci-visualization/gwyddion/metadata.xml | 6 ++
17 4 files changed, 125 insertions(+)
18
19 diff --git a/sci-visualization/gwyddion/Manifest b/sci-visualization/gwyddion/Manifest
20 index 1accbe6e79fe..17b49326cbea 100644
21 --- a/sci-visualization/gwyddion/Manifest
22 +++ b/sci-visualization/gwyddion/Manifest
23 @@ -1 +1,2 @@
24 DIST gwyddion-2.56.tar.xz 4645620 BLAKE2B f4f2ce2bf119a24c3e1919b14db409a81ad286ef2242918f356d2b4c56b498f41cbafa03a136eac5d87b4905529e06982694f19bdf30933454e94d34526962c3 SHA512 cf4a40367ea5b0a671c5df70123ef93f6aecc25322af7eb05e4f32d40e54d9b0d48ddd1df9f2589c468eb511ada3f3ef409603c1513de33ba2482078a9415eae
25 +DIST gwyddion-2.60.tar.xz 4973404 BLAKE2B 6ded40f34bfcd70db2e897abc1f07b070aca78e08c90661ee4fe281d19f16337ca81b5a4e2adaeb29e1870e8194eb77976910a54248842c8474864065d64defd SHA512 e568df77ef580aaedfcdd1f746a78f3ca93676a07a331fc6e70f997780bb403d1c3967aa93440c7fa1f010bd01f5376700c869a38dacaf1f98b075c4c950cf54
26
27 diff --git a/sci-visualization/gwyddion/files/gwyddion-2.60-automagic.patch b/sci-visualization/gwyddion/files/gwyddion-2.60-automagic.patch
28 new file mode 100644
29 index 000000000000..ac68ac0a2861
30 --- /dev/null
31 +++ b/sci-visualization/gwyddion/files/gwyddion-2.60-automagic.patch
32 @@ -0,0 +1,35 @@
33 +diff --git a/configure.ac b/configure.ac
34 +index 5a7465a..cc5a54d 100644
35 +--- a/configure.ac
36 ++++ b/configure.ac
37 +@@ -660,11 +660,13 @@ AM_CONDITIONAL([HAVE_CXX],[test "x$have_cxx" != xno])
38 + #############################################################################
39 + # OpenEXR 2.x+
40 + # Optional. Used for HDR greyscale OpenEXR pixmap import/export.
41 +-enable_exr=$have_cxx
42 +-PKG_CHECK_MODULES(EXR, [OpenEXR >= 2.0],
43 ++GWY_WITH([exr],,[build with OpenEXR support])
44 ++if test "x$enable_exr" != "xno" && "x$have_cxx" != "xno"; then
45 ++ PKG_CHECK_MODULES(EXR, [OpenEXR],
46 + [AC_DEFINE(HAVE_EXR,1,
47 + [Define if we have the OpenEXR 2.x+ package.])],
48 + [enable_exr=no])
49 ++fi
50 + AM_CONDITIONAL([HAVE_EXR],[test "x$enable_exr" != xno])
51 +
52 + #############################################################################
53 +@@ -679,10 +681,13 @@ AM_CONDITIONAL([HAVE_HDF5],[test "x$enable_hdf5" != xno])
54 + #############################################################################
55 + # CFITSIO
56 + # Optional. Used for FITS image import.
57 +-PKG_CHECK_MODULES(CFITSIO, [cfitsio],
58 ++GWY_WITH([cfitsio],,[build with cfitsio support])
59 ++if test "x$enable_cfitsio" != "xno"; then
60 ++ PKG_CHECK_MODULES(CFITSIO, [cfitsio],
61 + [AC_DEFINE(HAVE_CFITSIO,1,
62 + [Define if we have the cfitsio package.])],
63 + [enable_cfitsio=no])
64 ++fi
65 + AM_CONDITIONAL([HAVE_CFITSIO],[test "x$enable_cfitsio" != xno])
66 +
67 + #############################################################################
68
69 diff --git a/sci-visualization/gwyddion/gwyddion-2.60.ebuild b/sci-visualization/gwyddion/gwyddion-2.60.ebuild
70 new file mode 100644
71 index 000000000000..ff875e5ab41d
72 --- /dev/null
73 +++ b/sci-visualization/gwyddion/gwyddion-2.60.ebuild
74 @@ -0,0 +1,83 @@
75 +# Copyright 1999-2022 Gentoo Authors
76 +# Distributed under the terms of the GNU General Public License v2
77 +
78 +EAPI=8
79 +
80 +inherit autotools xdg
81 +
82 +DESCRIPTION="Framework for Scanning Mode Microscopy data analysis"
83 +HOMEPAGE="http://gwyddion.net/"
84 +SRC_URI="http://gwyddion.net/download/${PV}/${P}.tar.xz"
85 +
86 +LICENSE="GPL-2"
87 +SLOT="0"
88 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
89 +IUSE="bzip2 doc fits jansson hdf5 nls openexr openmp perl ruby sourceview unique xml X zlib"
90 +
91 +RDEPEND="
92 + >=dev-libs/glib-2.32
93 + dev-libs/libzip
94 + media-libs/libpng:0=
95 + >=sci-libs/fftw-3.1:3.0=[openmp?]
96 + virtual/libiconv
97 + virtual/libintl
98 + x11-libs/cairo
99 + >=x11-libs/gtk+-2.18:2
100 + x11-libs/libXmu
101 + x11-libs/pango
102 + bzip2? ( app-arch/bzip2 )
103 + fits? ( sci-libs/cfitsio[bzip2?] )
104 + jansson? ( dev-libs/jansson )
105 + hdf5? ( sci-libs/hdf5[zlib?] )
106 + openexr? ( media-libs/openexr:= )
107 + perl? ( dev-lang/perl:= )
108 + ruby? ( dev-ruby/narray )
109 + unique? ( dev-libs/libunique:3 )
110 + sourceview? ( x11-libs/gtksourceview:2.0 )
111 + xml? ( dev-libs/libxml2:2 )
112 + zlib? ( sys-libs/zlib )
113 +"
114 +
115 +DEPEND="${RDEPEND}"
116 +BDEPEND="
117 + virtual/pkgconfig
118 + doc? ( dev-util/gtk-doc )
119 +"
120 +
121 +PATCHES=(
122 + "${FILESDIR}/${PN}-2.60-automagic.patch"
123 +)
124 +
125 +src_prepare() {
126 + default
127 + eautoreconf
128 +}
129 +
130 +# There are python bindings (--enable-pygwy) but they are py2 only
131 +# 3D opengl rendering requires deprecated GTK-2 x11-libs/gtkglext
132 +src_configure() {
133 + # hack for bug 741840
134 + use doc && export GTK_DOC_PATH=/usr/share/gtk-doc
135 +
136 + econf \
137 + --disable-rpath \
138 + --without-kde4-thumbnailer \
139 + $(use_enable doc gtk-doc) \
140 + $(use_enable openmp) \
141 + $(use_enable nls) \
142 + --disable-pygwy \
143 + --without-python \
144 + $(use_with bzip2) \
145 + $(use_with fits cfitsio) \
146 + $(use_with hdf5) \
147 + $(use_with perl) \
148 + $(use_with ruby) \
149 + $(use_with openexr exr) \
150 + --without-gl \
151 + $(use_with sourceview gtksourceview) \
152 + $(use_with unique) \
153 + $(use_with xml libxml2) \
154 + $(use_with X x) \
155 + $(use_with zlib) \
156 + --with-zip=libzip
157 +}
158
159 diff --git a/sci-visualization/gwyddion/metadata.xml b/sci-visualization/gwyddion/metadata.xml
160 index 7749445d7975..7259dfaa2d64 100644
161 --- a/sci-visualization/gwyddion/metadata.xml
162 +++ b/sci-visualization/gwyddion/metadata.xml
163 @@ -23,5 +23,11 @@
164 <flag name="fits">
165 Enable FITS image import via <pkg>sci-libs/cfitsio</pkg>
166 </flag>
167 + <flag name="jansson">
168 + Enable JSON data manipulation via <pkg>dev-libs/jansson</pkg>
169 + </flag>
170 + <flag name="unique">
171 + Enable remote control backend via <pkg>dev-libs/libunique</pkg>
172 + </flag>
173 </use>
174 </pkgmetadata>