/[gentoo-x86]/net-print/splix/splix-2.0.0_p20110219-r1.ebuild
Gentoo

Contents of /net-print/splix/splix-2.0.0_p20110219-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Sep 24 21:24:04 2011 UTC (2 years, 10 months ago) by chainsaw
Branch: MAIN
Changes since 1.3: +2 -2 lines
Marked stable on AMD64 based on arch testing by Ian "idella4" Delaney & Agostino "ago" Sarubbo in bug #383625.

(Portage version: 2.1.10.18/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-print/splix/splix-2.0.0_p20110219-r1.ebuild,v 1.3 2011/09/21 15:46:11 tomka Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="A set of CUPS printer drivers for SPL (Samsung Printer Language) printers"
9 HOMEPAGE="http://splix.sourceforge.net/"
10 SRC_URI="http://dev.gentoo.org/~voyageur/distfiles/${P}.tar.bz2
11 http://splix.ap2c.org/samsung_cms.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="+jbig"
17
18 DEPEND=">=app-text/ghostscript-gpl-9.02
19 >=net-print/cups-1.4.0
20 jbig? ( media-libs/jbigkit )"
21 RDEPEND="${DEPEND}"
22
23 S=${WORKDIR}/${PN}
24
25 src_prepare() {
26 # Honor LDFLAGS
27 sed -e "/[a-z]_LDFLAGS/s/:=.*/:= $\{LDFLAGS\}/" -i module.mk \
28 || die "module.mk sed failed"
29 # Correct link comand, do not strip on install
30 sed -e "s/g++/$\{LINKER\}/" -e "/install/s/-s //" -i rules.mk \
31 || die "rules.mk sed failed"
32 }
33
34 src_compile() {
35 local options="MODE=optimized"
36 use jbig || options="${options} DISABLE_JBIG=1"
37 emake ${options} PSTORASTER=gstoraster CXX="$(tc-getCXX)" \
38 OPTIM_CFLAGS="${CFLAGS}" OPTIM_CXXFLAGS="${CXXFLAGS}" \
39 || die "emake failed"
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" install || die "emake install failed"
44 gzip "${D}"/$(cups-config --datadir)/model/*/*.ppd || die "ppd gzip failed"
45
46 insinto $(cups-config --datadir)/model/samsung
47 doins -r "${WORKDIR}"/cms
48 }
49
50 pkg_postinst() {
51 ewarn "You *MUST* make sure that the PPD files that CUPS is using"
52 ewarn "for actually installed printers are updated if you upgraded"
53 ewarn "from a previous version of splix!"
54 ewarn "Otherwise you will be unable to print (your printer might"
55 ewarn "spit out blank pages etc.)."
56 ewarn "To do that, simply delete the corresponding PPD file in"
57 ewarn "/etc/cups/ppd/, click on 'Modify Printer' belonging to the"
58 ewarn "corresponding printer in the CUPS webinterface (usually"
59 ewarn "reachable via http://localhost:631/) and choose the correct"
60 ewarn "printer make and model, for example:"
61 ewarn "'Samsung' -> 'Samsung ML-1610, 1.0 (en)'"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20