Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 2013 20:50:51 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r323753 - head/devel/afay
Message-ID:  <201307262050.r6QKopi8017706@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@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}



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