aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/resume-extensions/Makefile
blob: 25cb61f18036a7b952c7f7d30b54242a6e5f7baa (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
# Created by: Aaron Straup Cope
# $FreeBSD$

PORTNAME=   resume-extensions
PORTVERSION=    0.5
PORTREVISION=   2
CATEGORIES= textproc
MASTER_SITES=   http://aaronland.info/xsl/xmlresume/
DISTNAME=   xml${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Extends the XML Resume library

RUN_DEPENDS=    resume>0:textproc/resume \
        ${LOCALBASE}/share/xsl/string/print-n-times.xsl:textproc/print-n-times \
        ${LOCALBASE}/share/xsl/xhtml/add-css-links.xsl:textproc/add-css-links

NO_BUILD=   yes

post-patch:
    ${REINPLACE_CMD} -e 's|/usr/local/share|${LOCALBASE}/share|' \
        ${WRKSRC}/lib/extrefs.xsl
    ${REINPLACE_CMD} -e 's|/usr/local/share|${LOCALBASE}/share|' \
        ${WRKSRC}/format/html.xsl
    ${FIND} ${WRKSRC} -name '*.bak' -delete

do-install:
    @${ECHO} "Installing in ${PREFIX}/share/xsl/${PORTNAME}"
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME}
    @${CP} -R ${WRKSRC}/* ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME}

.include <bsd.port.mk>