mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Update p5-Config-IniFiles (was p5-IniConf, being removed) to 1.8.
PR: 22298 Submitted by: Jeremy Shaffer <jeremy@external.org> Approved by: demon (previous MAINTAINER)
This commit is contained in:
parent
738eda67e3
commit
49b80109c5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35628
@ -195,6 +195,7 @@
|
||||
SUBDIR += p5-C-Scan
|
||||
SUBDIR += p5-Class-MethodMaker
|
||||
SUBDIR += p5-ConfigReader
|
||||
SUBDIR += p5-Config-IniFiles
|
||||
SUBDIR += p5-Curses
|
||||
SUBDIR += p5-Data-Flow
|
||||
SUBDIR += p5-Data-ShowTable
|
||||
@ -219,7 +220,6 @@
|
||||
SUBDIR += p5-IO-stringy
|
||||
SUBDIR += p5-IPC-Shareable
|
||||
SUBDIR += p5-Include
|
||||
SUBDIR += p5-IniConf
|
||||
SUBDIR += p5-Locale-Maketext
|
||||
SUBDIR += p5-Locale-PGetText
|
||||
SUBDIR += p5-Locale-gettext
|
||||
|
@ -1,26 +1,25 @@
|
||||
# New ports collection makefile for: p5-IniConf
|
||||
# New ports collection makefile for: p5-Config-IniFiles
|
||||
# Date created: October 21st 1996
|
||||
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= IniConf
|
||||
PORTVERSION= 0.92
|
||||
PORTNAME= Config-IniFiles
|
||||
PORTVERSION= 1.8
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= IniConf
|
||||
MASTER_SITE_SUBDIR= Config
|
||||
PKGNAMEPREFIX= p5-
|
||||
DISTNAME= ${PORTNAME}.pm-${PORTVERSION}
|
||||
|
||||
MAINTAINER= demon@FreeBSD.org
|
||||
MAINTAINER= jeremy@external.org
|
||||
|
||||
USE_PERL5= YES
|
||||
|
||||
MAN3= IniConf.pm.3
|
||||
MAN3= Config::IniFiles.3
|
||||
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
||||
|
||||
do-configure:
|
||||
@ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
|
||||
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
|
||||
|
||||
.include <bsd.port.mk>
|
1
devel/p5-Config-IniFiles/distinfo
Normal file
1
devel/p5-Config-IniFiles/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (Config-IniFiles-1.8.tar.gz) = 2f76f242fac3a6c8975c41bec8ce0b86
|
20
devel/p5-Config-IniFiles/pkg-descr
Normal file
20
devel/p5-Config-IniFiles/pkg-descr
Normal file
@ -0,0 +1,20 @@
|
||||
Config::IniFiles provides a way to have readable configuration files
|
||||
outside your Perl script. The configuration can be safely reloaded upon
|
||||
receipt of a signal. Configurations can be imported (inherited,
|
||||
stacked,...), sections can be grouped, and settings can be accessed from
|
||||
a tied hash.
|
||||
|
||||
USAGE
|
||||
|
||||
Get a new Config::IniFiles object with the *new* method:
|
||||
|
||||
$cfg = Config::IniFiles->new( -file => "/path/configfile.ini" );
|
||||
$cfg = new Config::IniFiles -file => "/path/configfile.ini";
|
||||
|
||||
Optional named parameters may be specified after the configuration file
|
||||
name. See the *new* in the METHODS section, below.
|
||||
|
||||
INI files consist of a number of sections, each preceeded with the
|
||||
section name in square brackets. Parameters are specified in each section
|
||||
as Name=Value. Any spaces around the equals sign will be i gnored, and the
|
||||
value extends to the end of the line.
|
3
devel/p5-Config-IniFiles/pkg-plist
Normal file
3
devel/p5-Config-IniFiles/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Config/IniFiles.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Config/IniFiles/.packlist
|
||||
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Config/IniFiles
|
@ -1 +0,0 @@
|
||||
MD5 (IniConf.pm-0.92.tar.gz) = 0057de0a61aacf1de8ec966fd70c9ded
|
@ -1,36 +0,0 @@
|
||||
*** IniConf.pm.orig Fri Jul 11 09:39:59 1997
|
||||
--- IniConf.pm Thu Sep 10 04:49:00 1998
|
||||
***************
|
||||
*** 203,209 ****
|
||||
\$SIG{$sig} = 'IGNORE';
|
||||
\$${class}::instance[$instnum]->ReadConfig;
|
||||
if (\$oldhandler[$instnum] && \$oldhandler[$instnum] ne 'IGNORE') {
|
||||
! eval '&$oldhandler[$instnum];';
|
||||
}
|
||||
\$SIG{$sig} = '$newhandler'
|
||||
}
|
||||
--- 203,209 ----
|
||||
\$SIG{$sig} = 'IGNORE';
|
||||
\$${class}::instance[$instnum]->ReadConfig;
|
||||
if (\$oldhandler[$instnum] && \$oldhandler[$instnum] ne 'IGNORE') {
|
||||
! eval '&\$oldhandler[$instnum];';
|
||||
}
|
||||
\$SIG{$sig} = '$newhandler'
|
||||
}
|
||||
***************
|
||||
*** 346,352 ****
|
||||
$self->{v}{$sect} = {};
|
||||
}
|
||||
}
|
||||
! elsif (($parm, $val) = /\s*(\S+)\s*=\s*(.*)/) { # new parameter
|
||||
$parm = lc($parm) if $nocase;
|
||||
$self->{pCMT}{$sect}{$parm} = [@cmts];
|
||||
@cmts = ( );
|
||||
--- 346,352 ----
|
||||
$self->{v}{$sect} = {};
|
||||
}
|
||||
}
|
||||
! elsif (($parm, $val) = /\s*([^\s=]+)\s*=\s*(.*)/) { # new parameter
|
||||
$parm = lc($parm) if $nocase;
|
||||
$self->{pCMT}{$sect}{$parm} = [@cmts];
|
||||
@cmts = ( );
|
@ -1,17 +0,0 @@
|
||||
IniConf provides a way to have readable configuration files outside your
|
||||
Perl script. The configuration can be safely reloaded upon receipt of a
|
||||
signal.
|
||||
|
||||
USAGE
|
||||
|
||||
Get a new IniConf object with the new method:
|
||||
|
||||
$cfg = IniConf->new( -file => "/path/configfile.ini" );
|
||||
$cfg = new IniConf -file => "/path/configfile.ini";
|
||||
|
||||
Optional named parameters may be specified after the configuration file
|
||||
name. See the new in the METHODS section, below. INI files consist of a
|
||||
number of sections, each preceeded with the section name in square brackets.
|
||||
Parameters are specified in each section as Name=Value. Any spaces around
|
||||
the equals sign will be ignored, and the value extends to the end of the
|
||||
line
|
@ -1,3 +0,0 @@
|
||||
lib/perl5/site_perl/%%PERL_VER%%/IniConf.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/IniConf.pm/.packlist
|
||||
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/IniConf.pm
|
Loading…
Reference in New Issue
Block a user