rpms/hct/EL-5 Makefile.PL, NONE, 1.1 hct-set-env-hcthome.patch, NONE, 1.1 hct-set-hct-path-for-moved-lang.patch, NONE, 1.1 hct.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Shakthi Kannan shakthimaan at fedoraproject.org
Fri Jun 18 09:48:54 UTC 2010


Author: shakthimaan

Update of /cvs/pkgs/rpms/hct/EL-5
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv13074/EL-5

Modified Files:
	.cvsignore sources 
Added Files:
	Makefile.PL hct-set-env-hcthome.patch 
	hct-set-hct-path-for-moved-lang.patch hct.spec import.log 
Log Message:
First release.



--- NEW FILE Makefile.PL ---
use ExtUtils::MakeMaker;

WriteMakefile(
    'NAME'		=> 'HCT',
    'VERSION_FROM'      => 'lib/HCT.pm',
    'LIBS'		=> [''], 
    'DEFINE'		=> '', 
    'INC'		=> '', 
    'EXE_FILES'         => [ qw(hct) ],
);

hct-set-env-hcthome.patch:
 hct.pl |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- NEW FILE hct-set-env-hcthome.patch ---
diff -up hct-0.7.60/hct.pl.fix hct-0.7.60/hct.pl
--- hct-0.7.60/hct.pl.fix	2010-05-13 18:56:02.892264679 +0530
+++ hct-0.7.60/hct.pl	2010-05-13 18:57:14.195118305 +0530
@@ -20,16 +20,13 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with HCT.  If not, see <http://www.gnu.org/licenses/>.
 
-use v5.8.1;
-
 BEGIN {
 	require FindBin and import FindBin;
-	$ENV{'HCTHOME'} = $FindBin::Bin unless (-d $ENV{'HCTHOME'});
+	$ENV{'HCTHOME'} = PERL_VENDORLIB;
 	-d $ENV{'HCTHOME'} or die "\$HCTHOME not correct.\n";
 }
 
 use lib "$ENV{'HCTHOME'}";
-use lib "$ENV{'HCTHOME'}/src/perllib";
 
 use HCT;
 

hct-set-hct-path-for-moved-lang.patch:
 lang/hdl/cdl.pm            |   14 +++++++-------
 lang/hdl/cdl/lexer.pm      |    4 ++--
 lang/hdl/cdl/parser.pm     |    2 +-
 lang/hdl/verilog.pm        |   14 +++++++-------
 lang/hdl/verilog/lexer.pm  |    2 +-
 lang/hdl/verilog/parser.pm |    2 +-
 lang/hdl/vhdl.pm           |   14 +++++++-------
 lang/hdl/vhdl/lexer.pm     |    2 +-
 lang/hdl/vhdl/parser.pm    |    2 +-
 lang/init.pl               |    6 +++---
 src/perllib/HCT/Lang.pm    |    4 ++--
 11 files changed, 33 insertions(+), 33 deletions(-)

--- NEW FILE hct-set-hct-path-for-moved-lang.patch ---
diff -up hct-0.7.60/lang/hdl/cdl/lexer.pm.hct hct-0.7.60/lang/hdl/cdl/lexer.pm
--- hct-0.7.60/lang/hdl/cdl/lexer.pm.hct	2010-05-15 19:24:17.160287035 +0530
+++ hct-0.7.60/lang/hdl/cdl/lexer.pm	2010-05-15 19:24:44.980169323 +0530
@@ -1,4 +1,4 @@
-# lexer.pm (lang::hdl::cdl::lexer) - CDL Lexer.
+# lexer.pm (HCT::lang::hdl::cdl::lexer) - CDL Lexer.
 #
 # Copyright 2008, 2009
 # Slade Maurer
@@ -18,7 +18,7 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with HCT.  If not, see <http://www.gnu.org/licenses/>.
 
-package lang::hdl::cdl::lexer;
+package HCT::lang::hdl::cdl::lexer;
 
 use base 'HCT::Lang::LexerDriver';
 
