summaryrefslogtreecommitdiff
blob: 76e9204cf4546d624cb1b7f9f91b35c75514a6a7 (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-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

EGIT_REPO_URI="git://git.warmcat.com/libwebsockets"

inherit git-2

DESCRIPTION="C Websockets Server Library"
HOMEPAGE="http://warmcat.com/libwebsockets"
SRC_URI=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="openssl +libcrypto nofork noping"
DEPEND="openssl? ( dev-libs/openssl )"
RDEPEND="${DEPEND}"

src_unpack() {
	git_src_unpack
	cd "${S}"
}

src_configure() {
	econf \
	  $(use_enable openssl) \
	  $(use_enable libcrypto) \
	  $(use_enable nofork) \
	  $(use_enable noping)
}

src_install() {
	emake install DESTDIR="${D}" || die
	dodoc README-test-server
}