It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
100 lines
2.8 KiB
Makefile
100 lines
2.8 KiB
Makefile
PORTNAME= bashc
|
|
PORTVERSION= 5.1.8
|
|
CATEGORIES= shells
|
|
|
|
MAINTAINER= obscenum999@gmail.com
|
|
COMMENT= GNU Bourne Again shell extended with two-panel file manager
|
|
WWW= https://github.com/sergev/bash-commander
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= bison gmake iconv localbase makeinfo pathfix
|
|
GNU_CONFIGURE= yes
|
|
OPTIONS_SUB= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= sergev
|
|
GH_PROJECT= bash-commander
|
|
GH_TAGNAME= 240d2831b191f2ad686301751bf43251ae7259f3
|
|
|
|
OPTIONS_DEFINE= DOCS FDESCFS HELP NLS STATIC SYSBASHRC SYSLOG
|
|
FDESCFS_DESC= Enable use of /dev/fd
|
|
HELP_DESC= Enable builtin help
|
|
SYSBASHRC_DESC= Enable system-wide rc files
|
|
|
|
OPTIONS_DEFAULT= HELP
|
|
|
|
FDESCFS_CONFIGURE_ENV_OFF= bash_cv_dev_fd=absent
|
|
|
|
HELP_CONFIGURE_ENABLE= help-builtin
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
NLS_USES= gettext
|
|
|
|
INFO= bash
|
|
|
|
PORTDOCS= CHANGES COMPAT FAQ INTRO NEWS POSIX RBASH README bash.html \
|
|
bashref.html
|
|
DOCSDIR= ${PREFIX}/share/doc/bash
|
|
SUB_FILES= pkg-message
|
|
|
|
CONFIGURE_ARGS+= --disable-rpath \
|
|
--enable-disabled-builtins \
|
|
--with-libiconv-prefix=${ICONV_PREFIX} \
|
|
--without-bash-malloc
|
|
|
|
CONFLICTS+= bash bash-static
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSTATIC} || defined(NO_DYNAMICROOT) || (defined(NOSHARED) && ${NOSHARED:tl} != "no")
|
|
CONFIGURE_ARGS+= --enable-static-link
|
|
LLD_UNSAFE= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-static-link
|
|
# Bash symbols must be exported in order to link runtime plugins, i.e.,
|
|
# "enable -f". (Plugins are not supported for bash-static.)
|
|
LDFLAGS+= -Wl,-export-dynamic
|
|
.endif
|
|
STANDARD_PATH= /sbin:/bin:/usr/sbin:/usr/bin
|
|
CPPFLAGS+= -DDEFAULT_PATH_VALUE='\"${STANDARD_PATH}:${LOCALBASE}/sbin:${LOCALBASE}/bin\"' \
|
|
-DSTANDARD_UTILS_PATH='\"${STANDARD_PATH}\"'
|
|
|
|
post-patch:
|
|
# Ensure y.tab.c is regenerated
|
|
${TOUCH} ${WRKSRC}/parse.y
|
|
${RM} ${WRKSRC}/y.tab.c
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/bash.1
|
|
.if ${PORT_OPTIONS:MSYSLOG}
|
|
@${REINPLACE_CMD} \
|
|
-e "s|/\*.*#define SYSLOG_HISTORY .*\*/|#define SYSLOG_HISTORY|g" \
|
|
-e "s|/\*.*#define SYSLOG_SHOPT .*\*/|#define SYSLOG_SHOPT 1|g" \
|
|
${WRKSRC}/config-top.h
|
|
.endif
|
|
|
|
post-patch-SYSBASHRC-on:
|
|
@${REINPLACE_CMD} \
|
|
-e "s|.*\(#define SYS_BASH.*\)\(/etc/.*\"\).*|\1${PREFIX}\2|" \
|
|
${WRKSRC}/config-top.h
|
|
|
|
post-configure:
|
|
@${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|"
|
|
|
|
pre-build:
|
|
@${ECHO_CMD} $$((${PORTREVISION}-1)) > ${WRKSRC}/.build
|
|
|
|
post-install:
|
|
${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/rbash
|
|
${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/bash
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/FAQ \
|
|
${WRKSRC}/doc/INTRO ${STAGEDIR}${DOCSDIR}
|
|
for d in ${PORTDOCS:NFAQ:NINTRO:N*html}; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$${d} ${STAGEDIR}${DOCSDIR}; \
|
|
done
|
|
|
|
regress: build
|
|
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test
|
|
|
|
.include <bsd.port.mk>
|