d15b6b4705
HTML::GenToc generates anchors and a table of contents for HTML documents. Depending on the arguments, it will insert the information it generates, or output to a string, a separate file or STDOUT. While it defaults to taking H1 and H2 elements as the significant elements to put into the table of contents, any tag can be defined as a significant element. Also, it doesn't matter if the input HTML code is complete, pure HTML, one can input pseudo-html or page-fragments, which makes it suitable for using on templates and HTML meta-languages such as WML. Also included in the distrubution is hypertoc, a script which uses the module so that one can process files on the command-line in a user-friendly manner.
28 lines
715 B
Makefile
28 lines
715 B
Makefile
# New ports collection makefile for: www/p5-HTML-GenToc
|
|
# Date created: 29 Mar 2009
|
|
# Whom: Lars Balker Rasmussen <lbr@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= HTML-GenToc
|
|
PORTVERSION= 3.10
|
|
CATEGORIES= www perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= lbr@FreeBSD.org
|
|
COMMENT= Generate a Table of Contents for HTML documents
|
|
|
|
RUN_DEPENDS= p5-HTML-LinkList>=0.1501:${PORTSDIR}/www/p5-HTML-LinkList \
|
|
p5-HTML-SimpleParse>=0.10:${PORTSDIR}/www/p5-HTML-SimpleParse \
|
|
p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \
|
|
p5-Getopt-ArgvFile>=1.09:${PORTSDIR}/devel/p5-Getopt-ArgvFile
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
PERL_MODBUILD= 5.8.1+
|
|
|
|
MAN1= hypertoc.1
|
|
MAN3= HTML::GenToc.3
|
|
|
|
.include <bsd.port.mk>
|