mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
d1855c80f8
Explanation from maintainer: "Log4j has been the first port from the Jakarta series and back then I thought it would be useful to put all distfiles from the Jakarta project in the same subdirectory. Now I don't think it is such a good idea. Furthermore, the ports of other Jakarta projects do not use this scheme. So here is a patch to fix it. I didn't bump the PORT_REVISION as there is no point in updating the port if already installed." PR: 56490 Submitted by: maintainer
51 lines
1.6 KiB
Makefile
51 lines
1.6 KiB
Makefile
# Ports collection makefile for: Jakarta Log4J
|
|
# Date created: 11 October 2002
|
|
# Whom: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= jakarta-log4j
|
|
PORTVERSION= 1.2.8
|
|
CATEGORIES= java
|
|
MASTER_SITES= http://jakarta.apache.org/log4j/
|
|
|
|
MAINTAINER= herve.quiroz@esil.univ-mrs.fr
|
|
COMMENT= Log4J, a fast and flexible logging library for Java
|
|
|
|
USE_JAVA= 1.1+
|
|
NO_BUILD= YES
|
|
|
|
PORT_JARFILE= log4j-${PORTVERSION}.jar
|
|
DEST_JARFILE= log4j.jar
|
|
JAVA_WRKLIBDIR= ${WRKSRC}/dist/lib
|
|
JAVA_WRKDOCSDIR= ${WRKSRC}/docs
|
|
JAVA_WRKEXAMPLESDIR= ${WRKSRC}/examples
|
|
JAVA_LIBDIR= ${PREFIX}/share/java/classes
|
|
JAVA_EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
|
|
|
|
INSTALL_JAR= ${INSTALL_DATA}
|
|
|
|
do-install:
|
|
@${ECHO_CMD} -n ">> Installing JAR file..."
|
|
@${MKDIR} ${JAVA_LIBDIR}
|
|
@cd ${JAVA_WRKLIBDIR} && ${INSTALL_JAR} ${PORT_JARFILE} ${JAVA_LIBDIR}/${DEST_JARFILE}
|
|
@${ECHO_CMD} " [DONE]"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_CMD} -n ">> Installing documentation..."
|
|
@cd ${JAVA_WRKDOCSDIR} && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} ";"
|
|
@cd ${JAVA_WRKDOCSDIR} && ${FIND} . -type f -exec ${INSTALL_MAN} ${JAVA_WRKDOCSDIR}/{} ${DOCSDIR}/{} ";"
|
|
@${ECHO_CMD} " [DONE]"
|
|
|
|
@${ECHO_CMD} -n ">> Installing examples..."
|
|
@cd ${JAVA_WRKEXAMPLESDIR} && ${FIND} . -type d -exec ${MKDIR} ${JAVA_EXAMPLESDIR}/{} ";"
|
|
@cd ${JAVA_WRKEXAMPLESDIR} && ${FIND} . -type f -exec ${INSTALL_DATA} ${JAVA_WRKEXAMPLESDIR}/{} ${JAVA_EXAMPLESDIR}/{} ";"
|
|
@${ECHO_CMD} " [DONE]"
|
|
.endif
|
|
|
|
post-install:
|
|
@${ECHO_CMD} "${PORTNAME}-${PORTVERSION} installed as ${JAVA_LIBDIR}/${PORT_JARFILE}"
|
|
|
|
.include <bsd.port.mk>
|