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

Contents of /net-print/splix/splix-2.0.0_p20111206.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 12 19:10:48 2012 UTC (2 years, 8 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stabilise 2.0.0_p20111206 per latest commit on amd64 and x86.

(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)

1 # Copyright 1999-2012 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_p20111206.ebuild,v 1.2 2012/03/12 19:08:54 scarabeus Exp $
4
5 EAPI=4
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://dev.gentooexperimental.org/~scarabeus/samsung-cms-20120312.tar.xz"
12
13 # If you can't find your printer cms open the new bug if you recheck the
14 # cms home and it is contained there. Otherwise bummer.
15 # The cms can be found here:
16 # http://www.bchemnet.com/suldr/smfpv3.html
17 # It is stored int he unifieddriver tarball and repacked.
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS="amd64 x86"
22 IUSE="+jbig"
23
24 DEPEND=">=app-text/ghostscript-gpl-9.02
25 >=net-print/cups-1.4.0
26 jbig? ( media-libs/jbigkit )"
27 RDEPEND="${DEPEND}"
28
29 S=${WORKDIR}/${PN}
30
31 src_prepare() {
32 # Honor LDFLAGS
33 sed -e "/[a-z]_LDFLAGS/s/:=.*/:= $\{LDFLAGS\}/" -i module.mk \
34 || die "module.mk sed failed"
35 # Correct link comand, do not strip on install
36 sed -e "s/g++/$\{LINKER\}/" -e "/install/s/-s //" -i rules.mk \
37 || die "rules.mk sed failed"
38 }
39
40 src_compile() {
41 local options="MODE=optimized"
42 use jbig || options="${options} DISABLE_JBIG=1"
43 emake ${options} PSTORASTER=gstoraster CXX="$(tc-getCXX)" \
44 OPTIM_CFLAGS="${CFLAGS}" OPTIM_CXXFLAGS="${CXXFLAGS}"
45 }
46
47 src_install() {
48 emake DESTDIR="${D}" install
49 gzip "${ED}"/$(cups-config --datadir)/model/*/*.ppd || die "ppd gzip failed"
50
51 # it is expected to be at:
52 # /usr/share/cups/profiles/{samsung,xerox,dell}
53 # instead it is only at:
54 # /usr/share/cups/profiles/samsung
55 emake DESTDIR="${D}" CMSDIR="${WORKDIR}"/cms MANUFACTURER=samsung installcms
56 dosym $(cups-config --datadir)/profiles/samsung $(cups-config --datadir)/profiles/xerox
57 dosym $(cups-config --datadir)/profiles/samsung $(cups-config --datadir)/profiles/dell
58 }
59
60 pkg_postinst() {
61 ewarn "You *MUST* make sure that the PPD files that CUPS is using"
62 ewarn "for actually installed printers are updated if you upgraded"
63 ewarn "from a previous version of splix!"
64 ewarn "Otherwise you will be unable to print (your printer might"
65 ewarn "spit out blank pages etc.)."
66 ewarn "To do that, simply delete the corresponding PPD file in"
67 ewarn "/etc/cups/ppd/, click on 'Modify Printer' belonging to the"
68 ewarn "corresponding printer in the CUPS webinterface (usually"
69 ewarn "reachable via http://localhost:631/) and choose the correct"
70 ewarn "printer make and model, for example:"
71 ewarn "'Samsung' -> 'Samsung ML-1610, 1.0 (en)'"
72 }

  ViewVC Help
Powered by ViewVC 1.1.20