# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake flag-o-matic DESCRIPTION="Computes changes between binary or text files and creates deltas" HOMEPAGE="https://github.com/jmacd/xdelta/" SRC_URI="https://github.com/jmacd/xdelta/releases/download/v${PV}/${P}.tar.gz" LICENSE="GPL-2+" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" IUSE="test" RESTRICT="!test? ( test )" DEPEND=" >=dev-libs/glib-2 >=virtual/zlib-1.1.4:= " RDEPEND=" ${DEPEND} " BDEPEND=" virtual/pkgconfig " src_configure() { local mycmakeargs=( -DBUILD_TESTING=$(usex test) ) append-flags -fPIC cmake_src_configure }