diff options
author | Caleb Tennis <caleb@gentoo.org> | 2006-01-25 21:32:03 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2006-01-25 21:32:03 +0000 |
commit | 5183bd8c31cc29264ddd08d8dc813d3a6cb8f178 (patch) | |
tree | 94e9ec3eafbf685c59b7d7a264e0d87fbb5921e8 /dev-cpp/ice/ice-3.0.1.ebuild | |
parent | ppc stable, bug #120215 (diff) | |
download | historical-5183bd8c31cc29264ddd08d8dc813d3a6cb8f178.tar.gz historical-5183bd8c31cc29264ddd08d8dc813d3a6cb8f178.tar.bz2 historical-5183bd8c31cc29264ddd08d8dc813d3a6cb8f178.zip |
fix makefile patch
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'dev-cpp/ice/ice-3.0.1.ebuild')
-rw-r--r-- | dev-cpp/ice/ice-3.0.1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-cpp/ice/ice-3.0.1.ebuild b/dev-cpp/ice/ice-3.0.1.ebuild new file mode 100644 index 000000000000..adb8e03163ba --- /dev/null +++ b/dev-cpp/ice/ice-3.0.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/ice/ice-3.0.1.ebuild,v 1.1 2006/01/25 21:32:03 caleb Exp $ + +inherit eutils + +MY_P=${PN/i/I}-${PV} + +DESCRIPTION="ICE middleware C++ bindings" +HOMEPAGE="http://www.zeroc.com/index.html" +SRC_URI="http://www.zeroc.com/download/Ice/3.0/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="ncurses test debug" + +DEPEND="ncurses? ( sys-libs/ncurses + sys-libs/readline ) + test? ( >=dev-lang/python-2.2 ) + >=sys-libs/db-4.3.29 + >=dev-libs/openssl-0.9.7" +RDEPEND=">=dev-libs/expat-1.9 + >=app-arch/bzip2-1.0" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + built_with_use db nocxx && die "DB must be compiled with C++ support!" +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-makefile.patch + + if use amd64; then + sed -i -e "s:^#LP64:LP64:g" ${S}/config/Make.rules \ + || die "Failed to set lib64 directory" + fi + + if ! use ncurses; then + sed -i -e "s# USE_READLINE.*# USE_READLINE := no#g" \ + ${S}/config/Make.rules || die "Failed to set no readline" + fi + + if ! use debug; then + sed -i -e "s:#OPTIMIZE:OPTIMIZE:" \ + ${S}/config/Make.rules || die "Failed to remove debug" + fi + + sed -i -e \ + "s:.*CXXFLAGS[^\+]*\=\s:CXXFLAGS = ${CXXFLAGS} :g" \ + ${S}/config/Make.rules.Linux || die "CXXFLAGS patching failed!" +} + +src_install() { + make DESTDIR="${D}" install || die "Install Failed!" +} |