summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Coie <rac@gentoo.org>2004-05-30 06:14:50 +0000
committerRobert Coie <rac@gentoo.org>2004-05-30 06:14:50 +0000
commit85ba9566499957c18562f70afcc23986e5fa58f1 (patch)
tree86a56ea2da7547316fb5794007894019fc43bf92 /dev-perl/AppConfig/files
parentAdded support for new kbuild module building #50914 by J van der Wulp. (diff)
downloadhistorical-85ba9566499957c18562f70afcc23986e5fa58f1.tar.gz
historical-85ba9566499957c18562f70afcc23986e5fa58f1.tar.bz2
historical-85ba9566499957c18562f70afcc23986e5fa58f1.zip
add blocksep patch, clean out deadwood
Diffstat (limited to 'dev-perl/AppConfig/files')
-rw-r--r--dev-perl/AppConfig/files/blocksep.patch74
-rw-r--r--dev-perl/AppConfig/files/digest-AppConfig-1.551
-rw-r--r--dev-perl/AppConfig/files/digest-AppConfig-1.56-r2 (renamed from dev-perl/AppConfig/files/digest-AppConfig-1.56)0
3 files changed, 74 insertions, 1 deletions
diff --git a/dev-perl/AppConfig/files/blocksep.patch b/dev-perl/AppConfig/files/blocksep.patch
new file mode 100644
index 000000000000..b9affd8a7211
--- /dev/null
+++ b/dev-perl/AppConfig/files/blocksep.patch
@@ -0,0 +1,74 @@
+diff -burN AppConfig-1.56.orig/lib/AppConfig/File.pm AppConfig-1.56/lib/AppConfig/File.pm
+--- AppConfig-1.56.orig/lib/AppConfig/File.pm 2004-02-04 02:28:28.000000000 -0800
++++ AppConfig-1.56/lib/AppConfig/File.pm 2004-05-28 15:08:31.432761817 -0700
+@@ -44,6 +44,7 @@
+ STATE => $state, # AppConfig::State ref
+ DEBUG => $state->_debug(), # store local copy of debug
+ PEDANTIC => $state->_pedantic, # and pedantic flags
++ BLOCKSEP => $state->_blocksep, # and block separator
+ };
+
+ bless $self, $class;
+@@ -87,7 +88,7 @@
+ my $flag;
+
+ # take a local copy of the state to avoid much hash dereferencing
+- my ($state, $debug, $pedantic) = @$self{ qw( STATE DEBUG PEDANTIC ) };
++ my ($state, $debug, $pedantic, $blocksep) = @$self{ qw( STATE DEBUG PEDANTIC BLOCKSEP ) };
+
+ # we want to install a custom error handler into the AppConfig::State
+ # which appends filename and line info to error messages and then
+@@ -201,7 +202,7 @@
+ $flag = $1;
+
+ # $variable gets any $prefix
+- $variable = $prefix . '_' . $variable
++ $variable = $prefix . $blocksep . $variable
+ if length $prefix;
+
+ # if the variable doesn't exist, we call set() to give
+diff -burN AppConfig-1.56.orig/lib/AppConfig/State.pm AppConfig-1.56/lib/AppConfig/State.pm
+--- AppConfig-1.56.orig/lib/AppConfig/State.pm 2004-02-04 02:11:23.000000000 -0800
++++ AppConfig-1.56/lib/AppConfig/State.pm 2004-05-28 14:42:23.588164697 -0700
+@@ -57,7 +57,7 @@
+
+ # internal values that AUTOLOAD should provide access to
+ my %METHFLAGS;
+- @METHFLAGS{ qw( PEDANTIC ) } = ();
++ @METHFLAGS{ qw( PEDANTIC BLOCKSEP ) } = ();
+
+ # variable attributes that may be specified in GLOBAL;
+ my @GLOBAL_OK = qw( DEFAULT EXPAND VALIDATE ACTION ARGS ARGCOUNT );
+@@ -98,6 +98,7 @@
+ PEDANTIC => 0, # return immediately on parse warnings
+ EHANDLER => undef, # error handler (let's hope we don't need it!)
+ ERROR => '', # error message
++ BLOCKSEP => '_', # separator between [block] and variable name
+ };
+
+ bless $self, $class;
+@@ -509,8 +510,8 @@
+ };
+
+
+- # CASE, CREATE and PEDANTIC are stored as they are
+- $opt =~ /^CASE|CREATE|PEDANTIC$/i && do {
++ # CASE, CREATE, PEDANTIC and BLOCKSEP are stored as they are
++ $opt =~ /^CASE|CREATE|PEDANTIC|BLOCKSEP$/i && do {
+ $self->{ uc $opt } = $cfg->{ $opt };
+ next;
+ };
+@@ -1020,6 +1021,13 @@
+ DEBUG (and also PEDANTIC) values of the state at that time. Subsequent
+ changes to the AppConfig::State debug value will not affect them.
+
++=item BLOCKSEP
++
++When parsing configuration files that are grouped using constructions
++like [block], this string parameter determines what is used to
++separate the name of the block from the name of each variable
++contained within it. If unspecified, BLOCKSEP defaults to '_'.
++
+ =item GLOBAL
+
+ The GLOBAL option allows default values to be set for the DEFAULT, ARGCOUNT,
diff --git a/dev-perl/AppConfig/files/digest-AppConfig-1.55 b/dev-perl/AppConfig/files/digest-AppConfig-1.55
deleted file mode 100644
index ccf22fe17cc2..000000000000
--- a/dev-perl/AppConfig/files/digest-AppConfig-1.55
+++ /dev/null
@@ -1 +0,0 @@
-MD5 20d81571e7ef7da092613b4dd69fed33 AppConfig-1.55.tar.gz 45687
diff --git a/dev-perl/AppConfig/files/digest-AppConfig-1.56 b/dev-perl/AppConfig/files/digest-AppConfig-1.56-r2
index d1ffcd72eab3..d1ffcd72eab3 100644
--- a/dev-perl/AppConfig/files/digest-AppConfig-1.56
+++ b/dev-perl/AppConfig/files/digest-AppConfig-1.56-r2