/[gentoo-x86]/dev-python/IcePy/IcePy-3.1.1.ebuild
Gentoo

Contents of /dev-python/IcePy/IcePy-3.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jul 24 12:20:12 2007 UTC (11 years, 1 month ago) by caleb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
removing old versions
(Portage version: 2.1.2.7)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/IcePy/IcePy-3.1.1.ebuild,v 1.2 2006/10/30 13:35:25 caleb Exp $
4
5 inherit eutils python
6
7 DESCRIPTION="ICE middleware C++ bindings"
8 HOMEPAGE="http://www.zeroc.com/index.html"
9 SRC_URI="http://www.zeroc.com/download/Ice/3.1/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~x86"
14 IUSE="test debug"
15
16 DEPEND="=dev-cpp/Ice-3.1*"
17
18 ICE_HOME=/usr
19
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23
24 epatch ${FILESDIR}/icepy-${PV}-makefile.patch
25
26 if use amd64; then
27 sed -i -e "s:^#LP64:LP64:g" ${S}/config/Make.rules \
28 || die "Failed to set lib64 directory"
29 fi
30
31 if ! use debug; then
32 sed -i -e "s:#OPTIMIZE:OPTIMIZE:" \
33 ${S}/config/Make.rules || die "Failed to remove debug"
34 fi
35
36 sed -i -e \
37 "s:.*CXXFLAGS[^\+]*\=\s:CXXFLAGS = ${CXXFLAGS} :g" \
38 ${S}/config/Make.rules.Linux || die "CXXFLAGS patching failed!"
39 }
40
41 src_compile() {
42 cd ${S}
43 export ICE_HOME=/usr
44 make || die "Died during make"
45 }
46
47 src_install() {
48 export ICE_HOME=/usr
49 make DESTDIR="${D}" install || die "Install Failed!"
50 }
51
52 src_test() {
53 export ICE_HOME=/usr
54 make test || die "Test failed"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20