App-Chart

 view release on metacpan or  search on metacpan

maybe/Build-PL  view on Meta::CPAN

#   my $inherited = $self->SUPER::special_targets(@_);
#   $inherited =~ s/^\.SUFFIXES *:/$& .mo .po/
#     or die "Oops, couldn't add to .SUFFIXES";
# #   $inherited =~ s/^\.PHONY *:/$& mo pot/
# #     or die "Oops, couldn't add to .PHONY";
#   return $inherited;
# }

# # $self is a MakeMaker object, return a string of rules for the po/mo files
# sub generate_po_rules {
#   my ($self) = @_;
#   #   use Data::Dumper;
#   #   print Dumper($self);
#   my $ret = '';
# 
#   my @pmfiles = grep {/\.pm$/} keys %{$self->{'PM'}};
#   my $pmfiles_list = $self->wraplist (@pmfiles);
#   $ret .= "\
# # basically all the .pm's from \$(TO_INST_PM)
# PO_FILES = chart $pmfiles_list
# ";
# 
#   my @mofiles;
#   my @pofiles;
#   foreach my $pofile (glob('po/*.po')) {
#     my $lang = File::Basename::basename ($pofile, '.po');
#     my $mofile = "lib/LocaleData/$lang/LC_MESSAGES/AppChart.mo";
#     push @pofiles, $pofile;
#     push @mofiles, $mofile;
# 
#     $ret .= "\
# $pofile: po/AppChart.pot
# 	msgmerge --verbose --update \$@ \$<
# 	touch \$@
# $mofile: $pofile
# 	msgfmt --check --statistics --verbose -o \$@ \$<
# ";
#   }
#   $ret = "mo: " . join(' ',@mofiles) . "\n" . $ret;
#   $ret = "po: " . join(' ',@pofiles) . "\n" . $ret;
# 
#   return $ret;
# }
# 
# sub MY::postamble {
#   my ($self) = @_;
#   my $ret = <<'MAKE_FRAG';
# 
# #------------------------------------------------------------------------------
# # message translation stuff
# 
# pot: po/AppChart.pot
# 
# po/AppChart.pot: po/header.pot $(PO_FILES)
# 	xgettext \
# 	  --omit-header \
# 	  --language=Perl \
# 	  --keyword=__ \
# 	  --add-comments=TRANSLATORS: \
# 	  --width=78 \
# 	  --msgid-bugs-address='Kevin Ryde <user42_kevin@yahoo.com.au>' \
# 	  --copyright-holder="Kevin Ryde" \
# 	  --default-domain=AppChart \
# 	  --package-name=Chart \
# 	  --package-version='$(VERSION)' \
# 	  --output=AppChart.tmp \
# 	  --from-code=utf-8 \
# 	  --keyword=__ \
# 	  --keyword=__x \
# 	  $(PO_FILES)
# 	cat po/header.pot AppChart.tmp >$@
# 	rm AppChart.tmp
# 
# MAKE_FRAG
#   $ret .= generate_po_rules($self);
#   $ret .= <<'MAKE_FRAG';
# 
# 
# #------------------------------------------------------------------------------
# # doc stuff
# 
# doc/chart.info: doc/chart.texi doc/version.texi
# 	cd doc; makeinfo chart.texi
# 
# doc/version.texi: Makefile
# 	echo '@c  Generated by top-level Makefile, DO NOT EDIT' >doc/version.texi
# 	echo '@set VERSION $(VERSION)' >>doc/version.texi
# 
# lib/App/Chart/chart.html: doc/chart.texi doc/version.texi
# 	cd doc; makeinfo --html --no-split --output=../$@ chart.texi
# 
# doc: doc/chart.info lib/App/Chart/chart.html
# 
# 
# #------------------------------------------------------------------------------
# # development stuff
# 
# # filter-out is a GNU-ism
# LINT_FILES = $(filter-out %/COPYING %.desktop %.html %.mo, $(TO_INST_PM))\
#              t/*.t devel/*.pl examples/*.pl
# lint:
# 	for i in $(LINT_FILES); do \
# 	  perl -I lib -MO=Lint,no-context,no-regexp-variables $$i; \
# 	done
# 	podchecker $(LINT_FILES)
# pc:
# 	perlcritic $(LINT_FILES)
# 
# myman:
# 	mv MANIFEST MANIFEST.old
# 	touch SIGNATURE
# 	(make manifest 2>&1; diff -u MANIFEST.old MANIFEST) |less
# 
# # find files in the dist with mod times this year, but without this year in
# # the copyright line
# copyright-years-check: chart-$(VERSION).tar.gz
# 	year=`date +%Y`; \
# 	tar tvfz chart-$(VERSION).tar.gz \
# 	| grep $$year- \
# 	| sed 's:^.*chart-$(VERSION)/::' \
# 	| (result=0; \



( run in 1.051 second using v1.01-cache-2.11-cpan-5735350b133 )