mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
21a425242a
- Change maintainer's address - Bump PORTREVISION PR: 40769 Submitted by: maintainer
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# New ports collection makefile for: dtdparse
|
|
# Date created: 29 January 2002
|
|
# Whom: Kimura Fuyuki <fuyuki@mj.0038.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dtdparse
|
|
PORTVERSION= 2.0.b6
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= dtdparse
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/beta/}
|
|
|
|
MAINTAINER= fuyuki@hadaly.org
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Text/DelimMatch.pm:${PORTSDIR}/textproc/p5-DelimMatch \
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM
|
|
|
|
USE_PERL5= yes
|
|
|
|
# pod's are broken
|
|
#MAN1= dtdformat.1 dtdparse.1
|
|
|
|
SITE_PERL= ${PREFIX}/lib/perl5/site_perl/${PERL_VER}
|
|
XMLDIR= ${PREFIX}/share/xml/${PORTNAME}
|
|
|
|
SCRIPTS= dtdflatten dtdformat dtdparse \
|
|
tools/contentmodel tools/dtdstats tools/elements
|
|
|
|
post-patch:
|
|
cd ${WRKSRC}; \
|
|
${PERL} -pi -e 's,/usr/local/bin/perl5,${PERL},' ${SCRIPTS}
|
|
${PERL} -pi -e 's,modules/,XML/DTDParse/,' ${WRKSRC}/dtdformat
|
|
|
|
do-build:
|
|
#.for i in dtdformat dtdparse
|
|
# cd ${WRKSRC}; pod2man ${i} >${i}.1
|
|
#.endfor
|
|
|
|
do-install:
|
|
cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin
|
|
${MKDIR} ${SITE_PERL}/XML/DTDParse
|
|
${INSTALL_DATA} ${WRKSRC}/XML/DTDParse/*.pm ${SITE_PERL}/XML/DTDParse
|
|
${INSTALL_DATA} ${WRKSRC}/modules/*.pl ${SITE_PERL}/XML/DTDParse
|
|
${MKDIR} ${XMLDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/dtd.dtd ${XMLDIR}
|
|
${ECHO_CMD} \
|
|
'PUBLIC "-//Norman Walsh//DTD DTDParse V2.0//EN" "dtd.dtd"' \
|
|
>${XMLDIR}/catalog
|
|
# cd ${WRKSRC}; ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1
|
|
|
|
post-install:
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/sample; \
|
|
${INSTALL_DATA} sample* simple* ${EXAMPLESDIR}
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}; ${INSTALL_DATA} README WhatsNew ${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|