diff options
author | pav <pav@FreeBSD.org> | 2006-06-05 21:01:46 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-06-05 21:01:46 +0800 |
commit | 2c10b23db7f2a4645d85c28c3ec2ff0e52623e1a (patch) | |
tree | 02eeb10d556160ad017ede243f849e6178246d8a /print | |
parent | 4be59526f6f90fd1585c5a2c0c2fc51ba55a1334 (diff) | |
download | freebsd-ports-gnome-2c10b23db7f2a4645d85c28c3ec2ff0e52623e1a.tar.gz freebsd-ports-gnome-2c10b23db7f2a4645d85c28c3ec2ff0e52623e1a.tar.zst freebsd-ports-gnome-2c10b23db7f2a4645d85c28c3ec2ff0e52623e1a.zip |
- Update to 20060603
- Now, icm and firware files are downloaded using getweb script
PR: ports/98511
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> (maintainer)
Diffstat (limited to 'print')
-rw-r--r-- | print/foo2zjs/Makefile | 6 | ||||
-rw-r--r-- | print/foo2zjs/distinfo | 6 | ||||
-rw-r--r-- | print/foo2zjs/files/patch-getweb.in | 29 | ||||
-rw-r--r-- | print/foo2zjs/files/patch-icc2ps_lcms.h | 14 | ||||
-rw-r--r-- | print/foo2zjs/files/pkg-message.in | 13 | ||||
-rw-r--r-- | print/foo2zjs/pkg-plist | 30 |
6 files changed, 74 insertions, 24 deletions
diff --git a/print/foo2zjs/Makefile b/print/foo2zjs/Makefile index 4ee45c781d54..7aaeaa3f22ed 100644 --- a/print/foo2zjs/Makefile +++ b/print/foo2zjs/Makefile @@ -6,7 +6,7 @@ # PORTNAME= foo2zjs -PORTVERSION= 20060504 +PORTVERSION= 20060603 CATEGORIES= print MASTER_SITES= http://foo2zjs.rkkda.com/ DISTNAME= ${PORTNAME} @@ -23,13 +23,15 @@ USE_GMAKE= yes SUB_FILES= pkg-message MAN1= foo2hp.1 foo2oak-wrapper.1 foo2zjs-wrapper.1 oakdecode.1 foo2hp2600-wrapper.1 foo2oak.1 foo2zjs.1 zjsdecode.1 +EXTRAFILES= msexpand getweb post-patch: @${REINPLACE_CMD} -e 's|^CFLAGS|CFLAGS?|g' -e 's|^PREFIX|PREFIX?|g' ${WRKSRC}/icc2ps/Makefile post-install: @cd ${WRKSRC} && \ - ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1/ + ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1/ && \ + ${INSTALL_SCRIPT} ${EXTRAFILES} ${PREFIX}/bin/ .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} diff --git a/print/foo2zjs/distinfo b/print/foo2zjs/distinfo index f6afbbc37d6a..af836e7476d7 100644 --- a/print/foo2zjs/distinfo +++ b/print/foo2zjs/distinfo @@ -1,3 +1,3 @@ -MD5 (foo2zjs.tar.gz) = c44f2de01457308cca690b2e5e9dfbc7 -SHA256 (foo2zjs.tar.gz) = f517886d5b1062ac360feff856fd6eac9fa52b2a2278e92f235056541a156a74 -SIZE (foo2zjs.tar.gz) = 2127249 +MD5 (foo2zjs.tar.gz) = 33e0e16b7a15d6caf14d025b23c31865 +SHA256 (foo2zjs.tar.gz) = 1e92ba3a1867caaa6231cf354b11c9917c76117623c75eddf60b9d4aacb4c18f +SIZE (foo2zjs.tar.gz) = 917840 diff --git a/print/foo2zjs/files/patch-getweb.in b/print/foo2zjs/files/patch-getweb.in new file mode 100644 index 000000000000..f62297c0c7eb --- /dev/null +++ b/print/foo2zjs/files/patch-getweb.in @@ -0,0 +1,29 @@ +--- getweb.in Thu May 11 17:02:59 2006 ++++ getweb.in Sun Jun 4 15:41:29 2006 +@@ -48,7 +48,7 @@ + exefile="$2" + what="$3" + +- wget $WGETOPTS -O $exefile "$url/$exefile" || ++ fetch -m -o $exefile "$url/$exefile" || + error "Couldn't download $url/$exefile" + unzip -o $exefile "$what" + rm $exefile +@@ -62,7 +62,7 @@ + file="$2" + what="$3" + +- wget $WGETOPTS -O $file "$url/$file" || ++ fetch -m -o $file "$url/$file" || + error "Couldn't download $url/$file" + gunzip <$file | tar xvf - $what + rm $file +@@ -130,7 +130,7 @@ + do + base=`basename $i .IC_` + mv $base.IC_ $base.ic_ +- ./msexpand $base.ic_ ++ msexpand $base.ic_ + rm -f $base.ic_ + done + ;; diff --git a/print/foo2zjs/files/patch-icc2ps_lcms.h b/print/foo2zjs/files/patch-icc2ps_lcms.h new file mode 100644 index 000000000000..03bb0e16142f --- /dev/null +++ b/print/foo2zjs/files/patch-icc2ps_lcms.h @@ -0,0 +1,14 @@ +--- icc2ps/lcms.h Sun Jun 4 14:21:49 2006 ++++ icc2ps/lcms.h Sun Jun 4 14:22:05 2006 +@@ -133,9 +133,8 @@ + + #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) + # include <sys/types.h> +-# define USE_INT64 1 +-# define LCMSSLONGLONG int_64_t +-# define LCMSULONGLONG u_int64_t ++# define LCMSSLONGLONG int64_t ++# define LCMSULONGLONG uint64_t + #endif + + #ifdef USE_INT64 diff --git a/print/foo2zjs/files/pkg-message.in b/print/foo2zjs/files/pkg-message.in index 0fc230a844b5..d019d3f488f3 100644 --- a/print/foo2zjs/files/pkg-message.in +++ b/print/foo2zjs/files/pkg-message.in @@ -4,4 +4,17 @@ * %%DOCSDIR%%/INSTALL +2) Go to tmp directory and run getweb script. + + # cd /tmp && getweb all + +3) Copy icm and img files. + + # cp DL*.icm CP*.icm km2430*.icm %%DATADIR%%/icm && \ + cp sihp*.img %%DATADIR%%/firmware && \ + cp hpclj26*.icm km2430*.icm %%PREFIX%%/share/foo2hp/icm && \ + rm *.icm *.img + +4) Enjoy it ;) + ############################################################################################### diff --git a/print/foo2zjs/pkg-plist b/print/foo2zjs/pkg-plist index 2915da3543ff..2bddfec89f84 100644 --- a/print/foo2zjs/pkg-plist +++ b/print/foo2zjs/pkg-plist @@ -5,6 +5,8 @@ bin/foo2oak-wrapper bin/foo2zjs bin/foo2zjs-icc2ps bin/foo2zjs-wrapper +bin/getweb +bin/msexpand bin/okidecode bin/zjsdecode share/cups/model/Generic-OAKT_Printer.ppd.gz @@ -16,6 +18,7 @@ share/cups/model/HP-LaserJet_1000.ppd.gz share/cups/model/HP-LaserJet_1005.ppd.gz share/cups/model/HP-LaserJet_1018.ppd.gz share/cups/model/HP-LaserJet_1020.ppd.gz +share/cups/model/HP-LaserJet_1022.ppd.gz share/cups/model/Minolta-Color_PageWorks_Pro_L.ppd.gz share/cups/model/Minolta-magicolor_2200_DL.ppd.gz share/cups/model/Minolta-magicolor_2300_DL.ppd.gz @@ -23,10 +26,6 @@ share/cups/model/Minolta-magicolor_2430_DL.ppd.gz %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/manual.pdf -share/foo2hp/icm/hpclj2600n.icm -share/foo2hp/icm/km2430_0.icm -share/foo2hp/icm/km2430_1.icm -share/foo2hp/icm/km2430_2.icm %%DATADIR%%/crd/2300w-1200@150-l250-kx,ucr100,0-per.crd %%DATADIR%%/crd/2300w-1200@150-l250-kx,ucr100,50-per.crd %%DATADIR%%/crd/2300w-1200@150-l250-kx,ucr100,75-per.crd @@ -36,21 +35,14 @@ share/foo2hp/icm/km2430_2.icm %%DATADIR%%/crd/prolog.ps %%DATADIR%%/crd/screen1200.ps %%DATADIR%%/crd/screen2400.ps -%%DATADIR%%/firmware/sihp1000.dl -%%DATADIR%%/firmware/sihp1005.dl -%%DATADIR%%/firmware/sihp1018.dl -%%DATADIR%%/firmware/sihp1020.dl %%DATADIR%%/gamma-lookup.ps %%DATADIR%%/gamma.ps -%%DATADIR%%/icm/km2430_0.icm -%%DATADIR%%/icm/km2430_1.icm -%%DATADIR%%/icm/km2430_2.icm %%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm %%DATADIR%%/icm -@dirrm %%DATADIR%%/firmware -@dirrm %%DATADIR%%/crd -@dirrm %%DATADIR%% -@dirrm share/foo2oak/icm -@dirrm share/foo2oak -@dirrm share/foo2hp/icm -@dirrm share/foo2hp +@dirrmtry %%DATADIR%%/icm +@dirrmtry %%DATADIR%%/firmware +@dirrmtry %%DATADIR%%/crd +@unexec rmdir %D/%%DATADIR%% 2>/dev/null || echo "Note: %D/%%DATADIR%%: icm and firmware directories not empty, remove it manually" +@dirrmtry share/foo2oak/icm +@unexec rmdir %D/share/foo2oak 2>/dev/null || echo "Note: %D/share/foo2oak: icm directory not empty, remove it manually" +@dirrmtry share/foo2hp/icm +@unexec rmdir %D/share/foo2hp 2>/dev/null || echo "Note: %D/share/foo2hp: icm directory not empty, remove it manually" |