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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon Dec 22 15:46:36 2003 UTC (10 years, 8 months ago) by lanius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
added udev support, removed old ebuilds

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.90-r1.ebuild,v 1.8 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 S=${WORKDIR}/${P}
22
23 src_compile() {
24 local myconf
25 use snmp \
26 && myconf="${myconf} --with-snmp=/usr" \
27 || myconf="${myconf} --without-snmp"
28
29 use cups \
30 && myconf="${myconf} --with-cups-backend=/usr" \
31 || myconf="${myconf} --without-cups"
32
33 # xojpanel
34 use qt \
35 && myconf="${myconf} --with-qt=/usr/qt/3" \
36 || myconf="${myconf} --without-qt"
37
38 use scanner \
39 && myconf="${myconf} --with-sane-packend=/usr" \
40 || myconf="${myconf} --without-sane"
41
42 econf ${myconf}
43 # patch -p0 ${S}/mlcd/Makefile < ${FILESDIR}/mlcd_make.patch
44 # patch -p0 ${S}/mlcd/ExMgr.cpp < ${FILESDIR}/ExMgr.cpp_patch
45 make || die "compilation failed"
46 }
47 ## after cups
48 src_install() {
49 cd apps/cmdline
50 dobin ptal-print hpojip-test ptal-connect ptal-device ptal-devid ptal-hp ptal-pml
51 cd ../../doc
52 dohtml *html
53 cd ..
54 dodoc COPYING LICENSE LICENSE.OpenSSL README
55 use qt && dobin apps/xojpanel/xojpanel
56 dodir /usr/include
57 insinto /usr/include
58 doins include/hpojip.h include/ptal.h
59 cd lib
60 dolib.so hpojip/libhpojip.so*
61 dolib.so ptal/libptal.so*
62 dodir /usr/lib/sane
63 insinto /usr/lib/sane
64 doins sane/libsane-hpoj.so*
65 dodir /usr/lib/ghostscript/filt \
66 /usr/lib/ghostscript/filt/bjc600 \
67 /usr/lib/ghostscript/filt/bjc600.1 \
68 /usr/lib/ghostscript/filt/bjc600.16 \
69 /usr/lib/ghostscript/filt/bjc600.24 \
70 /usr/lib/ghostscript/filt/bjc600.24.3 \
71 /usr/lib/ghostscript/filt/bjc600.32 \
72 /usr/lib/ghostscript/filt/bjc600.8 \
73 /usr/lib/ghostscript/filt/bjc600.8.1 \
74 /usr/lib/ghostscript/filt/bjt600.32 \
75 /usr/lib/ghostscript/filt/direct \
76 /usr/lib/ghostscript/filt/gsif \
77 /usr/lib/ghostscript/filt/indirect \
78 /usr/lib/ghostscript/filt
79 cd ..
80 dosbin apps/cmdline/ptal-photod apps/cmdline/ptal-printd mlcd/ptal-mlcd scripts/ptal-cups
81 exeinto /usr/sbin
82 doexe scripts/ptal-init
83 dodir /usr/lib/cups/backend
84 dosym /usr/sbin/ptal-cups /usr/lib/cups/backend/ptal
85 exeinto /etc/init.d
86 newexe ${FILESDIR}/hpoj.init hpoj
87 }
88
89 pkg_postinst() {
90 echo
91 einfo "You might want to emerge app-admin/mtools for photo-card support."
92 echo
93 einfo "You might want to emerge net-print/hpijs for better printing quality."
94 echo
95 einfo "Before starting hpoj you have to set it up with 'ptal-init setup'"
96 echo
97 }

  ViewVC Help
Powered by ViewVC 1.1.20