Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/dialog/
Date: Wed, 02 Jun 2021 19:05:11
Message-Id: 1622660695.e6b7db41d6b73d0b9a95acbf5c0c5b270841bc14.sam@gentoo
1 commit: e6b7db41d6b73d0b9a95acbf5c0c5b270841bc14
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 31 13:35:06 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 2 19:04:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6b7db41
7
8 dev-util/dialog: add 1.3.20210530
9
10 Acked-by: David Seifert <soap <AT> gentoo.org>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12 Closes: https://github.com/gentoo/gentoo/pull/21059
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 dev-util/dialog/Manifest | 1 +
16 dev-util/dialog/dialog-1.3.20210530.ebuild | 53 ++++++++++++++++++++++++++++++
17 2 files changed, 54 insertions(+)
18
19 diff --git a/dev-util/dialog/Manifest b/dev-util/dialog/Manifest
20 index 34a19df3864..9ea2bdf860e 100644
21 --- a/dev-util/dialog/Manifest
22 +++ b/dev-util/dialog/Manifest
23 @@ -1,2 +1,3 @@
24 DIST dialog-1.3-20200327.tar.gz 547962 BLAKE2B b335d8b57d9a9f3a7e303aa3b2c64736007b66618a79c79368d9dba20a8123813cdeb7d0643bf7c6d147314963ff469b6e41d2378fe9181081fa543f0aca50f2 SHA512 c8c7ccd86fa189a2b6739320f59f127512e53f908ed257280099f8c45754da98d2095835d0c14090cd071af0ed6e8ff95f9938f5ca8027b0b7001c7fd746fe59
25 DIST dialog-1.3-20210509.tgz 562432 BLAKE2B f3a36d01f85516eb7297643158d02585bb62d4e54e90784218f0f9a825d7011093ed9c784bbdfd9c466b96b054ad44c23f97115599018befd449398678c78c64 SHA512 338ea8ee1bbbc44f0d8f511c5c87b246ea242a287346dd27e490d4854fdc00e9b4241d2ef372f131ef7152ebc2429d54c6bc1eeec0f89a6476e0a05f2683c64c
26 +DIST dialog-1.3-20210530.tgz 562950 BLAKE2B 2aa33c4e2568f91a08d173c3a02d0d64f3b02127e70fc942fa76904fda9bd929fcb19b5254874199fc00e873e7dfb18365beba04350e80939bea5d75d8df8438 SHA512 8f39cfa5f3ba70795927c261861bc55bde668d68d3b45559542cf980e1cfabefb3d1ebabc91715e29a4a9ffca5cdb6affa640ed155539692c868942f6014e7e0
27
28 diff --git a/dev-util/dialog/dialog-1.3.20210530.ebuild b/dev-util/dialog/dialog-1.3.20210530.ebuild
29 new file mode 100644
30 index 00000000000..6bc6e9d5c9d
31 --- /dev/null
32 +++ b/dev-util/dialog/dialog-1.3.20210530.ebuild
33 @@ -0,0 +1,53 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +MY_P=${PN}-$(ver_rs 2 -)
40 +
41 +DESCRIPTION="Tool to display dialog boxes from a shell"
42 +HOMEPAGE="https://invisible-island.net/dialog/"
43 +SRC_URI="https://invisible-mirror.net/archives/dialog/${MY_P}.tgz"
44 +S="${WORKDIR}"/${MY_P}
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0/15"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
49 +IUSE="examples minimal nls unicode"
50 +
51 +RDEPEND=">=sys-libs/ncurses-5.2-r5:=[unicode?]"
52 +DEPEND="${RDEPEND}
53 + nls? ( sys-devel/gettext )"
54 +BDEPEND="!minimal? ( sys-devel/libtool )
55 + virtual/pkgconfig"
56 +
57 +src_prepare() {
58 + default
59 +
60 + sed -i -e '/LIB_CREATE=/s:${CC}:& ${LDFLAGS}:g' configure || die
61 + sed -i '/$(LIBTOOL_COMPILE)/s:$: $(LIBTOOL_OPTS):' makefile.in || die
62 +}
63 +
64 +src_configure() {
65 + if [[ ${CHOST} == *-darwin* ]] ; then
66 + export ac_cv_prog_LIBTOOL=glibtool
67 + fi
68 +
69 + econf \
70 + --disable-rpath-hack \
71 + --with-pkg-config \
72 + $(use_enable nls) \
73 + $(use_with !minimal libtool) \
74 + --with-libtool-opts='-shared' \
75 + --with-ncurses$(usex unicode w '')
76 +}
77 +
78 +src_install() {
79 + use minimal && default || emake DESTDIR="${D}" install-full
80 +
81 + use examples && dodoc -r samples
82 +
83 + dodoc CHANGES README
84 +
85 + find "${ED}" -name '*.la' -delete || die
86 +}