aboutsummaryrefslogtreecommitdiff
path: root/devel/pear-XML_Serializer/Makefile
blob: e742730d15c9d5665eeeadf41b1781d463f0fe11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Ports collection makefile for:  pear-XML_Serializer
# Date created:			  04 September 2003
# Whom:				  Alex Miller (<asm@asm.kiev.ua>)
#
# $FreeBSD$
#

PORTNAME=	XML_Serializer
PORTVERSION=	0.20.0
CATEGORIES=	devel www pear

MAINTAINER=	miwi@FreeBSD.org
COMMENT=	PEAR Swiss-army knive for reading and writing XML files

BUILD_DEPENDS=	${PEARDIR}/XML/Parser.php:${PORTSDIR}/devel/pear-XML_Parser \
		${PEARDIR}/XML/Util.php:${PORTSDIR}/devel/pear-XML_Util
RUN_DEPENDS=	${BUILD_DEPENDS}

CATEGORY=	XML
FILES=		Serializer.php Unserializer.php
EXAMPLES=	example.xml serializeAndEncode.php \
		serializeAndReturn.php serializeCData.php \
		serializeIndexedArray.php \
		serializeIndexedArrayWithContext.php \
		serializeNullProperties.php serializeObject.php \
		serializeRDF.php Serializer_Bug7112.php \
		serializeSelectiveAttributes.php \
		serializeWithAttributes.php \
		serializeWithAttributes2.php \
		serializeWithComment.php serializeWithDtd.php \
		serializeWithIndentedAttributes.php \
		serializeWithNamespace.php serializeWithTagMap.php \
		unserializeAnyXML.php unserializeClassNames.php \
		unserializeEncoded.php unserializeEnum.php \
		unserializeObject.php unserializeRDF.php \
		unserializeWhitespace.php \
		unserializeWithAttributes.php \
		unserializeWithTagMap.php \
		unserializeWithTypeGuessing.php
TESTS=		req-13564.phpt bug-13896.phpt bug-15602.phpt \
		Serializer_Arrays_TestCase.php \
		Serializer_Objects_TestCase.php \
		Serializer_Option_AttributesContent_TestCase.php \
		Serializer_Option_CDataSections_TestCase.php \
		Serializer_Option_ClassName_TestCase.php \
		Serializer_Option_Comment_TestCase.php \
		Serializer_Option_DocType_TestCase.php \
		Serializer_Option_DefaultTag_TestCase.php \
		Serializer_Option_EncodeFunc_TestCase.php \
		Serializer_Option_IgnoreNull_TestCase.php \
		Serializer_Option_Indent_TestCase.php \
		Serializer_Option_Linebreaks_TestCase.php \
		Serializer_Option_Mode_TestCase.php \
		Serializer_Option_Namespace_TestCase.php \
		Serializer_Option_ReturnResult_TestCase.php \
		Serializer_Option_RootAttributes_TestCase.php \
		Serializer_Option_RootName_TestCase.php \
		Serializer_Option_TagMap_TestCase.php \
		Serializer_Option_TypeHints_TestCase.php \
		Serializer_Option_XmlDeclaration_TestCase.php \
		Serializer_Scalars_TestCase.php \
		show_ScalarAsAttributes_usage.phpt \
		Unserializer_Arrays_TestCase.php \
		Unserializer_Objects_TestCase.php \
		Unserializer_Option_Encodings_TestCase.php \
		Unserializer_Option_GuessTypes_TestCase.php \
		Unserializer_Option_Whitespace_TestCase.php \
		Unserializer_Scalars_TestCase.php
DOCS=		todo.txt
_DOCSDIR=	doc

post-extract:
.for file in ${FILES}
	@${REINPLACE_CMD} -e "s|@package_version@|${PORTVERSION}|" ${WRKSRC}/${file}
	@${FIND} ${WRKSRC} -name "*.bak" -delete
.endfor
.for file in ${EXAMPLES}
	@${REINPLACE_CMD} -e "s|@package_version@|${PORTVERSION}|" ${WRKSRC}/examples/${file}
	@${FIND} ${WRKSRC}/examples -name "*.bak" -delete
.endfor

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/devel/pear/bsd.pear.mk"
.include <bsd.port.post.mk>