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

EAPI=6

inherit toolchain-funcs

DESCRIPTION="easy to use web server"
SRC_URI="https://github.com/cesanta/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
HOMEPAGE="https://code.google.com/p/${PN}/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~amd64-linux ~x86 ~arm-linux ~x86-linux"
IUSE=""

RDEPEND=""
DEPEND=""

S=${WORKDIR}/${P}/examples/web_server

src_prepare() {
	eapply_user
	sed -e "s|-g -O0 ||" -i Makefile || die
}

src_compile() {
	tc-export CC
	emake CFLAGS_EXTRA="${CFLAGS}" web_server
}

src_install() {
	newbin "${S}/web_server" "${PN}"
	dodoc ../../README.md
}