/[gentoo-x86]/www-servers/mongoose/mongoose-5.3.ebuild
Gentoo

Contents of /www-servers/mongoose/mongoose-5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Jun 6 04:22:17 2014 UTC (5 years, 10 months ago) by zmedico
Branch: MAIN
Initial mongoose ebuild, fixes bug #173888.

(Portage version: 2.2.0_alpha194/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3)

1 zmedico 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
4    
5     EAPI=5
6     inherit toolchain-funcs
7    
8     DESCRIPTION="easy to use web server"
9     SRC_URI="https://github.com/cesanta/${PN}/archive/${PV}.zip -> ${P}.zip"
10     HOMEPAGE="https://code.google.com/p/${PN}/"
11     LICENSE="GPL-2"
12     SLOT="0"
13     KEYWORDS="~amd64 ~amd64-linux ~x86 ~arm-linux ~x86-linux"
14     IUSE="lua"
15     RDEPEND="lua? ( >=dev-lang/lua-5.2.3:5.2= )"
16     DEPEND="${RDEPEND}"
17     S=${WORKDIR}/${P}/examples
18    
19     src_prepare() {
20     if use lua ; then
21     sed \
22     -e "s|^#CFLAGS += -I\$(LUA) -L\$(LUA) -llua|CFLAGS += -I$($(tc-getPKG_CONFIG) --variable includedir lua5.2)/lua5.2 -L$($(tc-getPKG_CONFIG) --variable libdir lua5.2) -llua5.2|" \
23     -i Makefile || die
24     fi
25     sed \
26     -e 's|^CFLAGS = -W -Wall -I.. -pthread -g -pipe $(CFLAGS_EXTRA)|CFLAGS += -I.. -pthread $(LDFLAGS)|' \
27     -e "s|g++ unit_test.c -Wall -W -pedantic -lssl|$(tc-getCC) unit_test.c -Wall -W -pedantic -lssl -pthread|" \
28     -i Makefile || die
29     }
30    
31     src_compile() {
32     tc-export CC
33     emake server
34     }
35    
36     src_test() {
37     emake u
38     }
39    
40     src_install() {
41     exeinto /usr/bin
42     newexe "${S}/server" "${PN}"
43     dodoc ../docs/{FAQ,LuaSqlite,Options,SSL,Usage}.md
44     }

  ViewVC Help
Powered by ViewVC 1.1.20