aboutsummaryrefslogtreecommitdiff
path: root/japanese/ctags
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-05-08 19:39:50 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-05-08 19:39:50 +0000
commit3e0ccc99877f433db6a5b870e0a4d002a39b95a5 (patch)
tree7cc11f709720b68338199c31e76cebce88860c39 /japanese/ctags
parent7e8980cc3814ee3bb31b9da19c51de4e31aa46e6 (diff)
downloadports-3e0ccc99877f433db6a5b870e0a4d002a39b95a5.tar.gz
ports-3e0ccc99877f433db6a5b870e0a4d002a39b95a5.zip
- Add staging support
- Remove leading article from COMMENT - Switch to PLIST_FILES - Define DOCS option
Notes
Notes: svn path=/head/; revision=353349
Diffstat (limited to 'japanese/ctags')
-rw-r--r--japanese/ctags/Makefile28
-rw-r--r--japanese/ctags/pkg-plist6
2 files changed, 14 insertions, 20 deletions
diff --git a/japanese/ctags/Makefile b/japanese/ctags/Makefile
index 9ddf36080472..1ae61d2c39d4 100644
--- a/japanese/ctags/Makefile
+++ b/japanese/ctags/Makefile
@@ -7,26 +7,26 @@ CATEGORIES= japanese devel
MASTER_SITES= http://hp.vector.co.jp/authors/VA025040/ctags/downloads/
MAINTAINER= ports@FreeBSD.org
-COMMENT= A feature-filled tagfile generator with Japanese support
-
-WRKSRC= ${WRKDIR}/${DISTNAME:S/j1//}
+COMMENT= Feature-filled tagfile generator with Japanese support
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-macro-patterns --with-readlib
+WRKSRC= ${WRKDIR}/${DISTNAME:S/j1//}
+SUB_FILES= pkg-message
-MAN1= jexctags.1
+PLIST_FILES= bin/jexctags include/readtags.h lib/readtags.o \
+ man/man1/jexctags.1.gz
+PORTDOCS= README README_J.TXT
-SUB_FILES= pkg-message
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${REINPLACE_CMD} -E '/^DEST_/ s,(bin|lib|inc|man1)dir),DESTDIR)$$(&,g' \
+ ${WRKSRC}/Makefile.in
-NO_STAGE= yes
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in README README_J.TXT
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
- @${STRIP_CMD} ${PREFIX}/bin/jexctags
- @${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/jexctags
.include <bsd.port.mk>
diff --git a/japanese/ctags/pkg-plist b/japanese/ctags/pkg-plist
deleted file mode 100644
index c8ea535c5037..000000000000
--- a/japanese/ctags/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-bin/jexctags
-include/readtags.h
-lib/readtags.o
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/README_J.TXT
-@dirrm %%DOCSDIR%%