App-Chart
view release on metacpan or search on metacpan
emacs/example.ses
emacs/tests.el
examples/intraday.pl
examples/print-prices.pl
inc/MyMakeMakerExtras.pm
inc/MyMakeMakerGettext.pm
lib/App/Chart.pm
lib/App/Chart/Annotation.pm
lib/App/Chart/Barchart.pm
lib/App/Chart/chart.bash
lib/App/Chart/chart.desktop
lib/App/Chart/chart.xpm
lib/App/Chart/Database.pm
lib/App/Chart/Database/Create.pm
lib/App/Chart/DBI.pm
lib/App/Chart/doc/chart-dema-3-weights.png
lib/App/Chart/doc/chart-dema-weights.png
lib/App/Chart/doc/chart-ema-2-weights.png
lib/App/Chart/doc/chart-ema-3-weights.png
lib/App/Chart/doc/chart-ema-weights.png
lib/App/Chart/doc/chart-epma-weights.png
t/WatchlistDialog.t
t/WatchlistModel.t
t/Yahoo.t
unused/CommSec.pm
unused/Float.pm
unused/NZX-old.pm
unused/t-tradingroom.pl
unused/TradingRoom.pm
unused/Yahoo-v7.pm
unused/YahooOld.pm
xt/0-desktop-file-validate.t
xt/0-exe-shebang.t
xt/0-file-is-part-of.t
xt/0-META-read.t
xt/0-no-debug-left-on.t
xt/0-Test-CheckChanges.t
xt/0-Test-DistManifest.t
xt/0-Test-Pod.t
xt/0-Test-YAML-Meta.t
xt/1-Test-Synopsis.t
xtools/my-check-copyright-years.sh
Makefile.PL view on Meta::CPAN
# 'Finance::Quote' => 0,
# } },
#------------------------------------------------------------------------------
package MY;
sub postamble {
my ($makemaker) = @_;
# FIXME: $(filter-out) is a GNU-ism ...
$makemaker->{'MyMakeMakerExtras_LINT_FILES'}
= '$(filter-out %/COPYING %.bash %.desktop %.html %.mo %.xpm, $(TO_INST_PM))'
. ' chart t/*.t devel/*.pl examples/*.pl';
$makemaker->{'PO_DOMAIN'} = 'App-Chart';
my $ret = MyMakeMakerGettext::postamble($makemaker);
$ret .= <<'HERE';
#------------------------------------------------------------------------------
# IndicatorModelGenerated.pm
lib/App/Chart/Gtk2/IndicatorModelGenerated.pm: devel/generate-indicator-model.pl lib/App/Chart/Series/Derived/*.pm
$(PERL) -I lib devel/generate-indicator-model.pl \
>lib/App/Chart/Gtk2/IndicatorModelGenerated.pm \
|| (rm -f lib/App/Chart/Gtk2/IndicatorModelGenerated.pm; false)
#------------------------------------------------------------------------------
# chart.desktop
# Just chucked under lib/App/Chart for now ...
# eg. /usr/share/applications, for .desktop files
# APPLICATIONSDIR = $(PREFIX)/share/applications
# doc_install :: chart.desktop
# install -d $(DESTDIR)$(APPLICATIONSDIR)
# install chart.desktop $(DESTDIR)$(APPLICATIONSDIR)
#------------------------------------------------------------------------------
# doc stuff
#
# doc/*.txt and doc/*.png are left in that directory so
# "M-x makeinfo-buffer" can be used during development. They're excluded
# from the dist by MANIFEST.SKIP. The *.png are copied to lib/App/Chart/doc
# for the dist.
SHA256 6ba593801cb88a44d766ef7ba2ec29da00be53beb5e7171b2271d452ec2c896a lib/App/Chart/Timebase/Months.pm
SHA256 2407ad00f1b30f74ba32486379c603936acaa9e86ab01ca2a815cab86f91825f lib/App/Chart/Timebase/Quarters.pm
SHA256 6524043c1516dd1f1fc5f8ec5538e36fb962d4e5e2ec159402d5587f8c6f103d lib/App/Chart/Timebase/Weeks.pm
SHA256 c315cb4dfbf85ec683ae71a64613f0fe4de73d0aae10f6142e3619cfdb803587 lib/App/Chart/Timebase/Years.pm
SHA256 68228c52ddf2be02c27ff5670c834a3aadad4c6f1723f837dbdfae54316e5aa8 lib/App/Chart/UserAgent.pm
SHA256 e577b6c2f81f22d43c922ede410157e66b4bee099c6405b35e05307004312a73 lib/App/Chart/Vacuum.pm
SHA256 aca36821283d43343cff418c5095dbc3b1eef00dca3d2c2564bf42d1cd5dad60 lib/App/Chart/Weblink.pm
SHA256 e6c15e64fad11aad88d30513d760c710467ef51388af60c1c1d6fedcbdb62f65 lib/App/Chart/Weblink/SandP.pm
SHA256 1ed76f966b50a15f496f1511d447d3a0c9d1bab81a05e2529c41717bd4832ce1 lib/App/Chart/Yahoo.pm
SHA256 c4f3d088dcb50077ae9870fa5bdaa848fe8815b4d7796359df6a008e4ab5d26a lib/App/Chart/chart.bash
SHA256 2588648a609334978bc5b9f4d299a81986d7b09c8430bb335a1ef5007d3773f9 lib/App/Chart/chart.desktop
SHA256 a8610b0977227aa29ee63ce5d90b5c4d9ababfaab8253aa6e7148b63d3d8841c lib/App/Chart/chart.xpm
SHA256 72c07d23d2d911d81cdd01a255835ae75e81cd868b64eb3d5bdb94f95a43084c lib/App/Chart/doc/chart-dema-3-weights.png
SHA256 1fc664e0ddc1c85770c832b50dc64b9d3265e15daf56971bb2e2345778846ca8 lib/App/Chart/doc/chart-dema-weights.png
SHA256 849331d1976e10fa135ad7334dc26a71da5c6b7bb31bb63eaa044fde9e44c514 lib/App/Chart/doc/chart-ema-2-weights.png
SHA256 ba690e3816c2b41e174b4d13489bf5d68bf10d6f9c8b64bda587b6567b7f6ae1 lib/App/Chart/doc/chart-ema-3-weights.png
SHA256 400d41056dd489cd7c95ec88f2accb85af7a07f55282ce11157b2eb36ee15ef5 lib/App/Chart/doc/chart-ema-weights.png
SHA256 65e5ce4e12e58398acdb27e66a6367e8a10a2d274dc08056c154a8ec0230f1b9 lib/App/Chart/doc/chart-epma-weights.png
SHA256 c9d2331e2dbe26183572915333631f39ec5bf32810f5faf7cbd2cfed03b79f1a lib/App/Chart/doc/chart-hull-weights.png
SHA256 6ee41671c5de493bac5f9325ac955e992a1c8be32ea6d052b16c162dba8140a7 lib/App/Chart/doc/chart-laguerre-weights.png
SHA256 e064a31178e49feaa19acf133644e74f3a5ddaf23f543c97029b81421ff123fc lib/App/Chart/doc/chart-rema-weights.png
SHA256 511ac10e3e1d51fd09680e8cc7f1e3de6594eb49d70876a0c2eddb012eae0b6a unused/NZX-old.pm
SHA256 2f4abf10405bbe15c6140f17f0875f6054febb63b0e78027d985858ad1eda47c unused/TradingRoom.pm
SHA256 f304640458c3eba63d09250b7a6a2c42566442573adfe69888208c59c313423c unused/Yahoo-v7.pm
SHA256 1f78114bbd088579d2ec58d4221908a9d2a50ec0b8228b3b884fcc7f478fa180 unused/YahooOld.pm
SHA256 fca4a298c6567e289bfb6d385ebf9c1e749ea84160c383d3d2debc8a832346ea unused/t-tradingroom.pl
SHA256 ef75312e02ddcfed7095de7eecebc6b7b863d56acd9b64142737ab7a5edb57e3 xt/0-META-read.t
SHA256 d1a5584b94be4ea06efcf8b8446f060ac11cda4d4a4ec02e03b54f2ee2008848 xt/0-Test-CheckChanges.t
SHA256 be42622f3841d04240cb1284e6b30e1af81cb0fcb56d29e853c70af656653488 xt/0-Test-DistManifest.t
SHA256 48b441e0c335e93946d913897e342662387788833229c5ba5fac57f0ff3d567c xt/0-Test-Pod.t
SHA256 d33b48c1986680cd934565250bd9e3879674dfe6aad69b1717ed76354a29ff44 xt/0-Test-YAML-Meta.t
SHA256 3bf4a1d420b60e022b3ebf10b9e369e5d03f393308f2da95cba663ddcab3d67e xt/0-desktop-file-validate.t
SHA256 2a45215859688affb1efc824fa060f3d73b8b6287d9010aef98c4bd308f82491 xt/0-exe-shebang.t
SHA256 75a73148514fad2715873d1e02a6fa8e3b9cc43f7aff97aaffac9721c086a319 xt/0-file-is-part-of.t
SHA256 7d9eacc605d8cb575b2869790e4b90d71dea6a97547c725825a49e1db036dee4 xt/0-no-debug-left-on.t
SHA256 358b4c096b2f0ddf3a292ad07cb82ad865255d2e2d34a4765aa0efec429da1f1 xt/1-Test-Synopsis.t
SHA256 479a5a0436204528727a74e5257b1c5c6adbebd65b21b6817a196b4e159e7549 xtools/my-check-copyright-years.sh
SHA256 e1a132f2761adf019b76629f466c23a4b151f6f9764951ae99f31c408cb38023 xtools/my-check-file-part-of.sh
SHA256 5d5bed5cd3332e9d386b2e6175f2e6fad1e87b33f263836327935bb44a1d999b xtools/my-check-spelling.sh
SHA256 0a4726b4ae47a369753e2b3c1b88e84c67f8554d529935a13fa78f1e0c727462 xtools/my-deb.sh
SHA256 02d7e3c4bd8846b27dbeeb736ce4386015b0cacc1917a03d12e9db15417acc62 xtools/my-diff-prev.sh
SHA256 0c9535621e35a944f06353ea646eff232edacb9faeb43b0b60d2642c6ffb535b xtools/my-kwalitee.sh
debian/rules view on Meta::CPAN
install/chart::
mkdir -p debian/chart/usr/share/omf/chart
cp doc/chart.omf debian/chart/usr/share/omf/chart
# chartprog.el, not installed by Makefile.PL yet
install/chart::
mkdir -p debian/chart/usr/share/emacs/site-lisp/chart
cp emacs/chartprog.el emacs/chartprog-loaddefs.el \
debian/chart/usr/share/emacs/site-lisp/chart
# chart.desktop installed under /usr/share/perl5/App/Chart for now,
# link it to the right place. Probably need desktop-file-utils 0.15-2 for
# its automatic trigger on .desktop files, but no need to "Depends:" that.
DEB_DH_LINK_chart += \
usr/share/perl5/App/Chart/chart.desktop \
usr/share/applications/chart.desktop
DEB_INSTALL_EXAMPLES_chart = examples/* emacs/example.ses
inc/MyMakeMakerExtras.pm view on Meta::CPAN
$post .= "\t-\$(PERLRUNINST) -e 'use "."Test::Vars; all_vars_ok()'\n";
# ------ pc: podcoverage ------
foreach (@{$my_options{'MyMakeMakerExtras_Pod_Coverage'}}) {
my $class = $_;
# the "." obscures it from MyExtractUse.pm
$post .= "\t-\$(PERLRUNINST) -e 'use "."Pod::Coverage package=>$class'\n";
}
# ------ pc: podlinkcheck ------
$post .= <<'HERE';
-podlinkcheck -I lib `ls $(LINT_FILES) | grep -v '\.bash$$|\.desktop$$\.png$$|\.xpm$$'`
HERE
# ------ pc: podchecker ------
# "podchecker -warnings -warnings" too much reporting every < and >
$post .= <<'HERE';
-podchecker `ls $(LINT_FILES) | grep -v '\.bash$$|\.desktop$$\.png$$|\.xpm$$'`
perlcritic $(LINT_FILES)
HERE
# ------ check-copyright-years ------
$post .= <<'HERE';
HERE
$post .= "\n";
$post .= ("MY_EXTRA_FILE_PART_OF = "
lib/App/Chart/chart.desktop view on Meta::CPAN
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License
# along with Chart. If not, see <http://www.gnu.org/licenses/>.
#
# Crib notes:
#
# Possible categories are at
# http://standards.freedesktop.org/menu-spec/latest/apa.html
#
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Name=Chart
GenericName=Stock Charting
Comment=Display stock and commodity charts and quotes.
Icon=chart
maybe/Build-PL view on Meta::CPAN
# 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:
xt/0-desktop-file-validate.t view on Meta::CPAN
#!/usr/bin/perl -w
# Copyright 2011, 2012, 2023 Kevin Ryde
# 0-desktop-file-validate.t is shared by several distributions.
#
# 0-desktop-file-validate.t is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 3, or (at your option) any
# later version.
#
# 0-desktop-file-validate.t is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this file. If not, see <http://www.gnu.org/licenses/>.
BEGIN { require 5 }
use strict;
use File::Spec;
xt/0-desktop-file-validate.t view on Meta::CPAN
use strict;
use Carp;
use Test::More;
use ExtUtils::Manifest;
sub skip_reason {
### skip_reason() ...
eval { require IPC::Run; 1 }
or return 'IPC::Run not available';
### try desktop-file-validate ...
if (IPC::Run::run (['desktop-file-validate','--help'],
'<', File::Spec->devnull,
'>', \my $output,
'2>&1')) {
return undef;
}
my $skip = "desktop-file-validate program not available";
return $skip;
}
sub desktop_file_validate {
my ($filename) = @_;
my $output;
if (IPC::Run::run(['desktop-file-validate',
'--no-warn-deprecated',
$filename],
'>', \$output,
'2>&1')) {
return undef;
}
return "desktop-file-validate error\n$output";
}
sub check_all_desktop_files {
### check_all_desktop_files() ...
SKIP: {
my $skip = skip_reason();
if (defined $skip) {
skip $skip, 1;
}
my $manifest = ExtUtils::Manifest::maniread();
my @filenames = grep /\.desktop$/, keys %$manifest;
### @filenames
my $bad = 0;
foreach my $filename (@filenames) {
my $reason = desktop_file_validate($filename);
if (defined $reason) {
diag "$filename: $reason";
$bad++;
}
}
is ($bad, 0, 'desktop-file-validate failures');
}
}
}
use Test::More tests => 1;
Test::DesktopFile::Validate::check_all_desktop_files();
exit 0;
__END__
# my $devnull = File::Spec->devnull;
# my $wait = do {
# local *STDOUT;
# local *STDERR;
# if (! open STDOUT, ">$devnull") {
# die "Oops, cannot open $devnull: $!";
# }
# if (! open STDERR, ">$devnull") {
# die "Oops, cannot open $devnull: $!";
# }
# system 'desktop-file-validate --help';
# };
#
# if ($wait == 0) {
# return undef;
# }
# return 'desktop-file-validate program not available';
xtools/my-deb.sh view on Meta::CPAN
if test "$DISTVNAME" != "$DEBNAME-$VERSION"; then
mv -T $DISTVNAME $DEBNAME-$VERSION
fi
dpkg-source -b $DEBNAME-$VERSION ${DEBNAME}_$VERSION.orig.tar.gz
rm -rf $DEBNAME-$VERSION
#------------------------------------------------------------------------------
# lintian .deb and source
lintian -I -i \
--suppress-tags new-package-should-close-itp-bug,desktop-entry-contains-encoding-key,command-in-menu-file-and-desktop-file,emacsen-common-without-dh-elpa,bugs-field-does-not-refer-to-debian-infrastructure \
${DEBNAME}_${VERSION}*_$DPKG_ARCH.deb
lintian -I -i \
--suppress-tags maintainer-upload-has-incorrect-version-number,changelog-should-mention-nmu,empty-debian-diff,debian-rules-uses-deprecated-makefile,testsuite-autopkgtest-missing *.dsc
exit 0
xtools/my-pc.sh view on Meta::CPAN
fi
done
# perl -e 'use Test::Vars; all_vars_ok()'
# MyMakeMakerExtras_Pod_Coverage
perl -e 'use Pod::Coverage package => $class'
podlinkcheck -I lib `ls $LINT_FILES | grep -v '\.bash$$|\.desktop$$\.png$$|\.xpm$$'`
podchecker -nowarnings `ls $LINT_FILES | grep -v '\.bash$$|\.desktop$$\.png$$|\.xpm$$'`
perlcritic $LINT_FILES
( run in 0.905 second using v1.01-cache-2.11-cpan-299005ec8e3 )