Lines 1-16
Link Here
|
1 |
# Copyright 1999-2017 Gentoo Foundation |
1 |
# Copyright 1999-2017 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI="5" |
4 |
EAPI="6" |
5 |
|
5 |
|
6 |
inherit eutils flag-o-matic toolchain-funcs multilib-minimal multiprocessing |
6 |
inherit eutils flag-o-matic toolchain-funcs multilib-minimal multiprocessing |
7 |
|
7 |
|
8 |
MY_PV=${PV:0:3} |
|
|
9 |
PV_SNAP=${PV:4} |
10 |
MY_P=${PN}-${MY_PV} |
11 |
DESCRIPTION="console display library" |
8 |
DESCRIPTION="console display library" |
12 |
HOMEPAGE="https://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/" |
9 |
HOMEPAGE="http://invisible-island.net/ncurses/ https://www.gnu.org/software/ncurses/" |
13 |
SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz" |
10 |
|
|
|
11 |
if [[ ${PV} == "9999" ]] ; then |
12 |
inherit git-r3 |
13 |
EGIT_REPO_URI="https://github.com/mirror/${PN}.git" |
14 |
S="${WORKDIR}/${PF}" |
15 |
else |
16 |
inherit versionator |
17 |
MY_P="${PN}-$(replace_version_separator 2 -)" |
18 |
SRC_URI="https://invisible-mirror.net/archives/ncurses/current/${MY_P}.tgz" |
19 |
S=${WORKDIR}/${MY_P} |
20 |
fi |
14 |
|
21 |
|
15 |
LICENSE="MIT" |
22 |
LICENSE="MIT" |
16 |
# The subslot reflects the SONAME. |
23 |
# The subslot reflects the SONAME. |
Lines 27-47
Link Here
|
27 |
!<x11-terms/st-0.6-r1 |
34 |
!<x11-terms/st-0.6-r1 |
28 |
!app-emulation/emul-linux-x86-baselibs" |
35 |
!app-emulation/emul-linux-x86-baselibs" |
29 |
|
36 |
|
30 |
S=${WORKDIR}/${MY_P} |
|
|
31 |
|
32 |
PATCHES=( |
33 |
"${FILESDIR}/${PN}-6.0-gfbsd.patch" |
34 |
"${FILESDIR}/${PN}-5.7-nongnu.patch" |
35 |
"${FILESDIR}/${PN}-6.0-rxvt-unicode-9.15.patch" #192083 #383871 |
36 |
"${FILESDIR}/${PN}-6.0-pkg-config.patch" |
37 |
"${FILESDIR}/${PN}-5.9-gcc-5.patch" #545114 |
38 |
"${FILESDIR}/${PN}-6.0-ticlib.patch" #557360 |
39 |
"${FILESDIR}/${PN}-6.0-cppflags-cross.patch" #601426 |
40 |
) |
41 |
|
42 |
src_prepare() { |
37 |
src_prepare() { |
43 |
[[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh |
38 |
epatch "${FILESDIR}/${PN}-6.0-unified.patch" |
44 |
epatch "${PATCHES[@]}" |
39 |
eapply_user |
45 |
} |
40 |
} |
46 |
|
41 |
|
47 |
src_configure() { |
42 |
src_configure() { |
Lines 277-289
Link Here
|
277 |
dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc |
272 |
dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc |
278 |
use doc && dohtml -r doc/html/ |
273 |
use doc && dohtml -r doc/html/ |
279 |
} |
274 |
} |
280 |
|
|
|
281 |
pkg_preinst() { |
282 |
preserve_old_lib /$(get_libdir)/libncurses.so.5 |
283 |
use unicode && preserve_old_lib /$(get_libdir)/libncursesw.so.5 |
284 |
} |
285 |
|
286 |
pkg_postinst() { |
287 |
preserve_old_lib_notify /$(get_libdir)/libncurses.so.5 |
288 |
use unicode && preserve_old_lib_notify /$(get_libdir)/libncursesw.so.5 |
289 |
} |