commit:     b7e59e2064704a2e5117185923016c0598164af2
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  4 12:35:13 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Dec  4 12:35:13 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=dev/ulm.git;a=commit;h=b7e59e20

net-print/brother-dcpj925dw: Fix some install locations and permission bits.

Package-Manager: portage-2.2.14

---
 net-print/brother-dcpj925dw/ChangeLog              |  4 +++
 .../brother-dcpj925dw-20131010.ebuild              | 36 +++++++++++++++-------
 2 files changed, 29 insertions(+), 11 deletions(-)

diff --git a/net-print/brother-dcpj925dw/ChangeLog 
b/net-print/brother-dcpj925dw/ChangeLog
index e54bc48..ba2874f 100644
--- a/net-print/brother-dcpj925dw/ChangeLog
+++ b/net-print/brother-dcpj925dw/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  04 Dec 2014; Ulrich Müller <[email protected]>
+  brother-dcpj925dw-20131010.ebuild:
+  Fix some install locations and permission bits.
+
 *brother-dcpj925dw-20131010 (01 Dec 2014)
 
   01 Dec 2014; Ulrich Müller <[email protected]>

diff --git a/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild 
b/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild
index 085b257..7271a43 100644
--- a/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild
+++ b/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild
@@ -22,25 +22,39 @@ RESTRICT="strip"
 
 RDEPEND="net-print/cups"
 
-S="${WORKDIR}"
+S="${WORKDIR}/opt/brother/Printers/${MODEL}"
 
 src_prepare() {
        if use metric; then
-               sed -i "/^PaperType/s/Letter/A4/" \
-                       opt/brother/Printers/${MODEL}/inf/br${MODEL}rc || die
+               sed -i "/^PaperType/s/Letter/A4/" inf/br${MODEL}rc || die
        fi
 }
 
 src_install() {
-       cp -r opt "${D}" || die
+       local dest=/opt/brother/Printers/${MODEL}
 
-       exeinto /opt/brother/Printers/${MODEL}/bin
-       doexe usr/bin/brprintconf_${MODEL}
-
-       dosym ../../../../opt/brother/Printers/${MODEL}/lpd/filter${MODEL} \
+       cd "${S}"/lpd || die
+       exeinto ${dest}/lpd
+       doexe br${MODEL}filter filter${MODEL} psconvertij2
+       dosym ${dest}/lpd/filter${MODEL} \
                  /usr/libexec/cups/filter/brother_lpdwrapper_${MODEL}
-       dosym 
../../../../opt/brother/Printers/${MODEL}/cupswrapper/brother_${MODEL}_printer_en.ppd
 \
+
+       cd "${S}"/inf || die
+       insinto ${dest}/inf
+       doins br${MODEL}func ImagingArea paperinfij2
+       doins -r lut
+       insinto /etc${dest}/inf
+       doins br${MODEL}rc                      # config file
+       dosym /etc${dest}/inf/br${MODEL}rc ${dest}/inf/br${MODEL}rc
+
+       cd "${S}"/cupswrapper || die
+       insinto ${dest}/cupswrapper
+       doins brother_${MODEL}_printer_en.ppd
+       dosym ${dest}/cupswrapper/brother_${MODEL}_printer_en.ppd \
                  /usr/share/cups/model/brother_${MODEL}_printer_en.ppd
-       dosym ../../opt/brother/Printers/${MODEL}/bin/brprintconf_${MODEL} \
-                 /usr/sbin/brprintconf_${MODEL}
+
+       # The brprintconf utility is very broken and mangles the path
+       # of the function list file. Therefore, don't install it.
+       #exeinto ${dest}/bin
+       #doexe "${WORKDIR}"/usr/bin/brprintconf_${MODEL}
 }

Reply via email to