aboutsummaryrefslogtreecommitdiffstats
path: root/devel/tla/Makefile
blob: 5ec55ca2ede5e757a56fc77b91f2dff3b896f89b (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
52
53
# Ports collection makefile for:    tla
# Date Created:         August 17th, 2003
# Whom:             seanc
#
# $FreeBSD$
#

PORTNAME=   tla
PORTVERSION=    1.2
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_GNU} \
        http://regexps.srparish.net/src/${PORTNAME}/ \
        http://arch.quackerhead.com/~lord/releases/${PORTNAME}/
MASTER_SITE_SUBDIR= gnu-arch

MAINTAINER= seanc@FreeBSD.org
COMMENT=    The original arch source control management CLI written in C

BUILD_DEPENDS=  gpatch:${PORTSDIR}/devel/patch \
        gdiff:${PORTSDIR}/textproc/diffutils
RUN_DEPENDS=    ${BUILD_DEPENDS}

GNU_CONFIGURE=  yes
USE_GMAKE=  yes

ORIGWRKSRC= ${WRKDIR}/${DISTNAME}/src
WRKSRC=     ${ORIGWRKSRC}/=build

pre-patch:
    ${MKDIR} ${WRKSRC}

do-configure:
    cd ${WRKSRC} ; ../configure --prefix ${LOCALBASE} \
            --with-gnu-patch gpatch \
            --with-gnu-diff gdiff \
            --with-gnu-diff3 gdiff3

test:
    cd ${WRKSRC} ; ${GMAKE} test

.if !defined(NOPORTDOCS)
post-install:
    ${MKDIR} ${DOCSDIR}; \
    for f in `${FIND} ${ORIGWRKSRC}/docs-tla/html -type f -name '*.html' \
        -exec ${BASENAME} {} \;`; do \
        ${INSTALL_DATA} ${ORIGWRKSRC}/docs-tla/html/$$f ${DOCSDIR}/; \
        ${PRINTF} "share/doc/${PORTNAME}/%s\n" $$f >> ${TMPPLIST}; \
    done; \
    ${ECHO} @dirrm share/doc/${PORTNAME} >> ${TMPPLIST}
.endif

.include <bsd.port.mk>