svn commit: r531761 - head/comms/minicom
Mateusz Piotrowski
0mp at FreeBSD.org
Wed Apr 15 11:37:47 UTC 2020
Author: 0mp
Date: Wed Apr 15 11:37:46 2020
New Revision: 531761
URL: https://svnweb.freebsd.org/changeset/ports/531761
Log:
comms/minicom: Clean up
- Use USES=localbase instead of setting LIBS and CPPFLAGS
- Set LICENSE_FILE and do not install the license to the documentation
directory.
- Replace unnecessary "+=" used for CONFIGURE_ARGS with "=".
- Remove no-op REINPLACE_CMD.
- Use MKDIR instead of INSTALL.
- Format the makefile with portfmt.
Modified:
head/comms/minicom/Makefile
head/comms/minicom/pkg-plist
Modified: head/comms/minicom/Makefile
==============================================================================
--- head/comms/minicom/Makefile Wed Apr 15 11:25:28 2020 (r531760)
+++ head/comms/minicom/Makefile Wed Apr 15 11:37:46 2020 (r531761)
@@ -3,7 +3,7 @@
PORTNAME= minicom
PORTVERSION= 2.7.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= comms
MASTER_SITES= https://fossies.org/linux/misc/
@@ -11,37 +11,34 @@ MAINTAINER= ports at FreeBSD.org
COMMENT= MS-DOS Telix serial communication program "workalike"
LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= lrz:comms/lrzsz
-USES= iconv ncurses
-CPPFLAGS+= -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib ${ICONV_LIB} -lncurses
+USES= iconv localbase ncurses
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --enable-dfl-baud=57600 \
- --sysconfdir=${PREFIX}/etc/minicom \
- --enable-lock-dir=/var/spool/lock \
- --enable-dfl-port=/dev/cuau0
+CONFIGURE_ARGS= --enable-dfl-baud=57600 \
+ --enable-dfl-port=/dev/cuau0 \
+ --enable-lock-dir=/var/spool/lock \
+ --sysconfdir=${PREFIX}/etc/minicom
+LIBS+= ${ICONV_LIB} -lncurses
-OPTIONS_DEFINE= DOCS NLS
-OPTIONS_SUB= yes
-NLS_USES= gettext
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
post-patch:
${REINPLACE_CMD} -e "s@/usr/local/bin/@${LOCALBASE}/bin/@; \
s@/sz@/lsz@;s@/sb@/lsb@;s@/sx@/lsx@;s@/rz@/lrz@; \
s@/rb@/lrb@;s@/rx@/lrx@" ${WRKSRC}/src/rwconf.c
- ${REINPLACE_CMD} -E -e "s@^(SUBDIRS = .*) intl@\1@" \
- ${WRKSRC}/Makefile.in
post-install:
- ${INSTALL} -d -m 0755 ${STAGEDIR}${PREFIX}/etc/minicom
+ ${MKDIR} ${STAGEDIR}${ETCDIR}
post-install-DOCS-on:
- ${INSTALL} -d -m 0755 ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}/
(umask 022 && cd ${WRKSRC} && ${TAR} --exclude '*/Makefile*' \
--exclude '*.orig' -chf - extras doc | ${TAR} -xf - -C \
Modified: head/comms/minicom/pkg-plist
==============================================================================
--- head/comms/minicom/pkg-plist Wed Apr 15 11:25:28 2020 (r531760)
+++ head/comms/minicom/pkg-plist Wed Apr 15 11:37:46 2020 (r531761)
@@ -26,7 +26,6 @@ man/man1/xminicom.1.gz
%%NLS%%share/locale/vi/LC_MESSAGES/minicom.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/minicom.mo
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/doc/Announce-1.78
%%PORTDOCS%%%%DOCSDIR%%/doc/Announce-1.82
More information about the svn-ports-all
mailing list