1 |
commit: a84b0cb20d1d7e3dda9aba80f94034cdac8601b1 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 27 20:12:54 2019 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 27 20:15:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a84b0cb2 |
7 |
|
8 |
app-text/yodl: version bump to 4.02.02 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/652868 |
11 |
|
12 |
Signed-off-by: Tim Harder <radhermit <AT> gentoo.org> |
13 |
|
14 |
app-text/yodl/Manifest | 1 + |
15 |
app-text/yodl/yodl-4.02.02.ebuild | 64 +++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 65 insertions(+) |
17 |
|
18 |
diff --git a/app-text/yodl/Manifest b/app-text/yodl/Manifest |
19 |
index 685959f21fb..d69fcab190e 100644 |
20 |
--- a/app-text/yodl/Manifest |
21 |
+++ b/app-text/yodl/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST yodl-4.02.01.tar.gz 308670 BLAKE2B f94c094f17ec99e66f64a704e41814274f61128ff21b11077d772874dcbc9f15fbc878df8831e7f73d9b6c89a497462c694bc0bdb6cd5637c0db08303e3838d5 SHA512 59e23bb173786b8806f56bf302dee9d8d971d0d840c609e2b24d9783b5866fca2509be844616318f9a4f302117b3a41f620be5cba09181e7ccdcf0c141402be7 |
24 |
+DIST yodl-4.02.02.tar.gz 309075 BLAKE2B ce9da287ca59e20319ae8a132553b669ffff926c79e7ffbf7891af3e777c45815cbd784eaf8d706b7f4b8240ceac41c38882c7b5d2b51e2691da249b0f5be43b SHA512 531b5b61f85ed556163b0cf76a30451212849e5e03e11819cc466603db0856737a9d3bc34ba11419befd7925ec1bac33f92b707c38acd2fa8047e3e1223d0a78 |
25 |
|
26 |
diff --git a/app-text/yodl/yodl-4.02.02.ebuild b/app-text/yodl/yodl-4.02.02.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..25f75b90993 |
29 |
--- /dev/null |
30 |
+++ b/app-text/yodl/yodl-4.02.02.ebuild |
31 |
@@ -0,0 +1,64 @@ |
32 |
+# Copyright 1999-2019 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 |
+ |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="doc" |
47 |
+ |
48 |
+DEPEND=">=dev-util/icmake-8.00.00" |
49 |
+ |
50 |
+S=${WORKDIR}/${P}/${PN} |
51 |
+ |
52 |
+pkg_pretend() { |
53 |
+ if [[ ${MERGE_TYPE} != "binary" ]]; then |
54 |
+ if tc-is-gcc && [[ $(gcc-major-version) -lt 8 ]]; then |
55 |
+ die "Your compiler doesn't fully support C++17. Use GCC 8 or newer." |
56 |
+ elif tc-is-clang && [[ $(clang-major-version) -lt 6 ]]; then |
57 |
+ die "Your compiler doesn't fully support C++17. Use Clang 6 or newer." |
58 |
+ fi |
59 |
+ fi |
60 |
+} |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ sed -e "/DOC.* =/s/yodl\(-doc\)\?/${PF}/" \ |
64 |
+ -e "/COMPILER =/s/gcc/$(tc-getCC)/" \ |
65 |
+ -e "/CXX =/s/g++/$(tc-getCXX)/" \ |
66 |
+ -i INSTALL.im || die |
67 |
+ |
68 |
+ sed -e "s/g++/$(tc-getCXX)/" \ |
69 |
+ -e "s:#define CLS://\0:" \ |
70 |
+ -i verbinsert/icmconf || die |
71 |
+ |
72 |
+ sed -e "s/ar r /$(tc-getAR) r /" \ |
73 |
+ -e "s/ranlib/$(tc-getRANLIB)/" \ |
74 |
+ -i icmake/stdcompile || die |
75 |
+ |
76 |
+ # required for std::filesystem usage |
77 |
+ append-cxxflags -std=c++17 |
78 |
+ |
79 |
+ default |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ ./build programs || die |
84 |
+ ./build macros || die |
85 |
+ ./build man || die |
86 |
+ use doc && { ./build manual || die ; } |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ ./build install programs "${ED}" || die |
91 |
+ ./build install macros "${ED}" || die |
92 |
+ ./build install man "${ED}" || die |
93 |
+ ./build install docs "${ED}" || die |
94 |
+ use doc && { ./build install manual "${ED}" || die ; } |
95 |
+} |