Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2018 09:38:04 +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: r477318 - head/databases/pgtcl
Message-ID:  <201808160938.w7G9c4gs063370@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Aug 16 09:38:04 2018
New Revision: 477318
URL: https://svnweb.freebsd.org/changeset/ports/477318

Log:
  - Pet portlint
  - Switch to options helpers
  - Update WWW
  
  Approved by:	portmgr blanket

Modified:
  head/databases/pgtcl/Makefile
  head/databases/pgtcl/pkg-descr

Modified: head/databases/pgtcl/Makefile
==============================================================================
--- head/databases/pgtcl/Makefile	Thu Aug 16 09:08:06 2018	(r477317)
+++ head/databases/pgtcl/Makefile	Thu Aug 16 09:38:04 2018	(r477318)
@@ -15,8 +15,6 @@ COMMENT=	TCL extension for accessing a PostgreSQL serv
 LICENSE=	PostgreSQL
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
-OPTIONS_DEFINE=	DOCS
-
 .if defined(PGTCL_SLAVE)
 USES=		pgsql:${PGTCL_SLAVE}
 .else
@@ -29,17 +27,15 @@ USE_LDCONFIG=	${LIBDIR}
 PLIST_SUB+=	PORTVERSION=${PORTVERSION}
 MANUALREL=	20171113
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-DISTFILES+=	pgtcldocs-${MANUALREL}.zip:doc
-MASTER_SITES+=	SF/pgtclng/Manual/${MANUALREL}:doc
-.endif
-
 PLIST_FILES=	lib/pgtcl/libpgtcl${PORTVERSION}.so \
 		lib/pgtcl/pkgIndex.tcl
 PORTDOCS=	*
 
+OPTIONS_DEFINE=	DOCS
+
+DOCS_DISTFILES=		pgtcldocs-${MANUALREL}.zip:doc
+DOCS_MASTER_SITES=	SF/pgtclng/Manual/${MANUALREL}:doc
+
 post-configure:
 	${REINPLACE_CMD} -e 's,tclstub,tcl,g' \
 	    -e 's,-DUSE_TCL_STUBS=1,-UUSE_TCL_STUBS,g' \
@@ -49,11 +45,11 @@ do-install:
 	@${MKDIR} ${STAGEDIR}${LIBDIR}
 	${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl	\
 		${WRKSRC}/libpgtcl${PORTVERSION}.so ${STAGEDIR}${LIBDIR}
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${TAR} -xf ${DISTDIR}/${_DISTFILES:M*.zip} -C ${STAGEDIR}${DOCSDIR} \
 		--strip-components 1 --no-same-permission --no-same-owner
 	${CHMOD} ${SHAREMODE} ${STAGEDIR}${DOCSDIR}/*
-.endif
 
 .include <bsd.port.mk>

Modified: head/databases/pgtcl/pkg-descr
==============================================================================
--- head/databases/pgtcl/pkg-descr	Thu Aug 16 09:08:06 2018	(r477317)
+++ head/databases/pgtcl/pkg-descr	Thu Aug 16 09:38:04 2018	(r477318)
@@ -2,4 +2,4 @@ A TCL extension for accessing PostgreSQL databases. Th
 to come bunlded with PostgreSQL itself, but was split into a
 separate project in more recent version (8+).
 
-WWW: http://sourceforge.net/projects/pgtclng/
+WWW: https://sourceforge.net/projects/pgtclng/



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