summaryrefslogtreecommitdiff
path: root/databases/postgresql96-docs
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2016-10-01 13:16:04 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2016-10-01 13:16:04 +0000
commitec419424bfbc972984f52496dc54706e5a7edc56 (patch)
treeba1ca4767a580b71972aff8bb7fc950fe10cf289 /databases/postgresql96-docs
parent0c508133451ad8bf972ea7b8c67a6c4afbaa1b34 (diff)
Notes
Diffstat (limited to 'databases/postgresql96-docs')
-rw-r--r--databases/postgresql96-docs/Makefile43
1 files changed, 41 insertions, 2 deletions
diff --git a/databases/postgresql96-docs/Makefile b/databases/postgresql96-docs/Makefile
index 53ae4930ba81..c79f5c8f4445 100644
--- a/databases/postgresql96-docs/Makefile
+++ b/databases/postgresql96-docs/Makefile
@@ -1,6 +1,45 @@
# Created by: Palle Girgensohn <girgen@pingpong.net>
# $FreeBSD$
-WANT_PGSQL_VER=9.6
+PORTNAME= postgresql
+PKGNAMESUFFIX?= ${DISTV:S/.//}-docs
+DISTV= ${DISTVERSION:R}
-.include "${.CURDIR}/../postgresql91-docs/Makefile"
+MAINTAINER= pgsql@FreeBSD.org
+COMMENT= The PostgreSQL documentation set
+
+MASTERDIR= ${.CURDIR}/../../databases/postgresql${WANT_PGSQL_VER:S/.//}-server
+
+USES+= pgsql:${WANT_PGSQL_VER}
+WANT_PGSQL_VER?=9.6
+
+SLAVE_ONLY= YES
+COMPONENT= -docs
+
+PGDOCSREL?= ${DOCSDIR_REL}/release-${PGSQL_VER}
+PGDOCSDIR?= ${PREFIX}/${PGDOCSREL}
+
+sgmldir= ${LOCALBASE}/share/sgml
+dbdir= ${sgmldir}/docbook
+
+BUILD_DEPENDS+= onsgmls:textproc/opensp \
+ openjade:textproc/openjade \
+ ${sgmldir}/iso8879/catalog:textproc/iso8879 \
+ ${dbdir}/dsssl/modular/catalog:textproc/dsssl-docbook-modular \
+ docbook-sgml>0:textproc/docbook-sgml
+
+do-build:
+ ${MAKE_CMD} -C ${WRKSRC} html
+
+do-install:
+ @ ${MKDIR} ${STAGEDIR}${PGDOCSDIR}
+ ( cd ${WRKSRC}/doc/src/sgml/html && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${PGDOCSDIR} )
+
+post-install:
+ @(cd ${STAGEDIR}${PREFIX} && ${FIND} ${PGDOCSREL} -type f) >> ${TMPPLIST}
+ @(cd ${STAGEDIR}${PREFIX} && ${FIND} ${PGDOCSREL} -type d) | ${SORT} -r | \
+ ${SED} 's,.*,@unexec rmdir %D/& 2>/dev/null || true,' >>${TMPPLIST}
+
+
+.include "${MASTERDIR}/Makefile"