summaryrefslogtreecommitdiffstats
path: root/Build.PL
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 11:26:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 11:26:17 +0000
commit5df6c2aefebe3d2abcc939a88e294876d59f03ca (patch)
tree63fb332a0f21ddb91cb789c80cf64e134d373463 /Build.PL
parentInitial commit. (diff)
downloadpo4a-5df6c2aefebe3d2abcc939a88e294876d59f03ca.tar.xz
po4a-5df6c2aefebe3d2abcc939a88e294876d59f03ca.zip
Adding upstream version 0.72.upstream/0.72
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Build.PL')
-rw-r--r--Build.PL47
1 files changed, 47 insertions, 0 deletions
diff --git a/Build.PL b/Build.PL
new file mode 100644
index 0000000..ed815a4
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,47 @@
+# Build.PL -- script in charge of building the po4a distribution when releasing
+#
+# This program is free software; you may redistribute it and/or modify it
+# under the terms of GPL v2.0 or later (see COPYING).
+
+#!/usr/bin/perl
+
+use lib q(.);
+use Po4aBuilder;
+
+my $build = Po4aBuilder->new
+ ( module_name => 'po4a',
+ license => 'gpl',
+ dist_version_from => 'lib/Locale/Po4a/TransTractor.pm', # finds $VERSION
+ requires => { 'Pod::Parser' => 0 }, # Used for building po4a itself
+ configure_requires => { 'Module::Build' => 0.42 },
+ recommends => {'Text::WrapI18N' => 0, # Only used for wrapping long
+ # error/wraning lines.
+
+ 'Term::ReadKey' => 0, # Needed to detect terminal
+ # width. Not needed if you
+ # don't have Text::WrapI18N.
+
+ 'SGMLS' => 0, # Needed for the Sgml module.
+
+ 'Unicode::GCString' => 0, # Used by the Text module (asciidoc)
+
+ 'Locale::gettext' => '1.01', # Only used for
+ # translating the
+ # po4a's messages.
+ 'YAML::Tiny' => 0, # Used by the Yaml module
+ },
+ test_requires => {'SGMLS' => 0, # Needed for the Sgml module.
+ 'Unicode::GCString' => 0, # Used by the Text module (asciidoc)
+ },
+ script_files => ['po4a-gettextize', 'po4a-updatepo',
+ 'po4a-translate', 'po4a-normalize', 'po4a', 'msguntypot',
+ 'scripts/po4a-display-man', 'scripts/po4a-display-pod'],
+ add_to_cleanup => ['t/tmp','po/bin/*.gmo', 'blib', '_build'],
+ dist_abstract => 'Maintain the translations of your documentation with ease (PO for anything)',
+ dist_author => ['Martin Quinson (mquinson#debian.org)',
+ 'Denis Barbier <barbier@linuxfr.org>',
+ 'Nicolas François <nicolas.francois@centraliens.net>',
+ 'Neil Williams <linux@codehelp.co.uk>']
+ );
+
+$build->create_build_script;