# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ INSDIR=Ice-${PV} S=${WORKDIR}/${INSDIR} DESCRIPTION="Ice, the high-performance Internet Communications Engine, is middleware for the practical programmer." SRC_URI="http://www.zeroc.com/download/Ice/2.1/Ice-2.1.2.tar.gz" HOMEPAGE="http://www.zeroc.com/" SLOT="0" LICENSE="GPL-2 COMERCIAL" KEYWORDS="x86" DEPEND="virtual/libc berkdb? ( >=sys-libs/db-4.2.52 ) test? ( >=dev-lang/python-2.3) >=dev-libs/expat-1.95.8 >=dev-libs/openssl-0.9.6 >=app-arch/bzip2-1.0 >=sys-libs/ncurses >=sys-libs/readline" src_unpack() { unpack ${A} cd ${S}/config sed -i "s:#OPTIMIZE:OPTIMIZE:" Make.rules sed -i "s:#DB_HOME:DB_HOME \:= ${S}/db\n#:" Make.rules sed -i "s:/opt/Ice-\$(VERSION):${D}opt/${INSDIR}:" Make.rules cd ${S} mkdir -p db/include cp -vf /usr/include/db4.2/* ${S}/db/include/ } src_compile() { emake make docs } src_test() { make test } src_install() { dodir "/opt/${INSDIR}" make install dodir "/etc/env.d" echo "ICE_HOME=/opt/${INSDIR}" > ${D}/etc/env.d/3333ice echo "PATH=/opt/${INSDIR}/bin" >> ${D}/etc/env.d/3333ice echo "ROOTPATH=/opt/${INSDIR}/bin" >> ${D}/etc/env.d/3333ice echo "LDPATH=/opt/${INSDIR}/lib" >> ${D}/etc/env.d/3333ice echo "CLASSPATH=/opt/${INSDIR}/lib/Ice.jar" >> ${D}/etc/env.d/3333ice } pkg_preinst() { echo "/opt/${INSDIR}/lib" >> "/etc/ld.so.conf" } pkg_postinst() { einfo "Note:" einfo " Ice was installed in /opt/${INSDIR}/." einfo " Header files are located in /opt/${INSDIR}/include/" einfo " Libraries are installed in /opt/${INSDIR}/lib/" einfo " Binaries are installed in /opt/${INSDIR}/bin/" einfo " Documentation is installed in /opt/${INSDIR}/doc/" }