forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editline-1.17.1_p20240527.ebuild
50 lines (36 loc) · 1.03 KB
/
editline-1.17.1_p20240527.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="line editing library for UNIX call compatible with the FSF readline"
HOMEPAGE="https://troglobit.com/projects/editline/
https://github.com/troglobit/editline/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/troglobit/${PN}.git"
else
[[ "${PV}" == *p20240527 ]] && COMMIT="caf4b3c0ce3b0785791198b11de6f3134e9f05d8"
SRC_URI="https://github.com/troglobit/${PN}/archive/${COMMIT}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="Apache-2.0"
SLOT="0/1.0.2"
PATCHES=(
"${FILESDIR}/${PN}-1.17.1_p20240527-rename-man.patch"
)
src_prepare() {
default
eautoreconf
# To avoid collision with dev-libs/libedit
# we rename man/editline.3 to man/libeditline.3
mv man/editline.3 man/libeditline.3 || die
}
src_configure() {
econf --disable-static
}
src_install() {
default
find "${D}" -type f -name "*.la" -delete || die
}