diff -up hct-0.7.60/lang/hdl/cdl/parser.pm.hct hct-0.7.60/lang/hdl/cdl/parser.pm
--- hct-0.7.60/lang/hdl/cdl/parser.pm.hct	2010-05-15 19:24:20.145311903 +0530
+++ hct-0.7.60/lang/hdl/cdl/parser.pm	2010-05-15 19:25:39.455166180 +0530
@@ -12,7 +12,7 @@
 #
 ####################################################################
 
-package lang::hdl::cdl::parser;
+package HCT::lang::hdl::cdl::parser;
 use vars qw (@ISA);
 use strict;
 
diff -up hct-0.7.60/lang/hdl/cdl.pm.hct hct-0.7.60/lang/hdl/cdl.pm
--- hct-0.7.60/lang/hdl/cdl.pm.hct	2010-05-15 19:20:54.633185569 +0530
+++ hct-0.7.60/lang/hdl/cdl.pm	2010-05-15 19:22:37.581167659 +0530
@@ -1,4 +1,4 @@
-# cdl.pm (lang::hdl::cdl)
+# cdl.pm (HCT::lang::hdl::cdl)
 #
 # Copyright 2008, 2009
 # Slade Maurer
@@ -20,7 +20,7 @@
 
 =head1 NAME
 
-lang::hdl::cdl - Class of Cyclicity CDL language. 
+HCT::lang::hdl::cdl - Class of Cyclicity CDL language. 
 
 =head1 DESCRIPTION
 
@@ -31,7 +31,7 @@ http://cyclicity-cdl.sourceforge.net/
 
 =cut
 
-package lang::hdl::cdl;
+package HCT::lang::hdl::cdl;
 
 # Use base object for creating a new language.
 use base 'HCT::Lang::LangDriver';
@@ -39,8 +39,8 @@ use base 'HCT::Lang::LangDriver';
 use strict;
 use warnings;
 
-require lang::hdl::cdl::lexer;
-require lang::hdl::cdl::parser;
+require HCT::lang::hdl::cdl::lexer;
+require HCT::lang::hdl::cdl::parser;
 
 our @FILE_ASSOCIATIONS = ('cdl');
 
@@ -62,8 +62,8 @@ sub new
 	my $class = shift;
 	my $self = $class->SUPER::new (@_);
 
-	$self->parser (new lang::hdl::cdl::parser);
-	$self->lexer  (new lang::hdl::cdl::lexer);
+	$self->parser (new HCT::lang::hdl::cdl::parser);
+	$self->lexer  (new HCT::lang::hdl::cdl::lexer);
 
 	$self->output->metrics (\%OUTPUT_METRICS);
 	$self->output->levels (\%OUTPUT_LEVELS);
diff -up hct-0.7.60/lang/hdl/verilog/lexer.pm.hct hct-0.7.60/lang/hdl/verilog/lexer.pm
--- hct-0.7.60/lang/hdl/verilog/lexer.pm.hct	2010-05-15 19:26:04.493162648 +0530
+++ hct-0.7.60/lang/hdl/verilog/lexer.pm	2010-05-15 19:26:34.428168751 +0530
@@ -18,7 +18,7 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with HCT.  If not, see <http://www.gnu.org/licenses/>.
 
-package lang::hdl::verilog::lexer;
+package HCT::lang::hdl::verilog::lexer;
 
 use base 'HCT::Lang::LexerDriver';
 
diff -up hct-0.7.60/lang/hdl/verilog/parser.pm.hct hct-0.7.60/lang/hdl/verilog/parser.pm
--- hct-0.7.60/lang/hdl/verilog/parser.pm.hct	2010-05-15 19:26:08.089287302 +0530
+++ hct-0.7.60/lang/hdl/verilog/parser.pm	2010-05-15 19:26:50.238290953 +0530
@@ -12,7 +12,7 @@
 #
 ####################################################################
 
-package lang::hdl::verilog::parser;
+package HCT::lang::hdl::verilog::parser;
 use vars qw (@ISA);
 use strict;
 
