/[gentoo-x86]/x11-misc/efax-gtk/efax-gtk-3.2.9.ebuild
Gentoo

Contents of /x11-misc/efax-gtk/efax-gtk-3.2.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat May 5 04:53:50 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
dev-util/pkgconifg -> 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/x11-misc/efax-gtk/efax-gtk-3.2.9.ebuild,v 1.6 2012/04/09 21:35:26 ssuominen Exp $
4
5 EAPI=4
6
7 DESCRIPTION="A graphical frontend for the 'efax' application"
8 HOMEPAGE="http://efax-gtk.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.src.tgz"
10
11 LICENSE="GPL-2 LGPL-2.1"
12 SLOT="0"
13 KEYWORDS="amd64 ~ppc ~ppc64 x86"
14 IUSE="nls"
15
16 RDEPEND=">=dev-libs/glib-2.10
17 media-libs/tiff:0
18 x11-libs/libX11
19 x11-libs/c++-gtk-utils:3
20 x11-libs/gtk+:3"
21 DEPEND="${RDEPEND}
22 virtual/pkgconfig
23 nls? ( sys-devel/gettext )"
24
25 DOCS="AUTHORS BUGS ChangeLog README"
26
27 src_prepare() {
28 # Prevent sandbox violation with chown/chgrp and existing spooldir
29 sed -i -e '/ch.*lp.*spooldir/d' efax-gtk-faxfilter/Makefile.in || die
30
31 sed -i \
32 -e '/^Encoding/d' \
33 -e '/^Icon/s:.png::' \
34 -e '/^Categories/s:Application;::' \
35 ${PN}.desktop || die
36 }
37
38 src_configure() {
39 econf \
40 $(use_enable nls) \
41 --with-gtk-version=gtk3
42 }
43
44 src_install() {
45 default
46 # http://bugs.gentoo.org/401221
47 mv -vf "${ED}"usr/share/man/man1/efax{,-0.9a}.1 || die
48 mv -vf "${ED}"usr/share/man/man1/efix{,-0.9a}.1 || die
49 }
50
51 pkg_postinst() {
52 local spooldir="${EROOT}"/var/spool/fax
53 [[ -d ${spooldir} ]] && chown lp:lp "${spooldir}"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20