mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
02f27a83b4
locale set by the user. Add LANG=C and LC_ALL=C at the beginning of bsd.port.mk and export them so all commands are executed with the C locale. LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3) as default value for LC_* variables, so normally it isn't used when LC_ALL is set, but there's code out there that looks at LANG directly so it's safer to set it as well. The only commands not captured by this are != assignments before any inclusion of bsd.port.*mk. Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a different locale (e.g. USE_LOCALE=en_US.UTF-8). PR: 215882 Exp-run by: antoine Approved by: portmgr (antoine)
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# Created by: Marcin Cieslak <saper@SYSTEM.PL>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jericho-html
|
|
PORTVERSION= 3.2
|
|
CATEGORIES= www java
|
|
MASTER_SITES= SF/jerichohtml/${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= saper@saper.info
|
|
COMMENT= Java library to analyse and manipulate HTML
|
|
|
|
USES= zip
|
|
USE_JAVA= yes
|
|
|
|
INTERFACES:= "compile-time-dependencies/slf4j-api-1.6.1.jar:\
|
|
compile-time-dependencies/commons-logging-api-1.1.1.jar:\
|
|
compile-time-dependencies/log4j-1.2.16.jar"
|
|
|
|
PORTDOCS= *
|
|
PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && ${RM} -r classes/* && ${SETENV} \
|
|
LANG=en_US.ISO8859-1 LC_ALL=en_US.ISO8859-1 ${JAVAC} \
|
|
-classpath ${INTERFACES:S, ,,g} \
|
|
-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>
|