blob: 533305d55d4064d4c5cdc02b201b6582c6277b6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit autotools eutils fdo-mime
DESCRIPTION="A RS-274X (Gerber) and NC drill (Excellon) file viewer"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://gerbv.geda-project.org/"
IUSE="doc examples static-libs unit-mm"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
RESTRICT="test"
RDEPEND="
x11-libs/gtk+:2
x11-libs/cairo"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
# No Russian translation shipped
echo > po/LINGUAS || die
eapply "${FILESDIR}"/${P}-ru.patch
eapply_user
eautoreconf
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_enable unit-mm) \
--disable-update-desktop-database
}
src_install () {
default
dodoc AUTHORS BUGS ChangeLog CONTRIBUTORS HACKING NEWS README* TODO
rm doc/Doxyfile.nopreprocessing
if use doc; then
find doc -name "Makefile*" -exec rm -f '{}' \;
dodoc -r doc/*
fi
if use examples; then
find example -name "Makefile*" -exec rm -f '{}' \;
dodoc -r example/*
fi
prune_libtool_files
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}
|