blob: dc7e4f332b44b74284804802a4962982d6d51d70 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-radio/xlog/xlog-2.0.8.ebuild,v 1.1 2013/05/24 12:49:37 tomjbe Exp $
EAPI=4
inherit autotools eutils fdo-mime
MY_P=${P/_}
DESCRIPTION="An amateur radio logging program"
HOMEPAGE="http://www.nongnu.org/xlog"
SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="media-libs/hamlib
dev-libs/glib:2
x11-libs/gtk+:2"
DEPEND="${RDEPEND}
sys-devel/gettext
virtual/pkgconfig"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}/${PN}-2.0.7-desktop.patch"
# Let portage handle updating mime/desktop databases,
epatch "${FILESDIR}/${PN}-1.9-desktop-update.patch"
eautoreconf
}
src_configure() {
# mime-update causes file collisions if enabled
econf --disable-mime-update --disable-desktop-update \
--docdir=/usr/share/doc/${PF}
}
src_install() {
emake DESTDIR="${D}" install
docompress -x /usr/share/doc/${PF}/{KEYS,ChangeLog,TODO,BUGS}
dodoc AUTHORS data/doc/THANKS NEWS README
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
|