File: packages

package info (click to toggle)
libtie-cache-perl 0.15-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 72 kB
  • ctags: 32
  • sloc: perl: 483
file content (82 lines) | stat: -rw-r--r-- 3,094 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Source: libtie-cache-perl
Section: interpreters
Priority: extra
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.5.6
Upstream-Source: <URL:http://www.cpan.org/modules/by-module/Tie/>
Description: perl Tie::Cache - LRU Cache in Memory
Packaged-For: Debian
Copyright: .
     Copyright (c) 1999-2001 Joshua Chamas, Chamas Enterprises Inc.
 .
     All rights reserved. This program is free software; you can redistribute
     it and/or modify it under the same terms as Perl itself.
 .
    Sponsored by development on NodeWorks http://www.nodeworks.com
 .
 	a) the GNU General Public License as published by the Free
 	Software Foundation; either version 1, or (at your option) any
 	later version, or
 .
 	b) the "Artistic License" which comes with Debian.
 .
     You should have received a copy of the Artistic License with this
     Kit, in the file /usr/share/common-licenses/Artistic.  If not, I'll be
     glad to provide one.
 .
     You should also have received a copy of the GNU General Public
     License along with this system, in /usr/share/common-licenses/GPL; if not,
     write to the Free Software Foundation, Inc., 59 Temple Place - Suite
     330, Boston, MA 02111-1307, USA.
Major-Changes:
 none
Build: sh
 CC=gcc
 CFLAGS="-O2 -Wall"
 LDFLAGS=
 if [ "${DEB_BUILD_OPTIONS#*debug}" != "$DEB_BUILD_OPTIONS" ]; then
     CFLAGS="$CFLAGS -g"
 fi
 PERL=${PERL:-/usr/bin/perl}
 version=$($PERL -e 'printf "%.3f", $]')
 if dpkg --compare-versions "$version" lt "5.006"; then
     # potato
     $PERL Makefile.PL
     make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CC="$CC"
 else
     # sid
     $PERL Makefile.PL INSTALLDIRS=vendor # sid
     make OPTIMIZE="$CFLAGS" CC="$CC"
 fi
Clean: sh
 test -f Makefile && touch Makefile && make distclean || true

Package: libtie-cache-perl
Architecture: all
Description: perl Tie::Cache - LRU Cache in Memory.
 This module implements a least recently used (LRU) cache in memory
 through a tie interface. Any time data is stored in the tied hash, that
 key/value pair has an entry time associated with it, and as the cache
 fills up, those members of the cache that are the oldest are removed to
 make room for new entries.
 .
 So, the cache only "remembers" the last written entries, up to the size
 of the cache. This can be especially useful if you access great amounts
 of data, but only access a minority of the data a majority of the time.     
Install: sh
 PERL=${PERL:-/usr/bin/perl}
 version=$($PERL -e 'printf "%.3f", $]')
 if dpkg --compare-versions "$version" lt "5.006"; then
     # potato
     archlib=$($PERL -MConfig -e 'print $Config{installarchlib}')
     config="INSTALLDIRS=perl INSTALLMAN1DIR=$ROOT/usr/share/man/man1 INSTALLMAN3DIR=$ROOT/usr/share/man/man3 INSTALLPRIVLIB=$ROOT/usr/lib/perl5 INSTALLARCHLIB=$ROOT$archlib"
     make pure_install $config
 else
     # sid
     make install PREFIX=$ROOT/usr
 fi
 find $ROOT/usr -type f -print0 | xargs --null -r \
     perl -i -pe '$_ = "#!/usr/bin/perl$1\n" if m|^#!.*/perl(.*)$|;'
 yada install -doc README
 yada install -doc -as changelog CHANGES
 yada perl