diff options
author | Caleb Tennis <caleb@gentoo.org> | 2008-05-21 18:10:19 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2008-05-21 18:10:19 +0000 |
commit | 4a5ade97cfa3ad9c09d1c2baae3a7929eec29459 (patch) | |
tree | b2d6daf70c6598bc03e4b9e4f022d83fb1f1d80d /dev-cpp/Ice/Ice-3.3.0.ebuild | |
parent | USE=postgres should set --with-pgsql, reported by Krzysztof Tomczyk (#222317) (diff) | |
download | gentoo-2-4a5ade97cfa3ad9c09d1c2baae3a7929eec29459.tar.gz gentoo-2-4a5ade97cfa3ad9c09d1c2baae3a7929eec29459.tar.bz2 gentoo-2-4a5ade97cfa3ad9c09d1c2baae3a7929eec29459.zip |
version bump
(Portage version: 2.1.5_rc10)
Diffstat (limited to 'dev-cpp/Ice/Ice-3.3.0.ebuild')
-rw-r--r-- | dev-cpp/Ice/Ice-3.3.0.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/dev-cpp/Ice/Ice-3.3.0.ebuild b/dev-cpp/Ice/Ice-3.3.0.ebuild new file mode 100644 index 000000000000..f208800376fa --- /dev/null +++ b/dev-cpp/Ice/Ice-3.3.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/Ice/Ice-3.3.0.ebuild,v 1.1 2008/05/21 18:10:19 caleb Exp $ + +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="~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* + =dev-cpp/libmcpp-2.6.4" + +DEPEND="${RDEPEND} + ncurses? ( sys-libs/ncurses sys-libs/readline ) + test? ( >=dev-lang/python-2.4 )" + +S=${WORKDIR}/${P}/cpp + +pkg_setup() { + if built_with_use sys-libs/db nocxx; then + eerror "sys-libs/db must be compiled with C++ support!" + eerror "Remove the 'nocxx' use flag and try again." + die "Fix use flags and re-emerge" + fi +} + +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" +} |