1 |
commit: 704a1ad2cd57dea045c0b20ff2d73e55a97b0595 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 7 03:06:53 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 7 03:06:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=704a1ad2 |
7 |
|
8 |
app-text/yodl: bump to 4.03.00 |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
app-text/yodl/Manifest | 1 + |
14 |
app-text/yodl/yodl-4.03.00.ebuild | 72 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 73 insertions(+) |
16 |
|
17 |
diff --git a/app-text/yodl/Manifest b/app-text/yodl/Manifest |
18 |
index d69fcab190e..1acb700e8f6 100644 |
19 |
--- a/app-text/yodl/Manifest |
20 |
+++ b/app-text/yodl/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST yodl-4.02.01.tar.gz 308670 BLAKE2B f94c094f17ec99e66f64a704e41814274f61128ff21b11077d772874dcbc9f15fbc878df8831e7f73d9b6c89a497462c694bc0bdb6cd5637c0db08303e3838d5 SHA512 59e23bb173786b8806f56bf302dee9d8d971d0d840c609e2b24d9783b5866fca2509be844616318f9a4f302117b3a41f620be5cba09181e7ccdcf0c141402be7 |
23 |
DIST yodl-4.02.02.tar.gz 309075 BLAKE2B ce9da287ca59e20319ae8a132553b669ffff926c79e7ffbf7891af3e777c45815cbd784eaf8d706b7f4b8240ceac41c38882c7b5d2b51e2691da249b0f5be43b SHA512 531b5b61f85ed556163b0cf76a30451212849e5e03e11819cc466603db0856737a9d3bc34ba11419befd7925ec1bac33f92b707c38acd2fa8047e3e1223d0a78 |
24 |
+DIST yodl-4.03.00.tar.gz 309212 BLAKE2B 9a89dfda5f4138f466bc2f871724087ff2c0084d06d81c32e1e865744e1c133b1073becac30e817f2f997c351b8f8192e942616174acb644dcab40d5d64c9d36 SHA512 ec5edaf932d94e9272a08867322e8fbfec65f612447fa412a7c19412569a6d811bbe5badd0af692837086a9ee8cdf8bb8f0c10a3e8333ef6096513b263c8d831 |
25 |
|
26 |
diff --git a/app-text/yodl/yodl-4.03.00.ebuild b/app-text/yodl/yodl-4.03.00.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..0f7adc8fbc7 |
29 |
--- /dev/null |
30 |
+++ b/app-text/yodl/yodl-4.03.00.ebuild |
31 |
@@ -0,0 +1,72 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit toolchain-funcs flag-o-matic |
38 |
+ |
39 |
+DESCRIPTION="Your Own Document Language: a pre-document language and tools to process it" |
40 |
+HOMEPAGE="https://fbb-git.gitlab.io/yodl/ https://gitlab.com/fbb-git/yodl" |
41 |
+SRC_URI="https://gitlab.com/fbb-git/${PN}/-/archive/${PV}/${P}.tar.gz" |
42 |
+S="${WORKDIR}/${P}/${PN}" |
43 |
+ |
44 |
+LICENSE="GPL-3" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="doc" |
48 |
+ |
49 |
+BDEPEND=" |
50 |
+ >=dev-util/icmake-8.00.00 |
51 |
+ doc? ( |
52 |
+ dev-texlive/texlive-latexextra |
53 |
+ dev-texlive/texlive-plaingeneric |
54 |
+ ) |
55 |
+" |
56 |
+ |
57 |
+pkg_pretend() { |
58 |
+ if [[ ${MERGE_TYPE} != "binary" ]]; then |
59 |
+ if tc-is-gcc && [[ $(gcc-major-version) -lt 8 ]]; then |
60 |
+ die "Your compiler doesn't fully support C++17. Use GCC 8 or newer." |
61 |
+ elif tc-is-clang && [[ $(clang-major-version) -lt 6 ]]; then |
62 |
+ die "Your compiler doesn't fully support C++17. Use Clang 6 or newer." |
63 |
+ fi |
64 |
+ fi |
65 |
+} |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ sed -e "/DOC.* =/s/yodl\(-doc\)\?/${PF}/" \ |
69 |
+ -e "/COMPILER =/s/gcc/$(tc-getCC)/" \ |
70 |
+ -e "/CXX =/s/g++/$(tc-getCXX)/" \ |
71 |
+ -i INSTALL.im || die |
72 |
+ |
73 |
+ sed -e "s/g++/$(tc-getCXX)/" \ |
74 |
+ -e "s:#define CLS://\0:" \ |
75 |
+ -i verbinsert/icmconf || die |
76 |
+ |
77 |
+ sed -e "s/ar r /$(tc-getAR) r /" \ |
78 |
+ -e "s/ranlib/$(tc-getRANLIB)/" \ |
79 |
+ -i icmake/stdcompile || die |
80 |
+ |
81 |
+ sed -e '/strip/s|"-s"|""|g' \ |
82 |
+ -i icmake/program || die |
83 |
+ |
84 |
+ # required for std::filesystem usage |
85 |
+ append-cxxflags -std=c++17 |
86 |
+ |
87 |
+ default |
88 |
+} |
89 |
+ |
90 |
+src_compile() { |
91 |
+ local target |
92 |
+ for target in programs macros man $(usex doc manual ''); do |
93 |
+ ./build ${target} || die "${target} failed" |
94 |
+ done |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ ./build install programs "${ED}" || die |
99 |
+ ./build install macros "${ED}" || die |
100 |
+ ./build install man "${ED}" || die |
101 |
+ ./build install docs "${ED}" || die |
102 |
+ use doc && { ./build install manual "${ED}" || die ; } |
103 |
+} |