1 |
commit: dc0c22e0fe02b8e89c85eaf15f707b2d68e9271a |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jun 20 17:25:42 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Jun 20 17:51:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dc0c22e0 |
7 |
|
8 |
media-gfx/ttfautohint: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
media-gfx/ttfautohint/Manifest | 1 + |
13 |
media-gfx/ttfautohint/metadata.xml | 5 +++ |
14 |
media-gfx/ttfautohint/ttfautohint-1.8.3.ebuild | 53 ++++++++++++++++++++++++++ |
15 |
3 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/media-gfx/ttfautohint/Manifest b/media-gfx/ttfautohint/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..5929dc565 |
20 |
--- /dev/null |
21 |
+++ b/media-gfx/ttfautohint/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST ttfautohint-1.8.3.tar.gz 3458637 BLAKE2B 28ca1daa5dc60f099e9524a3e6bede157569f730b50acb055862404b22bf348f34e5ae2465c3ebb9e9dd02d2ff6e0f3a8c47fa5c6e3b72bbdedacbaa393b4992 SHA512 cbf50a99d984955a9c23590870ae09c0954f0c1d3e8e9db4e8139d8e22d6f6a636eb8ea9c8a8322b020fcbbe70dcdbc36670a40356017033f559cb4f87226abf |
24 |
|
25 |
diff --git a/media-gfx/ttfautohint/metadata.xml b/media-gfx/ttfautohint/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000..6f49eba8f |
28 |
--- /dev/null |
29 |
+++ b/media-gfx/ttfautohint/metadata.xml |
30 |
@@ -0,0 +1,5 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+<!-- maintainer-needed --> |
35 |
+</pkgmetadata> |
36 |
|
37 |
diff --git a/media-gfx/ttfautohint/ttfautohint-1.8.3.ebuild b/media-gfx/ttfautohint/ttfautohint-1.8.3.ebuild |
38 |
new file mode 100644 |
39 |
index 000000000..940a7755c |
40 |
--- /dev/null |
41 |
+++ b/media-gfx/ttfautohint/ttfautohint-1.8.3.ebuild |
42 |
@@ -0,0 +1,53 @@ |
43 |
+# Copyright 1999-2021 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=7 |
47 |
+ |
48 |
+inherit autotools qmake-utils |
49 |
+ |
50 |
+SRC_URI="https://download.savannah.gnu.org/releases/freetype/${P}.tar.gz" |
51 |
+KEYWORDS="~amd64" |
52 |
+DESCRIPTION="A library for automated hinting of truetype fonts" |
53 |
+HOMEPAGE="https://www.freetype.org/ttfautohint/index.html" |
54 |
+LICENSE="|| ( FTL GPL-2+ )" |
55 |
+SLOT="0" |
56 |
+IUSE="doc qt5" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ media-libs/harfbuzz |
60 |
+ media-libs/freetype |
61 |
+ qt5? ( dev-qt/qtgui:5 ) |
62 |
+" |
63 |
+DEPEND="${RDEPEND}" |
64 |
+BDEPEND="sys-apps/help2man" |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ #set version |
69 |
+ sed -e "s:m4_esyscmd.*VERSION]):${PV//_/-}:" -i configure.ac || die |
70 |
+ |
71 |
+ eautoreconf |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local _q="$(qt5_get_bindir)" |
76 |
+ local myeconfargs=( |
77 |
+ --disable-static |
78 |
+ $(use_with doc) |
79 |
+ $(use_with qt5 qt) |
80 |
+ ) |
81 |
+ |
82 |
+ QMAKE="${_q}/qmake" MOC="${_q}/moc" UIC="${_q}/uic" RCC="${_q}/rcc" econf "${myeconfargs[@]}" |
83 |
+} |
84 |
+ |
85 |
+src_compile() { |
86 |
+ default |
87 |
+ emake "${PN}.1" $(usex qt5 "${PN}GUI.1" '') -C frontend |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ default |
92 |
+ doman frontend/*.1 |
93 |
+ find "${ED}" -name '*.la' -delete || die |
94 |
+ find "${ED}" -name '*.a' -delete || die |
95 |
+} |