/[gentoo-x86]/sci-visualization/xgraph/xgraph-12.1-r2.ebuild
Gentoo

Contents of /sci-visualization/xgraph/xgraph-12.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Jun 28 21:34:25 2010 UTC (4 years, 3 months ago) by jlec
Branch: MAIN
Changes since 1.6: +6 -6 lines
Corrected prefix import, #325055
(Portage version: 2.2_rc67/cvs/Linux x86_64)

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 }

  ViewVC Help
Powered by ViewVC 1.1.20