diff options
-rw-r--r-- | dev-util/dialog/Manifest | 2 | ||||
-rw-r--r-- | dev-util/dialog/dialog-1.3.20240101.ebuild | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-util/dialog/Manifest b/dev-util/dialog/Manifest index e96aa65118f5..6b91fcb1aa26 100644 --- a/dev-util/dialog/Manifest +++ b/dev-util/dialog/Manifest @@ -6,3 +6,5 @@ DIST dialog-1.3-20230209.tgz 573222 BLAKE2B eabca049a4a4c7ea8f2023534116bc173685 DIST dialog-1.3-20230209.tgz.asc 729 BLAKE2B da27d94a4fe61ebcd1481f6b1bd750fe4c45db01153b059c7c329afcbb51c2f290b0a888e8c8b8bab65eb35fdcee6b8bb599fa9345eeea79ad2f298335528c21 SHA512 bac6a17614ca0798e2f52fc2635169e5256b7f3e970fe0a2693503d2fd6b618aae78f7a11bfdfb865e67f4f920c9597b3e8b050841f0b1454838ffcd4823e2a3 DIST dialog-1.3-20231002.tgz 574625 BLAKE2B 7eed34a9aa5188046d0f86a5206209cda5cb2080fc8876b0b9f540c5ed79120c325a23769c4c28787da9792f3128587eea4903ab597847e8a9ba03f7cd7087fd SHA512 ac3fea3053699b5b6e359bbe62e0f6220232898af1a8199225f6002211fe2eb6de42a868e71471f740580f35e428542940a93f89fd74b61923d4fd111deb82dc DIST dialog-1.3-20231002.tgz.asc 729 BLAKE2B e670bad0ead62c2fd6c936f16ebe91423f56347c609c73e1664586469735e8907ce0bfa049d9014b5f878256e54848b517fb3f754c8791280f7760d415d5bbb2 SHA512 405d4a1a98dde1214844eadce8dda5ca4b6c185bfdb18b944e127b6c36f0331cd50316eb7e611f3f744204fac35b41dc2c8e17085a3829d1d45195c517e5a495 +DIST dialog-1.3-20240101.tgz 575294 BLAKE2B 2cb5b30e1aa2ae868f47339611461486dddf78b4cfba8f0607b60f6704f7408fd62e7d93dbe134d948d17ab33cedaccf869a684faf850f47c55e96fe255c42c9 SHA512 20ffec0a1d0ac51ea5ff1d3e6a23648edb410180bb9f2116056b22bd23dcd734db646e2028807aa9e10cc1fea1cfcc8f1329c2bb91fea443db4d828b26608f4f +DIST dialog-1.3-20240101.tgz.asc 729 BLAKE2B e200e94ae0ce545bf3ac2e517203e28ce5b0d2dac7fa34d8e3e919a1c873e5351e745d44986fca788cb346e786ca78d6cd96e17749b11f07fafffb512507f20b SHA512 c75eec1c2d2f5ed18bd55d6d6021e7f883b3a1e87ccb4638726909c29b5e2ea7ba3303aaa714dcafb0c6f0dfbb85f132b5a4e93394eb2a539f437c01c492d69a diff --git a/dev-util/dialog/dialog-1.3.20240101.ebuild b/dev-util/dialog/dialog-1.3.20240101.ebuild new file mode 100644 index 000000000000..c3d3da6c3f49 --- /dev/null +++ b/dev-util/dialog/dialog-1.3.20240101.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P=${PN}-$(ver_rs 2 -) +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/thomasdickey.asc +inherit verify-sig + +DESCRIPTION="Tool to display dialog boxes from a shell" +HOMEPAGE="https://invisible-island.net/dialog/" +SRC_URI="https://invisible-island.net/archives/dialog/${MY_P}.tgz" +SRC_URI+=" verify-sig? ( https://invisible-island.net/archives/dialog/${MY_P}.tgz.asc )" +S="${WORKDIR}"/${MY_P} + +LICENSE="LGPL-2.1" +SLOT="0/15" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="examples minimal nls unicode" + +RDEPEND=">=sys-libs/ncurses-5.2-r5:=[unicode(+)?]" +DEPEND=" + ${RDEPEND} + nls? ( sys-devel/gettext ) +" +BDEPEND=" + virtual/pkgconfig + !minimal? ( sys-devel/libtool ) + verify-sig? ( sec-keys/openpgp-keys-thomasdickey ) +" + +src_prepare() { + default + + sed -i -e '/LIB_CREATE=/s:${CC}:& ${LDFLAGS}:g' configure || die + sed -i '/$(LIBTOOL_COMPILE)/s:$: $(LIBTOOL_OPTS):' makefile.in || die +} + +src_configure() { + if [[ ${CHOST} == *-darwin* ]] ; then + export ac_cv_prog_LIBTOOL=glibtool + fi + + econf \ + --disable-rpath-hack \ + --with-pkg-config \ + --enable-pc-files \ + $(use_enable nls) \ + $(use_with !minimal libtool) \ + --with-libtool-opts='-shared' \ + --with-ncurses$(usev unicode w) +} + +src_install() { + use minimal && default || emake DESTDIR="${D}" install-full + + use examples && dodoc -r samples + + dodoc CHANGES README + + find "${ED}" -name '*.la' -delete || die +} |