diff -up hct-0.7.60/lang/hdl/verilog.pm.hct hct-0.7.60/lang/hdl/verilog.pm
--- hct-0.7.60/lang/hdl/verilog.pm.hct	2010-05-15 19:20:59.385161846 +0530
+++ hct-0.7.60/lang/hdl/verilog.pm	2010-05-15 19:23:22.966188749 +0530
@@ -1,4 +1,4 @@
-# verilog.pm (lang::hdl::verilog)
+# verilog.pm (HCT::lang::hdl::verilog)
 #
 # Copyright 2008, 2009
 # Slade Maurer
@@ -20,7 +20,7 @@
 
 =head1 NAME
 
-lang::hdl::verilog - Class of Verilog language. 
+HCT::lang::hdl::verilog - Class of Verilog language. 
 
 =head1 DESCRIPTION
 
@@ -39,7 +39,7 @@ L<http://www.externsoft.ch/download/veri
 
 =cut
 
-package lang::hdl::verilog;
+package HCT::lang::hdl::verilog;
 
 # Use base object for creating a new language.
 use base 'HCT::Lang::LangDriver';
@@ -47,8 +47,8 @@ use base 'HCT::Lang::LangDriver';
 use strict;
 use warnings;
 
-require lang::hdl::verilog::lexer;
-require lang::hdl::verilog::parser;
+require HCT::lang::hdl::verilog::lexer;
+require HCT::lang::hdl::verilog::parser;
 
 our @FILE_ASSOCIATIONS = ('v');
 
@@ -70,8 +70,8 @@ sub new
 	my $class = shift;
 	my $self = $class->SUPER::new (@_);
 
-	$self->parser (new lang::hdl::verilog::parser);
-	$self->lexer (new lang::hdl::verilog::lexer);
+	$self->parser (new HCT::lang::hdl::verilog::parser);
+	$self->lexer (new HCT::lang::hdl::verilog::lexer);
 
 	$self->output->metrics (\%OUTPUT_METRICS);
 	$self->output->levels (\%OUTPUT_LEVELS);
diff -up hct-0.7.60/lang/hdl/vhdl/lexer.pm.hct hct-0.7.60/lang/hdl/vhdl/lexer.pm
--- hct-0.7.60/lang/hdl/vhdl/lexer.pm.hct	2010-05-15 19:26:59.416313677 +0530
+++ hct-0.7.60/lang/hdl/vhdl/lexer.pm	2010-05-15 19:27:17.492163661 +0530
@@ -1,4 +1,4 @@
-package lang::hdl::vhdl::lexer;
+package HCT::lang::hdl::vhdl::lexer;
 
 use base 'HCT::Lang::LexerDriver';
 
diff -up hct-0.7.60/lang/hdl/vhdl/parser.pm.hct hct-0.7.60/lang/hdl/vhdl/parser.pm
--- hct-0.7.60/lang/hdl/vhdl/parser.pm.hct	2010-05-15 19:27:02.506162103 +0530
+++ hct-0.7.60/lang/hdl/vhdl/parser.pm	2010-05-15 19:27:36.632161539 +0530
@@ -12,7 +12,7 @@
 #
 ####################################################################
 
-package lang::hdl::vhdl::parser;
+package HCT::lang::hdl::vhdl::parser;
 use vars qw (@ISA);
 use strict;
 
diff -up hct-0.7.60/lang/hdl/vhdl.pm.hct hct-0.7.60/lang/hdl/vhdl.pm
--- hct-0.7.60/lang/hdl/vhdl.pm.hct	2010-05-15 19:21:04.081161427 +0530
+++ hct-0.7.60/lang/hdl/vhdl.pm	2010-05-15 19:24:09.765291668 +0530
@@ -1,4 +1,4 @@
-# vhdl.pm (lang::hdl::vhdl)
+# vhdl.pm (HCT::lang::hdl::vhdl)
 #
 # Copyright 2008, 2009
 # Slade Maurer
@@ -20,7 +20,7 @@
 
 =head1 NAME
 
-lang::hdl::vhdl - Class of VHDL language. 
+HCT::lang::hdl::vhdl - Class of VHDL language. 
 
 =head1 DESCRIPTION
 
