1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/devel/pmd/Makefile
Danilo Egea Gondolfo a9e649fc49 - Update to 5.5.2
2016-11-08 13:38:46 +00:00

33 lines
771 B
Makefile

# Created by: Alex Varju <freebsd-ports@varju.ca>
# $FreeBSD$
PORTNAME= pmd
PORTVERSION= 5.5.2
CATEGORIES= devel java
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-bin-${PORTVERSION}
MAINTAINER= danilo@FreeBSD.org
COMMENT= Static analysis tool for Java source code
LICENSE= APACHE20 BSD4CLAUSE
LICENSE_COMB= dual
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.7+
NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
post-patch:
@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' \
-e 's|LIB_DIR=$$(pwd -P)|LIB_DIR=${DATADIR}|' ${WRKSRC}/bin/run.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/run.sh ${STAGEDIR}${PREFIX}/bin/pmd
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/lib/* ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>