diff options
Diffstat (limited to 'dev-lang/idb/idb-10.0.026.ebuild')
-rw-r--r-- | dev-lang/idb/idb-10.0.026.ebuild | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/dev-lang/idb/idb-10.0.026.ebuild b/dev-lang/idb/idb-10.0.026.ebuild new file mode 100644 index 000000000000..c3831653b61e --- /dev/null +++ b/dev-lang/idb/idb-10.0.026.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/idb/idb-10.0.026.ebuild,v 1.1 2007/10/02 11:51:54 bicatali Exp $ + +inherit rpm elisp-common + +IFC_PID=787 +ICC_PID=786 + +DESCRIPTION="Intel C/C++/FORTRAN debugger for Linux" +HOMEPAGE="http://www.intel.com/software/products/compilers/" +COM_URI="http://registrationcenter-download.intel.com/irc_nas" +SRC_URI="amd64? ( ifc? ( !icc? ( ${COM_URI}/${IFC_PID}/l_fc_c_${PV}_intel64.tar.gz ) ) + !ifc? ( !icc? ( ${COM_URI}/${ICC_PID}/l_cc_c_${PV}_intel64.tar.gz ) ) + icc? ( ${COM_URI}/${ICC_PID}/l_cc_c_${PV}_intel64.tar.gz ) ) + ia64? ( ifc? ( !icc? ( ${COM_URI}/${IFC_PID}/l_fc_c_${PV}_ia64.tar.gz ) ) + !ifc? ( !icc? ( ${COM_URI}/${ICC_PID}/l_cc_c_${PV}_ia64.tar.gz ) ) + icc? ( ${COM_URI}/${ICC_PID}/l_cc_c_${PV}_ia64.tar.gz ) ) + x86? ( ifc? ( !icc? ( ${COM_URI}/${IFC_PID}/l_fc_c_${PV}_ia32.tar.gz ) ) + !ifc? ( !icc? ( ${COM_URI}/${ICC_PID}/l_cc_c_${PV}_ia32.tar.gz ) ) + icc? ( ${COM_URI}/${ICC_PID}/l_cc_c_${PV}_ia32.tar.gz ) )" + +KEYWORDS="~amd64 ~ia64 ~x86" + +LICENSE="Intel-SDP" +SLOT="0" + +RESTRICT="test strip mirror" +IUSE="emacs" + +DEPEND="" +RDEPEND="virtual/libstdc++ + x11-libs/libXft + x11-libs/libXt + dev-libs/libxml2" + +src_unpack() { + unpack ${A} + PACKAGEID=$(basename l_*) + mv "${WORKDIR}"/${PACKAGEID} "${S}" + cd "${S}" + rpm_unpack data/intel*idb*.rpm || die "rpm_unpack failed" +} + +src_install() { + local ext= + use amd64 && ext=e + local instdir=/opt/intel/${PN}${ext}/${PV} + cd "${S}"/${instdir}/doc + sed -e "s|\<installpackageid\>|${PACKAGEID}|g" \ + -i *support \ + || die "sed support file failed" + chmod 644 *support + + dodir ${instdir} + einfo "Copying files" + cp -pPR \ + "${S}"/${instdir}/* \ + "${D}"/${instdir}/ \ + || die "copying debugger failed" + local env_file=06idb + echo "PATH=${instdir}/bin" > ${env_file} + echo "ROOTPATH=${instdir}/bin" >> ${env_file} + echo "MANPATH=${instdir}/man" >> ${env_file} + doenvd ${env_file} || die "doenvd ${env_file} failed" + use emacs && \ + elisp-site-file-install "${S}"${instdir}/bin/*.el +} + +pkg_postinst () { + rm -f "${ROOT}"/opt/intel/{intel_sdp_products.db,.*.log} || die + elog "Make sure you have recieved the restrictive" + elog "non-commercial license ${PN} by registering at:" + elog "http://www.intel.com/cd/software/products/asmo-na/eng/download/download/219771.htm" + elog "You cannot run ${PN} without this license file." + elog "Read the website for more information on this license." + elog "To use ${PN} now, issue first \n\tsource /etc/profile" + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |