View | Details | Raw Unified | Return to bug 76190
Collapse All | Expand All

(-)quickml/Makefile (-1 / +1 lines)
Lines 56-62 Link Here
56
56
57
post-patch:
57
post-patch:
58
.if !defined(WITHOUT_LIMIT)
58
.if !defined(WITHOUT_LIMIT)
59
	${PATCH} ${PATCH_DIST_ARGS} < ${DISTDIR}/${PORTNAME}-${PORTVERSION}-limited.patch
59
	@${PATCH} ${PATCH_DIST_ARGS} < ${DISTDIR}/${PORTNAME}-${PORTVERSION}-limited.patch
60
.endif
60
.endif
61
	@${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
61
	@${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
62
		${FILESDIR}/quickml.sh > ${WRKDIR}/quickml.sh
62
		${FILESDIR}/quickml.sh > ${WRKDIR}/quickml.sh
(-)quickml/files/patch-quickml-analog.in (+74 lines)
Line 0 Link Here
1
*** quickml-analog.in.orig	2004-06-07 17:50:59.000000000 +0900
2
--- quickml-analog.in	2005-01-07 19:11:59.000000000 +0900
3
***************
4
*** 15,20 ****
5
--- 15,21 ----
6
  require 'ftools'
7
  require 'time'
8
  require 'cgi'
9
+ require 'open3'
10
  
11
  class Array
12
    def tail (n)
13
***************
14
*** 395,413 ****
15
    end
16
  
17
    def add_basic (f)
18
!     f.print '
19
!     set grid
20
!     set timefmt "%y%m%d%H"
21
!     set xdata time
22
!     set size ratio 0.76
23
!     set linestyle 1 linetype 1 linewidth 5
24
!     set linestyle 2 linetype 3 linewidth 5
25
!     set linestyle 3 linetype 2 linewidth 5
26
!     set linestyle 4 linetype 4 linewidth 5
27
!     set linestyle 5 linetype 5 linewidth 5
28
!     set linestyle 6 linetype 7 linewidth 5
29
  
30
!     '.gsub(/^    /, "")
31
    end
32
  
33
    def add_chart (f, default, lang, chart_prefix, stat_files, type, 
34
--- 396,435 ----
35
    end
36
  
37
    def add_basic (f)
38
!     Open3.popen3( "gnuplot" ) { |stdin, stdout, stderr|
39
!       stdin.puts "show version"
40
!       stdin.close
41
!       stderr.read[/[Vv]ersion (\d+\.\d+)/]
42
!     }
43
!     if ( Float( $1 ) < 4.0 ) then
44
!       f.print '
45
!       set grid
46
!       set timefmt "%y%m%d%H"
47
!       set xdata time
48
!       set size ratio 0.76
49
!       set linestyle 1 linetype 1 linewidth 5
50
!       set linestyle 2 linetype 3 linewidth 5
51
!       set linestyle 3 linetype 2 linewidth 5
52
!       set linestyle 4 linetype 4 linewidth 5
53
!       set linestyle 5 linetype 5 linewidth 5
54
!       set linestyle 6 linetype 7 linewidth 5
55
  
56
!       '.gsub(/^    /, "")
57
!     else
58
!        f.print '
59
!        set grid
60
!        set timefmt "%y%m%d%H"
61
!        set xdata time
62
!        set size ratio 0.76
63
!        set style line 1 linetype 1 linewidth 5
64
!        set style line 2 linetype 3 linewidth 5
65
!        set style line 3 linetype 2 linewidth 5
66
!        set style line 4 linetype 4 linewidth 5
67
!        set style line 5 linetype 5 linewidth 5
68
!        set style line 6 linetype 7 linewidth 5
69
! 
70
!        '.gsub(/^    /, "")
71
!     end
72
    end
73
  
74
    def add_chart (f, default, lang, chart_prefix, stat_files, type,

Return to bug 76190