1 |
commit: ebc6daae79b138fac98f5dad4423a79d7cc773eb |
2 |
Author: Huang Rui <vowstar <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 7 03:55:59 2022 +0000 |
4 |
Commit: Rui Huang <vowstar <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Sep 7 03:55:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ebc6daae |
7 |
|
8 |
net-print/hpuld: drop 1.00.39.15.00.23 |
9 |
|
10 |
Signed-off-by: Huang Rui <vowstar <AT> gmail.com> |
11 |
|
12 |
net-print/hpuld/hpuld-1.00.39.15.00.23.ebuild | 114 -------------------------- |
13 |
1 file changed, 114 deletions(-) |
14 |
|
15 |
diff --git a/net-print/hpuld/hpuld-1.00.39.15.00.23.ebuild b/net-print/hpuld/hpuld-1.00.39.15.00.23.ebuild |
16 |
deleted file mode 100644 |
17 |
index 1d31577a8..000000000 |
18 |
--- a/net-print/hpuld/hpuld-1.00.39.15.00.23.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,114 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI="8" |
25 |
- |
26 |
-MY_PV="$(ver_rs 4 _)" |
27 |
-SANE_CONF_DIR="/etc/sane.d" |
28 |
- |
29 |
-DESCRIPTION="HP Unified Linux Driver (for samsung hardware)" |
30 |
-HOMEPAGE="https://support.hp.com" |
31 |
- |
32 |
-SRC_URI=" |
33 |
- https://ftp.ext.hp.com/pub/softlib/software13/printers/LaserJet/M437_M443/ULDLINUX_HewlettPackard_V${MY_PV}.zip |
34 |
-" |
35 |
- |
36 |
-S="${WORKDIR}/uld" |
37 |
- |
38 |
-LICENSE="all-rights-reserved" |
39 |
-SLOT="0" |
40 |
-KEYWORDS="~amd64 ~arm64 ~mips ~x86" |
41 |
- |
42 |
-IUSE="+scanner" |
43 |
- |
44 |
-RDEPEND=" |
45 |
- net-print/cups |
46 |
- scanner? ( |
47 |
- media-gfx/sane-backends |
48 |
- ) |
49 |
-" |
50 |
- |
51 |
-DEPEND=" |
52 |
- ${RDEPEND} |
53 |
-" |
54 |
- |
55 |
-BDEPEND=" |
56 |
- app-arch/unzip |
57 |
-" |
58 |
- |
59 |
-QA_FLAGS_IGNORED=" |
60 |
- /opt/smfp-common/scanner/lib/libsane-smfp.* |
61 |
- /opt/smfp-common/printer/bin/pstosecps |
62 |
- /opt/smfp-common/printer/bin/rastertospl |
63 |
- /opt/smfp-common/printer/bin/smfpnetdiscovery |
64 |
-" |
65 |
-QA_PRESTRIPPED="${QA_FLAGS_IGNORED}" |
66 |
- |
67 |
-src_unpack() { |
68 |
- default |
69 |
- |
70 |
- for f in ${WORKDIR}/*/*.tar.gz; do |
71 |
- tar -zxf "$f" -C ${WORKDIR} || die |
72 |
- done |
73 |
-} |
74 |
- |
75 |
-src_install() { |
76 |
- export AGREE_EULA="y" |
77 |
- export CONTINUE_INSTALL="y" |
78 |
- export PAGER="$(which cat)" |
79 |
- |
80 |
- # Fix printer install path |
81 |
- sed -i "s#\"/opt\"#\"${D}/opt\"#g" noarch/package_utils || die |
82 |
- sed -i "s#\"/opt\"#\"${D}/opt\"#g" noarch/pre_install.sh || die |
83 |
- sed -i "s#\"\$INSTDIR_CUPS_BACKENDS\"#\"${D}/\$INSTDIR_CUPS_BACKENDS\"#g" noarch/printer.pkg || die |
84 |
- sed -i "s#\"\$INSTDIR_CUPS_FILTERS\"#\"${D}/\$INSTDIR_CUPS_FILTERS\"#g" noarch/printer.pkg || die |
85 |
- sed -i "s#\"\$INSTDIR_CUPS_PPD\"#\"${D}/\$INSTDIR_CUPS_PPD\"#g" noarch/printer-script.pkg || die |
86 |
- sed -i "s#\"\$INSTDIR_LSB_PPD\"#\"${D}/\$INSTDIR_LSB_PPD\"#g" noarch/printer-script.pkg || die |
87 |
- # Not use rpm and dpkg |
88 |
- sed -i "s#which rpm#which not_found_command_${PN}#g" noarch/package_utils || die |
89 |
- sed -i "s#which dpkg#which not_found_command_${PN}#g" noarch/package_utils || die |
90 |
- |
91 |
- # Fix scanner install path |
92 |
- sed -i "s#SANE_DIR=/usr/lib\${LIBSFX}/sane#SANE_DIR=${D}/usr/lib\${LIBSFX}/sane#g" noarch/scanner.pkg || die |
93 |
- sed -i "s#/usr/lib/sane#${D}/usr/lib\${LIBSFX}/sane#g" noarch/scanner.pkg || die |
94 |
- sed -i "s#/usr/share/locale/\$i/LC_MESSAGES/#${D}//usr/share/locale/\$i/LC_MESSAGES#g" noarch/scanner.pkg || die |
95 |
- sed -i "s#\$(sane_config)#${D}/\$(sane_config)#g" noarch/scanner-script.pkg || die |
96 |
- sed -i "s#\$(udev_rules)#${D}/\$(udev_rules)#g" noarch/scanner-script.pkg || die |
97 |
- sed -i "s#\$(hal_rules)#${D}/\$(hal_rules)#g" noarch/scanner-script.pkg || die |
98 |
- sed -i "s#\${USERMAP}#${D}/\${USERMAP}#g" noarch/scanner-script.pkg || die |
99 |
- sed -i "s# trigger_libusbscanner_hotplug##g" noarch/scanner-script.pkg || die |
100 |
- mkdir -p "${D}"/etc/hotplug/usb || die |
101 |
- |
102 |
- if use scanner ; then |
103 |
- echo "# Add support for the HP-ULD specific backend. Needs net-print/hpuld installed." > "${S}"/"${PN}".conf || die |
104 |
- echo "smfp" > "${S}"/"${PN}".conf || die |
105 |
- insinto ${SANE_CONF_DIR}/dll.d |
106 |
- doins "${S}"/"${PN}".conf |
107 |
- |
108 |
- sh ./install.sh || die |
109 |
- fperms 644 /etc/sane.d/smfp-hewlett-packard.conf |
110 |
- else |
111 |
- sh ./install-printer.sh || die |
112 |
- fi |
113 |
-} |
114 |
- |
115 |
-pkg_postinst() { |
116 |
- if use scanner ; then |
117 |
- ewarn "If you want to use the scanner," |
118 |
- ewarn "make sure the smfp is listed in ${SANE_CONF_DIR}/dll.d/"${PN}".conf." |
119 |
- ewarn "If the geniusvp2 is listed in ${SANE_CONF_DIR}/dll.conf," |
120 |
- ewarn "please comment out it." |
121 |
- |
122 |
- ewarn "You should restart cupsd service after installed $P." |
123 |
- ewarn "OpenRC: rc-service cupsd restart" |
124 |
- ewarn "systemd: systemctl restart cups.service" |
125 |
- fi |
126 |
-} |
127 |
- |
128 |
-pkg_postrm() { |
129 |
- if use scanner ; then |
130 |
- ewarn "You should restart cupsd service after removed $P." |
131 |
- ewarn "OpenRC: rc-service cupsd restart" |
132 |
- ewarn "systemd: systemctl restart cups.service" |
133 |
- fi |
134 |
-} |