/[gentoo-x86]/sci-libs/plotmm/plotmm-0.1.2.ebuild
Gentoo

Contents of /sci-libs/plotmm/plotmm-0.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri May 4 08:22:53 2012 UTC (2 years, 5 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/plotmm/plotmm-0.1.2.ebuild,v 1.4 2011/03/02 19:26:44 jlec Exp $
4
5 EAPI="2"
6
7 inherit eutils
8
9 DESCRIPTION="Plot widget for GTKmm"
10 HOMEPAGE="http://plotmm.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc ~x86"
16 IUSE="doc examples"
17
18 RDEPEND="dev-cpp/gtkmm:2.4"
19 DEPEND="${RDEPEND}
20 virtual/pkgconfig"
21
22 # NOTES:
23 # somewhat, there is a dep on libsigc++ but it's much more via gtkmm
24
25 src_prepare() {
26 epatch "${FILESDIR}/${P}-libsigc++-2.2.patch"
27
28 if ! use examples; then
29 sed -i -e "s:examples::" Makefile.in || die "sed failed"
30 fi
31 }
32
33 src_configure() {
34 econf \
35 --disable-maintainer-mode \
36 --disable-dependency-tracking \
37 --enable-fast-install \
38 --disable-libtool-lock
39 }
40
41 src_install() {
42 emake DESTDIR="${D}" install || die "emake install failed"
43
44 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
45
46 if use doc; then
47 dohtml -r doc/html/* || die "dohtml failed"
48 fi
49
50 if use examples; then
51 # rename installed bin files
52 mv "${D}"/usr/bin/curves "${D}"/usr/bin/${PN}-curves || die "mv failed"
53 mv "${D}"/usr/bin/simple "${D}"/usr/bin/${PN}-simple || die "mv failed"
54
55 # install sources
56 insinto /usr/share/doc/${PF}/examples/
57 doins examples/{curves/curves,simple/simple}.cc || die "doins failed"
58
59 elog "You can use examples by calling ${PN}-curves or ${PN}-simple."
60 elog "Examples source code is in /usr/share/doc/${PF}/examples."
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20