Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 527602
Collapse All | Expand All

(-)/usr/portage/sys-libs/ncurses/ncurses-5.9-r3.ebuild (-8 / +24 lines)
Lines 6-16 Link Here
6
inherit eutils flag-o-matic toolchain-funcs multilib-minimal
6
inherit eutils flag-o-matic toolchain-funcs multilib-minimal
7
7
8
MY_PV=${PV:0:3}
8
MY_PV=${PV:0:3}
9
PV_SNAP=${PV:4}
9
PV_SNAP="20140308"
10
MY_P=${PN}-${MY_PV}
10
MY_P=${PN}-${MY_PV}
11
DESCRIPTION="console display library"
11
DESCRIPTION="console display library"
12
HOMEPAGE="http://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/"
12
HOMEPAGE="http://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/"
13
SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz"
13
SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz
14
	ftp://invisible-island.net/${PN}/${MY_PV}/ncurses-${MY_PV}-${PV_SNAP}-patch.sh.bz2
15
"
16
MY_EPATCHES=
17
for _mmdd in 0315 0322 0323 0329 0412 0419 0426 0503 0510 0524 0607 0609 0614 0621 0629 0705 0712 0719 0726 0802 0809 0816 0823 0831 0906 0913 0920 0927 1011 1018 1025; do
18
	_fn="ncurses-${MY_PV}-2014${_mmdd}.patch"
19
	SRC_URI="$SRC_URI ftp://invisible-island.net/${PN}/${MY_PV}/${_fn}.gz"
20
	MY_EPATCHES="$MY_EPATCHES $_fn"
21
done
14
22
15
LICENSE="MIT"
23
LICENSE="MIT"
16
SLOT="5"
24
SLOT="5"
Lines 35-45 Link Here
35
43
36
src_prepare() {
44
src_prepare() {
37
	[[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh
45
	[[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh
46
	local p
47
	for p in ${MY_EPATCHES}; do
48
		epatch "${WORKDIR}/$p"
49
		if grep -q 20140524 <<<"$p"; then
50
			rm "${S}/Ada95/src/library.gpr"
51
		fi
52
	done
38
	epatch "${FILESDIR}"/${PN}-5.8-gfbsd.patch
53
	epatch "${FILESDIR}"/${PN}-5.8-gfbsd.patch
39
	epatch "${FILESDIR}"/${PN}-5.7-nongnu.patch
54
	epatch "${FILESDIR}"/${PN}-5.7-nongnu.patch
40
	epatch "${FILESDIR}"/${PN}-5.9-rxvt-unicode-9.15.patch #192083 #383871
55
#	epatch "${FILESDIR}"/${PN}-5.9-pkg-config.patch
41
	epatch "${FILESDIR}"/${PN}-5.9-fix-clang-build.patch #417763
42
	epatch "${FILESDIR}"/${PN}-5.9-pkg-config.patch
43
}
56
}
44
57
45
src_configure() {
58
src_configure() {
Lines 86-92 Link Here
86
		# is also installed.  Force the tests to go our way.  Note that it
99
		# is also installed.  Force the tests to go our way.  Note that it
87
		# doesn't actually use pkg-config ... it just looks for set vars.
100
		# doesn't actually use pkg-config ... it just looks for set vars.
88
		--enable-pc-files
101
		--enable-pc-files
89
		--with-pkg-config="$(tc-getPKG_CONFIG)"
102
		--with-pkg-config="$(which $(tc-getPKG_CONFIG))"
90
		# This path is used to control where the .pc files are installed.
103
		# This path is used to control where the .pc files are installed.
91
		PKG_CONFIG_LIBDIR="${EPREFIX}/usr/$(get_libdir)/pkgconfig"
104
		PKG_CONFIG_LIBDIR="${EPREFIX}/usr/$(get_libdir)/pkgconfig"
92
105
Lines 124-129 Link Here
124
		--without-pthread
137
		--without-pthread
125
		--without-reentrant
138
		--without-reentrant
126
	)
139
	)
140
	if grep -q 'mingw' <<<"$CHOST"; then
141
		conf+=( --enable-sp-funcs --enable-term-driver )
142
	fi
127
143
128
	econf "${conf[@]}" "$@"
144
	econf "${conf[@]}" "$@"
129
}
145
}
Lines 183-192 Link Here
183
		$(usex unicode 'ncursesw' '') \
199
		$(usex unicode 'ncursesw' '') \
184
		$(use tinfo && usex unicode 'tinfow' '') \
200
		$(use tinfo && usex unicode 'tinfow' '') \
185
		$(usev tinfo)
201
		$(usev tinfo)
186
	if ! tc-is-static-only ; then
202
	if ! tc-is-static-only && [[ $(get_libname) != .dll ]]; then
187
		ln -sf libncurses$(get_libname) "${ED}"/usr/$(get_libdir)/libcurses$(get_libname) || die
203
		ln -sf libncurses$(get_libname) "${ED}"/usr/$(get_libdir)/libcurses$(get_libname) || die
188
	fi
204
	fi
189
	use static-libs || find "${ED}"/usr/ -name '*.a' -a '!' -name '*curses++*.a' -delete
205
	use static-libs || find "${ED}"/usr/ -name '*.a' -a '!' -name '*curses++*.a' -a '!' -name '*.dll.a' -delete
190
206
191
	# Build fails to create this ...
207
	# Build fails to create this ...
192
	dosym ../share/terminfo /usr/$(get_libdir)/terminfo
208
	dosym ../share/terminfo /usr/$(get_libdir)/terminfo

Return to bug 527602