debian/0000755000000000000000000000000011615067035007172 5ustar debian/changelog0000644000000000000000000000142411615067035011045 0ustar libchemistry-formula-perl (3.0.1-1) unstable; urgency=low * New upstream release * Upgrade to Source-Format 3.0 (quilt) * Add build-indep and build-arch targets * Upgrade to Standards-Version 3.9.2 -- Carlo Segre Sat, 30 Jul 2011 15:47:16 -0500 libchemistry-formula-perl (1.0.1-2) unstable; urgency=low * Add Replaces stanza to ease upgrade from old horae -- Carlo Segre Tue, 03 Mar 2009 09:19:58 -0600 libchemistry-formula-perl (1.0.1-1) unstable; urgency=low * Initial release (Closes: #517943) -- Carlo Segre Mon, 02 Mar 2009 20:44:26 -0600 libchemistry-formula-perl (1.0.0-1) unstable; urgency=low * Initial unofficial package -- Carlo Segre Sat, 26 Jul 2008 18:19:32 -0500 debian/compat0000644000000000000000000000000211615066126010370 0ustar 7 debian/dirs0000644000000000000000000000001211615066126010047 0ustar usr/share debian/copyright0000644000000000000000000000107311615066126011126 0ustar This package was debianized by Carlo Segre on Sat, 26 Jul 2008 18:19:32 -0500. It was downloaded from http://cars9.uchicago.edu/svn/libperlxray Upstream Author: Bruce Ravel Copyright (c) 2001-2008 Bruce Ravel License: All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself, see `/usr/share/common-licenses/Artistic'. The Debian packaging is (C) 2008, Carlo Segre and is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000162311615066430010575 0ustar Source: libchemistry-formula-perl Section: perl Priority: optional Build-Depends: debhelper (>= 7) Build-Depends-Indep: perl (>= 5.8.8), libchemistry-elements-perl, libregexp-common-perl, libreadonly-perl Maintainer: Carlo Segre Standards-Version: 3.9.2 Homepage: http://cars9.uchicago.edu/~ravel/software/ Package: libchemistry-formula-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, libchemistry-elements-perl, libregexp-common-perl, libreadonly-perl Replaces: horae (<< 067) Homepage: http://cars9.uchicago.edu/~ravel/software/ Description: enumerate elements in a chemical formula This module provides a function which parses a string containing a chemical formula and returns the number of each element in the string. It can handle nested parentheses and square brackets and correctly computes stoichiometry given numbers outside the (possibly nested) parentheses. debian/rules0000755000000000000000000000347111615066714010262 0ustar #!/usr/bin/make -f # This debian/rules file is provided as a template for perl packages # using the Module::Build system. It was written by Carlo Segre and # may be freely used. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # If set to a true value then MakeMaker's prompt function will # always return the default without waiting for user input. export PERL_MM_USE_DEFAULT=1 PACKAGE=$(shell dh_listpackages) ifndef PERL PERL = /usr/bin/perl endif TMP = $(CURDIR)/debian/$(PACKAGE) build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir # Generate the Build script and run it $(PERL) Build.PL destdir=$(TMP) ./Build build ./Build test touch $@ # Use "clean: unpatch" if patches required clean: dh_testdir dh_testroot dh_clean build-stamp install-stamp # Clean up all directories and the Build script [ ! -f Build ] || ./Build realclean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot dh_prep # Install package in temporary directory ./Build install --installdirs vendor # remove .packlist rm -rf $(TMP)/usr/lib/perl5/auto # remove empty dirs if they exist [ ! -d $(TMP)/usr/bin ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(TMP)/usr/bin [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(TMP)/usr/lib/perl5 touch $@ binary-arch: # We have nothing to do here for an architecture-dependent package binary-indep: build install dh_testdir dh_testroot dh_installexamples dh_installdocs dh_installchangelogs dh_perl dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary debian/source/0000755000000000000000000000000011615066313010470 5ustar debian/source/format0000644000000000000000000000001411615066313011676 0ustar 3.0 (quilt)