blob: 00d8365e978f9c9e2b54dedeb4234f64175e492a (
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
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
USE_DOTNET="net35 net40 net45"
PATCHDIR="${FILESDIR}/2.2/"
inherit base eutils dotnet user autotools autotools-utils
DESCRIPTION="XSP is a small web server that can host ASP.NET pages"
HOMEPAGE="http://www.mono-project.com/ASP.NET"
SRC_URI="https://github.com/Heather/xsp/archive/2014.11.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc test"
RDEPEND="dev-db/sqlite:3"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${P}
src_prepare() {
epatch "${FILESDIR}/aclocal-fix.patch"
if [ -z "$LIBTOOL" ]; then
LIBTOOL=`which glibtool 2>/dev/null`
if [ ! -x "$LIBTOOL" ]; then
LIBTOOL=`which libtool`
fi
fi
eaclocal -I build/m4/shamrock -I build/m4/shave $ACLOCAL_FLAGS
if test -z "$NO_LIBTOOLIZE"; then
${LIBTOOL}ize --force --copy
fi
eautoconf
}
src_configure() {
myeconfargs=("--enable-maintainer-mode")
use test && myeconfargs+=("--with_unit_tests")
use doc || myeconfargs+=("--disable-docs")
eautomake --gnu --add-missing --force --copy #nowarn
autotools-utils_src_configure
}
src_compile() {
autotools-utils_src_compile
}
pkg_preinst() {
enewgroup aspnet
enewuser aspnet -1 -1 /tmp aspnet
}
src_install() {
mv_command="cp -ar" autotools-utils_src_install
newinitd "${PATCHDIR}"/xsp.initd xsp
newinitd "${PATCHDIR}"/mod-mono-server-r1.initd mod-mono-server
newconfd "${PATCHDIR}"/xsp.confd xsp
newconfd "${PATCHDIR}"/mod-mono-server.confd mod-mono-server
keepdir /var/run/aspnet
}
|