Diff gmime-2.6.23-r2 with a gmime-3.2.13

/usr/portage/dev-libs/gmime/gmime-3.2.13.ebuild 2023-10-09 14:52:29.500368350 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
VALA_USE_DEPEND="vapigen"
7 6
inherit flag-o-matic gnome2 vala
8 7

  
9 8
DESCRIPTION="Library for creating and parsing MIME messages"
10
HOMEPAGE="http://spruce.sourceforge.net/gmime/"
9
HOMEPAGE="https://github.com/jstedfast/gmime http://spruce.sourceforge.net/gmime/"
10
SRC_URI="https://github.com/jstedfast/${PN}/releases/download/${PV}/${P}.tar.xz"
11 11

  
12
LICENSE="LGPL-2.1"
13
SLOT="2.6"
14
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
15
IUSE="doc smime test vala"
12
SLOT="3.0"
13
LICENSE="LGPL-2.1+"
14
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
15
IUSE="crypt doc idn test +vala"
16 16
RESTRICT="!test? ( test )"
17 17

  
18 18
RDEPEND="
19
	dev-libs/glib:2
19
	>=dev-libs/glib-2.68.0:2
20 20
	sys-libs/zlib
21
	smime? ( >=app-crypt/gpgme-1.1.6:= )
22
	vala? ( >=dev-libs/gobject-introspection-1.30.0:= )
21
	crypt? ( >=app-crypt/gpgme-1.8.0:= )
22
	idn? ( net-dns/libidn2:= )
23
	vala? (
24
		$(vala_depend)
25
		>=dev-libs/gobject-introspection-1.30.0:=
26
	)
23 27
"
24 28
DEPEND="${RDEPEND}
25 29
	virtual/libiconv
......
28 32
	>=dev-util/gtk-doc-am-1.8
29 33
	virtual/pkgconfig
30 34
	doc? ( app-text/docbook-sgml-utils )
31
	test? ( app-crypt/gnupg )
32
	vala? ( $(vala_depend) )
33 35
"
34
# gnupg is needed for tests if --enable-cryptography is enabled, which we do unconditionally
35 36

  
36
src_configure() {
37
src_prepare() {
38
	gnome2_src_prepare
37 39
	use vala && vala_setup
40
}
41

  
42
src_configure() {
43
	if [[ ${CHOST} == *-solaris* ]]; then
44
		# bug #???, why not use --with-libiconv
45
		append-libs iconv
46
	fi
38 47

  
39
	[[ ${CHOST} == *-solaris* ]] && append-libs iconv
40 48
	gnome2_src_configure \
41
		--enable-cryptography \
42
		--disable-strict-parser \
43
		--disable-mono \
44
		$(use_enable smime) \
45
		$(use_enable vala)
49
		--enable-largefile \
50
		$(use_enable crypt crypto) \
51
		$(use_enable vala) \
52
		$(use_with idn libidn) \
53
		$(usex doc "" DB2HTML=)
46 54
}
47 55

  
48 56
src_compile() {
49 57
	gnome2_src_compile
50

  
51 58
	if use doc; then
52 59
		emake -C docs/tutorial html
53
		HTML_DOCS=( docs/tutorial/html/. )
60
	fi
61
}
62

  
63
src_install() {
64
	gnome2_src_install
65

  
66
	if use doc ; then
67
		docinto tutorial
68
		dodoc -r docs/tutorial/html/
54 69
	fi
55 70
}
Thank you!