diff options
author | ijliao <ijliao@FreeBSD.org> | 2004-02-03 06:37:57 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2004-02-03 06:37:57 +0000 |
commit | 2e6c96b0c016b01874738cf8dbd07470ca42bf77 (patch) | |
tree | 05d040e44e059b4ea66f142f8969e6d0fb8efa51 /devel/gettext-lint | |
parent | a0269d6810e2e7820c26469ac190763f479e2021 (diff) | |
download | FreeBSD-ports-2e6c96b0c016b01874738cf8dbd07470ca42bf77.zip FreeBSD-ports-2e6c96b0c016b01874738cf8dbd07470ca42bf77.tar.gz |
add gettext-lint
Check the validity and consistency of PO and POT files
Diffstat (limited to 'devel/gettext-lint')
-rw-r--r-- | devel/gettext-lint/Makefile | 28 | ||||
-rw-r--r-- | devel/gettext-lint/distinfo | 1 | ||||
-rw-r--r-- | devel/gettext-lint/files/patch-etc:Makefile.in | 10 | ||||
-rw-r--r-- | devel/gettext-lint/files/patch-src:Makefile.in | 14 | ||||
-rw-r--r-- | devel/gettext-lint/pkg-descr | 17 | ||||
-rw-r--r-- | devel/gettext-lint/pkg-plist | 21 |
6 files changed, 91 insertions, 0 deletions
diff --git a/devel/gettext-lint/Makefile b/devel/gettext-lint/Makefile new file mode 100644 index 0000000..1f75817 --- /dev/null +++ b/devel/gettext-lint/Makefile @@ -0,0 +1,28 @@ +# ex:ts=8 +# Ports collection makefile for: gettext-lint +# Date created: Feb 3, 2004 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= gettext-lint +PORTVERSION= 0.1.1 +CATEGORIES= devel +MASTER_SITES= http://mega.ist.utl.pt/~pmmm/gettext-lint/download/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= Check the validity and consistency of PO and POT files + +RUN_DEPENDS= msgfmt:${PORTSDIR}/devel/gettext + +USE_REINPLACE= yes +USE_PYTHON= yes +GNU_CONFIGURE= yes +MAKE_ENV= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} + +post-patch: + @${GREP} -lR "/usr/share/gettext-lint" ${WRKSRC} | ${XARGS} \ + ${REINPLACE_CMD} -e "s,/usr/share/gettext-lint,${PYTHON_SITELIBDIR}/gettext-lint," + +.include <bsd.port.mk> diff --git a/devel/gettext-lint/distinfo b/devel/gettext-lint/distinfo new file mode 100644 index 0000000..29b8402 --- /dev/null +++ b/devel/gettext-lint/distinfo @@ -0,0 +1 @@ +MD5 (gettext-lint-0.1.1.tar.gz) = 722dd3e78c70ddca293e875846078983 diff --git a/devel/gettext-lint/files/patch-etc:Makefile.in b/devel/gettext-lint/files/patch-etc:Makefile.in new file mode 100644 index 0000000..e2c60d8 --- /dev/null +++ b/devel/gettext-lint/files/patch-etc:Makefile.in @@ -0,0 +1,10 @@ +--- etc/Makefile.in.orig Tue Feb 3 14:25:14 2004 ++++ etc/Makefile.in Tue Feb 3 14:25:26 2004 +@@ -224,7 +224,6 @@ + + + install-data-local: +- @$(NORMAL-INSTALL) + $(mkinstalldirs) $(DESTDIR)$(pkgdatadir); \ + $(INSTALL_DATA) report.xsl $(DESTDIR)$(pkgdatadir) + # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/devel/gettext-lint/files/patch-src:Makefile.in b/devel/gettext-lint/files/patch-src:Makefile.in new file mode 100644 index 0000000..c7ec854 --- /dev/null +++ b/devel/gettext-lint/files/patch-src:Makefile.in @@ -0,0 +1,14 @@ +--- src/Makefile.in.orig Mon Feb 2 04:29:01 2004 ++++ src/Makefile.in Tue Feb 3 14:26:57 2004 +@@ -259,9 +259,8 @@ + + + install-data-local: +- @$(NORMAL-INSTALL) +- $(mkinstalldirs) $(DESTDIR)$(pkgdatadir); \ +- $(INSTALL_DATA) *.py $(DESTDIR)$(pkgdatadir) ++ $(mkinstalldirs) $(DESTDIR)$(PYTHON_SITELIBDIR)/gettext-lint; \ ++ $(INSTALL_DATA) *.py $(DESTDIR)$(PYTHON_SITELIBDIR)/gettext-lint + + pychecker: + @for i in *.py; do pychecker -Q $$i; done diff --git a/devel/gettext-lint/pkg-descr b/devel/gettext-lint/pkg-descr new file mode 100644 index 0000000..e5cf0ba --- /dev/null +++ b/devel/gettext-lint/pkg-descr @@ -0,0 +1,17 @@ +The gettext lint tools is a collection of tools for checking the validity and +consistency of PO and POT files. It also includes an experimental glossary +building tool. + +This package includes: + * POFileStatus - PO file validator and status reporting + * POFileChecker - searchs for common mistakes in PO files + * POTFileChecker - searches for common mistakes in POT files + * POFileConsistency - PO file consistency checks + * POFileConsistencyShell - PO file consistency checks, interactive mode + * POFileEquiv - PO file glossary generator + +All tools generate XML to the standard output; just run them with a list of PO +or POT files to check. Some have extra options, run the command with no +parameters for a short usage message. + +WWW: http://mega.ist.utl.pt/~pmmm/gettext-lint/ diff --git a/devel/gettext-lint/pkg-plist b/devel/gettext-lint/pkg-plist new file mode 100644 index 0000000..01c2738 --- /dev/null +++ b/devel/gettext-lint/pkg-plist @@ -0,0 +1,21 @@ +bin/POFileChecker +bin/POFileConsistency +bin/POFileConsistencyShell +bin/POFileEquiv +bin/POFileReplace +bin/POFileSpell +bin/POFileStatus +bin/POTFileChecker +%%PYTHON_SITELIBDIR%%/gettext-lint/Config.py +%%PYTHON_SITELIBDIR%%/gettext-lint/File.py +%%PYTHON_SITELIBDIR%%/gettext-lint/FileStatus.py +%%PYTHON_SITELIBDIR%%/gettext-lint/Module.py +%%PYTHON_SITELIBDIR%%/gettext-lint/POFile.py +%%PYTHON_SITELIBDIR%%/gettext-lint/POFileStatus.py +%%PYTHON_SITELIBDIR%%/gettext-lint/POStatus.py +%%PYTHON_SITELIBDIR%%/gettext-lint/POTFile.py +%%PYTHON_SITELIBDIR%%/gettext-lint/Status.py +%%PYTHON_SITELIBDIR%%/gettext-lint/capitalization.py +@dirrm %%PYTHON_SITELIBDIR%%/gettext-lint +%%DATADIR%%/report.xsl +@dirrm %%DATADIR%% |