/[gentoo-x86]/net-print/hpoj/hpoj-0.90.ebuild
Gentoo

Contents of /net-print/hpoj/hpoj-0.90.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jul 29 13:45:22 2003 UTC (10 years, 11 months ago) by lanius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
stable bump

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-print/hpoj/hpoj-0.90.ebuild,v 1.2 2003/06/21 06:38:21 msterret Exp $
4
5 DESCRIPTION="HP OfficeJet Linux driver"
6 HOMEPAGE="http://hpoj.sourceforge.net/"
7 SRC_URI="mirror://sourceforge/hpoj/${P}.tgz"
8 LICENSE="GPL-2"
9 SLOT="0"
10 KEYWORDS="~x86"
11 IUSE="ssl scanner qt X snmp cups"
12
13 DEPEND="qt? ( >=x11-libs/qt-3.1.0-r1 )
14 ssl? ( >=dev-libs/openssl-0.9.6h )
15 scanner? ( >=media-gfx/sane-backends-1.0.9 )
16 scanner? ( || ( >=media-gfx/xsane-0.89 >=media-gfx/sane-frontends-1.0.9 ) )
17 snmp? ( >=net-analyzer/ucd-snmp-4.2.6 )
18 cups? ( >=net-print/cups-1.1.18-r2 )
19 >=net-print/hpijs-1.3.1"
20 RDEPEND=""
21
22 S=${WORKDIR}/${P}
23
24 src_compile() {
25 local myconf
26 use snmp \
27 && myconf="${myconf} --with-snmp=/usr" \
28 || myconf="${myconf} --without-snmp"
29
30 use cups \
31 && myconf="${myconf} --with-cups-backend=/usr" \
32 || myconf="${myconf} --without-cups"
33
34 # xojpanel
35 use qt \
36 && myconf="${myconf} --with-qt=/usr/qt/3" \
37 || myconf="${myconf} --without-qt"
38
39 use scanner \
40 && myconf="${myconf} --with-sane-packend=/usr" \
41 || myconf="${myconf} --without-sane"
42
43 econf ${myconf}
44 # patch -p0 ${S}/mlcd/Makefile < ${FILESDIR}/mlcd_make.patch
45 # patch -p0 ${S}/mlcd/ExMgr.cpp < ${FILESDIR}/ExMgr.cpp_patch
46 make || die "compilation failed"
47 }
48 ## after cups
49 src_install() {
50 cd apps/cmdline
51 dobin ptal-print hpojip-test ptal-connect ptal-device ptal-devid ptal-hp ptal-pml
52 cd ../../doc
53 dohtml *html
54 cd ..
55 dodoc COPYING LICENSE LICENSE.OpenSSL README
56 use qt && \
57 dobin apps/xojpanel/xojpanel \
58 insinto /usr/include
59 doins include/hpojip.h include/ptal.h
60 cd lib
61 dolib.so hpojip/libhpojip.so*
62 dolib.so ptal/libptal.so*
63 dodir /usr/lib/sane
64 insinto /usr/lib/sane
65 doins sane/libsane-hpoj.so*
66 dodir /usr/lib/ghostscript/filt \
67 /usr/lib/ghostscript/filt/bjc600 \
68 /usr/lib/ghostscript/filt/bjc600.1 \
69 /usr/lib/ghostscript/filt/bjc600.16 \
70 /usr/lib/ghostscript/filt/bjc600.24 \
71 /usr/lib/ghostscript/filt/bjc600.24.3 \
72 /usr/lib/ghostscript/filt/bjc600.32 \
73 /usr/lib/ghostscript/filt/bjc600.8 \
74 /usr/lib/ghostscript/filt/bjc600.8.1 \
75 /usr/lib/ghostscript/filt/bjt600.32 \
76 /usr/lib/ghostscript/filt/direct \
77 /usr/lib/ghostscript/filt/gsif \
78 /usr/lib/ghostscript/filt/indirect \
79 /usr/lib/ghostscript/filt
80 cd ..
81 dosbin apps/cmdline/ptal-photod apps/cmdline/ptal-printd mlcd/ptal-mlcd scripts/ptal-cups
82 exeinto /etc/init.d
83 doexe scripts/ptal-init
84 dodir /usr/lib/cups/backend
85 dosym /usr/sbin/ptal-cups /usr/lib/cups/backend/ptal
86 }
87
88 pkg_postinst() {
89 echo
90 einfo "You might want to emerge net-print/hpijs too for better quality"
91 einfo "or app-admin/mtools for photo-card support."
92 echo
93 }

  ViewVC Help
Powered by ViewVC 1.1.20