r1066 - in packages/libchemistry-elements-perl/trunk: . debian

Carlo Segre segre-guest@costa.debian.org
Thu, 26 May 2005 03:33:30 +0000


Author: segre-guest
Date: 2005-05-26 03:33:30 +0000 (Thu, 26 May 2005)
New Revision: 1066

Added:
   packages/libchemistry-elements-perl/trunk/META.yml
   packages/libchemistry-elements-perl/trunk/t/
Modified:
   packages/libchemistry-elements-perl/trunk/Elements.pm
   packages/libchemistry-elements-perl/trunk/MANIFEST
   packages/libchemistry-elements-perl/trunk/Makefile.PL
   packages/libchemistry-elements-perl/trunk/debian/changelog
   packages/libchemistry-elements-perl/trunk/debian/copyright
Log:
New upstream, test directory and copyright added


Modified: packages/libchemistry-elements-perl/trunk/Elements.pm
===================================================================
--- packages/libchemistry-elements-perl/trunk/Elements.pm	2005-05-26 03:22:22 UTC (rev 1065)
+++ packages/libchemistry-elements-perl/trunk/Elements.pm	2005-05-26 03:33:30 UTC (rev 1066)
@@ -10,10 +10,8 @@
 @ISA       = qw(Exporter);
 @EXPORT_OK = qw(get_Z get_symbol get_name);
 @EXPORT    = qw();
-$VERSION   = 0.91;
+$VERSION   = 1.01;
 
-sub Version { return $VERSION };
-
 use subs qw(_get_name_by_Z
             _get_symbol_by_Z
             _get_name_by_symbol
@@ -671,12 +669,37 @@
 
    $name          = $element->name; # $name is 'Gold'
 
-=head1 EXPORTABLE FUNCTIONS
+=head2 Instance methods
 
+=over 4
+
+=item new( Z | SYMBOL | NAME )
+
+Create a new instance from either the atomic number, symbol, or
+element name.
+
+=item Z
+
+Return the atomic number of the element.
+
+=item name
+
+Return the name of the element.
+
+=item symbol
+
+Return the symbol of the element.
+
+=back
+
+=head2 Exportable functions
+
 These functions can be exported.  They are not exported by default.
 
-=head2 get_symbol()
+=over 4
 
+=item get_symbol()
+
 This function attempts to return the symbol of the chemical element given
 either the chemical symbol, element name, or atmoic number.  The
 function does its best to interpret inconsistent input data (e.g.
@@ -705,7 +728,7 @@
 You can modify the symbols (e.g. you work for UCal ;) ) by changing
 the data at the end of this module.
 
-=head2 get_name()
+=item get_name()
 
 This function attempts to return the name the chemical element given
 either the chemical symbol, element name, or atomic number.  The
@@ -733,7 +756,7 @@
 You can modify the names (e.g. for different languages) by changing
 the data at the end of this module.
 
-=head2 get_Z()
+=item get_Z()
 
 This function attempts to return the atomic number of the chemical
 element given either the chemical symbol, element name, or atomic
@@ -759,6 +782,8 @@
 		#stuff
 		}
 
+=back
+
 The package constructor automatically finds the largest defined
 atomic number (in case you add your own heavy elements).
 
@@ -794,8 +819,14 @@
 anyone should make changes to the data, i would like to get a copy
 so that i can include it in future releases :)
 
+=head1 COPYRIGHT
+
+Copright 2005, brian d foy
+
+You can use this module under the same terms as Perl itself.
+
 =head1 AUTHOR
 
-brian d foy <comdog@panix.com>
+brian d foy, CC< <bdfoy@cpan.org> >>
 
 =cut

Modified: packages/libchemistry-elements-perl/trunk/MANIFEST
===================================================================
--- packages/libchemistry-elements-perl/trunk/MANIFEST	2005-05-26 03:22:22 UTC (rev 1065)
+++ packages/libchemistry-elements-perl/trunk/MANIFEST	2005-05-26 03:33:30 UTC (rev 1066)
@@ -1,6 +1,11 @@
 Changes
