blob: 5aa602eb641df0c5a5e46458ac7afdb4687c25e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Created by: Alex Varju <freebsd-ports@varju.ca>
PORTNAME= pmd
PORTVERSION= 6.37.0
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= cpe zip
CPE_VENDOR= pmd_project
USE_JAVA= yes
NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
post-patch:
@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' -e 's|function||' \
-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>
|