diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/efax-gtk/efax-gtk-3.2.9.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/efax-gtk/efax-gtk-3.2.9.ebuild')
-rw-r--r-- | x11-misc/efax-gtk/efax-gtk-3.2.9.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/x11-misc/efax-gtk/efax-gtk-3.2.9.ebuild b/x11-misc/efax-gtk/efax-gtk-3.2.9.ebuild new file mode 100644 index 000000000000..42e3dab12b44 --- /dev/null +++ b/x11-misc/efax-gtk/efax-gtk-3.2.9.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +DESCRIPTION="A graphical frontend for the 'efax' application" +HOMEPAGE="http://efax-gtk.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.src.tgz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="nls" + +RDEPEND=">=dev-libs/glib-2.10 + media-libs/tiff:0 + x11-libs/libX11 + x11-libs/c++-gtk-utils:3 + x11-libs/gtk+:3" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +DOCS="AUTHORS BUGS ChangeLog README" + +src_prepare() { + # Prevent sandbox violation with chown/chgrp and existing spooldir + sed -i -e '/ch.*lp.*spooldir/d' efax-gtk-faxfilter/Makefile.in || die + + sed -i \ + -e '/^Encoding/d' \ + -e '/^Icon/s:.png::' \ + -e '/^Categories/s:Application;::' \ + ${PN}.desktop || die +} + +src_configure() { + econf \ + $(use_enable nls) \ + --with-gtk-version=gtk3 +} + +src_install() { + default + # https://bugs.gentoo.org/401221 + mv -vf "${ED}"usr/share/man/man1/efax{,-0.9a}.1 || die + mv -vf "${ED}"usr/share/man/man1/efix{,-0.9a}.1 || die +} + +pkg_postinst() { + local spooldir="${EROOT}"/var/spool/fax + [[ -d ${spooldir} ]] && chown lp:lp "${spooldir}" +} |