mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Add Mini-XML, a small XML parsing library that you can use to
read XML and XML-like data files in your application without requiring large non-standard libraries. Mini-XML only requires an ANSI C compatible compiler (GCC works, as do most vendors' ANSI C compilers) and a "make" program. PR: ports/67304 Submitted by: Osintsev Vladimir <oc@nm.ru>
This commit is contained in:
parent
d854d3ad2b
commit
bb1357e923
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=110274
@ -199,6 +199,7 @@
|
||||
SUBDIR += mguesser
|
||||
SUBDIR += mi-aspell
|
||||
SUBDIR += mifluz
|
||||
SUBDIR += mini-xml
|
||||
SUBDIR += minidom
|
||||
SUBDIR += mkcatalog
|
||||
SUBDIR += modlogan
|
||||
|
39
textproc/mini-xml/Makefile
Normal file
39
textproc/mini-xml/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# New ports collection makefile for: mini-xml
|
||||
# Date created: 01 Jan 2004
|
||||
# Whom: Vladimir Osintsev <oc@nm.ru>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= mini-xml
|
||||
PORTVERSION= 2.0.r1
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= http://www.easysw.com/~mike/mxml/swfiles/
|
||||
DISTNAME= mxml-${PORTVERSION:S/.r/rc/}
|
||||
|
||||
MAINTAINER= oc@nm.ru
|
||||
COMMENT= Lightweight XML parsing library
|
||||
|
||||
USE_GNOME= pkgconfig
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/${PORTNAME}
|
||||
|
||||
MAN1= mxmldoc.1
|
||||
MAN3= mxml.3
|
||||
CAT1= mxmldoc.1
|
||||
CAT3= mxml.3
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/test.xml ${DOCSDIR}
|
||||
${MKDIR} ${DOCSDIR}/samples
|
||||
.for SN in class enum function struct
|
||||
${INSTALL_MAN} ${WRKSRC}/test/${SN}.cxx ${DOCSDIR}/samples/
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/mini-xml/distinfo
Normal file
2
textproc/mini-xml/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (mxml-2.0rc1.tar.gz) = f3f3e2c55c0cd7f725f8600b7da86a15
|
||||
SIZE (mxml-2.0rc1.tar.gz) = 725395
|
16
textproc/mini-xml/files/patch-configure
Normal file
16
textproc/mini-xml/files/patch-configure
Normal file
@ -0,0 +1,16 @@
|
||||
--- configure.orig Fri May 21 05:10:33 2004
|
||||
+++ configure Sat May 29 15:23:32 2004
|
||||
@@ -3028,13 +3028,6 @@
|
||||
fi
|
||||
|
||||
case "$uname" in
|
||||
- *BSD* | Darwin*)
|
||||
- # *BSD
|
||||
- CAT1EXT="0"
|
||||
- MAN1EXT="1"
|
||||
- CAT3EXT="0"
|
||||
- MAN3EXT="3"
|
||||
- ;;
|
||||
*)
|
||||
# All others
|
||||
CAT1EXT="1"
|
22
textproc/mini-xml/pkg-descr
Normal file
22
textproc/mini-xml/pkg-descr
Normal file
@ -0,0 +1,22 @@
|
||||
Mini-XML is a small XML parsing library that you can use to read XML and
|
||||
XML-like data files in your application without requiring large non-standard
|
||||
libraries. Mini-XML only requires an ANSI C compatible compiler (GCC works,
|
||||
as do most vendors' ANSI C compilers) and a "make" program.
|
||||
|
||||
Mini-XML provides the following functionality:
|
||||
|
||||
- Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded XML files and
|
||||
strings.
|
||||
- Data is stored in a linked-list tree structure, preserving the XML data
|
||||
hierarchy.
|
||||
- Supports arbitrary element names, attributes, and attribute values with no
|
||||
preset limits, just available memory.
|
||||
- Supports integer, real, opaque ("cdata"), and text data types in "leaf"
|
||||
nodes.
|
||||
- Functions for creating and managing trees of data.
|
||||
- "Find" and "walk" functions for easily locating and navigating trees of data.
|
||||
|
||||
WWW: http://www.easysw.com/~mike/mxml
|
||||
|
||||
- Michael Sweet
|
||||
mxml@easysw.com
|
17
textproc/mini-xml/pkg-plist
Normal file
17
textproc/mini-xml/pkg-plist
Normal file
@ -0,0 +1,17 @@
|
||||
bin/mxmldoc
|
||||
include/mxml.h
|
||||
lib/libmxml.a
|
||||
libdata/pkgconfig/mxml.pc
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
|
||||
%%PORTDOCS%%%%DOCSDIR%%/COPYING
|
||||
%%PORTDOCS%%%%DOCSDIR%%/mxml.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/mxml.pdf
|
||||
%%PORTDOCS%%%%DOCSDIR%%/mxmldoc.xsd
|
||||
%%PORTDOCS%%%%DOCSDIR%%/test.xml
|
||||
%%PORTDOCS%%%%DOCSDIR%%/samples/class.cxx
|
||||
%%PORTDOCS%%%%DOCSDIR%%/samples/enum.cxx
|
||||
%%PORTDOCS%%%%DOCSDIR%%/samples/function.cxx
|
||||
%%PORTDOCS%%%%DOCSDIR%%/samples/struct.cxx
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/samples
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user