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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Jun 7 15:04:06 2005 UTC (9 years, 3 months ago) by lanius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
cleanups, bug #78062
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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-r2.ebuild,v 1.10 2005/06/01 00:41:01 lanius Exp $
4
5 inherit eutils
6
7 DESCRIPTION="HP OfficeJet Linux driver"
8 HOMEPAGE="http://hpoj.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/hpoj/${P}.tgz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86 ~amd64"
13 IUSE="ssl scanner qt X snmp cups usb"
14
15 DEPEND="qt? ( >=x11-libs/qt-3.1.0-r1 )
16 ssl? ( >=dev-libs/openssl-0.9.6h )
17 scanner? ( >=media-gfx/sane-backends-1.0.9 )
18 scanner? ( || ( X? ( >=media-gfx/xsane-0.89 ) >=media-gfx/sane-frontends-1.0.9 ) )
19 snmp? ( net-analyzer/net-snmp )
20 cups? ( >=net-print/cups-1.1.18-r2 )
21 usb? ( dev-libs/libusb sys-apps/hotplug )"
22
23 src_compile() {
24 epatch ${FILESDIR}/udev.patch
25
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} || die "econf failed"
44 emake || die "compilation failed"
45 }
46
47 src_install() {
48 cd apps/cmdline
49 dobin ptal-print hpojip-test ptal-connect ptal-device ptal-devid ptal-hp ptal-pml
50 cd ../../doc
51 dohtml *html
52 cd ..
53 dodoc COPYING LICENSE LICENSE.OpenSSL README
54 use qt && dobin apps/xojpanel/xojpanel
55 dodir /usr/include
56 insinto /usr/include
57 doins include/hpojip.h include/ptal.h
58 cd lib
59 dolib.so hpojip/libhpojip.so*
60 dolib.so ptal/libptal.so*
61 dodir /usr/lib/sane
62 insinto /usr/lib/sane
63 doins sane/libsane-hpoj.so*
64 dodir /usr/lib/ghostscript/filt \
65 /usr/lib/ghostscript/filt/bjc600 \
66 /usr/lib/ghostscript/filt/bjc600.1 \
67 /usr/lib/ghostscript/filt/bjc600.16 \
68 /usr/lib/ghostscript/filt/bjc600.24 \
69 /usr/lib/ghostscript/filt/bjc600.24.3 \
70 /usr/lib/ghostscript/filt/bjc600.32 \
71 /usr/lib/ghostscript/filt/bjc600.8 \
72 /usr/lib/ghostscript/filt/bjc600.8.1 \
73 /usr/lib/ghostscript/filt/bjt600.32 \
74 /usr/lib/ghostscript/filt/direct \
75 /usr/lib/ghostscript/filt/gsif \
76 /usr/lib/ghostscript/filt/indirect \
77 /usr/lib/ghostscript/filt
78 cd ..
79 dosbin apps/cmdline/ptal-photod apps/cmdline/ptal-printd mlcd/ptal-mlcd scripts/ptal-cups
80 exeinto /usr/sbin
81 doexe scripts/ptal-init
82 dodir /usr/lib/cups/backend
83 dosym /usr/sbin/ptal-cups /usr/lib/cups/backend/ptal
84 exeinto /etc/init.d
85 newexe ${FILESDIR}/hpoj.init hpoj
86 }
87
88 pkg_postinst() {
89 echo
90 einfo "You might want to emerge sys-fs/mtools for photo-card support."
91 echo
92 einfo "You might want to emerge net-print/hpijs for better printing quality."
93 echo
94 einfo "Before starting hpoj you have to set it up with 'ptal-init setup'"
95 echo
96 einfo "If you are upgrading from a previous version, re-run ptal-init setup"
97 einfo "as the format of the connection has changed again and your previously"
98 einfo "installed hpoj-device will not be recognized."
99 echo
100 }

  ViewVC Help
Powered by ViewVC 1.1.20