55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
# New ports collection makefile for: svn_load_dirs
|
|
# Date created: 9 April 2007
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= svn_load_dirs
|
|
PORTVERSION= ${SVN_PORTVERSION}
|
|
PORTREVISION= 0 # You would hardly need to update this!
|
|
CATEGORIES= devel
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
COMMENT= A Perl script to load directories into a Subversion repository
|
|
|
|
RUN_DEPENDS= ${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \
|
|
${LOCALBASE}/bin/svn:${PORTSDIR}/devel/subversion16
|
|
|
|
USE_BZIP2= yes
|
|
USE_PERL5= 5.8.0+
|
|
|
|
WRKSRC= ${WRKDIR}/subversion-${SVN_PORTVERSION}/contrib/client-side/svn_load_dirs
|
|
|
|
PLIST_FILES= bin/svn_load_dirs
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
SVN_PORTDIR= ${PORTSDIR}/devel/subversion16
|
|
SVN_PORTVERSION!= cd ${SVN_PORTDIR} && ${MAKE} -V PORTVERSION
|
|
|
|
do-extract:
|
|
${MKDIR} ${WRKDIR}
|
|
cd ${SVN_PORTDIR} && ${MAKE} DISABLE_CONFLICTS=yes WRKDIR=${WRKDIR} extract
|
|
|
|
do-build:
|
|
${SED} -E \
|
|
-e 's|^(#!)/usr/bin/perl[[:>:]]|\1${PERL}|g' \
|
|
-e 's|@SVN_BINDIR@|${LOCALBASE}/bin|g' \
|
|
${WRKSRC}/svn_load_dirs.pl.in > ${WRKSRC}/svn_load_dirs.pl
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/svn_load_dirs.pl ${PREFIX}/bin/svn_load_dirs
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/svn_load_dirs_property_table.example ${EXAMPLESDIR}/
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/svn_load_dirs.README ${DOCSDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|