View | Details | Raw Unified | Return to bug 59395
Collapse All | Expand All

(-)Makefile (-18 / +13 lines)
Lines 4-40 Link Here
4
#
4
#
5
# $FreeBSD: ports/databases/postgresql-docs/Makefile,v 1.8 2003/09/04 11:16:38 osa Exp $
5
# $FreeBSD: ports/databases/postgresql-docs/Makefile,v 1.8 2003/09/04 11:16:38 osa Exp $
6
#
6
#
7
POSTGRESQL_PORT?=	databases/postgresql7
8
7
9
PORTNAME=	postgresql
8
PORTREVISION=	0
10
PORTVERSION!=	cd ${.CURDIR}/../../${POSTGRESQL_PORT} && ${MAKE} -V PORTVERSION
11
PORTREVISION?=	0
12
CATEGORIES=	databases java
13
MASTER_SITES=	${MASTER_SITE_PGSQL}
14
MASTER_SITE_SUBDIR!=	cd ${.CURDIR}/../../${POSTGRESQL_PORT} && ${MAKE} -V MASTER_SITE_SUBDIR
15
PKGNAMESUFFIX=	-docs
9
PKGNAMESUFFIX=	-docs
16
DISTFILES=	postgresql-docs-${PORTVERSION}${EXTRACT_SUFX}
17
DIST_SUBDIR=	postgresql
18
10
19
MAINTAINER=	girgen@pingpong.net
11
MAINTAINER=	girgen@pingpong.net
20
COMMENT=	The PostgreSQL documentation set
12
COMMENT=	The PostgreSQL documentation set
21
13
22
MD5_FILE=	${.CURDIR}/../../${POSTGRESQL_PORT}/distinfo
14
POSTGRESQL_SUBPORT=	YES
15
POSTGRESQL_PORT?=	databases/postgresql7
16
.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
17
DISTFILES=	postgresql-docs-${PORTVERSION}${EXTRACT_SUFX}
18
.undef USE_GMAKE
19
.undef GNU_CONFIGURE
23
NO_BUILD=	YES
20
NO_BUILD=	YES
24
21
25
do-install:
22
do-install:
26
	@ $(MKDIR) ${DOCSDIR}/html; \
23
	@ $(MKDIR) ${DOCSDIR}/html; \
27
	${GZIP_CMD} -dc ${WRKSRC}/doc/postgres.tar.gz | \
24
	${GZIP_CMD} -dc ${WRKSRC}/doc/postgres.tar.gz | \
28
	( cd $(DOCSDIR)/html && $(TAR) xf - )
25
	( cd ${DOCSDIR}/html && $(TAR) xf - )
29
26
30
post-install:
27
post-install:
31
	@ ${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} -v /$$ | \
28
	@ ${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} -v /$$ | \
32
	  ${XARGS} printf "share/doc/postgresql/html/%s\n" >> ${TMPPLIST} ;\
29
	  ${SED} "s,^,${DOCSDIR:S,^${PREFIX}/,,}/html/," >> ${TMPPLIST} ;\
33
	for dir in `$(TAR) ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} /$$` ; do \
30
	  ${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} /$$ | \
34
	  ${ECHO} @dirrm $$dir >> ${TMPPLIST} ;\
31
	  ${SED} "s,^,@dirrm\ ," >> ${TMPPLIST} ;\
35
	done ;\
32
	  ${ECHO} @dirrm ${DOCSDIR:S,^${PREFIX}/,,}/html >> ${TMPPLIST} ;\
36
	${ECHO} @dirrm share/doc/postgresql/html >> ${TMPPLIST} ;\
33
	  ${ECHO} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,} 2> /dev/null || true" >> ${TMPPLIST}
37
	${ECHO} @dirrm share/doc/postgresql >> ${TMPPLIST} ;\
38
	${ECHO} '@unexec rmdir %D/share/postgresql 2> /dev/null || true' >> ${TMPPLIST}
39
34
40
.include <bsd.port.mk>
35
.include <bsd.port.mk>

Return to bug 59395