summaryrefslogtreecommitdiff
blob: 6987de2600c6fe3715ebbd5f27573b5b70187248 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit eutils apache-module

DESCRIPTION="mod_caucho connects Resin and Apache2"
HOMEPAGE="http://www.caucho.com/"
SRC_URI="http://www.caucho.com/download/resin-${PV}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"

need_apache2_4

APACHE2_MOD_CONF="88_${PN}"
APACHE2_MOD_DEFINE="CAUCHO"

S="${WORKDIR}/resin-${PV}"

# Although building this manually with apxs is bad, trying to make the
# build scripts behave is worse. You have to:
#
# * Patch configure.ac and Makefile.in to respect flags.
# * Run eautoreconf (or patch configure and chmod it too).
# * Inherit java-pkg-2, DEPEND on virtual/jdk, and define pkg_setup just
#   to needlessly satisfy configure or patch out large chunks of it.
# * Define src_compile to only build the Apache module.
# * It will still report an implicit declaration of cse_free. If you try
#   to fix this, it will complain that the argument count doesn't match.

APXS2_S="${S}/modules/c/src/apache2"
APXS2_ARGS="-c -DAPACHE_24 -I../common ${PN}.c ../common/stream.c ../common/config.c ../common/memory.c"

src_configure() {
	:
}