ports/75100: [PATCH] textproc/sgmltools-lite: [fix broken pkg-plist]
Stefan Walter
sw at gegenunendlich.de
Thu Feb 3 10:10:24 UTC 2005
The following reply was made to PR ports/75100; it has been noted by GNATS.
From: Stefan Walter <sw at gegenunendlich.de>
To: freebsd-gnats-submit at FreeBSD.org, darth at 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 at 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
+ at dirrm etc/sgml/catalog.d
@unexec rmdir %D/etc/sgml 2>/dev/null || true
+ at unexec rmdir %D/share/sgml/dtd 2>/dev/null || true
+ at unexec rmdir %D/share/sgml/misc 2>/dev/null || true
--0F1p//8PRICkK4MW--
More information about the freebsd-ports-bugs
mailing list