svn commit: r401210 - head/misc/pastebinit
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Nov 10 20:25:51 UTC 2015
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 at FreeBSD.org
+MAINTAINER= amdmi3 at 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>
More information about the svn-ports-all
mailing list