summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Smith <matthew@gentoo.org>2022-03-07 17:50:50 +0000
committerMatthew Smith <matthew@gentoo.org>2022-03-07 17:50:50 +0000
commitc26119a43025766033f3e4a93acc8a9fc6aea6d0 (patch)
tree4b6f195dda4e720691818a879bfaa7ad81c112a0 /media-gfx
parentdev-lang/erlang: update maintainers (diff)
downloadgentoo-c26119a43025766033f3e4a93acc8a9fc6aea6d0.tar.gz
gentoo-c26119a43025766033f3e4a93acc8a9fc6aea6d0.tar.bz2
gentoo-c26119a43025766033f3e4a93acc8a9fc6aea6d0.zip
media-gfx/ttfautohint: initial import at 1.8.4
Originally from ::4nykey and ::guru, then modified before inclusion into ::gentoo. Thanks-to: Aleksei Kaveshnikov <4nykey@gmail.com> Thanks-to: Alessandro Barbieri <lssndrbarbieri@gmail.com> Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/ttfautohint/Manifest1
-rw-r--r--media-gfx/ttfautohint/metadata.xml12
-rw-r--r--media-gfx/ttfautohint/ttfautohint-1.8.4.ebuild58
3 files changed, 71 insertions, 0 deletions
diff --git a/media-gfx/ttfautohint/Manifest b/media-gfx/ttfautohint/Manifest
new file mode 100644
index 000000000000..58e86e42250d
--- /dev/null
+++ b/media-gfx/ttfautohint/Manifest
@@ -0,0 +1 @@
+DIST ttfautohint-1.8.4.tar.gz 3539332 BLAKE2B 314c5196f01828d180d3b3e9b09c66fad9c8a8958f36003c8ae0d54b945391cb53c40f92cf57ff70e57b5a21a6aa46bc14ff9419d4b877421fdc2500ce9004e3 SHA512 983517c360f8e65ccbf17f28f045f1c0a45078707f2e30f465a7b6df4014f0ec212780ea2703bc16be1a3c6ede70f71ea3051c067fbfd06eff40ae3b20840eec
diff --git a/media-gfx/ttfautohint/metadata.xml b/media-gfx/ttfautohint/metadata.xml
new file mode 100644
index 000000000000..412e6f87e320
--- /dev/null
+++ b/media-gfx/ttfautohint/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>matthew@gentoo.org</email>
+ <name>Matthew Smith</name>
+</maintainer>
+<maintainer type="person" proxied="yes">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/ttfautohint/ttfautohint-1.8.4.ebuild b/media-gfx/ttfautohint/ttfautohint-1.8.4.ebuild
new file mode 100644
index 000000000000..7df7171bcf56
--- /dev/null
+++ b/media-gfx/ttfautohint/ttfautohint-1.8.4.ebuild
@@ -0,0 +1,58 @@
+# 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"
+KEYWORDS="~amd64"
+IUSE="qt5"
+
+RDEPEND="
+ media-libs/freetype
+ media-libs/harfbuzz:=
+ 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
+
+ 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
+}