Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2012 19:51:11 -0700 (PDT)
From:      Cy Schubert (cy@FreeBSD.org) <cy@FreeBSD.freebsd.org>, org@komquats.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/173097: [patch] editors/xmlcopyeditor XML parser option
Message-ID:  <201210260251.q9Q2pBsu036679@slippy.cwsent.com>
Resent-Message-ID: <201210260300.q9Q300cs043098@freefall.freebsd.org>

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

>Number:         173097
>Category:       ports
>Synopsis:       [patch] editors/xmlcopyeditor XML parser option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 26 03:00:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Cy Schubert (cy@FreeBSD.org)
>Release:        FreeBSD 9.1-PRERELEASE i386
>Organization:
FreeBSD.org
>Environment:
System: FreeBSD slippy 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r241416M: Wed Oct 10 16:13:20 PDT 2012 root@slippy:/usr/obj/opt/src/svn-stable9/sys/BREAK2 i386


>Description:
editors/xmlcopyeditor depends on textproc/xerces-c2 for its XML parser.
Unfortunately if other ports have one of the other conflicting xerces ports
installed, the conflict will prevent xmlcopyeditor to install. The following
patch will allow xmlcopyeditor to use one of the other xerces ports for its
XML parser.

Index: Makefile
===================================================================
--- Makefile	(revision 306382)
+++ Makefile	(working copy)
@@ -7,13 +7,21 @@
 
 PORTNAME=	xmlcopyeditor
 PORTVERSION=	1.2.0.4
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	editors
 MASTER_SITES=	SF/xml-copy-editor/${PORTNAME}-linux/${PORTVERSION}
 
 MAINTAINER=	jjuanino@gmail.com
 COMMENT=	Fast validating XML editor
 
+OPTIONS_SINGLE=	XERCES
+OPTIONS_SINGLE_XERCES=	XERCES_C XERCES_C2 XERCES_C2_DEVEL XERCES_C3
+OPTIONS_DEFAULT=	XERCES_C2
+XERCES_C_DESC=	Use xerces-c XML parser
+XERCES_C2_DESC=	Use xerces-c2 XML parser
+XERCES_C2_DEVEL_DESC=	Use xerces-c2-devel XML parser
+XERCES_C3_DESC=	Use xerces-c2 XML parser
+
 USE_WX=		2.8+
 WX_COMPS=	wx contrib
 WX_CONF_ARGS=	absolute
@@ -30,8 +38,7 @@
 		src/po/en_us/messages.po
 
 BUILD_DEPENDS+=	${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
-LIB_DEPENDS+=	xerces-c.27:${PORTSDIR}/textproc/xerces-c2 \
-		xslt.2:${PORTSDIR}/textproc/libxslt \
+LIB_DEPENDS+=	xslt.2:${PORTSDIR}/textproc/libxslt \
 		aspell.16:${PORTSDIR}/textproc/aspell \
 		pcre.1:${PORTSDIR}/devel/pcre \
 		xml2.5:${PORTSDIR}/textproc/libxml2 \
@@ -44,4 +51,16 @@
 		-I${LOCALBASE}/include/libxml2 ${PTHREAD_CFLAGS}
 LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MXERCES_C}
+LIB_DEPENDS+=	xerces-c.17:${PORTSDIR}/textproc/xerces-c
+.elif ${PORT_OPTIONS:MXERCES_C2}
+LIB_DEPENDS+=	xerces-c.27:${PORTSDIR}/textproc/xerces-c2
+.elif ${PORT_OPTIONS:MXERCES_C2_DEVEL}
+LIB_DEPENDS+=	xerces-c.280:${PORTSDIR}/textproc/xerces-c2-devel
+.elif ${PORT_OPTIONS:MXERCES_C3}
+LIB_DEPENDS+=	xerces-c.3:${PORTSDIR}/textproc/xerces-c3
+.endif
+
+.include <bsd.port.post.mk>

>How-To-Repeat:
Try to install this port on a system with one of the other xerces ports
installed.
>Fix:

See description.


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



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