aboutsummaryrefslogtreecommitdiff
path: root/misc/pastebinit
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-11-10 20:25:50 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-11-10 20:25:50 +0000
commit6c50da4ec177ee5319b35bdc629b0d055f22c949 (patch)
treebe586b8aa5cf80d10b37c8188b81d88a22f86ebe /misc/pastebinit
parentf37325abf92c440761431713408aece8b3979118 (diff)
downloadports-6c50da4ec177ee5319b35bdc629b0d055f22c949.tar.gz
ports-6c50da4ec177ee5319b35bdc629b0d055f22c949.zip
- Take maintainership
- Add NO_ARCH - Switch to options helpers
Notes
Notes: svn path=/head/; revision=401210
Diffstat (limited to 'misc/pastebinit')
-rw-r--r--misc/pastebinit/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/misc/pastebinit/Makefile b/misc/pastebinit/Makefile
index 37e5b4f09668..766dc9a9a7f0 100644
--- a/misc/pastebinit/Makefile
+++ b/misc/pastebinit/Makefile
@@ -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>