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.
gentoo-overlay/www-apache/mod_whatkilledus/mod_whatkilledus-0.0.1-r1.e...

44 lines
1.0 KiB

# Copyright 1999-2012 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-r1.ebuild,v 1.1 2012/06/17 16:24:28 flameeyes Exp $
EAPI=4
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
RDEPEND+="
www-servers/apache:2[debug]"
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) \
${CFLAGS} ${LDFLAGS} \
-o "${S}"/gen_test_char \
"${FILESDIR}"/gen_test_char.c
"${S}"/gen_test_char > "${S}"/test_char.h
apache-module_src_compile
}