| 1 |
# Copyright 1999-2010 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/xgraph/xgraph-12.1-r2.ebuild,v 1.6 2010/01/06 01:21:00 bicatali Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
inherit eutils autotools
|
| 7 |
|
| 8 |
DEB_PR=10
|
| 9 |
DESCRIPTION="X11 Plotting Utility"
|
| 10 |
HOMEPAGE="http://www.isi.edu/nsnam/xgraph/"
|
| 11 |
SRC_URI="http://www.isi.edu/nsnam/dist/${P}.tar.gz
|
| 12 |
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${DEB_PR}.diff.gz"
|
| 13 |
|
| 14 |
LICENSE="as-is"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
| 17 |
IUSE="examples"
|
| 18 |
DEPEND="x11-libs/libSM
|
| 19 |
x11-libs/libX11"
|
| 20 |
RDEPEND="${DEPEND}"
|
| 21 |
|
| 22 |
src_prepare() {
|
| 23 |
epatch "${WORKDIR}"/${PN}_${PV}-${DEB_PR}.diff
|
| 24 |
epatch "${FILESDIR}"/${P}-glibc-2.10.patch
|
| 25 |
# respect user flags
|
| 26 |
sed -i -e "s/-g/${CFLAGS}/" Makefile.am
|
| 27 |
eautoreconf
|
| 28 |
}
|
| 29 |
|
| 30 |
src_install() {
|
| 31 |
emake DESTDIR="${D}" install || die "Compilation failed."
|
| 32 |
dodoc README*
|
| 33 |
if use examples; then
|
| 34 |
insinto /usr/share/doc/${PF}
|
| 35 |
doins -r examples || die "Failed to install example files."
|
| 36 |
fi
|
| 37 |
|
| 38 |
dodir /usr/share/man/man1
|
| 39 |
mv "${ED}"/usr/share/man/manm/xgraph.man \
|
| 40 |
"${ED}"/usr/share/man/man1/xgraph.1 || \
|
| 41 |
die "Failed to correct man page location."
|
| 42 |
rm -Rf "${ED}"/usr/share/man/manm/ || \
|
| 43 |
die "Failed to remove bogus manm directory."
|
| 44 |
}
|