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

Contents of /net-print/hpoj/hpoj-0.91-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Apr 8 10:26:37 2004 UTC (10 years, 6 months ago) by lanius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
add support for kernel 2.6, bug #42921

1 # Copyright 1999-2003 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.91-r1.ebuild,v 1.1 2003/12/12 21:47:03 blauwers 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 usb"
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? ( || ( X? ( >=media-gfx/xsane-0.89 ) >=media-gfx/sane-frontends-1.0.9 ) )
17 snmp? ( virtual/snmp )
18 cups? ( >=net-print/cups-1.1.18-r2 )
19 usb? ( dev-libs/libusb )"
20
21 src_compile() {
22 local myconf
23 use snmp \
24 && myconf="${myconf} --with-snmp=/usr" \
25 || myconf="${myconf} --without-snmp"
26
27 use cups \
28 && myconf="${myconf} --with-cups-backend=/usr" \
29 || myconf="${myconf} --without-cups"
30
31 # xojpanel
32 use qt \
33 && myconf="${myconf} --with-qt=/usr/qt/3" \
34 || myconf="${myconf} --without-qt"
35
36 use scanner \
37 && myconf="${myconf} --with-sane-packend=/usr" \
38 || myconf="${myconf} --without-sane"
39
40 econf ${myconf}
41 emake || die "compilation failed"
42 }
43
44 src_install() {
45 cd apps/cmdline
46 dobin ptal-print hpojip-test ptal-connect ptal-device ptal-devid ptal-hp ptal-pml
47 cd ../../doc
48 dohtml *html
49 cd ..
50 dodoc COPYING LICENSE LICENSE.OpenSSL README
51 use qt && dobin apps/xojpanel/xojpanel
52 dodir /usr/include
53 insinto /usr/include
54 doins include/hpojip.h include/ptal.h
55 cd lib
56 dolib.so hpojip/libhpojip.so*
57 dolib.so ptal/libptal.so*
58 dodir /usr/lib/sane
59 insinto /usr/lib/sane
60 doins sane/libsane-hpoj.so*
61 dodir /usr/lib/ghostscript/filt \
62 /usr/lib/ghostscript/filt/bjc600 \
63 /usr/lib/ghostscript/filt/bjc600.1 \
64 /usr/lib/ghostscript/filt/bjc600.16 \
65 /usr/lib/ghostscript/filt/bjc600.24 \
66 /usr/lib/ghostscript/filt/bjc600.24.3 \
67 /usr/lib/ghostscript/filt/bjc600.32 \
68 /usr/lib/ghostscript/filt/bjc600.8 \
69 /usr/lib/ghostscript/filt/bjc600.8.1 \
70 /usr/lib/ghostscript/filt/bjt600.32 \
71 /usr/lib/ghostscript/filt/direct \
72 /usr/lib/ghostscript/filt/gsif \
73 /usr/lib/ghostscript/filt/indirect \
74 /usr/lib/ghostscript/filt
75 cd ..
76 dosbin apps/cmdline/ptal-photod apps/cmdline/ptal-printd mlcd/ptal-mlcd scripts/ptal-cups
77 exeinto /usr/sbin
78 doexe scripts/ptal-init
79 dodir /usr/lib/cups/backend
80 dosym /usr/sbin/ptal-cups /usr/lib/cups/backend/ptal
81 exeinto /etc/init.d
82 newexe ${FILESDIR}/hpoj.init hpoj
83 }
84
85 pkg_postinst() {
86 echo
87 einfo "You might want to emerge app-admin/mtools for photo-card support."
88 echo
89 einfo "You might want to emerge net-print/hpijs for better printing quality."
90 echo
91 einfo "Before starting hpoj you have to set it up with 'ptal-init setup'"
92 echo
93 einfo "If you are upgrading from a previous version, re-run ptal-init setup"
94 einfo "as the format of the connection has changed again and your previously"
95 einfo "installed hpoj-device will not be recognized."
96 echo
97 }

  ViewVC Help
Powered by ViewVC 1.1.20