aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-HTML-Tidy/Makefile
blob: 42a84a2e5f84546671df7fdccc09972451f27adc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Created by: mat
# $FreeBSD$

PORTNAME=   HTML-Tidy
PORTVERSION=    1.58
CATEGORIES= textproc www perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Web validation in a Perl object using tidy

LICENSE=    ART20

BUILD_DEPENDS=  p5-libwww>=0:www/p5-libwww
LIB_DEPENDS=    libtidyp.so:textproc/tidyp
RUN_DEPENDS:=   ${BUILD_DEPENDS}

OPTIONS_DEFINE= DOCS

USES=       perl5
USE_PERL5=  configure

PORTDOCS=   Changes README.markdown

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile.PL

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/HTML/Tidy/Tidy.so

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>