Сравнение xdelta-1.1.4-r3 с xdelta-3.0.11-r1

/usr/portage/dev-util/xdelta/xdelta-3.0.11-r1.ebuild 2023-10-09 14:52:31.012368388 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 2002-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit autotools toolchain-funcs
6
MY_P=xdelta3-${PV}
7 7

  
8 8
DESCRIPTION="Computes changes between binary or text files and creates deltas"
9
HOMEPAGE="https://xdelta.googlecode.com/"
10
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
9
HOMEPAGE="http://xdelta.org/"
10
SRC_URI="https://github.com/jmacd/xdelta-gpl/releases/download/v${PV}/${MY_P}.tar.gz"
11
S="${WORKDIR}/${MY_P}"
12

  
13
LICENSE="GPL-2"
14
SLOT="3"
15
KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv sparc x86"
16
IUSE="examples lzma"
11 17

  
12
LICENSE="GPL-2+"
13
SLOT="0"
14
KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
15

  
16
RDEPEND=">=dev-libs/glib-2
17
	>=sys-libs/zlib-1.1.4:="
18
RDEPEND="lzma? ( app-arch/xz-utils:= )"
18 19
DEPEND="${RDEPEND}"
19
BDEPEND="virtual/pkgconfig"
20 20

  
21
src_prepare() {
22
	eapply_user
23
	eapply "${FILESDIR}"/${P}-m4.patch
24
	eapply "${FILESDIR}"/${P}-glib2.patch
25
	eapply "${FILESDIR}"/${P}-pkgconfig.patch
21
src_configure() {
22
	econf $(use_with lzma liblzma)
23
}
26 24

  
27
	eautoreconf
25
src_compile() {
26
	# avoid building tests
27
	emake xdelta3
28 28
}
29 29

  
30
src_configure() {
31
	tc-export CC
32
	econf --disable-static
30
src_test() {
31
	emake xdelta3regtest
32
	./xdelta3regtest || die
33 33
}
34 34

  
35 35
src_install() {
36
	default
37

  
38
	# no static archives
39
	find "${ED}" -name '*.la' -delete || die
36
	emake DESTDIR="${D}" install-binPROGRAMS install-man1
37
	dodoc draft-korn-vcdiff.txt README.md
38
	use examples && dodoc -r examples
40 39
}
Спасибо!