Skip to content

Commit

Permalink
editors/beav: Unbreak after staging support attempt
Browse files Browse the repository at this point in the history
After recent commits, beav was broken on every platform for a couple
of reasons.  Primarily the Makefile had a bug in it, so it was
unexecutable.  Secondly, the "man page fix" was done in ${STAGEDIR}
using sed -i, causing the resultant .bak file to also be installed, or
at least orphaned.  Poudriere caught that issue.

While here, add DragonFly support.
  • Loading branch information
jrmarino committed Dec 28, 2013
1 parent e80fa10 commit 290a038
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions editors/beav/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R:S/.//}
ALL_TARGET= beav
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DUNIX -DBSD -DNOPROTO"

post-patch:
@${REINPLACE_CMD} -e 's|(OFILES):|$$(OFILES):|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/beav.1

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/beav ${STAGEDIR}${PREFIX}/bin/beav
${INSTALL_MAN} ${WRKSRC}/beav.1 ${STAGEDIR}${PREFIX}/man/man1/beav.1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/beav140.txt ${STAGEDIR}${DOCSDIR}/beav.txt
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
${STAGEDIR}${PREFIX}/man/man1/beav.1

.include <bsd.port.mk>
2 changes: 1 addition & 1 deletion editors/beav/files/patch-termio.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifdef UNIX /* System V */

+#if defined(__GLIBC__) || \
+ defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+ defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+#define TERMIOS 1
+#endif
+
Expand Down

0 comments on commit 290a038

Please sign in to comment.