1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 VALA_USE_DEPEND="vapigen"
7 inherit flag-o-matic gnome2 vala
9 DESCRIPTION="Utilities for creating and parsing messages using MIME"
10 HOMEPAGE="http://spruce.sourceforge.net/gmime/ https://developer.gnome.org/gmime/stable/"
14 KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
15 IUSE="crypt doc idn static-libs test vala"
16 RESTRICT="!test? ( test )"
19 >=dev-libs/glib-2.32.0:2
21 crypt? ( >=app-crypt/gpgme-1.8.0:1= )
22 idn? ( net-dns/libidn2:= )
25 >=dev-libs/gobject-introspection-1.30.0:= )
28 >=dev-util/gtk-doc-am-1.8
31 doc? ( app-text/docbook-sgml-utils )
32 test? ( app-crypt/gnupg )
34 # gnupg is needed for tests if --enable-cryptography is enabled, which we do unconditionally
38 use vala && vala_src_prepare
42 if [[ ${CHOST} == *-solaris* ]]; then
43 # bug #???, why not use --with-libiconv
47 gnome2_src_configure \
48 $(use_enable crypt crypto) \
49 $(use_enable static-libs static) \
51 $(use_with idn libidn) \
52 $(usex doc "" DB2HTML=)
58 emake -C docs/tutorial html
67 dodoc -r docs/tutorial/html/