[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / gitolite

File: [cvs.NetBSD.org] / pkgsrc / devel / gitolite / Makefile (download)

Revision 1.17, Thu May 29 23:35:35 2014 UTC (4 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2014Q2-base, pkgsrc-2014Q2
Changes since 1.16: +2 -1 lines

Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.

# $NetBSD: Makefile,v 1.17 2014/05/29 23:35:35 wiz Exp $

GLVER=		3.5.2
DISTNAME=	gitolite-${GLVER}
PKGREVISION=	1
CATEGORIES=	devel net
MASTER_SITES=	-https://github.com/sitaramc/gitolite/archive/v${GLVER}.tar.gz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/sitaramc/gitolite/wiki
COMMENT=	Gitolite allows you to host Git repositories easily and securely
LICENSE=	gnu-gpl-v2

DEPENDS+=	git-base>=1.6.6:../../devel/git-base

USE_LANGUAGES=	# none
USE_TOOLS+=	pax perl:run

NO_BUILD=	yes

REPLACE_PERL=	src/lib/* src/VREF/* src/triggers/* src/triggers/*/* \
		src/commands/* src/gitolite* src/lib/Gitolite/*/*
REPLACE_SH=	src/VREF/* src/triggers/* src/triggers/post-compile/* \
		src/commands/*

SUBST_CLASSES+=		perl
SUBST_STAGE.perl=	pre-configure
SUBST_MESSAGE.perl=	Set PERL5
SUBST_FILES.perl=	src/gitolite
SUBST_FILES.perl+=	src/lib/Gitolite/Hooks/*
SUBST_SED.perl=		-e 's,/usr/bin/perl,${PERL5},g'

INSTALLATION_DIRS+=	bin lib \
			share/doc/gitolite \
			libexec/gitolite \
			${PERL5_INSTALLVENDORARCH}

pre-install:
	${FIND} ${WRKSRC} -type f \
		-name "*.orig" -exec ${RM} -f {} \;

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/src/gitolite ${DESTDIR}${PREFIX}/libexec/gitolite
	${INSTALL_SCRIPT} ${WRKSRC}/src/gitolite-shell ${DESTDIR}${PREFIX}/libexec/gitolite

	cd ${DESTDIR}${PREFIX}/bin && ${LN} -s ../libexec/gitolite/gitolite gitolite

	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DESTDIR}${PREFIX}/share/gitolite
	${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/gitolite
	${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/gitolite

	cd ${WRKSRC}/src/lib && pax -rw -pmp Gitolite \
		${DESTDIR}${PERL5_INSTALLVENDORARCH}

	cd ${WRKSRC}/src && pax -rw -pmp triggers \
		${DESTDIR}${PREFIX}/libexec/gitolite
	cd ${WRKSRC}/src && pax -rw -pmp syntactic-sugar \
		${DESTDIR}${PREFIX}/libexec/gitolite
	cd ${WRKSRC}/src && pax -rw -pmp VREF \
		${DESTDIR}${PREFIX}/libexec/gitolite
	cd ${WRKSRC}/src && pax -rw -pmp commands \
		${DESTDIR}${PREFIX}/libexec/gitolite

.include "../../lang/perl5/dirs.mk"
.include "../../mk/bsd.pkg.mk"