You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
770 B
34 lines
770 B
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit cmake-utils flag-o-matic
|
|
|
|
DESCRIPTION="XML output extension to GCC"
|
|
HOMEPAGE="http://www.gccxml.org/"
|
|
SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.xz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm ~mips ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
|
|
|
src_prepare() {
|
|
# fix bug 549300 by restoring pre-GCC5 inline semantics
|
|
append-cflags -std=gnu89
|
|
|
|
# patch below taken from Debian
|
|
sed -i \
|
|
-e 's/xatexit.c//' \
|
|
GCC/libiberty/CMakeLists.txt || die "sed failed"
|
|
|
|
cmake-utils_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DGCCXML_DOC_DIR:STRING="share/doc/${PF}"
|
|
)
|
|
cmake-utils_src_configure
|
|
}
|