From 37c71b3516bf7db8881c8b717d4a6fca2daf0244 Mon Sep 17 00:00:00 2001 From: pawel Date: Thu, 8 May 2014 19:39:50 +0000 Subject: - Add staging support - Remove leading article from COMMENT - Switch to PLIST_FILES - Define DOCS option --- japanese/ctags/Makefile | 28 ++++++++++++++-------------- japanese/ctags/pkg-plist | 6 ------ 2 files changed, 14 insertions(+), 20 deletions(-) delete mode 100644 japanese/ctags/pkg-plist (limited to 'japanese') diff --git a/japanese/ctags/Makefile b/japanese/ctags/Makefile index 9ddf3608047..1ae61d2c39d 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 diff --git a/japanese/ctags/pkg-plist b/japanese/ctags/pkg-plist deleted file mode 100644 index c8ea535c503..00000000000 --- 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%% -- cgit