1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

print/hplip:

- Update to 3.14.10 [1]
- Fix detection of libusb v1.0 and build with it now
- Enable JetDirect and scanning support by default (requested by pkg users)
- hplip modifies etc/sane.d/dll.conf witch belongs to sane-backends port,
  and writes to this file in staging area. Add commented entry for it in plist
  to pacify staging checks.

print/hplip-plugin:
- Update to 3.14.10
- Add missing entry to plist
- Pass MAKE_ENV for installer to prevent writing to ${HOME}

PR		197245 [1]
Submitted by:	chris@bsdjunk.com
This commit is contained in:
Max Brazhnikov 2015-02-10 12:17:36 +00:00
parent bd4ce09326
commit e3804536c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378769
7 changed files with 64 additions and 16 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= hplip-plugin
PORTVERSION= 3.14.4
PORTREVISION= 1
PORTVERSION= 3.14.10
CATEGORIES= print
MASTER_SITES= http://hplipopensource.com/hplip-web/plugin/
DISTNAME= hplip-${DISTVERSION}-plugin
@ -67,10 +66,13 @@ do-install:
${LN} -sf ${LOCALBASE}/share/hplip/prnt ${HPLIP_FAKEDIR}
${CP} -R ${LOCALBASE}/share/hplip/installer ${HPLIP_FAKEDIR}
${REINPLACE_CMD} -e 's,HOMEDIR = .*,HOMEDIR = "${STAGEDIR}${PREFIX}/share/hplip",' \
${HPLIP_FAKEDIR}/installer/pluginhandler.py
-e 's,/var/lib/hp/hplip.state,${STAGEDIR}&,' \
${HPLIP_FAKEDIR}/installer/pluginhandler.py \
${HPLIP_FAKEDIR}/installer/core_install.py
${MKDIR} ${STAGEDIR}/var/lib/hp
# install hplip-plugin
${MKDIR} ${PLUGIN_DIRS:S,^,${STAGEDIR}${PREFIX}/share/hplip/,}
(cd ${WRKSRC} && ${PYTHON_CMD} -B plugin_install.py)
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} -B plugin_install.py)
.for i in ${PLUGIN_LINKS}
${LN} -sf ${i:T}-${LINARCH}.so ${STAGEDIR}${PREFIX}/share/hplip/${i}.so
.endfor

View File

@ -1,2 +1,2 @@
SHA256 (hplip-3.14.4-plugin.run) = e42094e7f10df48fb4a3de0a71b442d93f09305cac915dd8a86ba9757cbd3b4c
SIZE (hplip-3.14.4-plugin.run) = 1869315
SHA256 (hplip-3.14.10-plugin.run) = b395b480ad86b9f27b6a2f63b6ecb00beb78e762a6137efb81dc1104837f9b81
SIZE (hplip-3.14.10-plugin.run) = 1869038

View File

