Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 00:08:27 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340958 - head/devel/styx
Message-ID:  <201401250008.s0P08RtB005691@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Jan 25 00:08:27 2014
New Revision: 340958
URL: http://svnweb.freebsd.org/changeset/ports/340958
QAT: https://qat.redports.org/buildarchive/r340958/

Log:
  Support stage

Modified:
  head/devel/styx/Makefile

Modified: head/devel/styx/Makefile
==============================================================================
--- head/devel/styx/Makefile	Sat Jan 25 00:05:37 2014	(r340957)
+++ head/devel/styx/Makefile	Sat Jan 25 00:08:27 2014	(r340958)
@@ -8,37 +8,25 @@ CATEGORIES=	devel
 MASTER_SITES=	http://www.speculate.de/styx/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A scanner/parser generator
+COMMENT=	Scanner/parser generator
 
+OPTIONS_DEFINE=	EXAMPLES DOCS
 USE_AUTOTOOLS=	libtool
-USES=		iconv
-USE_GMAKE=	yes
+USES=		gmake iconv
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
 CONFIGURE_ARGS=	--includedir=${PREFIX}/include/${PORTNAME}
 USE_LDCONFIG=	yes
 
-NO_STAGE=	yes
-post-patch:
-.if defined(NOPORTEXAMPLES)
-	${REINPLACE_CMD} -e '/SUBDIRS/s|spexml||' ${WRKSRC}/Makefile.in
-.endif
-
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${TAR} -C ${WRKSRC}/doc \
 		--exclude "*.in" --exclude "*Makefile*" -cf - . | \
-			${TAR} -C ${DOCSDIR} --unlink -xf -
-	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
-.endif
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
+			${TAR} -C ${STAGEDIR}${DOCSDIR} --unlink -xf -
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${TAR} -C ${WRKSRC} \
 		--exclude "*.in" --exclude "*Makefile*" -cf - spe pat | \
-			${TAR} -C ${EXAMPLESDIR} --unlink -xf -
-	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
-.endif
+			${TAR} -C ${STAGEDIR}${EXAMPLESDIR} --unlink -xf -
 
 .include <bsd.port.mk>



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