+chart_test
+Elements.pm
+Makefile.PL
 MANIFEST
-Makefile.PL
-Elements.pm
+META.yml			Module meta-data (added by MakeMaker)
 README
-chart_test
+t/compile.t
+t/pod.t
+t/pod_coverage.t
+t/test_manifest

Copied: packages/libchemistry-elements-perl/trunk/META.yml (from rev 1065, packages/libchemistry-elements-perl/branches/upstream/current/META.yml)

Modified: packages/libchemistry-elements-perl/trunk/Makefile.PL
===================================================================
--- packages/libchemistry-elements-perl/trunk/Makefile.PL	2005-05-26 03:22:22 UTC (rev 1065)
+++ packages/libchemistry-elements-perl/trunk/Makefile.PL	2005-05-26 03:33:30 UTC (rev 1066)
@@ -1,7 +1,20 @@
+# $Id: Makefile.PL,v 1.2 2005/05/25 00:20:37 comdog Exp $
 use ExtUtils::MakeMaker;
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
+
+eval "use Test::Manifest";
+
 WriteMakefile(
-    'NAME'	=> 'Chemistry::Elements',
-    'VERSION_FROM' => 'Elements.pm', # finds $VERSION
-);
+	'NAME'	       => 'Chemistry::Elements',
+	'VERSION_FROM' => 'Elements.pm',
+
+	'PM'           => {
+		'Elements.pm'         => '$(INST_LIBDIR)/Elements.pm',
+		},
+
+	'MAN3PODS'     => {
+		'Elements.pm' => '$(INST_MAN3DIR)/Chemistry::Elements.3',
+		},
+
+	clean  => { FILES    => q|Chemistry-Elements-*| },
+
+	);

Modified: packages/libchemistry-elements-perl/trunk/debian/changelog
===================================================================
--- packages/libchemistry-elements-perl/trunk/debian/changelog	2005-05-26 03:22:22 UTC (rev 1065)
+++ packages/libchemistry-elements-perl/trunk/debian/changelog	2005-05-26 03:33:30 UTC (rev 1066)
@@ -1,3 +1,10 @@
+libchemistry-elements-perl (1.01-1) unstable; urgency=low
+
+  * New upstream release.
+  * Copyright statement added upstream.
+
+ -- Carlo Segre <segre@iit.edu>  Wed, 25 May 2005 22:22:31 -0500
+
 libchemistry-elements-perl (0.91-2) unstable; urgency=low
 
   * Correct dependencies on perl.

Modified: packages/libchemistry-elements-perl/trunk/debian/copyright
===================================================================
--- packages/libchemistry-elements-perl/trunk/debian/copyright	2005-05-26 03:22:22 UTC (rev 1065)
+++ packages/libchemistry-elements-perl/trunk/debian/copyright	2005-05-26 03:33:30 UTC (rev 1066)
@@ -7,22 +7,7 @@
 
 Copyright 1997, brian d foy, All rights reserved
 
-This software is available under the same terms as perl as indicated in 
-the following message:
+This software is available under the same terms as perl.
 
-------
-Date: Tue, 24 May 2005 18:15:40 -0500
-From: brian d foy <brian.d.foy@gmail.com>
-To: Carlo Segre <segre@iit.edu>
-Subject: Re: license of Chemistry::Elements
-
-> I would like to get it into the Debian archive but there is no explicit
-> copyright in Chemistry::Elements.  What copyright did you intend, simply
-> the same as Perl itself?
-
-It's the same as Perl itself. If you need me to update the package
-with an explicit license or sign some paper just let me know. :)
-------
-
 On Debian GNU/Linux systems, the complete text of these licenses can be found
 in /usr/share/common-licenses/GPL and /usr/share/common-licenses/Artistic.

Copied: packages/libchemistry-elements-perl/trunk/t (from rev 1065, packages/libchemistry-elements-perl/branches/upstream/current/t)