1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/devel/pmd/Makefile
Antoine Brodin 353f78ef1c Update pmd to 5.0.4
Pass maintainership to submitter

PR:		ports/173241
PR:		ports/177236
PR:		ports/178291
Submitted by:	Danilo Egea Gondolfo
Approved by:	miwi (mentor)
2013-05-28 19:41:51 +00:00

40 lines
846 B
Makefile

# Created by: Alex Varju <freebsd-ports@varju.ca>
# $FreeBSD$
PORTNAME= pmd
PORTVERSION= 5.0.4
CATEGORIES= devel java
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-bin-${PORTVERSION}
MAINTAINER= danilogondolfo@gmail.com
COMMENT= Static analysis tool for Java source code
LICENSE= BSD
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' \
-e 's|LIB_DIR=$$(pwd -P)|LIB_DIR=${DATADIR}|' ${WRKSRC}/bin/run.sh
.include <bsd.port.options.mk>
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/run.sh ${PREFIX}/bin/pmd
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/lib/* ${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.include <bsd.port.mk>