aboutsummaryrefslogtreecommitdiffstats
path: root/print/latexdiff/Makefile
blob: 08f47fe091ebe0a38803c8908874f85aa44294cf (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:   latexdiff
# Date created:                        01 Oct 2005
# Whom:                                Maxim Loginov <Zeliboba@mail.ru>
#
# $FreeBSD$
#

PORTNAME=   latexdiff
PORTVERSION=    0.5
PORTREVISION=   2
CATEGORIES= print perl5
MASTER_SITES=   ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= support
DISTNAME=   ${PORTNAME}

MAINTAINER= Zeliboba@mail.ru
COMMENT=    Determine and mark up significant differences between latex files

RUN_DEPENDS+=   bash:${PORTSDIR}/shells/bash

USE_PERL5_RUN=  yes
USE_ZIP=    yes
NO_BUILD=   yes

MAN1=       latexdiff.1 \
        latexdiff-vc.1 \
        latexrevise.1

PLIST_FILES=    bin/latexdiff \
        bin/latexdiff-fast \
        bin/latexdiff-so \
        bin/latexdiff-vc \
        bin/latexdiff-wrap \
        bin/latexrevise

post-patch:
    ${REINPLACE_CMD} -e "s,\/bin\/bash,${LOCALBASE}\/bin\/bash," \
    ${WRKSRC}/contrib/latexdiff-wrap

do-install:
    ${MKDIR} ${PREFIX}/bin ${MANPREFIX}/man/man1
    ( cd ${WRKSRC} && ${INSTALL_SCRIPT} latexdiff-fast latexdiff-so \
    latexdiff-vc latexrevise contrib/latexdiff-wrap ${PREFIX}/bin && \
    ${INSTALL_MAN} latexdiff.1 latexdiff-vc.1 latexrevise.1 \
    ${MANPREFIX}/man/man1 )
    ${LN} -s ${PREFIX}/bin/latexdiff-so ${PREFIX}/bin/latexdiff

test:
    ( cd ${WRKSRC} && ${MAKE} test-so test-fast )

.include <bsd.port.mk>