1 |
commit: c0845de82b5badb401807d91152c01ffcb0dd67d |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 1 18:55:02 2014 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 1 18:55:02 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=dev/ulm.git;a=commit;h=c0845de8 |
7 |
|
8 |
net-print/brother-dcpj925dw: Initial import. Ebuild contributed by me. |
9 |
|
10 |
Package-Manager: portage-2.2.14 |
11 |
|
12 |
--- |
13 |
net-print/brother-dcpj925dw/ChangeLog | 10 +++++ |
14 |
net-print/brother-dcpj925dw/Manifest | 2 + |
15 |
.../brother-dcpj925dw-20131010.ebuild | 46 ++++++++++++++++++++++ |
16 |
net-print/brother-dcpj925dw/metadata.xml | 10 +++++ |
17 |
4 files changed, 68 insertions(+) |
18 |
|
19 |
diff --git a/net-print/brother-dcpj925dw/ChangeLog b/net-print/brother-dcpj925dw/ChangeLog |
20 |
new file mode 100644 |
21 |
index 0000000..e54bc48 |
22 |
--- /dev/null |
23 |
+++ b/net-print/brother-dcpj925dw/ChangeLog |
24 |
@@ -0,0 +1,10 @@ |
25 |
+# ChangeLog for net-print/brother-dcpj925dw |
26 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
27 |
+# $Header: $ |
28 |
+ |
29 |
+*brother-dcpj925dw-20131010 (01 Dec 2014) |
30 |
+ |
31 |
+ 01 Dec 2014; Ulrich Müller <ulm@g.o> |
32 |
+ +brother-dcpj925dw-20131010.ebuild, +metadata.xml: |
33 |
+ Initial import. Ebuild contributed by me. |
34 |
+ |
35 |
|
36 |
diff --git a/net-print/brother-dcpj925dw/Manifest b/net-print/brother-dcpj925dw/Manifest |
37 |
new file mode 100644 |
38 |
index 0000000..e72abb1 |
39 |
--- /dev/null |
40 |
+++ b/net-print/brother-dcpj925dw/Manifest |
41 |
@@ -0,0 +1,2 @@ |
42 |
+DIST dcpj925dwcupswrapper-3.0.0-1.i386.rpm 17395 SHA256 348fbb24b2feb4a4adba2be4c73d70fa5d267b92783e05d8321f55caa4b6e654 SHA512 fd7cf0526e05e82f659ee1c158e5108ee4c67e689d77c19d0d59cbded921888b597eee68c3e18d12fe6a0ec93daff5095ac8f3d8c9f8a471002987b87646fc8e WHIRLPOOL e4ace7d3b67e7ba0a3cfdabe24e0d309f3a602f0929659f4b8aaad7801914400cbcddf373b5073ec5a05dbd6fcdc7400121e036de6886b7010b9f075bc159410 |
43 |
+DIST dcpj925dwlpr-3.0.1-1.i386.rpm 3430885 SHA256 20777cd07aef4e271c389b107487efe0ba9c0fb07750295082f24232bb3c28a0 SHA512 11973cbca305e14266772bc428db05504e794bd2f862778e6fb1dd917144502348685f241f21b5fc8bbba3d487a36938ef6e148b1f74ef1e5d5825bb7ed2cd23 WHIRLPOOL 49ff4c9d080add35c5a26322f37ef772e2f2a45d5633f6cacd6b100b819b0206080c433c68e59f427b5f9b7373ee640c3f541ff1aa759727dcc71070ebcd8d41 |
44 |
|
45 |
diff --git a/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild b/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild |
46 |
new file mode 100644 |
47 |
index 0000000..085b257 |
48 |
--- /dev/null |
49 |
+++ b/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild |
50 |
@@ -0,0 +1,46 @@ |
51 |
+# Copyright 1999-2014 Gentoo Foundation |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+# $Header: $ |
54 |
+ |
55 |
+EAPI=5 |
56 |
+ |
57 |
+inherit rpm |
58 |
+ |
59 |
+MODEL="${PN#*-}" |
60 |
+PV_LPR="3.0.1-1" |
61 |
+PV_CUPSWRAPPER="3.0.0-1" |
62 |
+ |
63 |
+DESCRIPTION="Brother printer driver for DCP-J925DW" |
64 |
+HOMEPAGE="http://www.brother.com/" |
65 |
+SRC_URI="http://download.brother.com/welcome/dlf005614/${MODEL}lpr-${PV_LPR}.i386.rpm http://download.brother.com/welcome/dlf005616/${MODEL}cupswrapper-${PV_CUPSWRAPPER}.i386.rpm" |
66 |
+ |
67 |
+LICENSE="GPL-2+ Brother-lpr no-source-code" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+IUSE="metric" |
71 |
+RESTRICT="strip" |
72 |
+ |
73 |
+RDEPEND="net-print/cups" |
74 |
+ |
75 |
+S="${WORKDIR}" |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ if use metric; then |
79 |
+ sed -i "/^PaperType/s/Letter/A4/" \ |
80 |
+ opt/brother/Printers/${MODEL}/inf/br${MODEL}rc || die |
81 |
+ fi |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ cp -r opt "${D}" || die |
86 |
+ |
87 |
+ exeinto /opt/brother/Printers/${MODEL}/bin |
88 |
+ doexe usr/bin/brprintconf_${MODEL} |
89 |
+ |
90 |
+ dosym ../../../../opt/brother/Printers/${MODEL}/lpd/filter${MODEL} \ |
91 |
+ /usr/libexec/cups/filter/brother_lpdwrapper_${MODEL} |
92 |
+ dosym ../../../../opt/brother/Printers/${MODEL}/cupswrapper/brother_${MODEL}_printer_en.ppd \ |
93 |
+ /usr/share/cups/model/brother_${MODEL}_printer_en.ppd |
94 |
+ dosym ../../opt/brother/Printers/${MODEL}/bin/brprintconf_${MODEL} \ |
95 |
+ /usr/sbin/brprintconf_${MODEL} |
96 |
+} |
97 |
|
98 |
diff --git a/net-print/brother-dcpj925dw/metadata.xml b/net-print/brother-dcpj925dw/metadata.xml |
99 |
new file mode 100644 |
100 |
index 0000000..3b7ffd9 |
101 |
--- /dev/null |
102 |
+++ b/net-print/brother-dcpj925dw/metadata.xml |
103 |
@@ -0,0 +1,10 @@ |
104 |
+<?xml version="1.0" encoding="UTF-8"?> |
105 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
106 |
+<pkgmetadata> |
107 |
+<maintainer> |
108 |
+ <email>ulm@g.o</email> |
109 |
+</maintainer> |
110 |
+<use> |
111 |
+ <flag name='metric'>Default to A4 paper size</flag> |
112 |
+</use> |
113 |
+</pkgmetadata> |