/[gentoo-x86]/sci-electronics/gerbv/gerbv-2.4.0.ebuild
Gentoo

Contents of /sci-electronics/gerbv/gerbv-2.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri May 4 07:10:19 2012 UTC (2 years, 4 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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-electronics/gerbv/gerbv-2.4.0.ebuild,v 1.6 2011/06/28 19:53:20 ranger Exp $
4
5 EAPI="2"
6
7 inherit fdo-mime
8
9 DESCRIPTION="A RS-274X (Gerber) and NC drill (Excellon) file viewer"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11 HOMEPAGE="http://gerbv.sourceforge.net/"
12
13 IUSE="unit-mm doc examples"
14 SLOT="0"
15 LICENSE="GPL-2"
16 KEYWORDS="amd64 ppc x86"
17 RESTRICT="test"
18
19 RDEPEND="
20 x11-libs/gtk+:2
21 >=x11-libs/cairo-1.2"
22
23 DEPEND="${RDEPEND}
24 virtual/pkgconfig"
25
26 src_configure() {
27 econf \
28 $(use_enable unit-mm) \
29 --disable-dependency-tracking \
30 --disable-update-desktop-database
31 }
32
33 src_install () {
34 emake DESTDIR="${D}" install || die "install failed"
35 dodoc AUTHORS ChangeLog CONTRIBUTORS HACKING NEWS README* TODO BUGS
36
37 rm doc/Doxyfile.nopreprocessing
38 if use doc; then
39 find doc -name "Makefile*" -exec rm -f '{}' \;
40 find doc -name "*.txt" -exec ecompress '{}' \;
41 insinto /usr/share/doc/${PF}
42 doins -r doc/*
43 fi
44
45 if use examples; then
46 find example -name "Makefile*" -exec rm -f '{}' \;
47 find example -name "*.txt" -exec ecompress '{}' \;
48 insinto /usr/share/doc/${PF}/examples
49 doins -r example/*
50 fi
51 }
52
53 pkg_postinst() {
54 fdo-mime_desktop_database_update
55 }
56
57 pkg_postrm() {
58 fdo-mime_desktop_database_update
59 }

  ViewVC Help
Powered by ViewVC 1.1.20