Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Feb 2005 10:10:23 GMT
From:      Stefan Walter <sw@gegenunendlich.de>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/75100: [PATCH] textproc/sgmltools-lite: [fix broken pkg-plist]
Message-ID:  <200502031010.j13AANZ9050267@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/75100; it has been noted by GNATS.

From: Stefan Walter <sw@gegenunendlich.de>
To: freebsd-gnats-submit@FreeBSD.org, darth@vader.dk
Cc:  
Subject: Re: ports/75100: [PATCH] textproc/sgmltools-lite: [fix broken pkg-plist]
Date: Thu, 3 Feb 2005 11:03:48 +0100

 --0F1p//8PRICkK4MW
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hi,
 
 I guess the reason why this port is broken is that it creates a couple of
 directories it doesn't remove when it's deinstalled. The attached patch
 should fix that. Other changes are:
 
 - Use PREFIX instead of LOCALBASE as in the patch the originator sent.
 - Use USE_PYTHON_BUILD instead of an explicit dependency line.
 - Replace the URL mentioned in pkg-descr with the actual project
   homepage's URL (http://www.sgmltools.org/ says that domain is for sale.
   I think that's a good reason to let textproc/sgmltools die, then, and
   only keep sgmltools-lite around, which is that project's successor.)
 - Bump PORTREVISION.
 
 Stefan
 
 --0F1p//8PRICkK4MW
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="sgmltools-plist.patch"
 
 diff -urN sgmltools-lite.old/Makefile sgmltools-lite/Makefile
 --- sgmltools-lite.old/Makefile	Thu Feb  3 09:38:25 2005
 +++ sgmltools-lite/Makefile	Thu Feb  3 10:21:50 2005
 @@ -7,7 +7,7 @@
  
  PORTNAME=	sgmltools-lite
  PORTVERSION=	3.0.3
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	textproc
  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=	sgmltools-lite
 @@ -15,19 +15,15 @@
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Generates various output formats from DocBook SGML documents
  
 -BUILD_DEPENDS+=	python:${PORTSDIR}/lang/python \
 -		openjade:${PORTSDIR}/textproc/openjade \
 +BUILD_DEPENDS+=	openjade:${PORTSDIR}/textproc/openjade \
  		${LOCALBASE}/share/texmf:${PORTSDIR}/print/teTeX
  RUN_DEPENDS+=	${LOCALBASE}/share/sgml/docbook:${PORTSDIR}/textproc/docbook \
  		${LOCALBASE}/share/sgml/docbook/dsssl:${PORTSDIR}/textproc/dsssl-docbook-modular
  
 -BROKEN=		Broken pkg-plist
 -EXPIRATION_DATE=2005-02-18
 -DEPRECATED=	${BROKEN}
 -
 +USE_PYTHON_BUILD=	yes
  MAN1=		sgmltools-lite.1
  GNU_CONFIGURE=	yes
 -CONFIGURE_ARGS+=--with-etcsgml=${PREFIX}/etc/sgml --datadir=${LOCALBASE}/share
 +CONFIGURE_ARGS+=--with-etcsgml=${PREFIX}/etc/sgml --datadir=${PREFIX}/share
  
  pre-configure:
  	${RM} -f ${WRKSRC}/config.cache
 @@ -36,6 +32,6 @@
  	${MKDIR} ${PREFIX}/etc/sgml
  
  post-install:
 -	${ECHO_CMD} "3.0.3" > ${LOCALBASE}/share/sgml/misc/sgmltools/VERSION
 +	${ECHO_CMD} "3.0.3" > ${PREFIX}/share/sgml/misc/sgmltools/VERSION
  
  .include <bsd.port.mk>
 diff -urN sgmltools-lite.old/pkg-descr sgmltools-lite/pkg-descr
 --- sgmltools-lite.old/pkg-descr	Thu Feb  3 09:38:25 2005
 +++ sgmltools-lite/pkg-descr	Thu Feb  3 09:39:30 2005
 @@ -4,4 +4,4 @@
  formats are possible.  As the front-end is written in Python, it is relatively
  easy to adapt to your needs. 
  
 -WWW: http://www.sgmltools.org/
 +WWW: http://sgmltools-lite.sourceforge.net/
 diff -urN sgmltools-lite.old/pkg-plist sgmltools-lite/pkg-plist
 --- sgmltools-lite.old/pkg-plist	Thu Feb  3 09:38:25 2005
 +++ sgmltools-lite/pkg-plist	Thu Feb  3 10:10:29 2005
 @@ -39,4 +39,7 @@
  @dirrm share/sgml/misc/sgmltools/python/backends
  @dirrm share/sgml/misc/sgmltools/python
  @dirrm share/sgml/misc/sgmltools
 +@dirrm etc/sgml/catalog.d
  @unexec rmdir %D/etc/sgml 2>/dev/null || true
 +@unexec rmdir %D/share/sgml/dtd 2>/dev/null || true
 +@unexec rmdir %D/share/sgml/misc 2>/dev/null || true
 
 --0F1p//8PRICkK4MW--



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