freebsd-ports/graphics/ditaa/Makefile
Max Brazhnikov a826c86e9d Add new port graphics/ditaa:
ditaa is a small command-line utility written in Java, that can convert
diagrams drawn using ascii art ('drawings' that contain characters that
resemble lines like | / - ), into proper bitmap graphics.

WWW: http://ditaa.sourceforge.net/

PR:		ports/156800
Submitted by:	Aldis Berjoza <aldis@bsdroot.lv>
2011-05-20 06:08:52 +00:00

37 lines
994 B
Makefile

# New ports collection makefile for: ditta
# Date created: 2011.05.03
# Whom: Aldis Berjoza <aldis@bsdroot.lv>
#
# $FreeBSD$
#
PORTNAME= ditaa
DISTVERSION= 0_9
CATEGORIES= graphics java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
DISTNAME= ${PORTNAME}${DISTVERSION}
MAINTAINER= aldis@bsdroot.lv
COMMENT= Convert ascii-art diagrams into proper bitmap graphics
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
LICENSE= GPLv2
NO_BUILD= YES
PLIST_FILES= %%JAVASHAREDIR%%/${PORTNAME}/${PORTNAME}.jar bin/${PORTNAME}
PLIST_DIRS= %%JAVASHAREDIR%%/${PORTNAME}
pre-install:
${ECHO} "#!/bin/sh" > ${WRKDIR}/${PORTNAME}.sh
${ECHO} "${PREFIX}/bin/java -jar ${JAVASHAREDIR}/${PORTNAME}/${PORTNAME}.jar \$$*" >> ${WRKDIR}/${PORTNAME}.sh
do-install:
${MKDIR} ${JAVASHAREDIR}/${PORTNAME}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}${DISTVERSION}.jar ${JAVASHAREDIR}/${PORTNAME}/${PORTNAME}.jar
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>