- Add staging support

- Switch to PLIST_FILES
- Define DOCS option
This commit is contained in:
Pawel Pekala 2014-05-09 20:01:05 +00:00
parent d87454808a
commit 2b11a3f95b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353510
3 changed files with 10 additions and 20 deletions

View file

@ -13,16 +13,13 @@ COMMENT= Text to LIPS filter
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//}
MANLANG= ja
MAN1= lipsf.1 pols.1
PLIST_FILES= bin/lipsf bin/pols man/ja/man1/lipsf.1.gz man/ja/man1/pols.1.gz
PORTDOCS= HISTORY Install README TECHKNOW
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in HISTORY Install README TECHKNOW
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -39,10 +39,10 @@
- $(CHMOD) a+r $(MANDIR)/$(LIPSFB).$(MANSEC)
- $(INSTALL) $(POLS).$(MANSEC) $(MANDIR)/$(POLS).$(MANSEC)
- $(CHMOD) a+r $(MANDIR)/$(POLSB).$(MANSEC)
+ ${BSD_INSTALL_PROGRAM} $(LIPSFB) $(BINDIR)
+ ${BSD_INSTALL_PROGRAM} $(POLSB) $(BINDIR)
+ ${BSD_INSTALL_MAN} $(LIPSF).$(MANSEC) $(MANDIR)/$(LIPSF).$(MANSEC)
+ ${BSD_INSTALL_MAN} $(POLS).$(MANSEC) $(MANDIR)/$(POLS).$(MANSEC)
+ ${BSD_INSTALL_PROGRAM} $(LIPSFB) $(DESTDIR)$(BINDIR)
+ ${BSD_INSTALL_PROGRAM} $(POLSB) $(DESTDIR)$(BINDIR)
+ ${BSD_INSTALL_MAN} $(LIPSF).$(MANSEC) $(DESTDIR)$(MANDIR)/$(LIPSF).$(MANSEC)
+ ${BSD_INSTALL_MAN} $(POLS).$(MANSEC) $(DESTDIR)$(MANDIR)/$(POLS).$(MANSEC)
catman: $(LIPSF).$(MANSEC)c $(POLS).$(MANSEC)c
$(INSTALL) $(LIPSF).$(MANSEC)c $(CATDIR)/$(LIPSF).$(MANSEC)

View file

@ -1,7 +0,0 @@
bin/lipsf
bin/pols
%%PORTDOCS%%share/doc/lipsf/HISTORY
%%PORTDOCS%%share/doc/lipsf/Install
%%PORTDOCS%%share/doc/lipsf/README
%%PORTDOCS%%share/doc/lipsf/TECHKNOW
%%PORTDOCS%%@dirrm share/doc/lipsf