blob: f5eb2920ab1fbc84dd10dfeecc1775f132d59c47 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
PYTHON_DEPEND="2"
inherit cmake-utils multilib python
DESCRIPTION="A Free C++ Web Development Framework aimed for Rapid Web Application Development"
HOMEPAGE="http://cppcms.sourceforge.net/wikipp/en/page/main"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+cache doc examples +fcgi gcrypt +http icu +prefork_cache +scgi +tcpcache"
DEPEND="dev-libs/libpcre
sys-libs/zlib
gcrypt? ( dev-libs/libgcrypt )
!gcrypt? ( dev-libs/openssl:0 )
icu? ( dev-libs/icu )
!icu? ( virtual/libiconv )
"
RDEPEND="${DEPEND}"
src_prepare() {
python_convert_shebangs 2 bin/cppcms_tmpl_cc
}
src_configure() {
local mycmakeargs="-DDISABLE_STATIC=OFF
-DDISABLE_SHARED=OFF
-DDISABLE_GZIP=OFF
-DDISABLE_ICU_LOCALE=OFF
$(cmake-utils_use_disable !icu ICONV)
$(cmake-utils_use_disable gcrypt GCRYPT)
$(cmake-utils_use_disable !gcrypt OPENSSL)
$(cmake-utils_use_disable fcgi FCGI)
$(cmake-utils_use_disable scgi SCGI)
$(cmake-utils_use_disable http HTTP)
$(cmake-utils_use_disable prefork_cache PREFORK_CACHE)
$(cmake-utils_use_disable tcpcache TCPCACHE)
$(cmake-utils_use_disable cache CACHE)
-DLIBDIR=$(get_libdir)"
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
if use doc; then
dohtml -r doc/doxygen/html/*
fi
if use examples; then
rm examples/{autogenerated.doxy,examples.doxy,examples.txt,format.sh} || die
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
|