blob: 04443aab9c5d855893b69c45722145b2e8aa1807 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_whatkilledus/mod_whatkilledus-0.0.1.ebuild,v 1.2 2008/01/10 15:47:30 hollow Exp $
inherit apache-module eutils toolchain-funcs
KEYWORDS="~amd64 ~x86"
DESCRIPTION="Apache2 modules to debug segmentation faults in threads"
HOMEPAGE="http://people.apache.org/~trawick/exception_hook.html"
SRC_URI="mirror://gentoo/${P}.c"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND=""
RDEPEND=""
APACHE2_MOD_CONF="10_${PN}"
APACHE2_MOD_DEFINE="WHATKILLEDUS"
need_apache2_2
pkg_setup() {
apache-module_pkg_setup
if ! built_with_use www-servers/apache debug; then
die "you need to build www-servers/apache with USE=debug"
fi
}
src_unpack() {
mkdir -p "${S}" || die "mkdir S failed"
cp -f "${DISTDIR}/${P}.c" "${S}/${PN}.c" || die "source copy failed"
}
src_compile() {
$(tc-getCC) \
$(/usr/bin/apr-1-config --includes) \
$(/usr/bin/apr-1-config --cppflags) \
-o "${S}"/gen_test_char \
"${FILESDIR}"/gen_test_char.c
"${S}"/gen_test_char > "${S}"/test_char.h
apache-module_src_compile
}
|