aboutsummaryrefslogtreecommitdiff
path: root/devel/myrepos/Makefile
blob: aadbd0a23f9fca6577071b58f8b7dbe40be7ce0a (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
PORTNAME=	myrepos
PORTVERSION=	1.20180726
CATEGORIES=	devel
MASTER_SITES=	https://git.joeyh.name/index.cgi/mr.git/snapshot/ \
		https://git.kitenet.net/index.cgi/mr.git/snapshot/
DISTNAME=	mr-${PORTVERSION}

MAINTAINER=	portmaster@BSDforge.com
COMMENT=	Tool to manage all your version control repos

LICENSE=	GPLv2+

USES=		perl5 shebangfix
USE_PERL5=	run
SHEBANG_FILES=	mr

DOCLIST=	README mrconfig mrconfig.complex

NO_BUILD=	yes
NO_ARCH=	yes

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/mr ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DOCSDIR}

do-install-DOCS-on:
	(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCLIST} ${STAGEDIR}${DOCSDIR})
	(cd ${WRKSRC}/doc/ && ${CAT} index.mdwn > ${STAGEDIR}${DOCSDIR}/HOWTO)
	(mkdir ${STAGEDIR}${DOCSDIR}/EXAMPLES && cd ${WRKSRC}/lib && \
	${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/EXAMPLES)

.include <bsd.port.mk>