Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 457530 | Differences between
and this patch

Collapse All | Expand All

(-)a/sys-libs/ncurses/ncurses-5.9-r3.ebuild (-1 / +31 lines)
Lines 69-74 Link Here
69
do_configure() {
69
do_configure() {
70
	ECONF_SOURCE=${S}
70
	ECONF_SOURCE=${S}
71
71
72
	tinfodir="${BUILD_DIR}"-$1-tinfo
72
	mkdir "${BUILD_DIR}"-$1
73
	mkdir "${BUILD_DIR}"-$1
73
	cd "${BUILD_DIR}"-$1 || die
74
	cd "${BUILD_DIR}"-$1 || die
74
	shift
75
	shift
Lines 113-119 Link Here
113
		$(use_with debug expanded)
114
		$(use_with debug expanded)
114
		$(use_with !debug macros)
115
		$(use_with !debug macros)
115
		$(use_with trace)
116
		$(use_with trace)
116
		$(use_with tinfo termlib)
117
117
118
		# The chtype/mmask-t settings below are to retain ABI compat
118
		# The chtype/mmask-t settings below are to retain ABI compat
119
		# with ncurses-5.4 so dont change em !
119
		# with ncurses-5.4 so dont change em !
Lines 126-131 Link Here
126
	)
126
	)
127
127
128
	econf "${conf[@]}" "$@"
128
	econf "${conf[@]}" "$@"
129
	if use tinfo; then
130
		mkdir "${tinfodir}"
131
		cd "$tinfodir" || die
132
		conf+=($(use_with tinfo termlib))
133
		econf "${conf[@]}" "$@"
134
	fi
129
}
135
}
130
136
131
src_compile() {
137
src_compile() {
Lines 162-167 Link Here
162
	# create the .pc files we want.
168
	# create the .pc files we want.
163
	rm -f misc/pc-files
169
	rm -f misc/pc-files
164
	emake ${make_flags}
170
	emake ${make_flags}
171
	if use tinfo; then
172
		cd "${BUILD_DIR}"-$1-tinfo || die
173
		emake -j1 sources
174
		rm -f misc/pc-files
175
		emake ${make_flags}
176
	fi
165
}
177
}
166
178
167
multilib_src_install() {
179
multilib_src_install() {
Lines 172-180 Link Here
172
	# support both wide and narrow
184
	# support both wide and narrow
173
	cd "${BUILD_DIR}"-narrowc || die
185
	cd "${BUILD_DIR}"-narrowc || die
174
	emake DESTDIR="${D}" install
186
	emake DESTDIR="${D}" install
187
	if use tinfo; then
188
		cd "${BUILD_DIR}-narrowc-tinfo/misc" || die
189
		chmod +x gen-pkgconfig || die
190
		./gen-pkgconfig || die
191
		find "${BUILD_DIR}-narrowc-tinfo/lib/." -name 'libtinfo*' \
192
			-exec mv '{}' "${ED}/usr/$(get_libdir)/" \; || die
193
		find "${BUILD_DIR}-narrowc-tinfo/misc/." -name 'tinfo*' \
194
			-exec mv '{}' "${ED}/usr/$(get_libdir)/pkgconfig/" \; || die
195
	fi
175
	if use unicode ; then
196
	if use unicode ; then
176
		cd "${BUILD_DIR}"-widec || die
197
		cd "${BUILD_DIR}"-widec || die
177
		emake DESTDIR="${D}" install
198
		emake DESTDIR="${D}" install
199
		if use tinfo; then
200
			cd "${BUILD_DIR}-widec-tinfo/misc" || die
201
			chmod +x gen-pkgconfig || die
202
			./gen-pkgconfig || die
203
			find "${BUILD_DIR}-widec-tinfo/lib/." -name 'libtinfo*' \
204
				-exec mv '{}' "${ED}/usr/$(get_libdir)/" \; || die
205
			find "${BUILD_DIR}-widec-tinfo/misc/." -name 'tinfo*' \
206
				-exec mv '{}' "${ED}/usr/$(get_libdir)/pkgconfig/" \; || die
207
		fi
178
	fi
208
	fi
179
209
180
	# Move libncurses{,w} into /lib
210
	# Move libncurses{,w} into /lib

Return to bug 457530