@ -25,3 +25,4 @@ share/hplip/scan/plugins/bb_soap-%%LINARCH%%.so
share/hplip/scan/plugins/bb_soap.so
share/hplip/scan/plugins/bb_soapht-%%LINARCH%%.so
share/hplip/scan/plugins/bb_soapht.so
/var/lib/hp/hplip.state

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= hplip
PORTVERSION= 3.14.4
PORTREVISION= 4
PORTVERSION= 3.14.10
CATEGORIES= print
MASTER_SITES= SF
@ -40,8 +39,7 @@ CONFIGURE_ARGS= --enable-foomatic-ppd-install \
--with-mimedir=${PREFIX}/etc/cups \
--with-docdir=${DOCSDIR} \
--with-htmldir=${DOCSDIR} \
--with-drvdir=${PREFIX}/libexec/cups/driver \
--enable-libusb01_build
--with-drvdir=${PREFIX}/libexec/cups/driver
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
@ -78,7 +76,7 @@ FILES4FIX= Makefile.in \
PYTHON_SITELIBDIR_REL= ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
OPTIONS_DEFINE= QT FAX SNMP SCAN XSANE DOCS
OPTIONS_DEFAULT= QT
OPTIONS_DEFAULT= QT SNMP SCAN
OPTIONS_SUB= yes # QT FAX SCAN
QT_DESC= Graphical User Interface (Qt 4)
@ -114,6 +112,8 @@ RUN_DEPENDS+= xsane:${PORTSDIR}/graphics/xsane
post-patch:
${REINPLACE_CMD} -e 's|-ldld||g; s|-ldl||g' \
-e 's,-lusb-1.0,-lusb,g' \
-e 's,libusb-1.0/libusb.h,libusb.h,g' \
${WRKSRC}/configure \
${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e '/[[:space:]]install-dist_rulesDATA/ s,install-dist_rulesDATA,,' \
@ -152,5 +152,7 @@ post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/hp
${INSTALL_DATA} ${WRKSRC}/hplip.conf ${STAGEDIR}${PREFIX}/etc/hp/hplip.conf.sample
${LN} -sf ${LOCALBASE}/bin/foomatic-rip ${STAGEDIR}${PREFIX}/libexec/cups/filter/foomatic-rip-hplip
${MKDIR} ${STAGEDIR}${PREFIX}/share/cups/model
${LN} -sf ${LOCALBASE}/share/ppd/HP ${STAGEDIR}${PREFIX}/share/cups/model/hplip
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (hplip-3.14.4.tar.gz) = ce50c2e0ebc0f469599500257d291ca170c6559a99c8eb312f89be881c2110c9
SIZE (hplip-3.14.4.tar.gz) = 21414140
SHA256 (hplip-3.14.10.tar.gz) = 11b3cd8311dea6b22a4c80be1e5d021e84d15a5f3e7e22cbd43798e5c1a89598
SIZE (hplip-3.14.10.tar.gz) = 21773429

View File

@ -1,6 +1,6 @@
--- ./installer/core_install.py.orig 2012-09-04 12:31:53.000000000 +0000
+++ ./installer/core_install.py 2012-09-12 15:01:59.259583493 +0000
@@ -885,7 +885,7 @@
--- installer/core_install.py.orig 2014-10-07 08:55:35 UTC
+++ installer/core_install.py
@@ -769,14 +769,14 @@ class CoreInstall(object):
if not check_lib('libusb'):
return False
if self.distro_name != "rhel":
@ -9,3 +9,11 @@
else:
return True
else:
if not check_lib('libusb-1.0'):
return False
if self.distro_name != "rhel":
- return len(locate_file_contains("libusb.h", '/usr/include/libusb-1.0', 'libusb_init'))
+ return len(locate_file_contains("libusb.h", '%USB_INCLUDE%', 'libusb_init'))
else:
return True

View File

@ -38,6 +38,7 @@ bin/hpijs
%%FAX%%etc/cups/pstotiff.convs
%%FAX%%etc/cups/pstotiff.types
@sample etc/hp/hplip.conf.sample
@comment etc/sane.d/dll.conf
%%QT%%etc/xdg/autostart/hplip-systray.desktop
lib/libhpip.so
lib/libhpip.so.0
@ -61,6 +62,7 @@ libexec/cups/filter/hpcups
libexec/cups/filter/hpps
libexec/cups/filter/pstotiff
%%QT%%share/applications/hplip.desktop
share/cups/model/hplip
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/README_LIBJPG
%%PORTDOCS%%%%DOCSDIR%%/commandline.html
@ -870,6 +872,7 @@ share/ppd/HP/hp-color_laserjet_pro_mfp_m177fw.ppd.gz
share/ppd/HP/hp-color_laserjet_pro_mfp_m476-ps.ppd.gz
share/ppd/HP/hp-cp1160-hpijs.ppd.gz
share/ppd/HP/hp-cp1160.ppd.gz
share/ppd/HP/hp-designjet_d5800-ps.ppd.gz
share/ppd/HP/hp-designjet_4000ps.ppd.gz
share/ppd/HP/hp-designjet_4020ps-ps.ppd.gz
share/ppd/HP/hp-designjet_4500mfp.ppd.gz
@ -893,12 +896,16 @@ share/ppd/HP/hp-designjet_t790ps_24in-ps.ppd.gz
share/ppd/HP/hp-designjet_t790ps_44in-ps.ppd.gz
share/ppd/HP/hp-designjet_t795ps_44in-ps.ppd.gz
share/ppd/HP/hp-designjet_t920-postscript.ppd.gz
share/ppd/HP/hp-designjet_t3500-ps.ppd.gz
share/ppd/HP/hp-designjet_t7200-ps.ppd.gz
share/ppd/HP/hp-designjet_z5200_postscript-ps.ppd.gz
share/ppd/HP/hp-designjet_z5400-postscript.ppd.gz
share/ppd/HP/hp-designjet_z6100ps_42in_photo-ps.ppd.gz
share/ppd/HP/hp-designjet_z6100ps_60in_photo-ps.ppd.gz
share/ppd/HP/hp-designjet_z6200_42in_photo-ps.ppd.gz
share/ppd/HP/hp-designjet_z6200_60in_photo-ps.ppd.gz
share/ppd/HP/hp-designjet_z6600-postscript.ppd.gz
share/ppd/HP/hp-designjet_z6800_photo-postscript.ppd.gz
share/ppd/HP/hp-deskjet_1000_j110_series-hpijs.ppd.gz
share/ppd/HP/hp-deskjet_1000_j110_series.ppd.gz
share/ppd/HP/hp-deskjet_1010_series-hpijs.ppd.gz
@ -1267,6 +1274,12 @@ share/ppd/HP/hp-envy_4500_series-hpijs.ppd.gz
share/ppd/HP/hp-envy_4500_series.ppd.gz
share/ppd/HP/hp-envy_5530_series-hpijs.ppd.gz
share/ppd/HP/hp-envy_5530_series.ppd.gz
share/ppd/HP/hp-envy_5640_series-hpijs.ppd.gz
share/ppd/HP/hp-envy_5640_series.ppd.gz
share/ppd/HP/hp-envy_5660_series-hpijs.ppd.gz
share/ppd/HP/hp-envy_5660_series.ppd.gz
share/ppd/HP/hp-envy_7640_series-hpijs.ppd.gz
share/ppd/HP/hp-envy_7640_series.ppd.gz
share/ppd/HP/hp-laserjet_1000-hpijs.ppd.gz
share/ppd/HP/hp-laserjet_1000.ppd.gz
share/ppd/HP/hp-laserjet_1005_series-hpijs.ppd.gz
@ -1581,6 +1594,7 @@ share/ppd/HP/hp-laserjet_cp_1025-hpijs.ppd.gz
share/ppd/HP/hp-laserjet_cp_1025.ppd.gz
share/ppd/HP/hp-laserjet_cp_1025nw-hpijs.ppd.gz
share/ppd/HP/hp-laserjet_cp_1025nw.ppd.gz
share/ppd/HP/hp-laserjet_flow_mfp_m630-ps.ppd.gz
share/ppd/HP/hp-laserjet_flow_mfp_m525-ps.ppd.gz
share/ppd/HP/hp-laserjet_flow_mfp_m830-ps.ppd.gz
share/ppd/HP/hp-laserjet_m1005-hpijs.ppd.gz
@ -1639,6 +1653,7 @@ share/ppd/HP/hp-laserjet_m9059_mfp-pcl3.ppd.gz
share/ppd/HP/hp-laserjet_m9059_mfp-ps.ppd.gz
share/ppd/HP/hp-laserjet_mfp_m521-ps.ppd.gz
share/ppd/HP/hp-laserjet_mfp_m725-ps.ppd.gz
share/ppd/HP/hp-laserjet_mfp_m630-ps.ppd.gz
share/ppd/HP/hp-laserjet_p1005-hpijs.ppd.gz
share/ppd/HP/hp-laserjet_p1005.ppd.gz
share/ppd/HP/hp-laserjet_p1006-hpijs.ppd.gz
@ -1752,6 +1767,12 @@ share/ppd/HP/hp-laserjet_pro_mfp_m128fp.ppd.gz
share/ppd/HP/hp-laserjet_pro_mfp_m128fw-hpijs.ppd.gz
share/ppd/HP/hp-laserjet_pro_mfp_m128fw.ppd.gz
share/ppd/HP/hp-laserjet_pro_mfp_m435-ps.ppd.gz
share/ppd/HP/hp-laserjet_pro_m201_m202-ps.ppd.gz
share/ppd/HP/hp-laserjet_pro_mfp_m125r-hpijs.ppd.gz
share/ppd/HP/hp-laserjet_pro_mfp_m125r.ppd.gz
share/ppd/HP/hp-laserjet_pro_mfp_m125ra-hpijs.ppd.gz
share/ppd/HP/hp-laserjet_pro_mfp_m125ra.ppd.gz
share/ppd/HP/hp-laserjet_pro_mfp_m225_m226-ps.ppd.gz
share/ppd/HP/hp-laserjet_professional_m1132_mfp-hpijs.ppd.gz
share/ppd/HP/hp-laserjet_professional_m1132_mfp.ppd.gz
share/ppd/HP/hp-laserjet_professional_m1136_mfp-hpijs.ppd.gz
@ -1878,6 +1899,8 @@ share/ppd/HP/hp-officejet_5500_series-hpijs.ppd.gz
share/ppd/HP/hp-officejet_5500_series.ppd.gz
share/ppd/HP/hp-officejet_5600_series-hpijs.ppd.gz
share/ppd/HP/hp-officejet_5600_series.ppd.gz
share/ppd/HP/hp-officejet_5740_series-hpijs.ppd.gz
share/ppd/HP/hp-officejet_5740_series.ppd.gz
share/ppd/HP/hp-officejet_6000_e609a-hpijs.ppd.gz
share/ppd/HP/hp-officejet_6000_e609a.ppd.gz
share/ppd/HP/hp-officejet_6000_e609n-hpijs.ppd.gz
@ -1904,6 +1927,8 @@ share/ppd/HP/hp-officejet_6600-hpijs.ppd.gz
share/ppd/HP/hp-officejet_6600.ppd.gz
share/ppd/HP/hp-officejet_6700-hpijs.ppd.gz
share/ppd/HP/hp-officejet_6700.ppd.gz
share/ppd/HP/hp-officejet_6800-hpijs.ppd.gz
share/ppd/HP/hp-officejet_6800.ppd.gz
share/ppd/HP/hp-officejet_7000_e809a-hpijs.ppd.gz
share/ppd/HP/hp-officejet_7000_e809a.ppd.gz
share/ppd/HP/hp-officejet_7000_e809a_series-hpijs.ppd.gz
@ -1922,6 +1947,8 @@ share/ppd/HP/hp-officejet_7500_e910-hpijs.ppd.gz
share/ppd/HP/hp-officejet_7500_e910.ppd.gz
share/ppd/HP/hp-officejet_7610_series-hpijs.ppd.gz
share/ppd/HP/hp-officejet_7610_series.ppd.gz
share/ppd/HP/hp-officejet_8040_series-hpijs.ppd.gz
share/ppd/HP/hp-officejet_8040_series.ppd.gz
share/ppd/HP/hp-officejet_9100_series-hpijs-pcl3.ppd.gz
share/ppd/HP/hp-officejet_9100_series-pcl3.ppd.gz
share/ppd/HP/hp-officejet_color_mfp_x585.ppd.gz
@ -1981,6 +2008,14 @@ share/ppd/HP/hp-officejet_pro_3620.ppd.gz
share/ppd/HP/hp-officejet_pro_451_series-ps.ppd.gz
share/ppd/HP/hp-officejet_pro_476_576_series-ps.ppd.gz
share/ppd/HP/hp-officejet_pro_551_series-ps.ppd.gz
share/ppd/HP/hp-officejet_pro_6230-hpijs.ppd.gz
share/ppd/HP/hp-officejet_pro_6230.ppd.gz
share/ppd/HP/hp-officejet_pro_6830-hpijs.ppd.gz
share/ppd/HP/hp-officejet_pro_6830.ppd.gz
share/ppd/HP/hp-officejet_pro_8640-hpijs.ppd.gz
share/ppd/HP/hp-officejet_pro_8640.ppd.gz
share/ppd/HP/hp-officejet_pro_8660-hpijs.ppd.gz
share/ppd/HP/hp-officejet_pro_8660.ppd.gz
share/ppd/HP/hp-officejet_pro_8000_a809-hpijs.ppd.gz
share/ppd/HP/hp-officejet_pro_8000_a809.ppd.gz
share/ppd/HP/hp-officejet_pro_8000_enterprise_a811a-ps.ppd.gz