/[gentoo-x86]/dev-lang/v8cgi/v8cgi-0.9.2.ebuild
Gentoo

Contents of /dev-lang/v8cgi/v8cgi-0.9.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Dec 18 08:12:22 2013 UTC (9 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
dev-lang/v8cgi removal: depends on masked dev-lang/v8, no commits since 2011. See bug #429276, bug #443586, bug #443688, bug #490214.

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/v8cgi/v8cgi-0.9.2.ebuild,v 1.1 2011/12/24 01:02:35 weaver Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs flag-o-matic
8
9 MY_P=${P}-src
10 LIB_P="v8"
11
12 DESCRIPTION="Small set of C++ and JS libraries, allowing coder to use JS as a server-side HTTP processing language"
13 HOMEPAGE="http://code.google.com/p/${PN}/"
14 SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="debug mysql postgres sqlite memcached fcgi gd xerces opengl apache"
20
21 RDEPEND="dev-lang/v8
22 memcached? ( dev-libs/libmemcached )
23 apache? ( www-servers/apache )
24 opengl? ( virtual/opengl )
25 xerces? ( >=dev-libs/xerces-c-3.0.0 )
26 gd? ( media-libs/gd )
27 sqlite? ( dev-db/sqlite )
28 mysql? ( dev-db/mysql )
29 postgres? ( dev-db/postgresql-server )"
30 DEPEND="${RDEPEND}
31 >=dev-util/scons-0.96.93"
32
33 S="${WORKDIR}/${MY_P}"
34
35 src_compile() {
36 local myconf
37
38 filter-flags -ftracer -fomit-frame-pointer
39 if [[ $(gcc-major-version) -eq 3 ]] ; then
40 filter-flags -fstack-protector
41 append-flags -fno-stack-protector
42 fi
43
44 myconf="${myconf} v8_path=/usr/lib/"
45 myconf="${myconf} os=posix"
46
47 if use debug ; then
48 myconf="${myconf} debug=1"
49 fi
50 if use !mysql ; then
51 myconf="${myconf} mysql=0"
52 fi
53 if use postgres ; then
54 myconf="${myconf} pgsql=1"
55 fi
56 if use !sqlite ; then
57 myconf="${myconf} sqlite=0"
58 fi
59 if use fcgi ; then
60 myconf="${myconf} fcgi=1"
61 fi
62 if use !gd ; then
63 myconf="${myconf} gd=0"
64 fi
65 if use !memcached ; then
66 myconf="${myconf} memcached=0"
67 fi
68 if use xerces ; then
69 myconf="${myconf} xdom=1"
70 fi
71 if use opengl ; then
72 myconf="${myconf} gl=1"
73 fi
74 if use !apache ; then
75 myconf="${myconf} module=0"
76 fi
77
78 cd ${PN}
79 scons $myconf \
80 ${MAKEOPTS/-l[0-9]} \
81 --implicit-deps-unchanged \
82 prefix=/usr \
83 docdir=/usr/share/doc/${PF} \
84 default_targets=none || die "scons failed"
85 }
86
87 src_install() {
88 cd ${PN}
89
90 insinto /usr/lib/${PN}
91 doins lib/*
92
93 insinto /usr/share/${PN}/example
94 doins example/*
95
96 insinto /etc
97 newins v8cgi.conf.posix v8cgi.conf
98
99 dobin v8cgi
100 }

  ViewVC Help
Powered by ViewVC 1.1.20