blob: 52f213b5202a1ac825800f216fd324ccb1fa4ea3 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Ports collection makefile for: tla
# Date Created: August 17th, 2003
# Whom: seanc
#
# $FreeBSD$
#
PORTNAME= tla
PORTVERSION= 1.3.5
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= ports@FreeBSD.org
COMMENT= The original arch source control management CLI written in C
BUILD_DEPENDS= gpatch:${PORTSDIR}/devel/patch \
gdiff:${PORTSDIR}/textproc/diffutils \
gtar:${PORTSDIR}/archivers/gtar
RUN_DEPENDS= ${BUILD_DEPENDS}
GNU_CONFIGURE= yes
USE_GMAKE= yes
ORIGWRKSRC= ${WRKDIR}/${DISTNAME}/src
PATCH_WRKSRC= ${ORIGWRKSRC}/..
WRKSRC= ${ORIGWRKSRC}/=build
PLIST= ${WRKDIR}/plist
PLIST_FILES= bin/tla bin/tla-gpg-check
pre-patch:
${MKDIR} ${WRKSRC}
do-configure:
cd ${WRKSRC} ; ../configure --prefix ${LOCALBASE} \
--with-gnu-patch gpatch \
--with-gnu-diff gdiff \
--with-gnu-diff3 gdiff3 \
--with-gnu-tar gtar
test:
cd ${WRKSRC} ; ${GMAKE} test
pre-install:
.if !defined(NOPORTDOCS)
${RM} -rf ${ORIGWRKSRC}/docs-tla/PLUGIN ${ORIGWRKSRC}/docs-tla/{arch} \
${ORIGWRKSRC}/docs-tla/.arch-ids
cd ${ORIGWRKSRC}/docs-tla && ${FIND} . -type f -name '*.html' -exec ${ECHO_CMD} "%%DOCSDIR%%/{}" \; > ${PLIST}
cd ${ORIGWRKSRC}/docs-tla && ${FIND} -d . -mindepth 1 -maxdepth 1 -type d -exec ${ECHO_CMD} "@dirrm %%DOCSDIR%%/{}" \; >> ${PLIST}
${ECHO} @dirrm %%DOCSDIR%% >> ${PLIST}
.endif
do-install:
${INSTALL_PROGRAM} ${ORIGWRKSRC}/=build/tla/tla/tla ${PREFIX}/bin
${SED} 's,^#!.*$$,#!${AWK} -f,' ${ORIGWRKSRC}/tla/=gpg-check.awk \
> ${WRKDIR}/tla-gpg-check
${INSTALL_SCRIPT} ${WRKDIR}/tla-gpg-check ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${ORIGWRKSRC}/docs-tla && ${FIND} . -name '*.html' | ${CPIO} -pdm -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
${CHMOD} -R a=rX ${DOCSDIR}
.endif
.include <bsd.port.mk>
|