freebsd-ports/devel/umlgraph/Makefile
Muhammad Moinur Rahman 4cda17ab14 */*: Refactor java/openjdk7 removal
- java/openjdk7* has been removed from the tree since 2022-09-03 however
  the relevant codebases in bsd.java.mk has not been removed and the
  consumers has also not been updated to use the next jdk version. This
  commit updates all relevant consumers to use JAVA_VERSION=8 instead of
  JAVA_VERSION=1.7
- Since the introduction of jdk version 18 it looks like similar with
  jdk version 8(java version string 1.8). This is prone to error as it
  looks similar and is only seperated by a '.'. Remove using
  JAVA_VERSION with dotted fomat of java version string and update all
  consumers to utilize version 8 instead of 1.8.

Approved by:	portmgr (blanket)
2023-04-04 13:10:53 -05:00

35 lines
805 B
Makefile

PORTNAME= umlgraph
DISTVERSIONPREFIX= R
DISTVERSION= 5_7_2
CATEGORIES= devel java
MAINTAINER= ports@FreeBSD.org
COMMENT= Automated drawing of UML diagrams
WWW= https://www.umlgraph.org/
LICENSE= BSD3CLAUSE
USE_ANT= yes
USE_JAVA= yes
JAVA_VERSION= 8
USE_GITHUB= yes
GH_ACCOUNT= dspinellis
GH_PROJECT= UMLGraph
BUILD_DEPENDS= dot:graphics/graphviz \
pic2plot:graphics/plotutils
RUN_DEPENDS:= ${BUILD_DEPENDS}
PLIST_FILES= bin/umlgraph %%JAVAJARDIR%%/UmlGraph.jar
post-configure:
${REINPLACE_CMD} -e 's|%%JAVA_HOME%%|${JAVA_HOME}|; \
s|%%JAVAJARDIR%%|${JAVAJARDIR}|' \
${WRKSRC}/umlgraph
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/lib/UmlGraph.jar ${STAGEDIR}${JAVAJARDIR}/
${INSTALL_SCRIPT} ${WRKSRC}/umlgraph ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>