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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Tue May 1 14:14:10 2007 UTC (7 years, 4 months ago) by calchan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
Removed net-print/hpoj, use net-print/hplip instead.

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-print/hpoj/hpoj-0.91-r3.ebuild,v 1.15 2007/04/28 12:47:19 tove Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7
8 inherit eutils qt3 autotools
9
10 DESCRIPTION="HP OfficeJet Linux driver"
11 HOMEPAGE="http://hpoj.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/hpoj/${P}.tgz"
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="x86 ~amd64 ~ppc"
16 IUSE="ssl scanner qt3 X snmp cups usb"
17
18 DEPEND="qt3? ( $(qt_min_version 3.1) )
19 ssl? ( >=dev-libs/openssl-0.9.6h )
20 scanner? ( >=media-gfx/sane-backends-1.0.9 )
21 scanner? ( || ( X? ( >=media-gfx/xsane-0.89 ) >=media-gfx/sane-frontends-1.0.9 ) )
22 snmp? ( net-analyzer/net-snmp )
23 cups? ( >=net-print/cups-1.1.18-r2 )
24 usb? ( >=dev-libs/libusb-0.1.10a sys-apps/hotplug )"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 eautoreconf
31 }
32
33 src_compile() {
34 epatch "${FILESDIR}"/udev.patch
35 epatch "${FILESDIR}"/${P}-kernel26.patch
36
37 use snmp \
38 && myconf="${myconf} --with-snmp=/usr" \
39 || myconf="${myconf} --without-snmp"
40
41 use cups \
42 && myconf="${myconf} --with-cups-backend=/usr" \
43 || myconf="${myconf} --without-cups"
44
45 # xojpanel
46 use qt3 \
47 && myconf="${myconf} --with-qt=/usr/qt/3" \
48 || myconf="${myconf} --without-qt"
49
50 use scanner \
51 && myconf="${myconf} --with-sane-packend=/usr" \
52 || myconf="${myconf} --without-sane"
53
54 econf ${myconf} || die "econf failed"
55 emake || die "compilation failed"
56 }
57
58 src_install() {
59 cd apps/cmdline
60 dobin ptal-print hpojip-test ptal-connect ptal-device ptal-devid ptal-hp ptal-pml
61 cd ../../doc
62 dohtml *html
63 cd ..
64 dodoc COPYING LICENSE LICENSE.OpenSSL README
65 use qt3 && dobin apps/xojpanel/xojpanel
66 dodir /usr/include
67 insinto /usr/include
68 doins include/hpojip.h include/ptal.h
69 cd lib
70 dolib.so hpojip/libhpojip.so*
71 dolib.so ptal/libptal.so*
72 dodir /usr/lib/sane
73 insinto /usr/lib/sane
74 doins sane/libsane-hpoj.so*
75 dodir /usr/lib/ghostscript/filt \
76 /usr/lib/ghostscript/filt/bjc600 \
77 /usr/lib/ghostscript/filt/bjc600.1 \
78 /usr/lib/ghostscript/filt/bjc600.16 \
79 /usr/lib/ghostscript/filt/bjc600.24 \
80 /usr/lib/ghostscript/filt/bjc600.24.3 \
81 /usr/lib/ghostscript/filt/bjc600.32 \
82 /usr/lib/ghostscript/filt/bjc600.8 \
83 /usr/lib/ghostscript/filt/bjc600.8.1 \
84 /usr/lib/ghostscript/filt/bjt600.32 \
85 /usr/lib/ghostscript/filt/direct \
86 /usr/lib/ghostscript/filt/gsif \
87 /usr/lib/ghostscript/filt/indirect \
88 /usr/lib/ghostscript/filt
89 cd ..
90 dosbin apps/cmdline/ptal-photod apps/cmdline/ptal-printd mlcd/ptal-mlcd scripts/ptal-cups
91 exeinto /usr/sbin
92 doexe scripts/ptal-init
93 dodir /usr/lib/cups/backend
94 dosym /usr/sbin/ptal-cups /usr/lib/cups/backend/ptal
95 newinitd "${FILESDIR}"/hpoj.init hpoj
96 }
97
98 pkg_postinst() {
99 echo
100 einfo "You might want to emerge sys-fs/mtools for photo-card support."
101 echo
102 einfo "You might want to emerge net-print/hpijs for better printing quality."
103 echo
104 einfo "Before starting hpoj you have to set it up with 'ptal-init setup'"
105 echo
106 einfo "If you are upgrading from a previous version, re-run ptal-init setup"
107 einfo "as the format of the connection has changed again and your previously"
108 einfo "installed hpoj-device will not be recognized."
109 echo
110 einfo "net-print/hpoj is deprecated, please use net-print/hplip"
111 echo
112 }

  ViewVC Help
Powered by ViewVC 1.1.20