Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2013 14:30:38 +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: r337518 - head/accessibility/yasr
Message-ID:  <201312261430.rBQEUc73021069@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Dec 26 14:30:37 2013
New Revision: 337518
URL: http://svnweb.freebsd.org/changeset/ports/337518

Log:
  support stage

Modified:
  head/accessibility/yasr/Makefile

Modified: head/accessibility/yasr/Makefile
==============================================================================
--- head/accessibility/yasr/Makefile	Thu Dec 26 14:28:51 2013	(r337517)
+++ head/accessibility/yasr/Makefile	Thu Dec 26 14:30:37 2013	(r337518)
@@ -12,24 +12,15 @@ COMMENT=	General-purpose console screen 
 
 LICENSE=	LGPL20
 
-NO_STAGE=	yes
 USES=		gmake
 GNU_CONFIGURE=	yes
-MAN1=		yasr.1
 PORTDOCS=	AUTHORS BUGS CREDITS ChangeLog NEWS README TODO \
 		README-br README-de README-es README-fr README-ru
 SUB_FILES=	pkg-message
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-CONFIGURE_ARGS+=	--enable-nls
-PLIST_SUB+=		NLS=""
-USES+=		gettext
-.else
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=		NLS="@comment "
-.endif
+NLS_USES=	gettext
+NLS_CONFIGURE_ENABLE=	nls
+OPTIONS_SUB=	yes
 
 PLIST_FILES=	bin/yasr \
 		%%DATADIR%%/yasr.conf \
@@ -47,12 +38,9 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|/bin/bash|/bin/csh|' ${WRKSRC}/yasr.conf
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for doc in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
-	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
 
 .include <bsd.port.post.mk>



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