svn commit: r328913 - head/editors/hnb
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Oct 1 05:45:57 UTC 2013
Author: amdmi3
Date: Tue Oct 1 05:45:56 2013
New Revision: 328913
URL: http://svnweb.freebsd.org/changeset/ports/328913
Log:
- Support staging
- Fix build on current
- Covert USE_GMAKE to USES
- Minor Makefile cleanup
Deleted:
head/editors/hnb/pkg-plist
Modified:
head/editors/hnb/Makefile
Modified: head/editors/hnb/Makefile
==============================================================================
--- head/editors/hnb/Makefile Tue Oct 1 05:20:36 2013 (r328912)
+++ head/editors/hnb/Makefile Tue Oct 1 05:45:56 2013 (r328913)
@@ -10,14 +10,15 @@ MASTER_SITES= SF
MAINTAINER= amdmi3 at FreeBSD.org
COMMENT= Hierarchical NoteBook a data organizer
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
-USE_GMAKE= yes
-ALL_TARGET=
+USES= gmake
+ALL_TARGET= # empty
MAKE_JOBS_UNSAFE= yes
-MAN1= hnb.1
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
+
+PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
+PORTDOCS= *
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${ARCH} != "i386"
@@ -25,16 +26,17 @@ BROKEN= segfaults on 64bit systems
.endif
post-patch:
- @${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|; s|make|$${MAKE}|' \
+ ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/^CFLAGS/d' ${WRKSRC}/libcli/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/hnb ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/../doc/hnb.1 ${MANPREFIX}/man/man1
+ ${INSTALL_PROGRAM} ${WRKSRC}/hnb ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/../doc/hnb.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in Documentation.hnb Documentation.html hnbrc
- ${INSTALL_DATA} ${WRKSRC}/../doc/${FILE} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../doc/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
More information about the svn-ports-all
mailing list