1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/java/jakarta-commons-discovery/Makefile
Greg Lewis b97389634f Add a port of jakarta-commons-discovery.
The Discovery Component is about discovering, or finding, implementations for
pluggable interfaces. It provides facilities intantiating classes in general,
and for lifecycle management of singleton (factory) classes.

Fundamentally, Discovery locates classes that implement a given Java interface.
The discovery pattern, though not necessarily this package, is used in many
projects including JAXP (SaxParserFactory and others) and commons-logging
(LogFactory). By extracting this pattern, other projects can (re)use it and
take advantage of improvements to the pattern as Discovery evolves.

Discovery improves over previous implementations by establishing facilities for
working within managed environments. These allow configuration and property
overrides without appealing to the global System properties (which are scoped
across an entire JVM).

PR:		65490
Submitted by:	Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
2004-04-18 06:18:19 +00:00

49 lines
1.2 KiB
Makefile

# New ports collection makefile for: jakarta-commons-discovery
# Date created: 2004-04-13
# Whom: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
#
# $FreeBSD$
#
PORTNAME= commons-discovery
PORTVERSION= 0.2
CATEGORIES= java devel
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/binaries
PKGNAMEPREFIX= jakarta-
MAINTAINER= herve.quiroz@esil.univ-mrs.fr
COMMENT= A Java library for locating resources (including classes)
USE_JAVA= YES
JAVA_VERSION= 1.3+
JAVA_RUN= JDK
NO_BUILD= YES
.if !defined(NOPORTDOCS)
PORTDOCS= api LICENSE
.endif
JARFILE= ${PORTNAME}.jar
PLIST_FILES+= ${JAVAJARDIR:S,^${PREFIX}/,,}/${JARFILE}
post-extract:
@${MV} ${WRKSRC}/LICENSE ${WRKSRC}/docs/
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
@${MKDIR} ${JAVAJARDIR}
@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/
@${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation..."
@${MKDIR} ${DOCSDIR}
.for DOCFILE in ${PORTDOCS}
@${CP} -r ${WRKSRC}/docs/${DOCFILE} ${DOCSDIR}/
@${ECHO_MSG} -n " ${DOCFILE}"
.endfor
@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>