mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
67 lines
1.8 KiB
Makefile
67 lines
1.8 KiB
Makefile
# Created by: Sean Chittenden <seanc@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tla
|
|
PORTVERSION= 1.3.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= GNU/gnu-arch \
|
|
http://www.atai.org/gnuarch/releases/
|
|
|
|
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}
|
|
|
|
HAS_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
CONFIGURE_SCRIPT= ../configure
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
--with-gnu-patch gpatch \
|
|
--with-gnu-diff gdiff \
|
|
--with-gnu-diff3 gdiff3 \
|
|
--with-gnu-tar gtar
|
|
|
|
ORIGWRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
PATCH_WRKSRC= ${ORIGWRKSRC}/..
|
|
WRKSRC= ${ORIGWRKSRC}/=build
|
|
PLIST= ${WRKDIR}/plist
|
|
PLIST_FILES= bin/tla bin/tla-gpg-check
|
|
|
|
NO_STAGE= yes
|
|
pre-patch:
|
|
${MKDIR} ${WRKSRC}
|
|
|
|
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>
|