diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-01-29 18:11:06 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-01-29 18:11:19 +0100 |
commit | bb882b5eb6924aeebf7c196173018b5f5d2cf418 (patch) | |
tree | 3acdd661b9d374cd3ba967ba025187d6a43081c9 /net-print/mtink/mtink-1.0.16-r2.ebuild | |
parent | app-misc/ddcutil: Remove old. (diff) | |
download | gentoo-bb882b5eb6924aeebf7c196173018b5f5d2cf418.tar.gz gentoo-bb882b5eb6924aeebf7c196173018b5f5d2cf418.tar.bz2 gentoo-bb882b5eb6924aeebf7c196173018b5f5d2cf418.zip |
net-print/mtink: Fix CFLAGS, bug 428814; EAPI bump
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-print/mtink/mtink-1.0.16-r2.ebuild')
-rw-r--r-- | net-print/mtink/mtink-1.0.16-r2.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/net-print/mtink/mtink-1.0.16-r2.ebuild b/net-print/mtink/mtink-1.0.16-r2.ebuild new file mode 100644 index 000000000000..8261d64867a0 --- /dev/null +++ b/net-print/mtink/mtink-1.0.16-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="mtink is a status monitor and inkjet cartridge changer for some Epson printers" +HOMEPAGE="http://xwtools.automatix.de/" +SRC_URI="http://xwtools.automatix.de/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="cups doc X" + +DEPEND="X? ( x11-libs/libX11 + x11-libs/libXpm + x11-libs/libXt + >=x11-libs/motif-2.3:0 ) + cups? ( net-print/cups ) + virtual/libusb:0" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-overflow.patch" + "${FILESDIR}/${P}-flags.patch" +) + +src_configure() { + ./Configure || die +} + +src_compile() { + local mytargets + mytargets="ttink detect/askPrinter mtinkd" + + if use X; then + mytargets="${mytargets} mtink mtinkc"; + fi + + export CFLAGS LDFLAGS + emake ${mytargets} +} + +src_install() { + dobin ttink detect/askPrinter + + if use X; then + dobin mtinkc mtink + fi + + dosbin mtinkd + + newinitd "${FILESDIR}"/mtinkd.rc mtinkd + newconfd "${FILESDIR}"/mtinkd.confd mtinkd + + if use cups; then + exeinto /usr/lib/cups/backend + doexe etc/mtink-cups + fi + + dodoc README CHANGE.LOG + use doc && \ + dohtml html/*.gif html/*.html +} + +pkg_postinst() { + # see #70310 + chmod 700 /var/mtink /var/run/mtink 2>/dev/null + + elog + elog "mtink needs correct permissions to access printer device." + elog "To do this you either need to run the following chmod command:" + elog "chmod 666 /dev/<device>" + elog "or set the suid bit on mtink, mtinkc and ttink in /usr/bin" + elog +} |