- Replace single magic postgresql-docs port with versioned ports.

- Fix docs for 90 and 91-- as of 9+ the docs require building

Discussed with:	girgen
This commit is contained in:
Chris Rees 2012-03-04 21:10:56 +00:00
parent 6f28782695
commit bd8b33273e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=292687
8 changed files with 77 additions and 25 deletions

1
MOVED
View File

@ -3243,3 +3243,4 @@ devel/dklibs||2012-03-03|Has expired: not needed for graphics/bmeps anymore, no
security/blocksshd||2012-03-03|Removed: security/sshguard is more active and a better tool.
net/p5-Net-Subnets||2012-03-03|Has expired: Disappeared from CPAN
www/mediawiki116||2012-03-04|Has expired: Unsupport Upstream
databases/postgresql-docs|databases/postgresql84-docs|2012-03-04|Split into versioned ports

View File

@ -609,7 +609,6 @@
SUBDIR += phppgadmin
SUBDIR += postgis
SUBDIR += postgis-jdbc
SUBDIR += postgresql-docs
SUBDIR += postgresql-jdbc
SUBDIR += postgresql-libpgeasy
SUBDIR += postgresql-libpq++
@ -629,18 +628,22 @@
SUBDIR += postgresql82-server
SUBDIR += postgresql83-client
SUBDIR += postgresql83-contrib
SUBDIR += postgresql83-docs
SUBDIR += postgresql83-plperl
SUBDIR += postgresql83-server
SUBDIR += postgresql84-client
SUBDIR += postgresql84-contrib
SUBDIR += postgresql84-docs
SUBDIR += postgresql84-plperl
SUBDIR += postgresql84-server
SUBDIR += postgresql90-client
SUBDIR += postgresql90-contrib
SUBDIR += postgresql90-docs
SUBDIR += postgresql90-plperl
SUBDIR += postgresql90-server
SUBDIR += postgresql91-client
SUBDIR += postgresql91-contrib
SUBDIR += postgresql91-docs
SUBDIR += postgresql91-plperl
SUBDIR += postgresql91-server
SUBDIR += postgresql_autodoc

View File

@ -1,2 +0,0 @@
This port installs all of PostgreSQL's documentation files into
share/doc/postgresql/html

View File

@ -1 +0,0 @@
@comment automatically generated plist

View File

@ -0,0 +1,10 @@
# New ports collection makefile for: PostgreSQL docs
# Date created: August 26, 2002
# Whom: Palle Girgensohn <girgen@pingpong.net>
#
# $FreeBSD$
#
WANT_PGSQL_VER=83
.include "${.CURDIR}/../postgresql84-docs/Makefile"

View File

@ -9,31 +9,14 @@ PORTNAME= postgresql
PORTREVISION= 0
PKGNAMESUFFIX= -docs
MAINTAINER= crees@FreeBSD.org
MAINTAINER= pgsql@FreeBSD.org
COMMENT= The PostgreSQL documentation set
MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server
MASTERDIR= ${.CURDIR}/../../databases/postgresql${WANT_PGSQL_VER}-server
DEFAULT_PGSQL_VER?=84
USE_PGSQL= yes
WANT_PGSQL_VER?=84
# can't include <bsd.port.pre.mk> in a slave port
# so set these instead:
LOCALBASE?= /usr/local
SED?= /usr/bin/sed
CONFLICTS= postgresql-docs
# Setting/finding PostgreSQL version we want.
.if exists(${LOCALBASE}/bin/pg_config)
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1\2/p'
.else
PGSQL_VER= ${DEFAULT_PGSQL_VER}
.endif
.if (${PGSQL_VER} == 90) || (${PGSQL_VER} == 91)
BROKEN= "not implemented yet"
.endif
NO_BUILD= YES
SLAVE_ONLY= YES
PATCHDIR= mustnotexist

View File

@ -0,0 +1,10 @@
# New ports collection makefile for: PostgreSQL docs
# Date created: August 26, 2002
# Whom: Palle Girgensohn <girgen@pingpong.net>
#
# $FreeBSD$
#
WANT_PGSQL_VER=90
.include "${.CURDIR}/../postgresql91-docs/Makefile"

View File

@ -0,0 +1,48 @@
# New ports collection makefile for: PostgreSQL docs
# Date created: August 26, 2002
# Whom: Palle Girgensohn <girgen@pingpong.net>
#
# $FreeBSD$
#
PORTNAME= postgresql
PORTREVISION= 0
PKGNAMESUFFIX= -docs
MAINTAINER= pgsql@FreeBSD.org
COMMENT= The PostgreSQL documentation set
MASTERDIR= ${.CURDIR}/../../databases/postgresql${WANT_PGSQL_VER}-server
USE_PGSQL= YES
WANT_PGSQL_VER?=91
SLAVE_ONLY= YES
PGDOCSREL?= ${DOCSDIR_REL}/release-${PGSQL_VER}
PGDOCSDIR?= ${PREFIX}/${PGDOCSREL}
sgmldir= ${LOCALBASE}/share/sgml
dbdir= ${sgmldir}/docbook
BUILD_DEPENDS+= onsgmls:${PORTSDIR}/textproc/opensp \
openjade:${PORTSDIR}/textproc/openjade \
${sgmldir}/iso8879/catalog:${PORTSDIR}/textproc/iso8879 \
${dbdir}/dsssl/modular/catalog:${PORTSDIR}/textproc/dsssl-docbook-modular \
${dbdir}/4.2/docbook.dtd:${PORTSDIR}/textproc/docbook-420
do-build:
${GMAKE} -C ${WRKSRC} html
do-install:
@ $(MKDIR) ${PGDOCSDIR}
( cd ${WRKSRC}/doc/src/sgml/html && \
${COPYTREE_SHARE} \* ${PGDOCSDIR} )
post-install:
@(cd ${PREFIX} && ${FIND} ${PGDOCSREL} -type f) >> ${TMPPLIST}
@(cd ${PREFIX} && ${FIND} ${PGDOCSREL} -type d) | ${SORT} -r | \
${SED} 's,.*,@unexec rmdir %D/& 2>/dev/null || true,' >>${TMPPLIST}
.include "${MASTERDIR}/Makefile"