guru/dev-util/ots/ots-8.2.1.ebuild
Alessandro Barbieri df08d22240
dev-util/ots: fix patch
Closes: https://bugs.gentoo.org/835882
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-03-24 15:23:38 +01:00

45 lines
833 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="An util for validating and sanitising OpenType files"
HOMEPAGE="https://github.com/khaledhosny/ots"
SRC_URI="https://github.com/khaledhosny/ots/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="BSD"
SLOT="0"
IUSE="debug sanitize test"
RDEPEND="
media-libs/freetype
media-libs/woff2
sys-libs/zlib
sanitize? ( app-arch/lz4 )
"
DEPEND="
${RDEPEND}
test? ( dev-cpp/gtest )
"
RESTRICT="!test? ( test )"
DOCS=(
README.md
docs/{DesignDoc,HowToFix,HowToTest}.md
)
PATCHES=( "${FILESDIR}/${P}-meson-gtest.diff" )
src_configure() {
local emesonargs=(
$(meson_use debug)
$(meson_use sanitize graphite)
$(meson_use test tests)
)
meson_src_configure
}