1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/java/jode/Makefile
Mikhail Teterin 6a22aa02c2 Most unkindly the java/java-getopt port changed the name
of the JAR it was installing from getopt.jar to java-getopt.jar

This broke jode and, possibly, some other ports depending on
getopt.jar.

Submitted by:	pkg-fallout
2013-11-27 16:09:28 +00:00

55 lines
1.4 KiB
Makefile

# Created by: mi
# $FreeBSD$
PORTNAME= jode
PORTVERSION= 1.1.1.1
PORTREVISION= 3
CATEGORIES= java devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/1.1.2-pre1
DISTNAME= ${PORTNAME}-${VENDOR_VERSION}
MAINTAINER= mi@aldan.algebra.com
COMMENT= Java package containing a decompiler and an optimizer for Java
BUILD_DEPENDS= ${GETOPT_JAR}:${PORTSDIR}/java/java-getopt
RUN_DEPENDS:= ${BUILD_DEPENDS}
VENDOR_VERSION= 1.1.2-pre1
USE_JAVA= yes
JAVA_VERSION= 1.6+
NEED_JAVAC= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAKE_JOBS_UNSAFE= yes
GETOPT_JAR= ${JAVALIBDIR}/java-getopt.jar
CLASSLIB= ${JAVA_CLASSES}:${GETOPT_JAR}
CONFIGURE_ENV+= CLASSLIB=${CLASSLIB} JAR="${JAR}" \
JAVA="${JAVA}" JAVAC="${JAVAC}"
CONFIGURE_ARGS+=--datadir="${JAVALIBDIR}"
NO_STAGE= yes
# Don't create the dependencies:
MAKE_ARGS+= JAVADEP=:
PLIST_SUB+= VERSION=${VENDOR_VERSION}
post-patch:
${FIND} ${WRKSRC} -name '*.java*' | \
${XARGS} ${GREP} --mmap -l 'Enumeration enum ' | \
${XARGS} ${REINPLACE_CMD} -E \
-e 's,enum([ \.]),enumeration\1,g'
post-build:
cd ${WRKSRC} && ${JAR} cvf ${PORTNAME}-${VENDOR_VERSION}.jar \
`${FIND} jode -name \*.class`
post-install:
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${VENDOR_VERSION}.jar \
${JAVAJARDIR}/
# Documentation HTML seems broken and out of date. Don't bother
#.ifndef (NOPORTDOCS)
# ${MKDIR} ${DOCSDIR}
# ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.gif ${DOCSDIR}/
#.endif
.include <bsd.port.mk>