mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
f58cdc1501
- Convert USE_ZIP to USES=zip - Support staging PR: ports/187406 Submitted by: Naram Qashat <cyberbotx@cyberbotx.com> Approved by: maintainer timeout
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# Created by: jon@witchspace.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jdiskreport
|
|
PORTVERSION= 1.4.1
|
|
CATEGORIES= sysutils java
|
|
MASTER_SITES= http://www.jGoodies.com/download/${PORTNAME}/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S,.,_,g}
|
|
|
|
MAINTAINER= jon@witchspace.com
|
|
COMMENT= Java program to graphically display disk usage statistics
|
|
|
|
RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper
|
|
|
|
USES= zip
|
|
USE_JAVA= YES
|
|
JAVA_VERSION= 1.6+
|
|
|
|
PLIST_SUB= JDISKDIR=${JDISKDIR:S,${PREFIX}/,,g}
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
|
JAVAVM?= ${LOCALBASE}/bin/java
|
|
JDISKDIR?= ${PREFIX}/lib/jdiskreport
|
|
|
|
DESKTOP_ENTRIES="JDiskReport" "${COMMENT}" "" "jdiskreport" \
|
|
"System;Filesystem;" false
|
|
|
|
do-build:
|
|
@cd ${WRKDIR}
|
|
@${SED} -e 's,%%JDISKDIR%%,${JDISKDIR},g' \
|
|
-e 's,%%PORTVERSION%%,${PORTVERSION},g' \
|
|
-e 's,%%JAVAVM%%,${JAVAVM},g' ${FILESDIR}/jdiskreport.sh \
|
|
> ${WRKDIR}/jdiskreport
|
|
|
|
do-install:
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/jdiskreport ${STAGEDIR}${PREFIX}/bin
|
|
-@${MKDIR} ${STAGEDIR}${JDISKDIR}
|
|
@${INSTALL_DATA} ${WRKSRC:S|_|.|g}/jdiskreport-${PORTVERSION}.jar \
|
|
${STAGEDIR}${JDISKDIR}
|
|
|
|
.include <bsd.port.mk>
|