@@ -40,7 +40,7 @@ with those expected. VHDL is a strongly 
 
 =cut
 
-package lang::hdl::vhdl;
+package HCT::lang::hdl::vhdl;
 
 # Use base object for creating a new language.
 use base 'HCT::Lang::LangDriver';
@@ -48,8 +48,8 @@ use base 'HCT::Lang::LangDriver';
 use strict;
 use warnings;
 
-require lang::hdl::vhdl::lexer;
-require lang::hdl::vhdl::parser;
+require HCT::lang::hdl::vhdl::lexer;
+require HCT::lang::hdl::vhdl::parser;
 
 our @FILE_ASSOCIATIONS = ('vhdl');
 
@@ -71,8 +71,8 @@ sub new
 	my $class = shift;
 	my $self = $class->SUPER::new (@_);
 
-	$self->parser (new lang::hdl::vhdl::parser);
-	$self->lexer (new lang::hdl::vhdl::lexer);
+	$self->parser (new HCT::lang::hdl::vhdl::parser);
+	$self->lexer (new HCT::lang::hdl::vhdl::lexer);
 
 	$self->output->metrics (\%OUTPUT_METRICS);
 	$self->output->levels  (\%OUTPUT_LEVELS);
diff -up hct-0.7.60/lang/init.pl.hct hct-0.7.60/lang/init.pl
--- hct-0.7.60/lang/init.pl.hct	2010-05-15 18:49:42.198184344 +0530
+++ hct-0.7.60/lang/init.pl	2010-05-15 18:50:01.868292676 +0530
@@ -2,7 +2,7 @@
 # WARNING: DO NOT EDIT THIS FILE, USE MAKEFILE INSTEAD.
 #          ANY CHANGE MADE HERE WILL BE LOST!
 
-HCT::Lang->load ('verilog','hdl/verilog.pm','lang::hdl::verilog');
-HCT::Lang->load ('cdl','hdl/cdl.pm','lang::hdl::cdl');
-HCT::Lang->load ('vhdl','hdl/vhdl.pm','lang::hdl::vhdl');
+HCT::Lang->load ('verilog','hdl/verilog.pm','HCT::lang::hdl::verilog');
+HCT::Lang->load ('cdl','hdl/cdl.pm','HCT::lang::hdl::cdl');
+HCT::Lang->load ('vhdl','hdl/vhdl.pm','HCT::lang::hdl::vhdl');
 1;
diff -up hct-0.7.60/src/perllib/HCT/Lang.pm.hct hct-0.7.60/src/perllib/HCT/Lang.pm
--- hct-0.7.60/src/perllib/HCT/Lang.pm.hct	2010-05-15 19:15:43.961162174 +0530
+++ hct-0.7.60/src/perllib/HCT/Lang.pm	2010-05-15 19:17:19.772190452 +0530
@@ -80,7 +80,7 @@ Contents path to the init-script file.
 
 =cut
 
-$INITSCRIPT = join '/' => ($ENV{HCTHOME}, 'lang', 'init.pl');
+$INITSCRIPT = join '/' => ($ENV{HCTHOME}, 'HCT', 'lang', 'init.pl');
 
 =head1 METHODS
 
@@ -181,7 +181,7 @@ sub load
 	my $class = shift;
 	my $name = shift;
 	my $unified_name = HCT::Lang->unify_name ($name);
-	my $file = join '/' => ($ENV{HCTHOME}, 'lang', shift);
+	my $file = join '/' => ($ENV{HCTHOME}, 'HCT', 'lang', shift);
 	my $package = shift;
 
 	# Checking the file...


--- NEW FILE hct.spec ---
Name:           hct
Version:        0.7.60
Release:        2%{?dist}
Summary:        A HDL complexity tool

Group:          Development/Libraries
License:        GPLv3 and LGPLv3
URL:            http://hct.sourceforge.net/
Source0:        http://downloads.sourceforge.net/hct/hct-%{version}.tar.gz
Source1:        Makefile.PL
Patch0:         hct-set-env-hcthome.patch
Patch1:         hct-set-hct-path-for-moved-lang.patch 
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires:       perl-Parse-Yapp

