1 # Copyright © 2018 Nick Bowler
2 # License GPLv2+ GNU General Public License version 2 or any later version.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
6 # This is a modified version of the original ebuild from Gentoo GNU/Linux,
7 # including material covered by the following copyright and permission notice:
9 # Copyright 1999-2017 Gentoo Foundation
10 # Distributed under the terms of the GNU General Public License v2
13 inherit autotools eutils gnome2-utils xdg-utils
17 DESCRIPTION="A RS-274X (Gerber) and NC drill (Excellon) file viewer"
18 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
19 HOMEPAGE="http://gerbv.geda-project.org/"
21 IUSE="doc examples static-libs unit-mm"
24 KEYWORDS="~amd64 ~ppc ~x86"
38 $(use_enable static-libs static) \
39 $(use_enable unit-mm) \
40 --disable-update-desktop-database
46 dodoc AUTHORS BUGS ChangeLog CONTRIBUTORS HACKING NEWS README* TODO
48 rm doc/Doxyfile.nopreprocessing
50 find doc -name "Makefile*" -exec rm -f '{}' \;
55 find example -name "Makefile*" -exec rm -f '{}' \;
63 xdg_desktop_database_update
64 gnome2_icon_cache_update
68 xdg_desktop_database_update
69 gnome2_icon_cache_update