Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 182736 Details for
Bug 245136
net-print/hplip-3.9.2 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hplip-2.8.7-3.9.2.ebuild.diff
hplip-2.8.7-3.9.2.ebuild.diff (text/plain), 6.36 KB, created by
Yar Odin
on 2009-02-21 14:20:58 UTC
(
hide
)
Description:
hplip-2.8.7-3.9.2.ebuild.diff
Filename:
MIME Type:
Creator:
Yar Odin
Created:
2009-02-21 14:20:58 UTC
Size:
6.36 KB
patch
obsolete
>--- hplip-2.8.7.ebuild 2008-08-17 18:46:53.000000000 +0600 >+++ hplip-3.9.2.ebuild 2009-02-21 18:57:11.000000000 +0500 >@@ -1,19 +1,22 @@ >-# Copyright 1999-2008 Gentoo Foundation >+# Copyright 1999-2009 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 >-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-2.8.7.ebuild,v 1.1 2008/08/17 12:46:53 calchan Exp $ >+# $Header: $ > >-inherit eutils linux-info python >+EAPI="1" >+ >+inherit eutils flag-o-matic linux-info python >+ >+IUSE="cupsddk dbus doc fax gtk minimal parport ppds plugins qt3 qt4 scanner snmp" > > DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools." > HOMEPAGE="http://hplip.sourceforge.net/" >-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz" >+SRC_URI="plugins? ( http://www.linuxprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${PV}-plugin.run ) >+ mirror://sourceforge/hplip/${P}.tar.gz" > > LICENSE="GPL-2" > SLOT="0" > KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" > >-IUSE="cupsddk dbus doc fax gtk minimal parport ppds qt3 qt4 scanner snmp" >- > DEPEND="!net-print/hpijs > !net-print/hpoj > virtual/ghostscript >@@ -32,6 +35,7 @@ > )" > > RDEPEND="${DEPEND} >+ app-arch/gzip > !minimal? ( > !<sys-fs/udev-114 > scanner? ( >@@ -54,6 +58,7 @@ > > CONFIG_CHECK="PARPORT PPDEV" > ERROR_PARPORT="Please make sure parallel port support is enabled in your kernel (PARPORT and PPDEV)." >+RESTRICT="plugins? ( strip )" > > pkg_setup() { > ! use qt3 && ! use qt4 && ewarn "You need USE=qt3 (recommended) or USE=qt4 for the hplip GUI." >@@ -74,9 +79,20 @@ > } > > src_unpack() { >- unpack ${A} >+ unpack ${P}.tar.gz >+ >+ if use plugins; then >+ echo ">>> Unpacking hplip-${PV}-plugin.tar.gz to ${WORKDIR}/plugins" >+ mkdir -p "${WORKDIR}"/plugins >+ cd "${WORKDIR}"/plugins >+ tail -c +9523 "${DISTDIR}"/hplip-${PV}-plugin.run > hplip-${PV}-plugin.tar.gz >+ tar xf "${WORKDIR}"/plugins/hplip-${PV}-plugin.tar.gz >+ rm -f "${WORKDIR}"/plugins/hplip-${PV}-plugin.tar.gz >+ fi >+ > cd "${S}" > >+ sed -i -e "s:\/usr\/share\/hal\/fdi\/preprobe\/10osvendor:\/etc\/hal\/fdi\/preprobe:g" Makefile.in || die "Patching hplip.list.in failed" > sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed" > sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \ > -e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \ >@@ -96,9 +112,14 @@ > sed -i -e "s/55-hpmud.rules/70-hpmud.rules/g" Makefile.* */*.html || die "sed failed" > > # Use system foomatic-rip instead of foomatic-rip-hplip >- sed -i -e 's/foomatic-rip-hplip/foomatic-rip/' ppd/*.ppd || die "sed failed" >+ local i >+ for i in ppd/*.ppd.gz >+ do >+ rm -f $i.temp >+ gunzip -c $i | sed 's/foomatic-rip-hplip/foomatic-rip/' | gzip > $i.temp || die "*.ppd.gz sed failed" >+ mv $i.temp $i >+ done > >- # Qt4 is still undocumented by upstream, so use with caution > local QT_VER > use qt4 && QT_VER="4" > use qt3 && QT_VER="3" >@@ -139,13 +160,77 @@ > } > > src_install() { >- emake -j1 DESTDIR="${D}" install || die "emake install failed" >+ replace-flags "-j?" "-j1" >+ emake DESTDIR="${D}" install || die "emake install failed" > rm -f "${D}"/etc/sane.d/dll.conf > >+ if use plugins; then >+ sed -i -e "s:SYSFS:ATTRS:g" "${WORKDIR}"/plugins/*.rules || die "sed failed" >+ >+ insinto /etc/udev/rules.d >+ doins "${WORKDIR}"/plugins/86-hpmud-hp_laserjet_1000.rules >+ doins "${WORKDIR}"/plugins/86-hpmud-hp_laserjet_1005_series.rules >+ doins "${WORKDIR}"/plugins/86-hpmud-hp_laserjet_1018.rules >+ doins "${WORKDIR}"/plugins/86-hpmud-hp_laserjet_1020.rules >+ doins "${WORKDIR}"/plugins/86-hpmud-hp_laserjet_p1005.rules >+ doins "${WORKDIR}"/plugins/86-hpmud-hp_laserjet_p1006.rules >+ doins "${WORKDIR}"/plugins/86-hpmud-hp_laserjet_p1007.rules >+ doins "${WORKDIR}"/plugins/86-hpmud-hp_laserjet_p1008.rules >+ doins "${WORKDIR}"/plugins/86-hpmud-hp_laserjet_p1505.rules >+ >+ # detect ARCH variable >+ if [[ "${ARCH}" == "amd64" ]] ; then >+ arch_var="64" >+ else >+ arch_var="32" >+ fi >+ cd "${D}"/usr/lib >+ dodir /usr/share/hplip/scan/plugins >+ dolib.so "${WORKDIR}"/plugins/bb_marvell-x86_"${arch_var}".so >+ ln -s bb_marvell-x86_"${arch_var}".so bb_marvell.so >+ dosym /usr/lib/bb_marvell-x86_"${arch_var}".so /usr/share/hplip/scan/plugins/bb_marvell.so >+ dosym /usr/lib/bb_marvell-x86_"${arch_var}".so /usr/share/hplip/scan/plugins/bb_marvell-x86_"${arch_var}".so >+ dolib.so "${WORKDIR}"/plugins/bb_soap-x86_"${arch_var}".so >+ ln -s bb_soap-x86_"${arch_var}".so bb_soap.so >+ dosym /usr/lib/bb_soap-x86_"${arch_var}".so /usr/share/hplip/scan/plugins/bb_soap.so >+ dosym /usr/lib/bb_soap-x86_"${arch_var}".so /usr/share/hplip/scan/plugins/bb_soap-x86_"${arch_var}".so >+ dolib.so "${WORKDIR}"/plugins/bb_soapht-x86_"${arch_var}".so >+ ln -s bb_soapht-x86_"${arch_var}".so bb_soapht.so >+ dosym /usr/lib/bb_soapht-x86_"${arch_var}".so /usr/share/hplip/scan/plugins/bb_soapht.so >+ dosym /usr/lib/bb_soapht-x86_"${arch_var}".so /usr/share/hplip/scan/plugins/bb_soapht-x86_"${arch_var}".so >+ dodir /usr/share/hplip/prnt/plugins >+ dolib.so "${WORKDIR}"/plugins/lj-x86_"${arch_var}".so >+ ln -s lj-x86_"${arch_var}".so lj.so >+ dosym /usr/lib/lj-x86_"${arch_var}".so /usr/share/hplip/prnt/plugins/lj.so >+ dosym /usr/lib/lj-x86_"${arch_var}".so /usr/share/hplip/prnt/plugins/lj-x86_"${arch_var}".so >+ >+ dodir /usr/share/hplip/data/plugins >+ insinto /usr/share/hplip/data/plugins >+ doins "${WORKDIR}"/plugins/license.txt >+ >+ dodir /usr/share/hplip/data/firmware >+ insinto /usr/share/hplip/data/firmware >+ doins "${WORKDIR}"/plugins/hp_laserjet_1000.fw.gz >+ doins "${WORKDIR}"/plugins/hp_laserjet_1005_series.fw.gz >+ doins "${WORKDIR}"/plugins/hp_laserjet_1018.fw.gz >+ doins "${WORKDIR}"/plugins/hp_laserjet_1020.fw.gz >+ doins "${WORKDIR}"/plugins/hp_laserjet_p1005.fw.gz >+ doins "${WORKDIR}"/plugins/hp_laserjet_p1006.fw.gz >+ doins "${WORKDIR}"/plugins/hp_laserjet_p1007.fw.gz >+ doins "${WORKDIR}"/plugins/hp_laserjet_p1008.fw.gz >+ doins "${WORKDIR}"/plugins/hp_laserjet_p1505.fw.gz >+ >+ sed -i -e "s:version\=2\.8\.12:version\=2\.8\.12\\nplugin \= 1:" "${D}"/etc/hp/hplip.conf || die "sed failed" >+ fi >+ > # bug 106035 > use qt3 || use qt4 || rm -Rf "${D}"/usr/share/applications > > use minimal && rm -rf "${D}"/usr/lib >+ >+ # install docs >+ cp -af "${S}"/doc/* "${D}"/usr/share/doc/hplip-${PV} >+ > } > > pkg_preinst() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245136
:
171082
|
171083
|
171449
|
171450
|
171517
|
177677
|
177678
|
178169
|
178170
|
178173
|
178613
|
182736
|
182752
|
182754
|
182804
|
184692
|
185645
|
185778
|
186530
|
186531