summaryrefslogtreecommitdiff
path: root/devel/slf4j/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/slf4j/Makefile')
-rw-r--r--devel/slf4j/Makefile37
1 files changed, 18 insertions, 19 deletions
diff --git a/devel/slf4j/Makefile b/devel/slf4j/Makefile
index c048e6421025..a5cc0f548d18 100644
--- a/devel/slf4j/Makefile
+++ b/devel/slf4j/Makefile
@@ -1,7 +1,12 @@
PORTNAME= slf4j
-PORTVERSION= 1.7.21
+DISTVERSION= 1.7.36
CATEGORIES= devel java
-MASTER_SITES= http://www.slf4j.org/dist/
+MASTER_SITES= https://repo1.maven.org/maven2/org/:source1
+JARFILES= integration jcl-over-slf4j jul-to-slf4j log4j-over-slf4j \
+ osgi-over-slf4j slf4j-android slf4j-api slf4j-ext slf4j-jcl \
+ slf4j-jdk14 slf4j-migrator slf4j-nop slf4j-reload4j slf4j-simple
+DISTFILES= ${JARFILES:C|(.+)|slf4j/\1/${DISTVERSION}/\1-${DISTVERSION}.jar:source1|}
+EXTRACT_ONLY=
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Simple facade or abstraction for various logging frameworks
@@ -12,27 +17,21 @@ LICENSE= MIT
USES= cpe java
CPE_VENDOR= qos
-NO_BUILD= YES
+NO_ARCH= yes
+NO_BUILD= yes
-JARFILES= slf4j-migrator.jar \
- slf4j-simple.jar \
- jcl-over-slf4j.jar \
- log4j-over-slf4j.jar \
- slf4j-ext.jar \
- slf4j-jdk14.jar \
- slf4j-nop.jar \
- jul-to-slf4j.jar \
- slf4j-jcl.jar \
- slf4j-log4j12.jar
-
-PLIST_FILES= %%JAVAJARDIR%%/slf4j-api.jar \
- ${JARFILES:S,^,%%DATADIR%%/,}
+JAVAJARDIR= ${JAVASHAREDIR}/${PORTNAME}
+PLIST_FILES= ${JAVALIBDIR}/slf4j-api.jar \
+ ${JARFILES:C|(.+)|${JAVAJARDIR}/\1.jar|}
do-install:
- ${INSTALL_DATA} ${WRKSRC}/slf4j-api-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/slf4j-api.jar
- @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${MKDIR} ${STAGEDIR}${JAVAJARDIR}
.for jarfile in ${JARFILES}
- ${INSTALL_DATA} ${WRKSRC}/${jarfile:S,.jar$,-${PORTVERSION}.jar,} ${STAGEDIR}${DATADIR}/${jarfile}
+ ${INSTALL_DATA} \
+ ${DISTDIR}/${jarfile:C|(.+)|slf4j/\1/${DISTVERSION}/\1-${DISTVERSION}.jar|} \
+ ${STAGEDIR}${JAVAJARDIR}/${jarfile}.jar
.endfor
+ ${RLN} ${STAGEDIR}${JAVAJARDIR}/slf4j-api.jar \
+ ${STAGEDIR}${JAVALIBDIR}/slf4j-api.jar
.include <bsd.port.mk>