Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/lpe/
Date: Thu, 01 Apr 2021 22:08:58
Message-Id: 1617314920.65ed7850a0f6ddd7a55b26665bef21998f0509b7.sam@gentoo
1 commit: 65ed7850a0f6ddd7a55b26665bef21998f0509b7
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 1 22:06:10 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 1 22:08:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65ed7850
7
8 app-editors/lpe: add 1.2.8_p20210401
9
10 Add missing virtual/libintl dep for musl,
11 take snapshot for upstream slibtool + gcc 10 (our!)
12 fix.
13
14 Closes: https://bugs.gentoo.org/778581
15 Closes: https://bugs.gentoo.org/713778
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 app-editors/lpe/Manifest | 1 +
19 app-editors/lpe/lpe-1.2.8_p20210401.ebuild | 63 ++++++++++++++++++++++++++++++
20 2 files changed, 64 insertions(+)
21
22 diff --git a/app-editors/lpe/Manifest b/app-editors/lpe/Manifest
23 index 36553d794ec..99347eb254e 100644
24 --- a/app-editors/lpe/Manifest
25 +++ b/app-editors/lpe/Manifest
26 @@ -1 +1,2 @@
27 +DIST lpe-1.2.8_p20210401.tar.gz 840016 BLAKE2B 81fa0b1c3f9a7164eb219692a2e7bc092d0ee09c9de15f6fd2a4f66cc486be5b744eaa2fb0569a9f44f45d6a19159c55286be76d9ae0f4947f5b7c749e84a8fb SHA512 0b40f2f3fc1241e07291dfdbfcf2466cf5dedc1c91bf36c4f36c8af792ce718be2ad66884b049e25d7b9f9e796d60ce25ca42b37610d26894cd1dc6b74e51157
28 DIST lpe_1.2.6.13-0.1.tar.gz 600523 BLAKE2B 8866aff63276d5e39ed48b4d9e8b9a23d541c13e196815c29586df83f8c6b5895a8dde8fb16b0929bffc49416907d74d48fdbc5ce736a855f2d2daad6472fb96 SHA512 f02769baca396285fe8f98c934f6274185d2bf8b08f3b007cbfa4e6aadb455abfb7cab13d53a3d1fa71ea0c29c4222784dcbc9a7508501c7d1839671503758ed
29
30 diff --git a/app-editors/lpe/lpe-1.2.8_p20210401.ebuild b/app-editors/lpe/lpe-1.2.8_p20210401.ebuild
31 new file mode 100644
32 index 00000000000..549d8c087e3
33 --- /dev/null
34 +++ b/app-editors/lpe/lpe-1.2.8_p20210401.ebuild
35 @@ -0,0 +1,63 @@
36 +# Copyright 1999-2021 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit autotools toolchain-funcs
42 +
43 +COMMIT="203c88eae66c6a3bffd050286af6d9aacf85816e"
44 +DESCRIPTION="A lightweight programmers editor"
45 +HOMEPAGE="https://packages.qa.debian.org/l/lpe.html"
46 +SRC_URI="https://github.com/AdamMajer/lpe/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
47 +S="${WORKDIR}/${PN}-${COMMIT}"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-linux"
52 +IUSE="nls"
53 +
54 +RDEPEND="
55 + sys-libs/ncurses:0=
56 + sys-libs/slang
57 +"
58 +DEPEND="${RDEPEND}"
59 +BDEPEND="
60 + virtual/pkgconfig
61 + nls? (
62 + sys-devel/gettext
63 + virtual/libintl
64 + )
65 +"
66 +
67 +src_prepare() {
68 + default
69 +
70 + # You should add PKG_CHECK_MODULES(NCURSES, ncurses) to configure.in and
71 + # replace -lncurses in src/Makefile.am with $(NCURSES_LIBS)
72 + # That is, if you need eautoreconf
73 + sed -i \
74 + -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs-only-l ncurses):" \
75 + src/Makefile.in || die
76 +
77 + # Refresh outdated libtool (elibtoolize insufficient)
78 + # Fixes undefined references on macOS/Darwin
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + econf $(use_enable nls)
84 +}
85 +
86 +src_install() {
87 + emake \
88 + libdir="${ED}/usr/$(get_libdir)" \
89 + prefix="${ED}/usr" \
90 + datadir="${ED}/usr/share" \
91 + mandir="${ED}/usr/share/man" \
92 + infodir="${ED}/usr/share/info" \
93 + docdir="${ED}/usr/share/doc/${PF}" \
94 + exdir="${ED}/usr/share/doc/${PF}/examples" \
95 + install
96 +
97 + find "${ED}" -name '*.la' -delete || die
98 +}