Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2014 15:48:58 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341601 - in head/textproc/html-pretty: . files
Message-ID:  <201401281548.s0SFmw55046567@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Tue Jan 28 15:48:57 2014
New Revision: 341601
URL: http://svnweb.freebsd.org/changeset/ports/341601
QAT: https://qat.redports.org/buildarchive/r341601/

Log:
  Support staging.
  
  Sponsored by:	Absolight

Modified:
  head/textproc/html-pretty/Makefile
  head/textproc/html-pretty/files/patch-Makefile.in   (contents, props changed)
  head/textproc/html-pretty/pkg-plist

Modified: head/textproc/html-pretty/Makefile
==============================================================================
--- head/textproc/html-pretty/Makefile	Tue Jan 28 15:34:46 2014	(r341600)
+++ head/textproc/html-pretty/Makefile	Tue Jan 28 15:48:57 2014	(r341601)
@@ -11,25 +11,19 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	HTML and SGML prettyprinter and text-to-HTML/SGML converter
 
 GNU_CONFIGURE=	yes
-NO_STAGE=	yes
 
-MAN1=		html-pretty.1
-
-.if !defined(NOPORTDOCS)
 PORTDOCS=	*
 
 DOCFILES=	AUTHORS BUGS COPYING ChangeLog NEWS README THANKS
 
 post-install:
-	-${MKDIR} ${DOCSDIR}/html
-	${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} ${WRKSRC}/*.html \
-		${DOCSDIR}/html/
-	${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} ${WRKSRC}/Docs/*.html \
-		${DOCSDIR}/html/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
+	${INSTALL_DATA} ${WRKSRC}/*.html \
+		${STAGEDIR}${DOCSDIR}/html
+	${INSTALL_DATA} ${WRKSRC}/Docs/*.html \
+		${STAGEDIR}${DOCSDIR}/html
 	for docfile in ${DOCFILES}; do \
-		${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} \
-			${WRKSRC}/$$docfile ${DOCSDIR}/; \
+		${INSTALL_DATA} ${WRKSRC}/$$docfile ${STAGEDIR}${DOCSDIR}/; \
 	done
-.endif
 
 .include <bsd.port.mk>

Modified: head/textproc/html-pretty/files/patch-Makefile.in
==============================================================================
--- head/textproc/html-pretty/files/patch-Makefile.in	Tue Jan 28 15:34:46 2014	(r341600)
+++ head/textproc/html-pretty/files/patch-Makefile.in	Tue Jan 28 15:48:57 2014	(r341601)
@@ -1,7 +1,5 @@
-$FreeBSD$
-
---- Makefile.in.orig	Sat Aug 25 15:56:14 2001
-+++ Makefile.in	Tue Mar 16 17:58:19 2004
+--- ./Makefile.in.orig	2001-08-25 21:56:14.000000000 +0000
++++ ./Makefile.in	2014-01-28 15:44:55.000000000 +0000
 @@ -34,7 +34,7 @@
  ###	install			install htmlpty in system directories
  ###	install-exe		install only htmlpty executable
@@ -56,7 +54,7 @@ $FreeBSD$
  LIBS            = @LIBS@
  
  VPATH           = @srcdir@
-@@ -743,7 +743,7 @@
+@@ -743,32 +743,22 @@
  	$(ZOO) v htmlpty-$(VERSION).zoo >htmlpty-$(VERSION).zoo-lst
  	$(LN) htmlpty-$(VERSION).zoo htmlpty.zoo
  
@@ -65,35 +63,38 @@ $FreeBSD$
  
  ### Remove the old executable before installing the new one, so as to
  ### preserve the link to the old version.  We first rename the file
-@@ -755,20 +755,15 @@
- 		$(MV) $(BINDIR)/$(PROGRAM) $(BINDIR)/$(PROGRAM).tmp ; \
- 		$(RM) $(BINDIR)/$(PROGRAM).tmp ; \
- 	fi
+ ### before deleting it, to deal with systems that do not permit
+ ### deletion of an executable that is in use.
+ install-exe:
+-	if test -f $(BINDIR)/$(PROGRAM) ; \
+-	then \
+-		$(MV) $(BINDIR)/$(PROGRAM) $(BINDIR)/$(PROGRAM).tmp ; \
+-		$(RM) $(BINDIR)/$(PROGRAM).tmp ; \
+-	fi
 -	$(CP) htmlpty $(BINDIR)/$(PROGRAM)
 -	-$(CHMOD) 775 $(BINDIR)/$(PROGRAM)
 -	-$(RM) $(BINDIR)/$(PROGRAM)-$(VERSION)
 -	$(LN) $(BINDIR)/$(PROGRAM) $(BINDIR)/$(PROGRAM)-$(VERSION)
-+	$(INSTALL) -m 755 htmlpty $(BINDIR)/$(PROGRAM)
++	$(INSTALL) -m 755 htmlpty $(DESTDIR)$(BINDIR)/$(PROGRAM)
  
  install-man:
 -	-$(RM) $(MANDIR)/cat$(MANEXT)/$(PROGRAM).$(MANEXT)
 -	$(CP) htmlpty.man $(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
 -	-$(CHMOD) 664 $(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
--
++	-$(MKDIR) $(DESTDIR)$(MANDIR)/man$(MANEXT)
++	$(INSTALL_DATA) htmlpty.man $(DESTDIR)$(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
+ 
 -install-lib:
 -	-$(MKDIR) $(LIBDIR)/$(PROGRAM)
 -	$(CP) Styles/catalog Styles/*.sty $(LIBDIR)/$(PROGRAM)/
 -	$(CHMOD) 664 $(LIBDIR)/$(PROGRAM)/*
-+	-$(MKDIR) $(MANDIR)/man$(MANEXT)
-+	$(INSTALL_DATA) htmlpty.man $(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
-+
 +install-data:
-+	-$(MKDIR) $(DATADIR)/$(PROGRAM)
-+	$(INSTALL_DATA) Styles/catalog Styles/*.sty $(DATADIR)/$(PROGRAM)/
++	-$(MKDIR) $(DESTDIR)$(DATADIR)/$(PROGRAM)
++	$(INSTALL_DATA) Styles/catalog Styles/*.sty $(DESTDIR)$(DATADIR)/$(PROGRAM)/
  
  install-ftp:	htmlpty.tar htmlpty.zip htmlpty.zoo
  	$(TAR) tvf htmlpty-$(VERSION).tar >$(FTPDIR)/htmlpty-$(VERSION).tar-lst
-@@ -827,14 +822,14 @@
+@@ -827,14 +817,14 @@
  test-version:
  	@echo "Version number is ""'"$(VERSION)"'"
  

Modified: head/textproc/html-pretty/pkg-plist
==============================================================================
--- head/textproc/html-pretty/pkg-plist	Tue Jan 28 15:34:46 2014	(r341600)
+++ head/textproc/html-pretty/pkg-plist	Tue Jan 28 15:48:57 2014	(r341601)
@@ -1,4 +1,5 @@
 bin/html-pretty
+man/man1/html-pretty.1.gz
 %%DATADIR%%/catalog
 %%DATADIR%%/cougar.sty
 %%DATADIR%%/dtd.sty



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