Gentoo Archives: gentoo-commits

From: "Wolfram Schlich (wschlich)" <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-print/splix: splix-1.1.0.ebuild
Date: Tue, 20 Nov 2007 00:29:27
Message-Id: E1IuGu7-0003cG-Pa@stork.gentoo.org
1 wschlich 07/11/20 00:23:51
2
3 Added: splix-1.1.0.ebuild
4 Log:
5 version bump
6 (Portage version: 2.1.3.19)
7
8 Revision Changes Path
9 1.1 net-print/splix/splix-1.1.0.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/splix/splix-1.1.0.ebuild?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/splix/splix-1.1.0.ebuild?rev=1.1&content-type=text/plain
13
14 Index: splix-1.1.0.ebuild
15 ===================================================================
16 # Copyright 1999-2007 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/net-print/splix/splix-1.1.0.ebuild,v 1.1 2007/11/20 00:23:51 wschlich Exp $
19
20 inherit eutils toolchain-funcs
21
22 MY_P=${PN}-${PV/_p/-}
23 S=${WORKDIR}/${MY_P}
24 DESCRIPTION="A set of CUPS printer drivers for SPL (Samsung Printer Language) printers"
25 HOMEPAGE="http://splix.sourceforge.net/"
26 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
27
28 LICENSE="GPL-2"
29 SLOT="0"
30 KEYWORDS="~amd64 ~x86"
31 IUSE=""
32
33 DEPEND="net-print/cups
34 net-print/cupsddk
35 media-libs/jbigkit"
36 RDEPEND="${DEPEND}"
37
38 src_unpack() {
39 unpack ${A}
40 cd "${S}"
41 epatch "${FILESDIR}"/${P}-fix-makefile.patch
42 }
43
44 src_compile() {
45 emake CXX="$(tc-getCXX)" || die "emake failed"
46 }
47
48 src_install() {
49 CUPSFILTERDIR="$(cups-config --serverbin)/filter"
50 CUPSPPDDIR="$(cups-config --datadir)/model"
51
52 dodir "${CUPSFILTERDIR}"
53 dodir "${CUPSPPDDIR}"
54 emake DESTDIR="${D}" install || die "emake install failed"
55 }
56
57 pkg_postinst() {
58 ebeep 5
59 ewarn ""
60 ewarn "You *MUST* make sure that the PPD files that CUPS is using"
61 ewarn "for actually installed printers are updated if you upgraded"
62 ewarn "from a previous version of splix!"
63 ewarn "Otherwise you will be unable to print (your printer might"
64 ewarn "spit out blank pages etc.)."
65 ewarn "To do that, simply delete the corresponding PPD file in"
66 ewarn "/etc/cups/ppd/, click on 'Modify Printer' belonging to the"
67 ewarn "corresponding printer in the CUPS webinterface (usually"
68 ewarn "reachable via http://localhost:631/) and choose the correct"
69 ewarn "printer make and model, for example:"
70 ewarn "'Samsung' -> 'Samsung ML-1610, 1.0 (en)'"
71 ewarn ""
72 }
73
74
75
76 --
77 gentoo-commits@g.o mailing list