Gentoo Archives: gentoo-commits

From: "Mounir Lamouri (volkmar)" <volkmar@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/plotmm: metadata.xml ChangeLog plotmm-0.1.2.ebuild
Date: Sat, 20 Jun 2009 10:58:11
Message-Id: E1MHyGv-0006RK-5J@stork.gentoo.org
1 volkmar 09/06/20 10:58:09
2
3 Added: metadata.xml ChangeLog plotmm-0.1.2.ebuild
4 Log:
5 initial commit, bug 225287
6 (Portage version: 2.1.6.13/cvs/Linux ppc)
7
8 Revision Changes Path
9 1.1 sci-libs/plotmm/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plotmm/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plotmm/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>no-herd</herd>
20 <maintainer>
21 <email>volkmar@g.o</email>
22 <name>Mounir Lamouri</name>
23 </maintainer>
24 </pkgmetadata>
25
26
27
28
29 1.1 sci-libs/plotmm/ChangeLog
30
31 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plotmm/ChangeLog?rev=1.1&view=markup
32 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plotmm/ChangeLog?rev=1.1&content-type=text/plain
33
34 Index: ChangeLog
35 ===================================================================
36 # ChangeLog for sci-libs/plotmm
37 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
38 # $Header: /var/cvsroot/gentoo-x86/sci-libs/plotmm/ChangeLog,v 1.1 2009/06/20 10:58:09 volkmar Exp $
39
40 *plotmm-0.1.2 (20 Jun 2009)
41
42 20 Jun 2009; Mounir Lamouri <volkmar@g.o>
43 +files/plotmm-0.1.2-libsigc++-2.2.patch, +metadata.xml,
44 +plotmm-0.1.2.ebuild:
45 Initial commit. Fix bug 225287.
46
47
48
49
50 1.1 sci-libs/plotmm/plotmm-0.1.2.ebuild
51
52 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plotmm/plotmm-0.1.2.ebuild?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plotmm/plotmm-0.1.2.ebuild?rev=1.1&content-type=text/plain
54
55 Index: plotmm-0.1.2.ebuild
56 ===================================================================
57 # Copyright 1999-2009 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 # $Header: /var/cvsroot/gentoo-x86/sci-libs/plotmm/plotmm-0.1.2.ebuild,v 1.1 2009/06/20 10:58:09 volkmar Exp $
60
61 EAPI="2"
62
63 inherit eutils
64
65 DESCRIPTION="Plot widget for GTKmm"
66 HOMEPAGE="http://plotmm.sourceforge.net/"
67 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~ppc ~x86"
72 IUSE="doc examples"
73
74 RDEPEND="|| ( dev-cpp/gtkmm:2.4 dev-cpp/gtkmm:2 )"
75 DEPEND="${RDEPEND}
76 >=dev-util/pkgconfig-0.9"
77
78 # NOTES:
79 # somewhat, there is a dep on libsigc++ but it's much more via gtkmm
80
81 src_prepare() {
82 epatch "${FILESDIR}/${P}-libsigc++-2.2.patch"
83
84 if ! use examples; then
85 sed -i -e "s:examples::" Makefile.in || die "sed failed"
86 fi
87 }
88
89 src_configure() {
90 econf \
91 --disable-maintainer-mode \
92 --disable-dependency-tracking \
93 --enable-fast-install \
94 --disable-libtool-lock
95 }
96
97 src_install() {
98 emake DESTDIR="${D}" install || die "emake install failed"
99
100 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
101
102 if use doc; then
103 dohtml -r doc/html/* || die "dohtml failed"
104 fi
105
106 if use examples; then
107 # rename installed bin files
108 mv "${D}"/usr/bin/curves "${D}"/usr/bin/${PN}-curves || die "mv failed"
109 mv "${D}"/usr/bin/simple "${D}"/usr/bin/${PN}-simple || die "mv failed"
110
111 # install sources
112 insinto /usr/share/doc/${PF}/examples/
113 doins examples/{curves/curves,simple/simple}.cc || die "doins failed"
114
115 elog "You can use examples by calling ${PN}-curves or ${PN}-simple."
116 elog "Examples source code is in /usr/share/doc/${PF}/examples."
117 fi
118 }