diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2014-03-20 18:22:15 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2014-03-20 18:22:15 +0800 |
commit | 8972aab1c4afed65b7f6d8a4f539657cfc2fdcb9 (patch) | |
tree | a99b4f08d3d8bc57ae08fb826de638a4619961c4 /mail | |
parent | ffeb7aca58bb4d4e668ab8fc6730ba78259ba6e9 (diff) | |
download | freebsd-ports-gnome-8972aab1c4afed65b7f6d8a4f539657cfc2fdcb9.tar.gz freebsd-ports-gnome-8972aab1c4afed65b7f6d8a4f539657cfc2fdcb9.tar.zst freebsd-ports-gnome-8972aab1c4afed65b7f6d8a4f539657cfc2fdcb9.zip |
- Support staging
- Use shebangfix
- Define DOCS option
Diffstat (limited to 'mail')
-rw-r--r-- | mail/gotmail/Makefile | 26 | ||||
-rw-r--r-- | mail/gotmail/pkg-plist | 5 |
2 files changed, 13 insertions, 18 deletions
diff --git a/mail/gotmail/Makefile b/mail/gotmail/Makefile index d93124838001..24e22a684afb 100644 --- a/mail/gotmail/Makefile +++ b/mail/gotmail/Makefile @@ -14,21 +14,21 @@ RUN_DEPENDS= curl:${PORTSDIR}/ftp/curl \ p5-URI>=0:${PORTSDIR}/net/p5-URI \ p5-Net>=0:${PORTSDIR}/net/p5-Net -MAN1= ${PORTNAME}.1 -USES= perl5 +USES= perl5 shebangfix + +PLIST_FILES= bin/gotmail man/man1/gotmail.1.gz +SHEBANG_FILES= gotmail +PORTDOCS= ChangeLog README sample.gotmailrc + +OPTIONS_DEFINE= DOCS -NO_STAGE= yes do-install: ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man \ - ${MANPREFIX}/man/man1/${PORTNAME}.1 - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - -post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for i in ChangeLog README sample.gotmailrc - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -.endfor # i in ChangeLog README sample.gotmailrc -.endif # !defined(NOPORTDOCS) + ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1 + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} +.endfor .include <bsd.port.mk> diff --git a/mail/gotmail/pkg-plist b/mail/gotmail/pkg-plist deleted file mode 100644 index 24fb432d7d36..000000000000 --- a/mail/gotmail/pkg-plist +++ /dev/null @@ -1,5 +0,0 @@ -bin/gotmail -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/sample.gotmailrc -%%PORTDOCS%%@dirrm %%DOCSDIR%% |