Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 May 2008 11:22:23 GMT
From:      Frank Fenor <frank@fenor.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/123607: Update: devel/tclxml-libxml2 - Install missing file and man-page
Message-ID:  <200805121122.m4CBMNMf042224@www.freebsd.org>
Resent-Message-ID: <200805121130.m4CBU0un043555@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         123607
>Category:       ports
>Synopsis:       Update: devel/tclxml-libxml2 - Install missing file and man-page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 12 11:30:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Frank Fenor
>Release:        FreeBSD 7.0-PRERELEASE
>Organization:
>Environment:
>Description:
First fix: The upstream forgot to include the tcllibxml2Config.sh file into the installationprocess. Also, not all macros are filled in correctly, so we'll fix that too.

Second fix: The upstream provides a manpage, but does not offer any way to install it. So we'll do it ourself - if not asked otherwise.
>How-To-Repeat:

>Fix:
Apply patch.

Patch attached with submission follows:

diff -Nru /usr/ports/devel/tclxml-libxml2/Makefile /jails/test1/usr/ports/devel/tclxml-libxml2/Makefile
--- /usr/ports/devel/tclxml-libxml2/Makefile	2008-05-05 17:03:01.000000000 +0200
+++ /jails/test1/usr/ports/devel/tclxml-libxml2/Makefile	2008-05-12 01:31:16.000000000 +0200
@@ -5,6 +5,7 @@
 # $FreeBSD: ports/devel/tclxml-libxml2/Makefile,v 1.1 2008/05/05 15:03:01 beech Exp $
 #
 
+PORTREVISION=	1
 PKGNAMESUFFIX=	-libxml2
 
 MAINTAINER=	frank@fenor.de
@@ -18,4 +19,22 @@
 
 MASTERDIR=	${.CURDIR}/../tclxml
 
-.include	"${MASTERDIR}/Makefile"
\ No newline at end of file
+.if !defined(NOPORTDOCS)
+MANN=		tclxml.n
+.endif
+
+post-build:
+	${REINPLACE_CMD} -e 's|@tcldomxml_LIB_FILE@|libTclXML_libxml2${PORTVERSION}.so|' \
+	-e 's|@tclxml_libxml2_LIB_SPEC@|${LOCALBASE}/lib/TclXML_libxml2${PORTVERSION}/libTclXML_libxml2${PORTVERSION}.so|' \
+	-e 's|@tclxml_libxml2_stub_LIB_FILE@|libTclxmlstub${PORTVERSION}.a|' \
+	-e 's|@tclxml_libxml2_STUB_LIB_SPEC@|${LOCALBASE}/lib/Tclxml${PORTVERSION}/libTclxmlstub${PORTVERSION}.a|' \
+	-e 's|@tclxml_libxml2_STUB_LIB_PATH@|${LOCALBASE}/lib/TclXML_libxml2${PORTVERSION}|' \
+	${WRKSRC}/tcllibxml2Config.sh
+
+post-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/tcllibxml2Config.sh ${LOCALBASE}/lib
+.if !defined(NOPORTDOCS)
+	${INSTALL_MAN} ${WRKSRC}/../doc/tclxml.n ${MANPREFIX}/man/mann
+.endif
+
+.include	"${MASTERDIR}/Makefile"
diff -Nru /usr/ports/devel/tclxml-libxml2/files/patch-doc-tclxml.n /jails/test1/usr/ports/devel/tclxml-libxml2/files/patch-doc-tclxml.n
--- /usr/ports/devel/tclxml-libxml2/files/patch-doc-tclxml.n	1970-01-01 01:00:00.000000000 +0100
+++ /jails/test1/usr/ports/devel/tclxml-libxml2/files/patch-doc-tclxml.n	2008-05-12 02:17:49.000000000 +0200
@@ -0,0 +1,24 @@
+--- ../doc/tclxml.n.orig	2008-05-12 01:26:34.000000000 +0200
++++ ../doc/tclxml.n	2008-05-12 01:26:50.000000000 +0200
+@@ -5,14 +5,14 @@
+ '\" Copyright (c) 2004 Zveno Pty Ltd
+ '\" http://www.zveno.com/
+ '\"
+-Zveno makes this software and all associated data and documentation
+-('Software') available free of charge for any purpose.  Copies may be made
+-of this Software but all of this notice must be included on any copy.
++'\" Zveno makes this software and all associated data and documentation
++'\" ('Software') available free of charge for any purpose.  Copies may be made
++'\" of this Software but all of this notice must be included on any copy.
+ '\"
+-The Software was developed for research purposes and Zveno does not
+-warrant that it is error free or fit for any purpose.  Zveno disclaims any
+-liability for all claims, expenses, losses, damages and costs any user may
+-incur as a result of using, copying or modifying the Software.
++'\" The Software was developed for research purposes and Zveno does not
++'\" warrant that it is error free or fit for any purpose.  Zveno disclaims any
++'\" liability for all claims, expenses, losses, damages and costs any user may
++'\" incur as a result of using, copying or modifying the Software.
+ '\"
+ '\"
+ '\" RCS: @(#) $Id: nroff.xsl,v 1.3 2003/12/03 20:06:33 balls Exp $
diff -Nru /usr/ports/devel/tclxml-libxml2/pkg-plist /jails/test1/usr/ports/devel/tclxml-libxml2/pkg-plist
--- /usr/ports/devel/tclxml-libxml2/pkg-plist	2008-05-05 17:03:02.000000000 +0200
+++ /jails/test1/usr/ports/devel/tclxml-libxml2/pkg-plist	2008-05-12 00:19:31.000000000 +0200
@@ -3,5 +3,6 @@
 include/tclxml-libxml2/tclxml-libxml2Decls.h
 lib/TclXML_libxml2%%VER%%/libTclXML_libxml2%%VER%%.so
 lib/TclXML_libxml2%%VER%%/pkgIndex.tcl
+lib/tcllibxml2Config.sh
 @dirrm lib/TclXML_libxml2%%VER%%
-@dirrm include/tclxml-libxml2
\ No newline at end of file
+@dirrm include/tclxml-libxml2


>Release-Note:
>Audit-Trail:
>Unformatted:



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