blob: 25d884ae86a6b9d2740ccf018c3cb76bde0413b3 (
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
62
63
64
65
66
67
68
69
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.3.1.ebuild,v 1.3 2011/11/14 11:22:34 flameeyes Exp $
EAPI=2
inherit eutils
DESCRIPTION="ICE middleware C++ bindings"
HOMEPAGE="http://www.zeroc.com/index.html"
SRC_URI="http://www.zeroc.com/download/Ice/3.3/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE="ncurses test debug"
RDEPEND=">=dev-libs/expat-2.0.1
>=app-arch/bzip2-1.0.4
>=dev-libs/openssl-0.9.8g
=sys-libs/db-4.6.21*[cxx]
=dev-cpp/libmcpp-2.7.2"
DEPEND="${RDEPEND}
ncurses? ( sys-libs/ncurses sys-libs/readline )
test? ( >=dev-lang/python-2.4 )"
S=${WORKDIR}/${P}/cpp
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-Makefile.patch
MAKE_RULES="${S}/config/Make.rules"
#if use amd64; then
# sed -i -e "s:^#LP64:LP64:g" "${MAKE_RULES}" \
# || die "Failed to set lib64 directory"
#fi
if ! use ncurses; then
sed -i -e "s#^USE_READLINE.*#USE_READLINE ?= yes#g" \
"${MAKE_RULES}" || die "Failed to set no readline"
fi
if ! use debug; then
sed -i -e "s:#OPTIMIZE:OPTIMIZE:" \
"${MAKE_RULES}" || die "Failed to remove debug"
fi
sed -i -e \
"s:.*CXXFLAGS[^\+]*\=\s:CXXFLAGS = ${CXXFLAGS} :g" \
"${MAKE_RULES}.Linux" || die "CXXFLAGS patching failed!"
}
src_compile() {
emake || die "make failed"
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
cp -dpR "${S}"/../slice "${D}"/usr/share/Ice
}
src_test() {
emake test || die "Test failed"
}
|