mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
Result of running the command: grep --include="*.ebuild" -r . -e 'KEYWORDS=.*[" ]sparc' -l | xargs ekeyword ~sparc Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
40 lines
852 B
Bash
40 lines
852 B
Bash
# Copyright 2002-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MY_P=xdelta3-${PV}
|
|
|
|
DESCRIPTION="Computes changes between binary or text files and creates deltas"
|
|
HOMEPAGE="http://xdelta.org/"
|
|
SRC_URI="https://github.com/jmacd/xdelta-gpl/releases/download/v${PV}/${MY_P}.tar.gz"
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="3"
|
|
KEYWORDS="~alpha amd64 arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86"
|
|
IUSE="examples lzma"
|
|
|
|
RDEPEND="lzma? ( app-arch/xz-utils:= )"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_configure() {
|
|
econf $(use_with lzma liblzma)
|
|
}
|
|
|
|
src_compile() {
|
|
# avoid building tests
|
|
emake xdelta3
|
|
}
|
|
|
|
src_test() {
|
|
emake xdelta3regtest
|
|
./xdelta3regtest || die
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install-binPROGRAMS install-man1
|
|
dodoc draft-korn-vcdiff.txt README.md
|
|
use examples && dodoc -r examples
|
|
}
|