Diff minicom-2.7.1 with a minicom-2.8

/usr/portage/net-dialup/minicom/minicom-2.8.ebuild 2021-05-04 22:39:00.000000000 +0300
1 1
# Copyright 1999-2021 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=7
5

  
5 6
inherit autotools
6 7

  
7 8
DESCRIPTION="Serial Communication Program"
8 9
HOMEPAGE="https://salsa.debian.org/minicom-team/minicom"
9
SRC_URI="https://alioth-archive.debian.org/releases/minicom/Source/${PV}/${P}.tar.gz"
10
SRC_URI="https://salsa.debian.org/${PN}-team/${PN}/-/archive/${PV}/${P}.tar.gz"
10 11

  
11 12
LICENSE="GPL-2"
12 13
SLOT="0"
13 14
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
14 15
IUSE="nls"
15 16

  
16
COMMON_DEPEND="sys-libs/ncurses:="
17
DEPEND="${COMMON_DEPEND}
18
	nls? ( sys-devel/gettext )"
19
RDEPEND="${COMMON_DEPEND}
20
	net-dialup/lrzsz"
17
DEPEND="sys-libs/ncurses:="
21 18

  
22
DOCS="AUTHORS ChangeLog NEWS README doc/minicom.FAQ"
23
S="${WORKDIR}/${PN}-2.7" # 2.7.1 specific
19
RDEPEND="
20
	${DEPEND}
21
	net-dialup/lrzsz
22
"
23

  
24
BDEPEND="
25
	virtual/pkgconfig
26
	nls? ( sys-devel/gettext )
27
"
24 28

  
25 29
PATCHES=(
26
	"${FILESDIR}"/${PN}-2.3-gentoo-runscript.patch
27
	"${FILESDIR}"/${PN}-2.7-lockdir.patch
28
	"${FILESDIR}"/${PN}-2.7.1-gcc-10.patch
29
	"${FILESDIR}"/${PN}-2.7.1-musl.patch
30
	"${FILESDIR}"/${PN}-2.8-gentoo-runscript.patch
31
	"${FILESDIR}"/${PN}-2.8-lockdir.patch
30 32
)
31 33

  
32 34
src_prepare() {
33 35
	default
34
	mv "${S}"/configure.{in,ac}
35 36
	eautoreconf
36 37
}
37 38

  
38 39
src_configure() {
39 40
	# Lockdir must exist if not manually specified.
40
	# /var/lock is created by openrc.
41
	LOCKDIR=/var/lock
42
	econf \
43
		--sysconfdir="${EPREFIX}"/etc/${PN} \
44
		--enable-lock-dir="${LOCKDIR}" \
41
	# '/var/lock' is created by OpenRC.
42
	local myeconfargs=(
43
		--disable-rpath
44
		--enable-lock-dir="/var/lock"
45 45
		$(use_enable nls)
46
	)
47

  
48
	econf "${myeconfargs[@]}"
46 49
}
47 50

  
48 51
src_install() {
49 52
	default
53

  
50 54
	insinto /etc/minicom
51 55
	doins "${FILESDIR}"/minirc.dfl
52 56
}
53 57

  
54 58
pkg_preinst() {
55
	[[ -s ${EROOT}/etc/minicom/minirc.dfl ]] && rm -f "${ED}"/etc/minicom/minirc.dfl
59
	[[ -s "${EROOT}"/etc/minicom/minirc.dfl ]] && rm -f "${ED}"/etc/minicom/minirc.dfl
56 60
}
Thank you!