1 |
commit: 8942f7becc4aca43fcac436fb59bd3336d988662 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 27 07:29:53 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 27 09:28:40 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8942f7be |
7 |
|
8 |
media-libs/woff2: EAPI 8; use cmake eclass |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
media-libs/woff2/woff2-1.0.2-r5.ebuild | 37 ++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 37 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/woff2/woff2-1.0.2-r5.ebuild b/media-libs/woff2/woff2-1.0.2-r5.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..21a221e8d610 |
19 |
--- /dev/null |
20 |
+++ b/media-libs/woff2/woff2-1.0.2-r5.ebuild |
21 |
@@ -0,0 +1,37 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit cmake |
28 |
+ |
29 |
+DESCRIPTION="Encode/decode WOFF2 font format" |
30 |
+HOMEPAGE="https://github.com/google/woff2" |
31 |
+SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="MIT" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" |
36 |
+IUSE="" |
37 |
+ |
38 |
+RDEPEND="app-arch/brotli:=" |
39 |
+DEPEND="${RDEPEND}" |
40 |
+BDEPEND="virtual/pkgconfig" |
41 |
+ |
42 |
+src_configure() { |
43 |
+ local mycmakeargs=( |
44 |
+ -DCMAKE_SKIP_RPATH=ON # needed, causes QA warnings otherwise |
45 |
+ -DCANONICAL_PREFIXES=ON #661942 |
46 |
+ ) |
47 |
+ cmake_src_configure |
48 |
+} |
49 |
+ |
50 |
+src_install() { |
51 |
+ cmake_src_install |
52 |
+ |
53 |
+ dobin ${BUILD_DIR}/woff2_compress |
54 |
+ dobin ${BUILD_DIR}/woff2_decompress |
55 |
+ dobin ${BUILD_DIR}/woff2_info |
56 |
+ |
57 |
+ einstalldocs |
58 |
+} |