Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2014 20:25:02 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341276 - head/textproc/ezxml
Message-ID:  <201401262025.s0QKP21t016798@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Sun Jan 26 20:25:01 2014
New Revision: 341276
URL: http://svnweb.freebsd.org/changeset/ports/341276
QAT: https://qat.redports.org/buildarchive/r341276/

Log:
  Convert to staging.
  
  Sponsored by:	Absolight

Modified:
  head/textproc/ezxml/Makefile

Modified: head/textproc/ezxml/Makefile
==============================================================================
--- head/textproc/ezxml/Makefile	Sun Jan 26 20:20:40 2014	(r341275)
+++ head/textproc/ezxml/Makefile	Sun Jan 26 20:25:01 2014	(r341276)
@@ -7,7 +7,6 @@ CATEGORIES=	textproc devel
 MASTER_SITES=	SF/${PORTNAME}/ezXML/ezXML%20${PORTVERSION} \
 		http://www.yazzy.org/ports/ezxml/
 
-
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Easy to use C library for parsing XML documents
 
@@ -16,27 +15,17 @@ WRKSRC=		${WRKDIR}/${PORTNAME}
 LIBFILES=	libezxml.a
 HEADERFILES=	ezxml.h
 
+OPTIONS_DEFINE=	EXAMPLES
+
 PLIST_FILES=	include/${HEADERFILES} \
 		lib/${LIBFILES}
 
-.if !defined(NOPORTDOCS)
-PLIST_FILES+=	%%EXAMPLESDIR%%/ezxml.txt
-PLIST_DIRS=	%%EXAMPLESDIR%%
-.endif
-
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+PORTEXAMPLES=	*
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/${LIBFILES} ${PREFIX}/lib
-	${INSTALL_DATA} ${WRKSRC}/${HEADERFILES} ${PREFIX}/include
-
-.if !defined(NOPORTDOCS)
-post-install:
-	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/ezxml.txt ${EXAMPLESDIR}
-	@${ECHO} "An example of how to use the ezXML library can be found in"
-	@${ECHO} "${EXAMPLESDIR}"
-.endif
+	${INSTALL_DATA} ${WRKSRC}/${LIBFILES} ${STAGEDIR}${PREFIX}/lib
+	${INSTALL_DATA} ${WRKSRC}/${HEADERFILES} ${STAGEDIR}${PREFIX}/include
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/ezxml.txt ${STAGEDIR}${EXAMPLESDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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