aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-03-21 01:44:44 +0800
committerpawel <pawel@FreeBSD.org>2014-03-21 01:44:44 +0800
commite037a26252f4afd46e85718645ac3c5eb437fa40 (patch)
tree8e1e0951c0c32fa8bcb92b423dd9c16169cdf94f /japanese
parent7f6a89a4f676bb8f67f74eb127c55c73e4454a3a (diff)
downloadfreebsd-ports-gnome-e037a26252f4afd46e85718645ac3c5eb437fa40.tar.gz
freebsd-ports-gnome-e037a26252f4afd46e85718645ac3c5eb437fa40.tar.zst
freebsd-ports-gnome-e037a26252f4afd46e85718645ac3c5eb437fa40.zip
- Add LICENSE
- Support staging PR: ports/187425 (based on) Submitted by: Takefu <takefu@airport.fm> Approved by: maintainer
Diffstat (limited to 'japanese')
-rw-r--r--japanese/gawk/Makefile19
-rw-r--r--japanese/gawk/pkg-plist8
2 files changed, 16 insertions, 11 deletions
diff --git a/japanese/gawk/Makefile b/japanese/gawk/Makefile
index 88fd98ca44c7..8eb4b82392e6 100644
--- a/japanese/gawk/Makefile
+++ b/japanese/gawk/Makefile
@@ -14,22 +14,25 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= ota@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>
diff --git a/japanese/gawk/pkg-plist b/japanese/gawk/pkg-plist
index 8fe481a0bc70..e64a2cd6442c 100644
--- a/japanese/gawk/pkg-plist
+++ b/japanese/gawk/pkg-plist
@@ -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