Diff gdb-9.2 with a gdb-9999

/usr/portage/sys-devel/gdb/gdb-9999.ebuild 2020-04-17 22:39:00.000000000 +0300
44 44
LICENSE="GPL-2 LGPL-2"
45 45
SLOT="0"
46 46
if [[ ${PV} != 9999* ]] ; then
47
	KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
48 48
fi
49 49
IUSE="+client lzma multitarget nls +python +server source-highlight test vanilla xml xxhash"
50 50
REQUIRED_USE="
......
90 90

  
91 91
PATCHES=(
92 92
	"${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
93
	"${FILESDIR}"/${PN}-9.1-ia64.patch
94 93
)
95 94

  
96
GDB_BUILD_DIR="${WORKDIR}"/${P}-build
97

  
98 95
pkg_setup() {
99 96
	use python && python-single-r1_pkg_setup
100 97
}
......
187 184
	# source-highlight is detected with pkg-config: bug #716558
188 185
	export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)"
189 186

  
190
	mkdir "${GDB_BUILD_DIR}" || die
191
	pushd "${GDB_BUILD_DIR}" || die
192
		ECONF_SOURCE=${S}
193
		econf "${myconf[@]}"
194
	popd
195
}
196

  
197
src_compile() {
198
	emake -C "${GDB_BUILD_DIR}"
199
}
200

  
201
src_test() {
202
	emake -C "${GDB_BUILD_DIR}" check
187
	econf "${myconf[@]}"
203 188
}
204 189

  
205 190
src_install() {
206 191
	if use server && ! use client; then
207
		emake -C "${GDB_BUILD_DIR}"/gdb/gdbserver DESTDIR="${D}" install
208
	else
209
		emake -C "${GDB_BUILD_DIR}" DESTDIR="${D}" install
192
		cd gdb/gdbserver || die
210 193
	fi
211

  
194
	default
212 195
	if use client; then
213 196
		find "${ED}"/usr -name libiberty.a -delete || die
214 197
	fi
198
	cd "${S}" || die
215 199

  
216 200
	# Delete translations that conflict with binutils-libs. #528088
217 201
	# Note: Should figure out how to store these in an internal gdb dir.
......
236 220
	# https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
237 221
	# Only install if it exists due to the twisted behavior (see
238 222
	# notes in src_configure above).
239
	[[ -e "${GDB_BUILD_DIR}"/gdb/gdbserver/gdbreplay ]] && dobin "${GDB_BUILD_DIR}"/gdb/gdbserver/gdbreplay
223
	[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay
240 224

  
241 225
	if use client ; then
242 226
		docinto gdb
Thank you!