summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2023-09-23 19:40:35 +0300
committerViorel Munteanu <ceamac@gentoo.org>2023-09-23 19:40:35 +0300
commit88c3f571aa4589d44f2477678df8e198f92cb9de (patch)
treeb6fd6416781398e77a9f3b3cf228f5f2adc52062 /net-dialup
parentdev-db/phppgadmin: update to 7.14.5 and support for PHP 8.x (diff)
downloadgentoo-88c3f571aa4589d44f2477678df8e198f92cb9de.tar.gz
gentoo-88c3f571aa4589d44f2477678df8e198f92cb9de.tar.bz2
gentoo-88c3f571aa4589d44f2477678df8e198f92cb9de.zip
net-dialup/minicom: add 2.9
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/minicom/Manifest1
-rw-r--r--net-dialup/minicom/files/minicom-2.9-update-gettext.patch13
-rw-r--r--net-dialup/minicom/minicom-2.9.ebuild61
3 files changed, 75 insertions, 0 deletions
diff --git a/net-dialup/minicom/Manifest b/net-dialup/minicom/Manifest
index d3663f81bd2c..c03ddf96068c 100644
--- a/net-dialup/minicom/Manifest
+++ b/net-dialup/minicom/Manifest
@@ -1,2 +1,3 @@
DIST minicom-2.8.tar.gz 948015 BLAKE2B 007a2975a996e2dd2390b1cf20e1a70c4bb1b57d224211d30e8d83a9d02a45c147df34bf409961a20ad3746cb6b5551c1e0702a05bb0a0a3f7f042d251b553be SHA512 5ced0ff79cec11464154561130ddc6a38865170d4e4d80185ada540ba173fe89e35703b6d7fd0cf86caef6e020fcad1d7b1fdb4d4f55e3ddb906aea6a4b81b36
+DIST minicom-2.9.tar.gz 1044053 BLAKE2B 4c17f235d770ff9b4719c0ce9d3dfdb01603986d08cec245b1bfba5addbea597032bb06fc73c585886e035915dec990f37e9690b58d0a80a3e6faf8675485f96 SHA512 3bd41fa3b93b086c7b0fc851e9f46f241b13a037a4a325fc5e0ca6a4db7e9389443e8965891aa938a9c31ff848d50fd0cb88b98690a06737b5f3aca2520a60e2
DIST minicom-m4-2.8.tar.bz2 26016 BLAKE2B 0cff0bc3ca134b417fdabb5e2994afebaf89224b95c0b3843ec57e815f43778c8eab1f8df6098d756616a0c494812d9fabc4292eaeaa9c09afb62821ce852438 SHA512 d09e141b1b83f215dc11dcd33d0cd62000c46384ea86084edfb07b04a4d30c0d9e2dce49e5e8e78f3f70fb646737f1e55a9c1158906312575ca2f02db6283994
diff --git a/net-dialup/minicom/files/minicom-2.9-update-gettext.patch b/net-dialup/minicom/files/minicom-2.9-update-gettext.patch
new file mode 100644
index 000000000000..4218d75e0e8c
--- /dev/null
+++ b/net-dialup/minicom/files/minicom-2.9-update-gettext.patch
@@ -0,0 +1,13 @@
+Use REQUIRE so eautopoint --force will upgrade gettext to 0.22 if available.
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -131,7 +131,7 @@ ALL_LINGUAS="cs da de es fr fi hu id ja ka ko nb pl pt_BR ro ru rw sr sv vi zh_C
+
+ dnl Checks for programs.
+ AM_GNU_GETTEXT([external])
+-AM_GNU_GETTEXT_VERSION([0.21])
++AM_GNU_GETTEXT_REQUIRE_VERSION([0.21])
+
+ dnl This is a hacky workaround as the m4 scripts for iconv seem to set
+ dnl LIBICONV to '-liconv' despite that this lib is not available if iconv
diff --git a/net-dialup/minicom/minicom-2.9.ebuild b/net-dialup/minicom/minicom-2.9.ebuild
new file mode 100644
index 000000000000..42ec2d7e76f1
--- /dev/null
+++ b/net-dialup/minicom/minicom-2.9.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Serial Communication Program"
+HOMEPAGE="https://salsa.debian.org/minicom-team/minicom"
+SRC_URI="https://salsa.debian.org/${PN}-team/${PN}/-/archive/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="nls"
+
+DEPEND="sys-libs/ncurses:="
+
+RDEPEND="
+ ${DEPEND}
+ net-dialup/lrzsz
+"
+
+BDEPEND="
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.8-gentoo-runscript.patch
+ "${FILESDIR}"/${PN}-2.8-lockdir.patch
+ "${FILESDIR}"/${PN}-2.9-update-gettext.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # Lockdir must exist if not manually specified.
+ # '/var/lock' is created by OpenRC.
+ local myeconfargs=(
+ # See bug #788142
+ --sysconfdir="${EPREFIX}"/etc/${PN}
+
+ --disable-rpath
+ --enable-lock-dir="/var/lock"
+ $(use_enable nls)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ # Needs to match --sysconfdir above
+ insinto /etc/minicom
+ doins "${FILESDIR}"/minirc.dfl
+}