1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/www/jericho-html/Makefile
Pav Lucistnik 08cfdbccef - Restore maintainership
Submitted by:	Marcin Cieslak <saper@saper.info>
2009-12-31 10:03:33 +00:00

52 lines
1.6 KiB
Makefile

# New ports collection makefile for: jerichohtml
# Date created: 2008-06-17
# Whom: Marcin Cieslak <saper@SYSTEM.PL>
#
# $FreeBSD$
#
PORTNAME= jericho-html
PORTVERSION= 2.6
CATEGORIES= www java
MASTER_SITES= SF/jerichohtml/${PORTNAME}/${PORTVERSION}
MAINTAINER= saper@saper.info
COMMENT= A java library to analyse and manipulate HTML
USE_ZIP= yes
USE_JAVA= 1.3+
INTERFACES:= "compile-time-dependencies/slf4j-api-1.5.2.jar:\
compile-time-dependencies/commons-logging-api-1.1.1.jar:\
compile-time-dependencies/log4j-api-1.2.15.jar"
PORTDOCS= api
PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar
do-build:
(cd ${WRKSRC} && ${RM} -rf classes/* && ${JAVAC} \
-classpath ${INTERFACES:S, ,,g} \
-d classes src/java/au/id/jericho/lib/html/*.java \
src/java/au/id/jericho/lib/html/nodoc/*.java)
${JAR} -cf ${WRKSRC}/lib/${PORTNAME}.jar \
-C ${WRKSRC}/classes .
.if !defined(NOPORTDOCS)
(cd ${WRKSRC} && ${RM} -rf doc/* && ${JAVADOC} -quiet \
-windowtitle "Jericho HTML Parser ${PORTVERSION}" \
-classpath ${INTERFACES:S, ,,g}:src/java:classes \
-use -d ${WRKSRC}/doc/api \
-subpackages au.id.jericho.lib.html \
-exclude au.id.jericho.lib.html.nodoc \
-noqualifier au.id.jericho.lib.html \
-group "Core package" au.id.jericho.lib.html)
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar ${JAVAJARDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/doc && ${FIND} api | ${CPIO} -pdmu ${DOCSDIR})
.endif
.include <bsd.port.mk>