mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
Closes: https://bugs.gentoo.org/835882 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
45 lines
833 B
Bash
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
|
|
}
|