BuildArch:      noarch

BuildRequires:  dos2unix
BuildRequires:  perl(ExtUtils::MakeMaker)

%{?perl_default_filter}

%description 
The goal of the HCT is to generate scores that represent
the complexity of the constituent modules of large 
integrated circuit design projects – i.e. SOCs. The design's 
complexity scores are useful to verification
teams so as to efficiently focus resources based on the dynamic
complexity profile of a design. The scores are a useful tool to guide
HDL designer's re-factoring efforts.

%prep
%setup -q -n hct-%{version}
%patch0 -p1 -b .fix
%patch1 -p1 -b .hct

%{__sed} -e "s|PERL_VENDORLIB|'%{perl_vendorlib}'|" hct.pl > hct.ex
%{__chmod} +x hct.ex
touch -r hct.pl hct.ex
%{__mv} hct.ex hct

%{__cp} lang/hdl/vhdl/parser.pm parser.ex
dos2unix parser.ex
touch -r lang/hdl/vhdl/parser.pm parser.ex
%{__mv} parser.ex lang/hdl/vhdl/parser.pm

find . -depth \( -name 'config*'   -o  \
                 -name 'windows'   -o  \
                 -name 'Misc'      -o  \
                 -name 'Pod'       -o  \
                 -name '.svn'      -o  \
                 -name '*.svn'         \) \
  -exec %{__rm} -rf -- '{}' +

find . -depth \( -name 'Makefile*' -o   \
                 -name '*sh'       -o  \
                 -name '*.output'  -o  \
                 -name '*.yp'      -o  \
                 -name '*.y'       -o  \
                 -name '*.l'       -o  \
                 -name '*.hct'     -o  \
                 -name '.*pm'      -o  \
                 -name '\.\_*'     -o  \
                 -name '\#*'           \) \
  -exec %{__rm} -f -- '{}' +

%{__rm} -f src/perllib/HCT/Lang/YappParserTracer.pm

%{__chmod} -x src/perllib/HCT.pm
%{__chmod} -x lang/hdl/verilog.pm
%{__chmod} -x lang/README
%{__chmod} -x lang/hdl/cdl/lexer.pm
%{__chmod} -x lang/hdl/cdl.pm
%{__chmod} -x lang/hdl/vhdl/parser.pm
%{__chmod} -x lang/hdl/verilog/lexer.pm

%{__mkdir} lib
%{__mv} src/perllib/* lib/
%{__mv} lang lib/HCT
%{__rm} -rf src
%{__cp} %{SOURCE1} %{_builddir}/%{name}-%{version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test TEST_VERBOSE=1

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'

%{__rm} -f %{buildroot}/%{perl_vendorlib}/hct.pl

%{_fixperms} %{buildroot}/*

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc COPYING COPYING.LESSER README
%{perl_vendorlib}/*
%{_bindir}/hct
%{_mandir}/man3/*

%changelog
* Wed Jun 16 2010 Shakthi Kannan <shakthimaan [AT] gmail dot com> 0.7.60-2
- Appended slash in URL.
- Expanded IC as integrated circuits in description.
- Changed rm rf to use find syntax.
- Changed Makefile.PL to use hct instead of hct.pl.

* Thu May 13 2010 Shakthi Kannan <shakthimaan [AT] gmail dot com> 0.7.60-1
- Initial Fedora RPM version


--- NEW FILE import.log ---
hct-0_7_60-2_fc13:EL-5:hct-0.7.60-2.fc13.src.rpm:1276854179


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/hct/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	18 Jun 2010 09:39:07 -0000	1.1
+++ .cvsignore	18 Jun 2010 09:48:54 -0000	1.2
@@ -0,0 +1 @@
+hct-0.7.60.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/hct/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	18 Jun 2010 09:39:08 -0000	1.1
+++ sources	18 Jun 2010 09:48:54 -0000	1.2
@@ -0,0 +1 @@
+ffa0655c5883be004bc6997608ebd286  hct-0.7.60.tar.gz



More information about the scm-commits mailing list