Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2016 20:02:46 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r407175 - head/devel/gitolite
Message-ID:  <201601242002.u0OK2kG8090768@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Jan 24 20:02:46 2016
New Revision: 407175
URL: https://svnweb.freebsd.org/changeset/ports/407175

Log:
  - Add NO_ARCH
  - Switch to options helpers

Modified:
  head/devel/gitolite/Makefile

Modified: head/devel/gitolite/Makefile
==============================================================================
--- head/devel/gitolite/Makefile	Sun Jan 24 20:02:45 2016	(r407174)
+++ head/devel/gitolite/Makefile	Sun Jan 24 20:02:46 2016	(r407175)
@@ -25,24 +25,16 @@ GH_TAGNAME=	3455375
 CONFLICTS=	gitolite-[^3]*
 
 USES=		cpe perl5
-
 CPE_VENDOR=	sitaram_chamarty
+NO_ARCH=	yes
 
 SUB_FILES=	pkg-message
 
 OPTIONS_DEFINE=	GITUSER DOCS
+OPTIONS_SUB=	yes
 
 GITUSER_DESC=	Create git user as gitolite provider
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGITUSER}
-USERS=		git
-GROUPS=		${USERS}
-PLIST_SUB+=	GITUSER=""
-.else
-PLIST_SUB+=	GITUSER="@comment "
-.endif
+GITUSER_VARS=	USERS=git GROUPS=git
 
 post-patch:
 	@${FIND} ${WRKSRC} \
@@ -69,8 +61,9 @@ do-install:
 	(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} Gitolite ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/)
 	${LN} -s ${PREFIX}/libexec/gitolite/gitolite ${STAGEDIR}${PREFIX}/bin/gitolite
 
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_MAN} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
-	${INSTALL_MAN} ${WRKSRC}/CHANGELOG ${STAGEDIR}${DOCSDIR}
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601242002.u0OK2kG8090768>