From 691349d4ed44649ec606d51c31581a1d1e22bf40 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 12 Sep 2016 09:01:20 +0000 Subject: [PATCH] - Update to 1.5 - Install README file --- misc/pastebinit/Makefile | 12 ++++++++---- misc/pastebinit/distinfo | 5 +++-- misc/pastebinit/files/patch-pastebinit | 8 ++++---- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/misc/pastebinit/Makefile b/misc/pastebinit/Makefile index 6e8f40431f29..610f81960f14 100644 --- a/misc/pastebinit/Makefile +++ b/misc/pastebinit/Makefile @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= pastebinit -PORTVERSION= 1.4.1 -PORTREVISION= 2 +PORTVERSION= 1.5 CATEGORIES= misc python MASTER_SITES= https://launchpad.net/pastebinit/trunk/${PORTVERSION}/+download/ @@ -22,13 +21,14 @@ NO_ARCH= yes PLIST_FILES= bin/pastebinit PORTDATA= * +PORTDOCS= * -OPTIONS_DEFINE= PASTEBINS +OPTIONS_DEFINE= PASTEBINS DOCS OPTIONS_DEFAULT=PASTEBINS PASTEBINS_DESC= Install default pastebins post-patch: - ${REINPLACE_CMD} -e 's|/usr/share/pastebin.d|${DATADIR}/pastebin.d|' \ + @${REINPLACE_CMD} -e 's|/usr/share/pastebin.d|${DATADIR}/pastebin.d|' \ ${WRKSRC}/pastebinit do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} @@ -36,4 +36,8 @@ do-install: do-install-PASTEBINS-on: (cd ${WRKSRC} && ${COPYTREE_SHARE} pastebin.d ${STAGEDIR}${DATADIR}) +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + .include diff --git a/misc/pastebinit/distinfo b/misc/pastebinit/distinfo index cfbe234533ad..34383cc06dd3 100644 --- a/misc/pastebinit/distinfo +++ b/misc/pastebinit/distinfo @@ -1,2 +1,3 @@ -SHA256 (pastebinit-1.4.1.tar.bz2) = c23720ff19d239f7ae62dd7dc28f453aaea4823af29b1595ba2e58fe232988e6 -SIZE (pastebinit-1.4.1.tar.bz2) = 39202 +TIMESTAMP = 1473635387 +SHA256 (pastebinit-1.5.tar.bz2) = 42e5a84ce7e46825fb3b6478e11893fad357197327257e474bd0d3549f438457 +SIZE (pastebinit-1.5.tar.bz2) = 42941 diff --git a/misc/pastebinit/files/patch-pastebinit b/misc/pastebinit/files/patch-pastebinit index 3339caac75b2..0132a77c5a17 100644 --- a/misc/pastebinit/files/patch-pastebinit +++ b/misc/pastebinit/files/patch-pastebinit @@ -1,11 +1,11 @@ ---- pastebinit.orig 2014-01-18 04:52:04 UTC +--- pastebinit.orig 2016-09-11 23:10:22 UTC +++ pastebinit -@@ -33,7 +33,7 @@ else: +@@ -34,7 +34,7 @@ else: from urllib.request import FancyURLopener # Set the default pastebin --defaultPB = "http://pastebin.com" -+defaultPB = "http://paste2.org" +-defaultPB = "pastebin.com" ++defaultPB = "paste2.org" # Now try to override it with a distributor pastebin try: