diff options
author | 2022-05-23 07:12:00 +0100 | |
---|---|---|
committer | 2022-05-23 07:28:58 +0100 | |
commit | 852f5e982bbbedfa427bde1b17126b5bc6746bc2 (patch) | |
tree | 7459d3725ebc6e0dd434b1d0428de91051a8592a /media-gfx/ttfautohint/ttfautohint-1.8.4-r3.ebuild | |
parent | dev-db/postgresql: Support python 3.11 (diff) | |
download | gentoo-852f5e982bbbedfa427bde1b17126b5bc6746bc2.tar.gz gentoo-852f5e982bbbedfa427bde1b17126b5bc6746bc2.tar.bz2 gentoo-852f5e982bbbedfa427bde1b17126b5bc6746bc2.zip |
media-gfx/ttfautohint: fix harfbuzz dependency
Closes: https://bugs.gentoo.org/846908
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'media-gfx/ttfautohint/ttfautohint-1.8.4-r3.ebuild')
-rw-r--r-- | media-gfx/ttfautohint/ttfautohint-1.8.4-r3.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/media-gfx/ttfautohint/ttfautohint-1.8.4-r3.ebuild b/media-gfx/ttfautohint/ttfautohint-1.8.4-r3.ebuild new file mode 100644 index 000000000000..4e8b808e396f --- /dev/null +++ b/media-gfx/ttfautohint/ttfautohint-1.8.4-r3.ebuild @@ -0,0 +1,61 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools qmake-utils + +DESCRIPTION="Application and libary for hinting TrueType fonts" +HOMEPAGE="https://freetype.org/ttfautohint" +SRC_URI="https://download.savannah.gnu.org/releases/freetype/${P}.tar.gz" + +LICENSE="|| ( FTL GPL-2+ )" +SLOT="0/1.0.3" +KEYWORDS="amd64" +IUSE="qt5" + +RDEPEND=" + media-libs/freetype + media-libs/harfbuzz:=[truetype] + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-apps/help2man + virtual/pkgconfig +" + +src_prepare() { + default + + # Don't invoke git to get the version number. + sed "s|m4_esyscmd.*VERSION)|${PV//_/-}|" -i configure.ac || die + + # musl does not define _Bool for c++, bug #836426 + sed 's/_Bool/bool/' -i lib/llrb.h || die + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-static + --without-doc + --with-qt="$(usex qt5 $(qt5_get_bindir) no)" + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + doman frontend/ttfautohint.1 + use qt5 && doman frontend/ttfautohintGUI.1 + + find "${ED}" -name '*.la' -delete || die +} |