diff options
author | Andrew Pantyukhin <sat@FreeBSD.org> | 2007-08-29 22:48:08 +0000 |
---|---|---|
committer | Andrew Pantyukhin <sat@FreeBSD.org> | 2007-08-29 22:48:08 +0000 |
commit | cfdcaa6e5d30ef830436c2c58d3373df25b6c168 (patch) | |
tree | 13b140ec25ca606ad4c4dadaa7d9a2331cf40a43 /textproc/po4a/Makefile | |
parent | 2662d29cb6cf62a31adde0cc29c665dac896b18d (diff) | |
download | ports-cfdcaa6e5d30ef830436c2c58d3373df25b6c168.tar.gz ports-cfdcaa6e5d30ef830436c2c58d3373df25b6c168.zip |
Notes
Diffstat (limited to 'textproc/po4a/Makefile')
-rw-r--r-- | textproc/po4a/Makefile | 74 |
1 files changed, 46 insertions, 28 deletions
diff --git a/textproc/po4a/Makefile b/textproc/po4a/Makefile index 92a72d7fb2b3..10a50389414e 100644 --- a/textproc/po4a/Makefile +++ b/textproc/po4a/Makefile @@ -6,48 +6,66 @@ # PORTNAME= po4a -PORTVERSION= 0.23 +PORTVERSION= 0.32 CATEGORIES= textproc perl5 -MASTER_SITES= ${MASTER_SITE_DEBIAN} -MASTER_SITE_SUBDIR= pool/main/p/po4a -DISTNAME= ${PORTNAME}_${PORTVERSION}.orig +MASTER_SITES= http://alioth.debian.org/frs/download.php/2108/ GENTOO/distfiles MAINTAINER= ports@FreeBSD.org -COMMENT= Documentation gettext tools +COMMENT= Brings gettext translation tools to all kinds of docs -BUILD_DEPENDS= ${SITE_PERL}/Module/Build.pm:${PORTSDIR}/devel/p5-Module-Build \ - ${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \ - ${SITE_PERL}/Text/WrapI18N.pm:${PORTSDIR}/textproc/libtext-wrapi18n-perl \ - ${SITE_PERL}/SGMLS.pm:${PORTSDIR}/textproc/p5-SGMLSpm \ - ${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext +BUILD_DEPENDS= p5-Term-ReadKey>=2.30:${PORTSDIR}/devel/p5-Term-ReadKey \ + libtext-wrapi18n-perl>=0.06:${PORTSDIR}/textproc/libtext-wrapi18n-perl \ + p5-SGMLSpm>=1.03:${PORTSDIR}/textproc/p5-SGMLSpm \ + p5-gettext>=1.05:${PORTSDIR}/devel/p5-Locale-gettext USE_GETTEXT= yes USE_PERL5= yes -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +PERL_MODBUILD= yes -MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -MAN3= Locale::Po4a::TransTractor.3 \ +MANPREFIX= ${PREFIX} +MAN3PREFIX= ${MANPREFIX} +MANLANG= "" ca es fr it pl +MAN3= \ + Locale::Po4a::BibTeX.3 \ + Locale::Po4a::Chooser.3 \ + Locale::Po4a::Common.3 \ + Locale::Po4a::Dia.3 \ + Locale::Po4a::Docbook.3 \ + Locale::Po4a::Guide.3 \ + Locale::Po4a::Ini.3 \ + Locale::Po4a::KernelHelp.3 \ Locale::Po4a::LaTeX.3 \ + Locale::Po4a::Man.3 \ Locale::Po4a::Pod.3 \ Locale::Po4a::Po.3 \ Locale::Po4a::Sgml.3 \ + Locale::Po4a::TeX.3 \ + Locale::Po4a::Texinfo.3 \ Locale::Po4a::Text.3 \ - Locale::Po4a::Common.3 \ - Locale::Po4a::KernelHelp.3 \ - Locale::Po4a::Guide.3 \ - Locale::Po4a::Man.3 \ - Locale::Po4a::Xml.3 \ - Locale::Po4a::Dia.3 \ - Locale::Po4a::Docbook.3 \ - Locale::Po4a::Chooser.3 \ - Locale::Po4a::TeX.3 - -MAN1= po4a-translate.1 \ + Locale::Po4a::TransTractor.3 \ + Locale::Po4a::Xhtml.3 \ + Locale::Po4a::Xml.3 +MAN1= msguntypot.1 \ po4a.1 \ + po4a-gettextize.1 \ po4a-normalize.1 \ - msguntypot.1 \ - po4a-updatepo.1 \ - po4a-gettextize.1 + po4a-translate.1 \ + po4a-updatepo.1 +MAN7= po4a.7 + +PORT_VERBS= ${PORTNAME} Po4a msguntypot + +post-patch: + @${REINPLACE_CMD} -e '/install_path/s|/locale|/share&|;/my .options/s|-v|-k 0 &|;\ + s|gzip|${TRUE}|g;s|3pm|3|g;s|1p|1|g' ${WRKSRC}/Build.PL + +post-install: + @${GZIP_CMD} ${MAN1PREFIX}/man/man1/po4aman-display-po.1 + +enrich-plist: + @${ECHO_CMD} 'man/man1/po4aman-display-po.1${MANEXT}' >> ${PLIST} + @for i in ${MANLANG:M[a-z]*};do for n in 1 3 7;do\ + ${ECHO_CMD} "@dirrmtry man/$$i/man$$n" >> ${PLIST};\ + ${ECHO_CMD} "@dirrmtry man/$$i" >> ${PLIST};done;done .include <bsd.port.mk> |