Skip to content

Commit

Permalink
Improve gettext-extract to work without fuss.
Browse files Browse the repository at this point in the history
Use bundled carton to install required module separately,
using a minimal cpanfile (and Debian squeeze generated snapshot).

Fixes #1202.
  • Loading branch information
dracos committed Sep 4, 2015
1 parent c507dbe commit f2c893e
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/gettext-extract
Expand Up @@ -9,6 +9,11 @@

cd "$(dirname $(readlink -f $BASH_SOURCE))/.."

# Install required code if needed
vendor/bin/carton install --path local-gettext --cpanfile locale/cpanfile --deployment
export PATH="local-gettext/bin:$PATH"

This comment has been minimized.

Copy link
@davea

davea Sep 7, 2015

Member

Can this not go in local-carton or would that cause problems?

This comment has been minimized.

Copy link
@dracos

dracos Sep 7, 2015

Author Member

It would probably work fine (that's how I installed it in the past), but I thought it might as well be in its own little environment, you don't gain anything having it together, plus I imagine there's the potential for something… :)

export PERL5LIB="local-gettext/lib/perl5:local/lib/perl5"

# File to write to, clear it to start with
PO=locale/FixMyStreet.po
rm -f $PO
Expand Down
1 change: 1 addition & 0 deletions locale/cpanfile
@@ -0,0 +1 @@
requires 'Locale::Maketext::Lexicon';
88 changes: 88 additions & 0 deletions locale/cpanfile.snapshot
@@ -0,0 +1,88 @@
# carton snapshot format: version 1.0
DISTRIBUTIONS
ExtUtils-MakeMaker-7.06
pathname: B/BI/BINGOS/ExtUtils-MakeMaker-7.06.tar.gz
provides:
ExtUtils::Command 7.06
ExtUtils::Command::MM 7.06
ExtUtils::Liblist 7.06
ExtUtils::Liblist::Kid 7.06
ExtUtils::MM 7.06
ExtUtils::MM_AIX 7.06
ExtUtils::MM_Any 7.06
ExtUtils::MM_BeOS 7.06
ExtUtils::MM_Cygwin 7.06
ExtUtils::MM_DOS 7.06
ExtUtils::MM_Darwin 7.06
ExtUtils::MM_MacOS 7.06
ExtUtils::MM_NW5 7.06
ExtUtils::MM_OS2 7.06
ExtUtils::MM_QNX 7.06
ExtUtils::MM_UWIN 7.06
ExtUtils::MM_Unix 7.06
ExtUtils::MM_VMS 7.06
ExtUtils::MM_VOS 7.06
ExtUtils::MM_Win32 7.06
ExtUtils::MM_Win95 7.06
ExtUtils::MY 7.06
ExtUtils::MakeMaker 7.06
ExtUtils::MakeMaker::Config 7.06
ExtUtils::MakeMaker::Locale 7.06
ExtUtils::MakeMaker::_version 7.06
ExtUtils::MakeMaker::charstar 7.06
ExtUtils::MakeMaker::version 7.06
ExtUtils::MakeMaker::version::regex 7.06
ExtUtils::MakeMaker::version::vpp 7.06
ExtUtils::Mkbootstrap 7.06
ExtUtils::Mksymlists 7.06
ExtUtils::testlib 7.06
MM 7.06
MY 7.06
requirements:
Data::Dumper 0
DirHandle 0
Encode 0
ExtUtils::MakeMaker 0
File::Basename 0
File::Spec 0.8
Pod::Man 0
perl 5.006
Locale-Maketext-1.26
pathname: T/TO/TODDR/Locale-Maketext-1.26.tar.gz
provides:
Locale::Maketext 1.26
Locale::Maketext::Guts 1.20
Locale::Maketext::GutsLoader 1.20
requirements:
ExtUtils::MakeMaker 0
I18N::LangTags 0.31
I18N::LangTags::Detect 0
Test::More 0
Locale-Maketext-Lexicon-1.00
pathname: D/DR/DRTECH/Locale-Maketext-Lexicon-1.00.tar.gz
provides:
Locale::Maketext::Extract 1.00
Locale::Maketext::Extract::Plugin::Base 1.00
Locale::Maketext::Extract::Plugin::FormFu 1.00
Locale::Maketext::Extract::Plugin::FormFu::Extractor 1.00
Locale::Maketext::Extract::Plugin::Generic 1.00
Locale::Maketext::Extract::Plugin::Haml 1.00
Locale::Maketext::Extract::Plugin::Mason 1.00
Locale::Maketext::Extract::Plugin::PPI 1.00
Locale::Maketext::Extract::Plugin::Perl 1.00
Locale::Maketext::Extract::Plugin::TT2 1.00
Locale::Maketext::Extract::Plugin::TT2::Directive 1.00
Locale::Maketext::Extract::Plugin::TT2::Parser 1.00
Locale::Maketext::Extract::Plugin::TextTemplate 1.00
Locale::Maketext::Extract::Plugin::TextTemplate::Parser 1.00
Locale::Maketext::Extract::Plugin::YAML 1.00
Locale::Maketext::Extract::Plugin::YAML::Extractor 1.00
Locale::Maketext::Extract::Run 1.00
Locale::Maketext::Lexicon 1.00
Locale::Maketext::Lexicon::Auto 1.00
Locale::Maketext::Lexicon::Gettext 1.00
Locale::Maketext::Lexicon::Msgcat 1.00
Locale::Maketext::Lexicon::Tie 1.00
requirements:
ExtUtils::MakeMaker 6.30
Locale::Maketext 1.17

0 comments on commit f2c893e

Please sign in to comment.