From owner-svn-ports-head@FreeBSD.ORG Mon Nov 25 08:31:28 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53806811; Mon, 25 Nov 2013 08:31:28 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 42EAB24CD; Mon, 25 Nov 2013 08:31:28 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAP8VSUS052022; Mon, 25 Nov 2013 08:31:28 GMT (envelope-from hrs@svn.freebsd.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAP8VRUA052019; Mon, 25 Nov 2013 08:31:27 GMT (envelope-from hrs@svn.freebsd.org) Message-Id: <201311250831.rAP8VRUA052019@svn.freebsd.org> From: Hiroki Sato Date: Mon, 25 Nov 2013 08:31:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334822 - in head/textproc/libxml2: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2013 08:31:28 -0000 Author: hrs Date: Mon Nov 25 08:31:27 2013 New Revision: 334822 URL: http://svnweb.freebsd.org/changeset/ports/334822 Log: - Add STAGEDIR support. - Use *_CONFIGURE_WITH. - Add workaround for an iconv incompatibility on 10.X and later. Added: head/textproc/libxml2/files/patch-encoding.c (contents, props changed) Modified: head/textproc/libxml2/Makefile head/textproc/libxml2/pkg-plist Modified: head/textproc/libxml2/Makefile ============================================================================== --- head/textproc/libxml2/Makefile Mon Nov 25 08:25:58 2013 (r334821) +++ head/textproc/libxml2/Makefile Mon Nov 25 08:31:27 2013 (r334822) @@ -4,7 +4,7 @@ PORTNAME= libxml2 PORTVERSION= 2.8.0 -PORTREVISION?= 2 +PORTREVISION?= 3 CATEGORIES?= textproc gnome MASTER_SITES= ftp://xmlsoft.org/libxml2/ \ http://xmlsoft.org/sources/ \ @@ -15,7 +15,6 @@ MAINTAINER?= gnome@FreeBSD.org COMMENT?= XML parser library for GNOME .if !defined(REFERENCE_PORT) - USE_CSTD= gnu89 GNU_CONFIGURE= yes USES= pathfix gmake iconv pkgconfig @@ -27,50 +26,31 @@ CONFIGURE_ARGS?=--with-iconv=${ICONV_PRE --without-python .if !defined(MASTERDIR) -MAN1= xml2-config.1 xmllint.1 xmlcatalog.1 -MAN3= libxml.3 - OPTIONS_DEFINE= SCHEMA THREADS MEM_DEBUG XMLLINT_HIST THREAD_ALLOC OPTIONS_DEFAULT=SCHEMA THREADS + SCHEMA_DESC= XML schema support +SCHEMA_CONFIGURE_WITH= schemas THREADS_DESC= Threads support +THREADS_CONFIGURE_WITH= threads MEM_DEBUG_DESC= Memory debugging (DEVELOPERS ONLY!) +MEM_DEBUG_CONFIGURE_WITH= mem-debug XMLLINT_HIST_DESC= History for xmllint +XMLLINT_HIST_CONFIGURE_WITH= history THREAD_ALLOC_DESC= Per-thread memory (DEVELOPERS ONLY!) - -NO_STAGE= yes -.include - -.if ! ${PORT_OPTIONS:MSCHEMA} -CONFIGURE_ARGS+= --without-schemas -.endif - -.if ! ${PORT_OPTIONS:MTHREADS} -CONFIGURE_ARGS+= --without-threads -.endif - -.if ${PORT_OPTIONS:MMEM_DEBUG} -CONFIGURE_ARGS+= --with-mem-debug -.endif - -.if ${PORT_OPTIONS:MXMLLINT_HIST} -CONFIGURE_ARGS+= --with-history -.endif - -.if ${PORT_OPTIONS:MTHREAD_ALLOC} -CONFIGURE_ARGS+= --with-thread-alloc -.endif +THREAD_ALLOC_CONFIGURE_WITH= thread-alloc .endif # !defined(MASTERDIR) post-patch: .for d in . doc doc/devhelp doc/examples @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \ - ${WRKSRC}/${d}/Makefile.in + ${WRKSRC}/${d}/Makefile.in .endfor .for f in catalog.c xmlcatalog.c xmllint.c doc/xmllint.1 @${REINPLACE_CMD} -e \ - 's|/etc/xml/catalog|${LOCALBASE}/share/xml/catalog|g; \ - s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' ${WRKSRC}/${f} + 's|/etc/xml/catalog|${LOCALBASE}/share/xml/catalog|g; \ + s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' \ + ${WRKSRC}/${f} .endfor # manual patch because WITH_FBSD10_FIX break the python bindings ${FIND} ${WRKSRC} -type f -name configure \ Added: head/textproc/libxml2/files/patch-encoding.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/libxml2/files/patch-encoding.c Mon Nov 25 08:31:27 2013 (r334822) @@ -0,0 +1,21 @@ +--- encoding.c.orig 2012-05-08 22:55:13.000000000 +0900 ++++ encoding.c 2013-11-22 04:59:54.000000000 +0900 +@@ -1789,13 +1789,18 @@ + const char *icv_in = (const char *) in; + char *icv_out = (char *) out; + int ret; ++ int one; + ++ one = 1; + if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || (in == NULL)) { + if (outlen != NULL) *outlen = 0; + return(-1); + } + icv_inlen = *inlen; + icv_outlen = *outlen; ++#ifdef ICONV_SET_ILSEQ_INVALID ++ iconvctl(cd, ICONV_SET_ILSEQ_INVALID, &one); ++#endif + ret = iconv(cd, (ICONV_CONST char **) &icv_in, &icv_inlen, &icv_out, &icv_outlen); + *inlen -= icv_inlen; + *outlen -= icv_outlen; Modified: head/textproc/libxml2/pkg-plist ============================================================================== --- head/textproc/libxml2/pkg-plist Mon Nov 25 08:25:58 2013 (r334821) +++ head/textproc/libxml2/pkg-plist Mon Nov 25 08:31:27 2013 (r334822) @@ -55,5 +55,9 @@ lib/libxml2.so lib/libxml2.so.5 libdata/pkgconfig/libxml-2.0.pc share/aclocal/libxml.m4 +man/man1/xml2-config.1.gz +man/man1/xmlcatalog.1.gz +man/man1/xmllint.1.gz +man/man3/libxml.3.gz @dirrm include/libxml2/libxml @dirrm include/libxml2