# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils DESCRIPTION="General-Use FTools for manipulating and inspecting FITS files" HOMEPAGE="http://heasarc.gsfc.nasa.gov/docs/software/ftools/ftools_menu.html" SRC_URI="http://localhost/heasoft${PV}src.tar.gz" LICENSE="UNKOWN freedist as-is GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RESTRICT="test" DEPEND="x11-base/xorg-server >=dev-lang/perl-5.6.0 WTF dodoc WTF HEADAS=`grep "HD_TOP_EXEC_PFX.*= " Makefile \ | sed "s#^HD_TOP_EXEC_PFX.*= ##"` echo "HEADAS=\"${HEADAS}\"" > 99headas doenvd 99headas einfo "Heasoft's installation is a mess. A revdep-rebuild control " einfo "file is installed for ape and cfitsio, so that any dependencies " einfo "won't scream everytime you run revdep-rebuild." ape_so="`ls "${HEADAS}/lib/libape_*.so"`" ape_so="${ape_so##*/}" cfitsio_so="`ls "${HEADAS}/lib/libcfitsio_*.so"`" cfitsio_so="${ape_so##*/}" echo "# Heasoft's installation is a mess." > 70-heasoft echo "# This file makes it slightly less annoying for other" >> 70-heasoft echo "# packages using its libraries." >> 70-heasoft echo >> 70-heasoft echo "LD_LIBRARY_MASK=\"${ape_so} ${cfitsio_so}\"" >> 70-heasoft insinto /etc/revdep-rebuild/ doins 70-heasoft } pkg_postinst() { elog "${MSG}" }