Files
ports/www/jericho-html/Makefile
T
Tijl Coosemans b6ec06f079 */*: Use C.UTF-8 locale
Ports 02f27a83b4 fixed the ports tree to the C locale so it would work
correctly in environments where users use a locale that isn't compatible
with the C locale, e.g. xx_YY.UTF-8 where [A-Z] includes more than just
upper case letters.  USE_LOCALE was introduced to let ports use another
locale if they needed it.  The C.UTF-8 locale was created later on to be
mostly compatible with the C locale.

Switch the ports tree locale to C.UTF-8 and remove USE_LOCALE.  The
world has moved to Unicode so all ports either require it or know how to
build correctly in a Unicode environment.

PR:		295945
Exp-run by:	antoine
2026-06-30 22:03:57 +02:00

42 lines
1.2 KiB
Makefile

PORTNAME= jericho-html
PORTVERSION= 3.4
PORTREVISION= 2
CATEGORIES= www java
MASTER_SITES= SF/jerichohtml/${PORTNAME}/${PORTVERSION}
MAINTAINER= saper@saper.info
COMMENT= Java library to analyse and manipulate HTML
WWW= https://sourceforge.net/projects/jerichohtml/
LICENSE= APACHE20 EPL LGPL21+
LICENSE_COMB= dual
USES= java zip
INTERFACES:= "compile-time-dependencies/slf4j-api-1.7.12.jar:\
compile-time-dependencies/commons-logging-api-1.1.1.jar:\
compile-time-dependencies/log4j-api-2.4.1.jar"
PORTDOCS= *
PLIST_FILES+= ${JAVAJARDIR}/${PORTNAME}.jar
OPTIONS_DEFINE= DOCS
do-build:
(cd ${WRKSRC} && ${RM} -r classes/* && ${JAVAC} \
-classpath ${INTERFACES:S, ,,g} \
-encoding Windows-1252 \
-d classes src/java/net/htmlparser/jericho/*.java \
src/java/net/htmlparser/jericho/nodoc/*.java)
${MKDIR} ${WRKSRC}/lib
${JAR} -cf ${WRKSRC}/lib/${PORTNAME}.jar \
-C ${WRKSRC}/classes .
do-install:
${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>