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.
41 lines
820 B
41 lines
820 B
3 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
|
inherit cmake flag-o-matic
|
||
|
|
||
|
DESCRIPTION="Interactively examine a C program"
|
||
|
HOMEPAGE="https://sourceforge.net/projects/kscope/"
|
||
|
SRC_URI="mirror://sourceforge/kscope/${P}.tar.gz"
|
||
|
S="${WORKDIR}"/${PN}
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="amd64 x86"
|
||
|
IUSE="debug"
|
||
|
|
||
2 years ago
|
RDEPEND="sys-libs/ncurses:="
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
3 years ago
|
DOCS=( AUTHORS README{,.cscope} TODO )
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/${P}-tinfo.patch" # bug #678886
|
||
2 years ago
|
"${FILESDIR}/${P}-pointer-type.patch"
|
||
3 years ago
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
cmake_src_prepare
|
||
|
|
||
|
echo 'INSTALL(TARGETS min-cscope RUNTIME DESTINATION bin)' \
|
||
|
>> src/CMakeLists.txt || die
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
2 years ago
|
# -D_GNU_SOURCE for qsort_r, bug #871162
|
||
|
append-cppflags -I"${S}"/sort -D_GNU_SOURCE
|
||
3 years ago
|
|
||
|
cmake_src_configure
|
||
|
}
|