diff options
Diffstat (limited to 'sci-astronomy/ds9/ds9-5.1-r1.ebuild')
-rw-r--r-- | sci-astronomy/ds9/ds9-5.1-r1.ebuild | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/sci-astronomy/ds9/ds9-5.1-r1.ebuild b/sci-astronomy/ds9/ds9-5.1-r1.ebuild deleted file mode 100644 index 8bc8b9b..0000000 --- a/sci-astronomy/ds9/ds9-5.1-r1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/ds9/ds9-5.1.ebuild,v 1.3 2008/02/14 23:32:16 bicatali Exp $ - -inherit flag-o-matic eutils toolchain-funcs - -DESCRIPTION="Data visualization application for astronomical FITS images" -HOMEPAGE="http://hea-www.harvard.edu/RD/ds9" -SRC_URI="http://hea-www.harvard.edu/saord/download/${PN}/source/${PN}.${PV}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc" -RDEPEND="x11-libs/libX11 - x11-libs/libXdmcp - x11-libs/libXau" -DEPEND="${RDEPEND} - app-arch/zip" - -RESTRICT="strip test mirror" - -S="${WORKDIR}/sao${PN}" - -src_unpack() { - unpack ${A} - cd "${S}" - # patch to speed up compilation (no man pages generation) - epatch "${FILESDIR}"/${P}-Makefile.patch - - # fix stack smashing on x86 with gcc-4.2 - if [[ "${ARCH}" == "x86" ]]; then - epatch "${FILESDIR}"/${P}-gcc4.2-x86.patch - fi - # security fix in embedded tk (bug #208464) - epatch "${FILESDIR}"/${P}-tk-gif.patch - - # remove build-time dependency on etags (i.e. emacs or xemacs) - sed -i -e '/^all/s/TAGS//' saotk/*/Makefile || die "sed failed" -} - -src_compile() { - local ds9arch - case ${ARCH} in - x86) ds9arch=linux ;; - amd64) ds9arch=linux64 ;; - ppc) ds9arch=linuxppc ;; - x86-fbsd) ds9arch=freebsd ;; - *) die "ds9 not supported upstream for this architecture";; - esac - ln -s make.${ds9arch} make.include - - # This is a long and fragile compilation - # which recompiles tcl/tk, tkimg, blt, funtools, - # and a lot of other packages - emake -j1 \ - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - OPTS="${CXXFLAGS}" \ - || die "emake failed" -} - -src_install () { - dobin bin/ds9 || die "failed installing ds9 binary" - dobin bin/xpa* || die "failed installing xpa* binaries" - doman man/man?/xpa* || die " failed installing man pages" - dodoc README acknowledgement || die "failed installing basic doc" - if use doc; then - dohtml -r doc/* || die "failed installing html doc" - fi -} |