1 |
commit: c61735c200d5a256705d2c3e8243eeb122dc390d |
2 |
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> |
3 |
AuthorDate: Sun Oct 30 12:36:46 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 31 17:43:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c61735c2 |
7 |
|
8 |
app-editors/levee: version bump to 4.0, fix clang16 build |
9 |
|
10 |
- wrote patch to remove all old implicit function declarations, implicit ins, etc (also sent it upstream) |
11 |
- patch build system to look for libtinfo (bug was also present in 3.5a, but wasn't filed in b.g.o) |
12 |
- call ./configure.sh with --size=256000 because configure script is using it an a non-standard way |
13 |
|
14 |
(sam: fix -Wimplicit-int, prestripping) |
15 |
|
16 |
Closes: https://bugs.gentoo.org/875740 |
17 |
Closes: https://bugs.gentoo.org/870889 |
18 |
Closes: https://bugs.gentoo.org/729264 |
19 |
Closes: https://bugs.gentoo.org/690168 |
20 |
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de> |
21 |
Closes: https://github.com/gentoo/gentoo/pull/28040 |
22 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
23 |
|
24 |
app-editors/levee/Manifest | 2 ++ |
25 |
app-editors/levee/levee-4.0.ebuild | 48 ++++++++++++++++++++++++++++++++++++++ |
26 |
2 files changed, 50 insertions(+) |
27 |
|
28 |
diff --git a/app-editors/levee/Manifest b/app-editors/levee/Manifest |
29 |
index 4374662abc16..3ffbb2496a5e 100644 |
30 |
--- a/app-editors/levee/Manifest |
31 |
+++ b/app-editors/levee/Manifest |
32 |
@@ -1 +1,3 @@ |
33 |
DIST levee-3.5a.tar.gz 67733 BLAKE2B 291b502a8c9581c2c0f2ca6714c17c86692067d5de66e987f8a7b506965a21ff149c6fe445532e9b065e40dd7e519d1ebc6b5ff69c5b4a4129138df224f71dfd SHA512 e95b4fc6370903dda07aff0a612c7f34425ab0b854d05a08f42b7e339d1a86a436316d31f3667748943e2ce2e68be7f2369e4a3b36c0715b00d31b8ab50cdaf1 |
34 |
+DIST levee-4.0-patches.tar.xz 12412 BLAKE2B 0cf00a16843f6a5c9e70389be357a586644b58de633177ce325e0bc475a0448ea3a38b0c7adbd3fbbbcc93e9d7f10f46b8a29d5fe00489ca3825ae0c07a3026e SHA512 f9b7ceb59e0b80e39bb1ba7a1fdd9cdf0afe450807c4a8204135fefc400756dc20f1c9c13dd03ffcb67220db8a2400eeac4ab96c755feb478461bade1fe51320 |
35 |
+DIST levee-4.0.tar.bz2 80596 BLAKE2B c38325a04cadb78e2961d26dff605943ccc8214232ce9bf3fb61bf7ee8f91b1e6a43631326e21e38be73d8917a290d92790cc9bc2a4ca7b186b740674fbc5f8f SHA512 7551963018674431167ee2635dccfed1648268c33ec3ae1f11c0ced89dcba280ae1f6d3ab678ad4ba8331e0928b47f6c5953758da7516bae10df9e3edd65c22c |
36 |
|
37 |
diff --git a/app-editors/levee/levee-4.0.ebuild b/app-editors/levee/levee-4.0.ebuild |
38 |
new file mode 100644 |
39 |
index 000000000000..5212165086a6 |
40 |
--- /dev/null |
41 |
+++ b/app-editors/levee/levee-4.0.ebuild |
42 |
@@ -0,0 +1,48 @@ |
43 |
+# Copyright 1999-2022 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=8 |
47 |
+ |
48 |
+inherit toolchain-funcs |
49 |
+ |
50 |
+DESCRIPTION="Really tiny vi clone, for things like rescue disks" |
51 |
+HOMEPAGE="https://www.pell.portland.or.us/~orc/Code/levee/" |
52 |
+SRC_URI="https://www.pell.portland.or.us/~orc/Code/levee/${P}.tar.bz2" |
53 |
+SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-patches.tar.xz" |
54 |
+ |
55 |
+LICENSE="levee" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ !app-text/lv |
61 |
+ sys-libs/ncurses:0= |
62 |
+" |
63 |
+DEPEND="${RDEPEND}" |
64 |
+BDEPEND="virtual/pkgconfig" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${WORKDIR}"/${P}-patches |
68 |
+) |
69 |
+ |
70 |
+src_configure() { |
71 |
+ export AC_CPP_PROG="$(tc-getCPP)" |
72 |
+ export AC_PATH="${PATH}" |
73 |
+ export AC_LIBDIR="$($(tc-getPKG_CONFIG) --libs ncurses)" |
74 |
+ |
75 |
+ # --sive=256000 because configure.sh expects size to be a number and not the |
76 |
+ # tool lize "llvm-size" or "x86_64-pc-linux-gnu-size". |
77 |
+ # See #729264 |
78 |
+ ./configure.sh \ |
79 |
+ --prefix="${PREFIX}"/usr --size=256000 || die "configure failed" |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ emake \ |
84 |
+ CFLAGS="${CFLAGS} ${LDFLAGS}" \ |
85 |
+ CC="$(tc-getCC)" |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ emake PREFIX="${D}/${EPREFIX}" install |
90 |
+} |