freebsd-ports/devel/simian/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
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)
2022-09-07 23:10:59 +02:00

90 lines
2.6 KiB
Makefile

PORTNAME= simian
PORTVERSION= 2.5.10
CATEGORIES= devel java
MASTER_SITES= http://www.harukizaemon.com/simian/
MAINTAINER= tota@FreeBSD.org
COMMENT= Similarity analyser for source and other text files
WWW= https://www.harukizaemon.com/simian/
LICENSE= SIMIAN
LICENSE_NAME= SIMIAN SOFTWARE LICENSE
LICENSE_FILE= ${WRKSRC}/license.pdf
# Have to agree to license before download
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell no-auto-accept
NO_BUILD= yes
NO_WRKSUBDIR= yes
SUB_FILES= simian
SUB_LIST+= VERSION=${PORTVERSION}
PLIST_SUB+= VERSION=${PORTVERSION}
PORTDOCS= changes.html features.html \
get_dotnet.png get_it_now.html \
get_java_blue-button.gif index.html installation.html \
simian.dtd simian.jpg simian.xsl \
javadoc
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= LANG
OPTIONS_SINGLE_LANG= JAVA MONO
OPTIONS_DEFAULT= JAVA
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MJAVA}
USE_JAVA= yes
PLIST_SUB+= JAVA=""
SUB_LIST+= JAVA=""
.else
PLIST_SUB+= JAVA="@comment "
SUB_LIST+= JAVA="@comment "
.endif
.if ${PORT_OPTIONS:MMONO}
RUN_DEPENDS+= mono:lang/mono
PLIST_SUB+= MONO=""
SUB_LIST+= MONO=""
.else
PLIST_SUB+= MONO="@comment "
SUB_LIST+= MONO="@comment "
.endif
pre-fetch:
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
.if !defined(PACKAGE_BUILDING) && (!defined(SIMIAN_AGREE_LICENSE) || ${SIMIAN_AGREE_LICENSE} != "yes")
@${ECHO} By downloading this version, you agree to the terms
@${ECHO} and conditions set out in the license agreement and
@${ECHO} you agree that, should you wish to continue using
@${ECHO} Simian for other than open source projects, non-
@${ECHO} commercial projects or evaluation purposes for a
@${ECHO} period greater than 15 days, you will purchase a
@${ECHO} license as described following URL.
@${ECHO}
@${ECHO} http://www.harukizaemon.com/simian/license.pdf
@${ECHO}
@${ECHO} Build with SIMIAN_AGREE_LICENSE=yes to continue.
@${ECHO}
@${FALSE}
.endif
.endif
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/simian.xsl ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME}
@${MKDIR} ${STAGEDIR}${PREFIX}/simian/bin
${INSTALL_SCRIPT} ${WRKDIR}/simian ${STAGEDIR}${PREFIX}/bin/simian
do-install-JAVA-on:
${INSTALL_DATA} ${WRKSRC}/bin/simian-${PORTVERSION}.jar ${STAGEDIR}${PREFIX}/simian/bin
do-install-MONO-on:
${INSTALL_SCRIPT} ${WRKSRC}/bin/*.dll ${STAGEDIR}${PREFIX}/simian/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/simian-${PORTVERSION}.exe ${STAGEDIR}${PREFIX}/simian/bin
do-install-DOCS-on:
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>