# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # !!!!NOTE!!!! # This ebuild is for a custom binary version of GRADS compiled on a 32bit # machine. The default binaries crash for remote X.org sessions. Two fixes # were made: # 1) Changed the readline include dir in config.sh # 2) Changed GetFile to SimpleGetFile in gagui.c # !!!!NOTE!!!! inherit eutils DESCRIPTION="Grid Analysis and Display Software (GrADS)" HOMEPAGE="http://grads.iges.org/grads/" SRC_URI="ftp://grads.iges.org/${PN}/${PV}/${PN}-src-${PV}b4.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 amd64" IUSE="" #RESTRICT="nostrip" DEPEND="" #RDEPEND="" S=${WORKDIR}/${P}b4 src_unpack() { tar xpf ${DISTDIR}/${PN}-src-${PV}b4.tar.gz -C ${WORKDIR} cd ${WORKDIR} epatch ${FILESDIR}/gxdxwd_c.patch } src_compile() { econf || die "econf failed" emake || die "emake failed" #cd ${WORKDIR}/${P}/src #./config.sh -arch=linux #make } src_install() { make install DESTDIR=${D} || die "make install failed" mkdir -p ${D}/usr/local/lib/grads/ cp -av ${WORKDIR}/grads-${PV}b4/data/* ${D}/usr/local/lib/grads/ mkdir -p ${D}/etc/env.d/ cp ${FILESDIR}/50grads ${D}/etc/env.d/ } pkg_postinst() { env-update source /etc/profile }