diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2004-02-03 06:37:57 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2004-02-03 06:37:57 +0000 |
commit | d3ae37dc2662d4e1b0480699135d7c1302245f1a (patch) | |
tree | aeb3d2feed626c464f906e7306d50d2a273ac8ba | |
parent | e4239b23d93cdd8bc83e0fbff881fd1662d758a5 (diff) | |
download | ports-d3ae37dc2662d4e1b0480699135d7c1302245f1a.tar.gz ports-d3ae37dc2662d4e1b0480699135d7c1302245f1a.zip |
Notes
-rw-r--r-- | devel/Makefile | 1 | ||||
-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 |
7 files changed, 92 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 167fda357316..38e41226d0fb 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -250,6 +250,7 @@ SUBDIR += gengameng SUBDIR += gengetopt SUBDIR += gettext + SUBDIR += gettext-lint SUBDIR += gettext-old SUBDIR += getxml SUBDIR += gindent diff --git a/devel/gettext-lint/Makefile b/devel/gettext-lint/Makefile new file mode 100644 index 000000000000..1f7581730e21 --- /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 000000000000..29b84025ac1d --- /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 000000000000..e2c60d899773 --- /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 000000000000..c7ec85446e06 --- /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 000000000000..e5cf0ba8f1ea --- /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 000000000000..01c273888e7e --- /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%% |