svn commit: r348709 - head/japanese/gawk
Pawel Pekala
pawel at FreeBSD.org
Thu Mar 20 17:44:45 UTC 2014
Author: pawel
Date: Thu Mar 20 17:44:44 2014
New Revision: 348709
URL: http://svnweb.freebsd.org/changeset/ports/348709
QAT: https://qat.redports.org/buildarchive/r348709/
Log:
- Add LICENSE
- Support staging
PR: ports/187425 (based on)
Submitted by: Takefu <takefu at airport.fm>
Approved by: maintainer
Modified:
head/japanese/gawk/Makefile
head/japanese/gawk/pkg-plist
Modified: head/japanese/gawk/Makefile
==============================================================================
--- head/japanese/gawk/Makefile Thu Mar 20 15:51:11 2014 (r348708)
+++ head/japanese/gawk/Makefile Thu Mar 20 17:44:44 2014 (r348709)
@@ -14,22 +14,25 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= ota at j.email.ne.jp
COMMENT= GNU awk + multi-byte extension
+LICENSE= GPLv2
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-bitops --enable-non-decimal-data
MAKE_JOBS_UNSAFE= yes
INFO= gawk
-MAN1= gawk.1 igawk.1
-
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
-NO_STAGE= yes
+post-configure:
+ @${REINPLACE_CMD} -E \
+ '/(DEFPATH|sed )/!s,(bin|data|lib|info|man|libexec)dir\),DESTDIR\)$$\(&,g' \
+ ${WRKSRC}/Makefile ${WRKSRC}/doc/Makefile ${WRKSRC}/awklib/Makefile
+
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/OREADME.MB ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.MB ${DOCSDIR}
-.endif
+ ${INSTALL_MAN} ${WRKSRC}/doc/gawk.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc/igawk.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} OREADME.MB README.MB ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
Modified: head/japanese/gawk/pkg-plist
==============================================================================
--- head/japanese/gawk/pkg-plist Thu Mar 20 15:51:11 2014 (r348708)
+++ head/japanese/gawk/pkg-plist Thu Mar 20 17:44:44 2014 (r348709)
@@ -2,6 +2,8 @@ bin/gawk
bin/igawk
libexec/awk/grcat
libexec/awk/pwcat
+man/man1/gawk.1.gz
+man/man1/igawk.1.gz
share/awk/assert.awk
share/awk/ctime.awk
share/awk/ftrans.awk
@@ -14,8 +16,8 @@ share/awk/nextfile.awk
share/awk/ord.awk
share/awk/passwd.awk
share/awk/round.awk
-%%PORTDOCS%%share/doc/ja-gawk/OREADME.MB
-%%PORTDOCS%%share/doc/ja-gawk/README.MB
-%%PORTDOCS%%@dirrm share/doc/ja-gawk
+%%PORTDOCS%%%%DOCSDIR%%/OREADME.MB
+%%PORTDOCS%%%%DOCSDIR%%/README.MB
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm share/awk
@dirrm libexec/awk
More information about the svn-ports-all
mailing list