From 384200797d6d52ee308776595427bc698a5c7fe3 Mon Sep 17 00:00:00 2001
From: "Andrey A. Chernov"
Date: Thu, 27 May 2004 00:40:34 +0000
Subject: [PATCH] Fix mess with titles
---
www/WebMagick/Makefile | 2 +-
www/WebMagick/files/patch-aa | 103 +++++++++++++----------------------
2 files changed, 40 insertions(+), 65 deletions(-)
diff --git a/www/WebMagick/Makefile b/www/WebMagick/Makefile
index b5d2d1b8e69f..05f3acd456bb 100644
--- a/www/WebMagick/Makefile
+++ b/www/WebMagick/Makefile
@@ -7,7 +7,7 @@
PORTNAME= WebMagick
PORTVERSION= 2.03p3
-PORTREVISION= 10
+PORTREVISION= 11
PORTEPOCH= 1
CATEGORIES= www graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
diff --git a/www/WebMagick/files/patch-aa b/www/WebMagick/files/patch-aa
index 37bd7ff92351..3c13477c691c 100644
--- a/www/WebMagick/files/patch-aa
+++ b/www/WebMagick/files/patch-aa
@@ -2,15 +2,15 @@ Index: webmagick.in
===================================================================
RCS file: /cvsroot/webmagick/WebMagick/webmagick.in,v
retrieving revision 1.117
-retrieving revision 1.136
-diff -u -r1.117 -r1.136
+retrieving revision 1.137
+diff -u -r1.117 -r1.137
--- webmagick.in 23 Oct 2002 16:14:47 -0000 1.117
-+++ webmagick.in 26 May 2004 23:28:43 -0000 1.136
++++ webmagick.in 27 May 2004 00:25:52 -0000 1.137
@@ -1,6 +1,6 @@
#! @PERL@
#
-# $Id: webmagick.in,v 1.117 2002/10/23 16:14:47 clindell Exp $
-+# $Id: webmagick.in,v 1.136 2004/05/26 23:28:43 ache Exp $
++# $Id: webmagick.in,v 1.137 2004/05/27 00:25:52 ache Exp $
#
# You are looking at the main PERL script for WebMagick, a package to
# intelligently create HTML and JavaScript index files and imagemaps
@@ -137,10 +137,11 @@ diff -u -r1.117 -r1.136
$opt_pichtmlext = '.html'; # Use .shtml for SSI
+$opt_pichtmllink = ''; # Where to link pic
$opt_pichtmlnav = 0; # Write navigation into pic's HTML
+-$opt_pichtmlputtitle = 1; # Write picture title above it
+$opt_pichtmlupfirst = 1; # Put up button before next/prev
+$opt_edgelinksindex = 0; # End links link back to index
- $opt_pichtmlputtitle = 1; # Write picture title above it
-+$opt_pichtmltitletop = 1; # Put picture title at top
++$opt_pichtmlputtitle = 1; # Write picture title
++$opt_pichtmltitletop = 1; # Put picture title at top
$opt_pichtmltarget = '';
$opt_pichtmltitleend = '
'; # End tags for picture title
$opt_pichtmltitlestart = ''; # Start tags for picture title
@@ -883,7 +884,7 @@ diff -u -r1.117 -r1.136
print( PICHTML " \n" )
if( "$opt_metaauthor" ne '' );
print( PICHTML " \n" )
-@@ -2469,32 +2593,32 @@
+@@ -2469,32 +2593,19 @@
print( PICHTML "\n" );
print( PICHTML "
");
+ print ( PICHTML "");
# Must be visible at each page, if no frames
if (!$opt_frames) {
-@@ -2507,7 +2631,7 @@
+@@ -2507,7 +2618,7 @@
}
# up
@@ -941,7 +934,7 @@ diff -u -r1.117 -r1.136
if ($opt_frames) {
print ( PICHTML "
");
+ print ( PICHTML "
");
++ }
++
++ if ($opt_pichtmlputtitle && $opt_pichtmltitletop) {
++ print ( PICHTML "${opt_pichtmltitlestart}${altlabel}${opt_pichtmltitleend}");
}
- if ( $pic =~ /\.(jpg|jpeg?|gif|xbm|png)$/i ) {
- print( PICHTML "" );
-+ #BRAD added to put picture title at top
-+ if ($opt_pichtmlputtitle && $opt_pichtmltitletop) {
-+ print ( PICHTML "${opt_pichtmltitlestart}");
-+ if (defined( $imageCaptions{$pic})) {
-+ print( PICHTML "$imageCaptions{$pic}");
-+ } elsif (defined( $imageLabels{$pic})) {
-+ print( PICHTML "$imageLabels{$pic}");
-+ } else {
-+ print( PICHTML "$pic");
-+ }
-+ print ( PICHTML "${opt_pichtmltitleend}");
-+ }
-+
+ if ($pic =~ /\.(jpg|jpeg?|gif|xbm|png)$/i) {
+ print( PICHTML "")
+ if ($opt_pichtmllink ne '');
@@ -1053,21 +1037,12 @@ diff -u -r1.117 -r1.136
+ print( PICHTML "", escapehtml($pic), " ", fsize($pic), "" );
+ }
+
-+ #BRAD added to put picture title at bottom
+ if ($opt_pichtmlputtitle && !$opt_pichtmltitletop) {
-+ print ( PICHTML "${opt_pichtmltitlestart}");
-+ if (defined( $imageCaptions{$pic})) {
-+ print( PICHTML "$imageCaptions{$pic}");
-+ } elsif (defined( $imageLabels{$pic})) {
-+ print( PICHTML "$imageLabels{$pic}");
-+ } else {
-+ print( PICHTML "$pic");
-+ }
-+ print ( PICHTML "${opt_pichtmltitleend}");
++ print ( PICHTML "${opt_pichtmltitlestart}${altlabel}${opt_pichtmltitleend}");
}
print( PICHTML "$opt_pichtmlbottom\n") if ("$opt_pichtmlbottom" ne '');
-@@ -2590,7 +2781,7 @@
+@@ -2590,7 +2750,7 @@
print INDEX "
";
}
@@ -1076,7 +1051,7 @@ diff -u -r1.117 -r1.136
if ($opt_pichtml) {
print (INDEX "");
-@@ -2601,17 +2792,34 @@
+@@ -2601,17 +2761,34 @@
# TODO: make sure the thumbnails are created, and get some image sizes
# TODO: save the labels in a new array, maybe same with sizes
if ( $thumbImageSizes{$pic}) {
@@ -1116,7 +1091,7 @@ diff -u -r1.117 -r1.136
} # if ($opt_tables)
} # for each picture
-@@ -2622,6 +2830,13 @@
+@@ -2622,6 +2799,13 @@
{
print INDEX "
";
}
@@ -1130,7 +1105,7 @@ diff -u -r1.117 -r1.136
print (INDEX "\n")
} else {print( INDEX "\n" );}
}
-@@ -2630,6 +2845,9 @@
+@@ -2630,6 +2814,9 @@
# Print Copyright info on non-blank pages.
if( $numimages > 0 ) {
@@ -1140,7 +1115,7 @@ diff -u -r1.117 -r1.136
if( "${opt_address}" ne '' ) {
print( INDEX "
${opt_address}\n" );
}
-@@ -2642,13 +2860,17 @@
+@@ -2642,13 +2829,17 @@
# If anonymous, don't show copyright and address info
if( ! $opt_anonymous ) {
print( INDEX "
\n${opt_msg_produced_by} " );
@@ -1160,7 +1135,7 @@ diff -u -r1.117 -r1.136
}
print( INDEX "\n" );
-@@ -2674,13 +2896,12 @@
+@@ -2674,13 +2865,12 @@
open( JSINDEX, ">$fileNames{'jsPageIndex'}")
|| die("$0: Failed to open file $fileNames{'jsPageIndex'} for output\n$@\n");
@@ -1178,7 +1153,7 @@ diff -u -r1.117 -r1.136
print( JSINDEX " top.drawWindows();\n");
print( JSINDEX "\n");
print( JSINDEX "