aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2018-08-16 17:38:04 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2018-08-16 17:38:04 +0800
commite7eeef51351e774485ef8071dc27aaa3eec7a61f (patch)
treeb71b2341755fe9d5f716091c1f27e77526e7aea6 /databases
parent12889cdbe39684d204ce51d1c4617cbe70957d73 (diff)
downloadfreebsd-ports-gnome-e7eeef51351e774485ef8071dc27aaa3eec7a61f.tar.gz
freebsd-ports-gnome-e7eeef51351e774485ef8071dc27aaa3eec7a61f.tar.zst
freebsd-ports-gnome-e7eeef51351e774485ef8071dc27aaa3eec7a61f.zip
- Pet portlint
- Switch to options helpers - Update WWW Approved by: portmgr blanket
Diffstat (limited to 'databases')
-rw-r--r--databases/pgtcl/Makefile18
-rw-r--r--databases/pgtcl/pkg-descr2
2 files changed, 8 insertions, 12 deletions
diff --git a/databases/pgtcl/Makefile b/databases/pgtcl/Makefile
index f257908e6c35..8ad0671ac3f1 100644
--- a/databases/pgtcl/Makefile
+++ b/databases/pgtcl/Makefile
@@ -15,8 +15,6 @@ COMMENT= TCL extension for accessing a PostgreSQL server (PGTCL-NG)
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>
diff --git a/databases/pgtcl/pkg-descr b/databases/pgtcl/pkg-descr
index e5ab0fab9ab5..2dc0d403ac66 100644
--- a/databases/pgtcl/pkg-descr
+++ b/databases/pgtcl/pkg-descr
@@ -2,4 +2,4 @@ A TCL extension for accessing PostgreSQL databases. This used
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/