summaryrefslogtreecommitdiff
path: root/packages/dev-libs/libunwind/libunwind-scm.exheres-0
blob: 27d63fe28b4f5a7e92a7ed3b888baa8a02ebebfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 2012, 2014 Ali Polatel <alip@exherbo.org>
# Based in part upon libunwind-1.1.ebuild of Gentoo which is:
#   Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

SCM_REPOSITORY="git://git.sv.gnu.org/libunwind.git"
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 ] ]
require scm-git

SUMMARY="C programming interface to determine the call-chain of a program"
DESCRIPTION="
The primary goal of this project is to define a portable and efficient C
programming interface (API) to determine the call-chain of a program. The API
additionally provides the means to manipulate the preserved (callee-saved) state
of each call-frame and to resume execution at any point in the call-chain
(non-local goto).
"
HOMEPAGE="http://www.nongnu.org/libunwind/"
DOWNLOADS=""

LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64 ~armv7 ~armv8 ~x86"
MYOPTIONS="
    debug [[ description = [ Enable debug-frame, minidebuginfo and other goodies ] ]]
    doc
"

DEPENDENCIES="
    build:
        doc? ( app-text/texlive-core [[ note = latex2man ]] )
    build+run:
        debug? ( app-arch/xz )
"

BUGS_TO="alip@exherbo.org"

# Some tests are known to fail on some platforms including x86, see
#  https://bugs.gentoo.org/show_bug.cgi?id=461958 and
#  https://lists.nongnu.org/archive/html/libunwind-devel/2013-03/msg00005.html
RESTRICT="test"

DEFAULT_SRC_PREPARE_PATCHES=(
    "${FILES}"/0001-tests-Use-correctly-prefixed-nm-binary.patch
    "${FILES}"/0002-tests-Remove-coredump-tests.patch
)

DEFAULT_SRC_CONFIGURE_PARAMS=( --enable-cxx-exceptions )
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
    debug
    'debug minidebuginfo'
    'debug debug-frame'
    'doc documentation'
)