diff --git a/projects/freedesktop.org/intltool/package.yml b/projects/freedesktop.org/intltool/package.yml new file mode 100644 index 00000000..6c850168 --- /dev/null +++ b/projects/freedesktop.org/intltool/package.yml @@ -0,0 +1,53 @@ +distributable: + url: https://launchpad.net/intltool/trunk/{{version}}/+download/intltool-{{version}}.tar.gz + strip-components: 1 + +versions: + url: https://launchpad.net/intltool/+download + match: /intltool-\d+\.\d+\.\d+.tar.gz/ + strip: + - /^intltool-/ + - /\.tar\.gz$/ + +dependencies: + perl.org: ~5 + linux: + libexpat.github.io: ^2.6 + +runtime: + env: + PERL5LIB: ${{prefix}}/lib/perl5:{{prefix}}/libexec/lib/perl5:$PERL5LIB + +build: + dependencies: + cpanmin.us: '*' + script: + - cpanm -l {{prefix}} XML::Parser --force + - ./configure $ARGS + - make --jobs {{hw.concurrency}} install + env: + PERL5LIB: ${{prefix}}/lib/perl5:{{prefix}}/libexec/lib/perl5:$PERL5LIB + ARGS: + - --disable-debug + - --disable-dependency-tracking + - --disable-silent-rules + - --prefix={{prefix}} + - --libdir={{prefix}}/lib + +provides: + - bin/intltool-extract + - bin/intltool-merge + - bin/intltool-prepare + - bin/intltool-update + - bin/intltoolize + - bin/lwp-download + - bin/lwp-dump + - bin/lwp-mirror + - bin/lwp-request + +test: + - intltool-extract --help + - intltoolize --version | grep {{version}} + - intltool-extract --type=gettext/xml test.xml + - cat test.xml.h | grep 'This comment is not ignored' + - cat test.xml.h | grep 'This comment is ignored' || true \ No newline at end of file diff --git a/projects/freedesktop.org/intltool/test.xml b/projects/freedesktop.org/intltool/test.xml new file mode 100644 index 00000000..1fc5dd5f --- /dev/null +++ b/projects/freedesktop.org/intltool/test.xml @@ -0,0 +1,32 @@ + + + + + + + +<_translate>First thing to translate + + +<_translate>Something to translate + + <_translate>Final thing to translate + +<_translate>This doesn't have a comment for translators + + +<_translate>Dum-dee-dum + +some content + + +more content + + +<_translate _markedattribute="attribute value">even more content + + +