svn commit: r323753 - head/devel/afay

John Marino marino at FreeBSD.org
Fri Jul 26 20:50:51 UTC 2013


Author: marino
Date: Fri Jul 26 20:50:50 2013
New Revision: 323753
URL: http://svnweb.freebsd.org/changeset/ports/323753

Log:
  devel/afay: Move to Ada framework
  
  Currently this port has a hard dependency on lang/gnat.  This has been
  replaced with USES+=ada and minor changes to incorporate it into the Ada
  framework with a PORTREVISION bump.
  
  The makefile header was trimmed and NOPORTDOCS was replaced with the DOCS
  option, and now portlint is happy.
  
  Approved by:	bapt & culot (mentors)

Modified:
  head/devel/afay/Makefile

Modified: head/devel/afay/Makefile
==============================================================================
--- head/devel/afay/Makefile	Fri Jul 26 20:49:31 2013	(r323752)
+++ head/devel/afay/Makefile	Fri Jul 26 20:50:50 2013	(r323753)
@@ -1,12 +1,9 @@
-# Ports collection makefile for:  afay
-# Date created:			  9 Nov 2006
-# Whom:				  John M. Cooper
-#
+# Created by: John M. Cooper <john_m_cooper at yahoo.com>
 # $FreeBSD$
-#
 
 PORTNAME=	afay
 PORTVERSION=	041111
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://thiberlog.free.fr/src/
 DISTNAME=	${PORTNAME}_thiberlog_${PORTVERSION}
@@ -15,23 +12,27 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	john_m_cooper at yahoo.com
 COMMENT=	Improved aflex and ayacc Ada 95 native scanner and parser generators
 
-BUILD_DEPENDS=	gnatmake:${PORTSDIR}/lang/gnat \
-		bash:${PORTSDIR}/shells/bash
+BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash
 
+USES=		ada
 MAN1=		aflex.1 ayacc.1
-
 NO_WRKSUBDIR=	yes
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
 
 do-build:
-	@cd ${WRKSRC}/afay/aflex/src/gnat_unix && ${SH} ./README
-	@cd ${WRKSRC}/afay/ayacc/src/gnat_unix && ${SH} ./README
+	@cd ${WRKSRC}/afay/aflex/src/gnat_unix && \
+		${SETENV} ${MAKE_ENV} ${SH} ./README
+	@cd ${WRKSRC}/afay/ayacc/src/gnat_unix && \
+		${SETENV} ${MAKE_ENV} ${SH} ./README
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/afay/aflex/src/aflex ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/afay/ayacc/src/ayacc ${PREFIX}/bin
 	${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/aflex.man ${PREFIX}/man/man1/aflex.1
 	${INSTALL_DATA} ${WRKSRC}/afay/ayacc/doc/old_docs/ayacc.manpage ${PREFIX}/man/man1/ayacc.1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DESTDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/READ_ME ${DOCSDIR}/READ_ME.aflex
 	${INSTALL_DATA} ${WRKSRC}/afay/aflex/doc/aflex.html ${DOCSDIR}


More information about the svn-ports-all mailing list