Diff lurch-0.6.8-r2 with a lurch-0.7.0

/usr/portage/x11-plugins/lurch/lurch-0.7.0.ebuild 2023-10-09 14:52:35.964368513 +0300
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2021 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6 6
inherit toolchain-funcs
7 7

  
8
AXC_PV=0.3.3
9
LIBOMEMO_PV=0.7.0
10

  
11 8
DESCRIPTION="OMEMO encryption for libpurple (XEP-0384)"
12 9
HOMEPAGE="https://github.com/gkdr/lurch"
13
SRC_URI="https://github.com/gkdr/lurch/releases/download/v${PV}/lurch-${PV}-src.tar.gz -> ${P}.tar.gz
14
	https://github.com/gkdr/axc/archive/v${AXC_PV}.tar.gz -> axc-${AXC_PV}.tar.gz
15
	https://github.com/gkdr/libomemo/archive/v${LIBOMEMO_PV}.tar.gz -> libomemo-${LIBOMEMO_PV}.tar.gz"
10
SRC_URI="https://github.com/gkdr/lurch/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 11

  
17
LICENSE="GPL-3"
12
LICENSE="GPL-3"  # likely not GPL-3+, https://github.com/gkdr/lurch/issues/165
18 13
SLOT="0"
19
KEYWORDS="~amd64 x86"
20
IUSE=""
14
KEYWORDS="amd64 x86"
15
IUSE="test"
21 16

  
22
# NOTE
23
#   The build systems of axc (ex-libaxolotl)
24
#   at https://github.com/gkdr/axc and of libomemo
25
#   at https://github.com/gkdr/libomemo build static
26
#   libraries (*.a files) only, so it is not clear when or
27
#   how to best unbundle them into standalone packages.
28
#   Related yet-to-be-merged pull requests to build shared libraries
29
#   exist upstream:
30
#   - https://github.com/gkdr/axc/pull/17
31
#   - https://github.com/gkdr/lurch/pull/151
32
#   - https://github.com/gkdr/libomemo/pull/30
17
# NOTE: Some of these dependencies seem like leftovers in the build system
18
#       and can probably be dropped with lurch >=0.7.1
19
#       (https://github.com/gkdr/lurch/issues/164)
33 20
RDEPEND="
34 21
	dev-db/sqlite
35 22
	dev-libs/glib
......
37 24
	dev-libs/libxml2
38 25
	dev-libs/mxml
39 26
	net-im/pidgin:=
27
	net-libs/libaxc
28
	net-libs/libomemo
40 29
	>=net-libs/libsignal-protocol-c-2.3.2
41 30
	"
42 31
DEPEND="
43 32
	${RDEPEND}
44 33
	virtual/pkgconfig
34
	test? ( dev-util/cmocka )
45 35
	"
46 36

  
47
PATCHES=(
48
	# Unbundle net-libs/libsignal-protocol-c
49
	"${FILESDIR}"/${P}-libsignal-protocol-c.patch
50
	"${FILESDIR}"/${P}-axc-${AXC_PV}-libsignal-protocol-c.patch
51
)
37
RESTRICT="!test? ( test )"
52 38

  
53 39
src_prepare() {
54
	# Upgrade outdated bundle of axc
55
	rm -R lib/axc || die
56
	mv "${WORKDIR}"/axc-${AXC_PV} lib/axc || die
57

  
58
	# Upgrade outdated bundle of libomemo
59
	rm -R lib/libomemo || die
60
	mv "${WORKDIR}"/libomemo-${LIBOMEMO_PV} lib/libomemo || die
61

  
62
	# Unbundle axc's bundled net-libs/libsignal-protocol-c
63
	rm -R lib/axc/lib/libsignal-protocol-c || die
64

  
40
	rm -Rv lib/{axc,libomemo} || die  # unbundle
65 41
	default
66 42
}
67 43

  
Thank you!