aboutsummaryrefslogtreecommitdiff
path: root/textproc/pure-xml
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-11-06 22:50:21 +0000
committerXin LI <delphij@FreeBSD.org>2013-11-06 22:50:21 +0000
commitbc0d646198e21b9653ddde161dcdd059533a7d9a (patch)
treef4ca39f0f94b1fc725562cca278474e325706ee3 /textproc/pure-xml
parentae3e5e966b6d57cfc253af140717fe2208286c6b (diff)
downloadports-bc0d646198e21b9653ddde161dcdd059533a7d9a.tar.gz
ports-bc0d646198e21b9653ddde161dcdd059533a7d9a.zip
Notes
Diffstat (limited to 'textproc/pure-xml')
-rw-r--r--textproc/pure-xml/Makefile28
-rw-r--r--textproc/pure-xml/pkg-descr2
2 files changed, 26 insertions, 4 deletions
diff --git a/textproc/pure-xml/Makefile b/textproc/pure-xml/Makefile
index 360523e70a3d..0e397b2f04f3 100644
--- a/textproc/pure-xml/Makefile
+++ b/textproc/pure-xml/Makefile
@@ -3,18 +3,40 @@
PORTNAME= pure-xml
PORTVERSION= 0.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc
+MASTER_SITES= https://cdn.bitbucket.org/purelang/pure-lang/downloads/
+DIST_SUBDIR= pure
MAINTAINER= lichray@gmail.com
COMMENT= Pure language interface for libxml2 and libxslt
-USE_PURE= yes
+LICENSE= GPLv3 LGPL3
+LICENSE_COMB= dual
+
+USES= pure
USE_GNOME= libxml2 libxslt
PLIST_FILES= lib/pure/xml.pure \
lib/pure/xml.so
NO_STAGE= yes
-.include "${.CURDIR}/../../lang/pure/bsd.pure.mk"
+
+PORTDOCS= README
+
+PORTEXAMPLES= *
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${EXAMPLESDIR}
+ @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
+.endif
+
.include <bsd.port.mk>
diff --git a/textproc/pure-xml/pkg-descr b/textproc/pure-xml/pkg-descr
index 897500b6b31d..7a4d040c5c7a 100644
--- a/textproc/pure-xml/pkg-descr
+++ b/textproc/pure-xml/pkg-descr
@@ -3,4 +3,4 @@ module provides a simplified interface to the Gnome libxml2 and libxslt
libraries, and supplies all the necessary data structures and operations to
inspect, create, modify and transform XML documents with ease.
-WWW: http://docs.pure-lang.googlecode.com/hg/pure-xml.html
+WWW: http://docs.pure-lang.googlecode.com/hg/pure-xml.html