Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Nov 2015 20:25:50 +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: r401210 - head/misc/pastebinit
Message-ID:  <201511102025.tAAKPoKN088049@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Nov 10 20:25:50 2015
New Revision: 401210
URL: https://svnweb.freebsd.org/changeset/ports/401210

Log:
  - Take maintainership
  - Add NO_ARCH
  - Switch to options helpers

Modified:
  head/misc/pastebinit/Makefile

Modified: head/misc/pastebinit/Makefile
==============================================================================
--- head/misc/pastebinit/Makefile	Tue Nov 10 20:25:21 2015	(r401209)
+++ head/misc/pastebinit/Makefile	Tue Nov 10 20:25:50 2015	(r401210)
@@ -6,7 +6,7 @@ PORTREVISION=	2
 CATEGORIES=	misc python
 MASTER_SITES=	https://launchpad.net/pastebinit/trunk/${PORTVERSION}/+download/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Command line utility for pastebing
 
 LICENSE=	GPLv2 # or later
@@ -18,26 +18,22 @@ USES=		python:run shebangfix tar:bzip2
 SHEBANG_FILES=	pastebinit
 python_OLD_CMD=	/usr/bin/python3
 NO_BUILD=	yes
+NO_ARCH=	yes
 
 PLIST_FILES=	bin/pastebinit
+PORTDATA=	*
 
 OPTIONS_DEFINE=	PASTEBINS
+OPTIONS_DEFAULT=PASTEBINS
 PASTEBINS_DESC=	Install default pastebins
-OPTIONS_DEFAULT=	PASTEBINS
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MPASTEBINS}
-PORTDATA=	pastebin.d
-.endif
 
 post-patch:
 	${REINPLACE_CMD} -e 's|/usr/share/pastebin.d|${DATADIR}/pastebin.d|' \
 		${WRKSRC}/pastebinit
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-.if ${PORT_OPTIONS:MPASTEBINS}
+
+do-install-PASTEBINS-on:
 	(cd ${WRKSRC} && ${COPYTREE_SHARE} pastebin.d ${STAGEDIR}${DATADIR})
-.endif
 
 .include <bsd.port.mk>



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