aboutsummaryrefslogtreecommitdiffstats
path: root/news/nzbget
diff options
context:
space:
mode:
authorjhale <jhale@FreeBSD.org>2014-09-09 05:24:07 +0800
committerjhale <jhale@FreeBSD.org>2014-09-09 05:24:07 +0800
commit9d15dbe8bce43bf9e1455df83e05fa8880ebcbd8 (patch)
tree3c478ed3881be9a80be409c2c5df9d4f521d56ec /news/nzbget
parent1909ede41a66827e4de9d868f7108f9349e607b6 (diff)
downloadfreebsd-ports-gnome-9d15dbe8bce43bf9e1455df83e05fa8880ebcbd8.tar.gz
freebsd-ports-gnome-9d15dbe8bce43bf9e1455df83e05fa8880ebcbd8.tar.zst
freebsd-ports-gnome-9d15dbe8bce43bf9e1455df83e05fa8880ebcbd8.zip
- Update to 13.0
- Fix shebangs - Allow linking to ncurses library from port or base - Remove post-configure patch and redefine BINMODE instead - Convert USE_PYTHON -> USES=python:run - Use @sample in pkg-plist - Don't install multiple copies of LICENSE PR: 193405 (based on) Submitted by: Toxic <toxic@doobie.com> (maintainer)
Diffstat (limited to 'news/nzbget')
-rw-r--r--news/nzbget/Makefile21
-rw-r--r--news/nzbget/distinfo4
-rw-r--r--news/nzbget/pkg-plist30
3 files changed, 29 insertions, 26 deletions
diff --git a/news/nzbget/Makefile b/news/nzbget/Makefile
index c3af42689150..9b95db960f73 100644
--- a/news/nzbget/Makefile
+++ b/news/nzbget/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= nzbget
-PORTVERSION= 12.0
-PORTREVISION= 3
+PORTVERSION= 13.0
CATEGORIES= news
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
@@ -15,14 +14,20 @@ LICENSE= GPLv2
LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2 \
libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20
-USES= pkgconfig
+USES= ncurses pkgconfig shebangfix
USE_RC_SUBR= nzbget
GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-libcurses-includes=${NCURSESINC} \
+ --with-libcurses-libraries=${NCURSESLIB}
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
MAKE_JOBS_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= ${PTHREAD_LIBS}
CFLAGS+= ${PTHREAD_CFLAGS}
+BINMODE= 0755
+
+SHEBANG_FILES= scripts/*.py
+python_OLD_CMD= /usr/bin/env python
OPTIONS_DEFINE= 7Z PAR PYTHON RAR DOCS
OPTIONS_SINGLE= TLSLIB
@@ -39,14 +44,14 @@ PAR_CONFIGURE_ON= --enable-parcheck --disable-libpar2-bugfixes-check
PAR_CONFIGURE_OFF= --disable-parcheck
PAR_LIB_DEPENDS= libpar2.so:${PORTSDIR}/archivers/libpar2
-PYTHON_USE= PYTHON=yes
+PYTHON_USES= python:run
RAR_RUN_DEPENDS= unrar:${PORTSDIR}/archivers/unrar
OPENSSL_CONFIGURE_ON= --with-tlslib=OpenSSL \
--with-openssl-includes=${OPENSSLINC} \
--with-openssl-libraries=${OPENSSLLIB}
-OPENSSL_USE= OPENSSL=yes
+OPENSSL_USE= OPENSSL=yes
GNUTLS_CONFIGURE_ON= --with-tlslib=GnuTLS
GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls \
@@ -55,13 +60,9 @@ GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls \
.include <bsd.port.options.mk>
.if (${ARCH} == "i386")
-CONFIGURE_ARGS+= --disable-sigchld-handler
+CONFIGURE_ARGS+= --disable-sigchld-handler
.endif
-post-configure:
- # necessary for stage
- @${REINPLACE_CMD} -e 's|555|655|g ; s|444|644|' ${WRKSRC}/Makefile
-
post-install:
${INSTALL_DATA} ${WRKSRC}/nzbget.conf \
${STAGEDIR}${PREFIX}/etc/nzbget.conf.sample
diff --git a/news/nzbget/distinfo b/news/nzbget/distinfo
index 1c92b69fc9f3..4db03ce42ebf 100644
--- a/news/nzbget/distinfo
+++ b/news/nzbget/distinfo
@@ -1,2 +1,2 @@
-SHA256 (nzbget-12.0.tar.gz) = 023c4e3b9c7e920d9ea72b60135b438ce13543454f79984c06fd15365b9a882e
-SIZE (nzbget-12.0.tar.gz) = 1114126
+SHA256 (nzbget-13.0.tar.gz) = 666f5244f31f10333a18450e7a6c1ac729ac68594042236711ba99dd32e78f8e
+SIZE (nzbget-13.0.tar.gz) = 1229936
diff --git a/news/nzbget/pkg-plist b/news/nzbget/pkg-plist
index c9fa25395103..7b7730f9b332 100644
--- a/news/nzbget/pkg-plist
+++ b/news/nzbget/pkg-plist
@@ -1,6 +1,12 @@
bin/nzbget
+@sample etc/nzbget.conf.sample
sbin/nzbgetd
+@comment %%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
%%DATADIR%%/nzbget.conf
+%%DATADIR%%/scripts/EMail.py
+%%DATADIR%%/scripts/Logger.py
%%DATADIR%%/webui/config.js
%%DATADIR%%/webui/downloads.js
%%DATADIR%%/webui/edit.js
@@ -20,24 +26,20 @@ sbin/nzbgetd
%%DATADIR%%/webui/lib/bootstrap.css
%%DATADIR%%/webui/lib/bootstrap.js
%%DATADIR%%/webui/lib/bootstrap.min.js
+%%DATADIR%%/webui/lib/elycharts.js
+%%DATADIR%%/webui/lib/elycharts.min.js
%%DATADIR%%/webui/lib/jquery.js
%%DATADIR%%/webui/lib/jquery.min.js
+%%DATADIR%%/webui/lib/raphael.js
+%%DATADIR%%/webui/lib/raphael.min.js
%%DATADIR%%/webui/messages.js
%%DATADIR%%/webui/status.js
%%DATADIR%%/webui/style.css
%%DATADIR%%/webui/upload.js
%%DATADIR%%/webui/util.js
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%DATADIR%%/ppscripts/EMail.py
-%%DATADIR%%/ppscripts/Logger.py
-@dirrmtry %%DATADIR%%/ppscripts
-@dirrm %%DATADIR%%/webui/img
-@dirrm %%DATADIR%%/webui/lib
-@dirrm %%DATADIR%%/webui
-@dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@unexec if cmp -s %D/etc/nzbget.conf %D/etc/nzbget.conf.sample; then rm -f %D/etc/nzbget.conf; fi
-etc/nzbget.conf.sample
-@exec [ -f %D/etc/nzbget.conf ] || cp %D/etc/nzbget.conf.sample %D/etc/nzbget.conf
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrmtry %%DATADIR%%/scripts
+@dirrmtry %%DATADIR%%/webui/img
+@dirrmtry %%DATADIR%%/webui/lib
+@dirrmtry %%DATADIR%%/webui
+@dirrmtry %%DATADIR%%