/[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.2 - (hide annotations) (download)
Fri Mar 20 16:46:44 2015 UTC (4 years, 10 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +7 -4 lines
Use newbin instead of exinto /usr/bin && doexe

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

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

  ViewVC Help
Powered by ViewVC 1.1.20