1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/databases/java-mybatis/Makefile
Mathieu Arnold 88bfe4bd43 Cleanup DIST* variables.
When appropriate:
- Try to use DISTVERSION{SUF,PRE}FIX
- Replace PORTNAME-PORTVERSION by DISTNAME
- Convert MASTER_SITES to use macros
- Other light cleanup

With hat:	portmgr
Sponsored by:	Absolight
2015-05-11 18:34:57 +00:00

47 lines
1.0 KiB
Makefile

# Created by: glewis
# $FreeBSD$
PORTNAME= mybatis
PORTVERSION= 3.0.3
PORTREVISION= 1
CATEGORIES= databases devel java
MASTER_SITES= GOOGLE_CODE
PKGNAMEPREFIX= java-
DISTFILES= ${PORTNAME}-${PORTVERSION}-bundle${EXTRACT_SUFX}
MAINTAINER= glewis@FreeBSD.org
COMMENT= SQL Mapping Framework
BROKEN= Unfetchable
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-bundle${EXTRACT_SUFX}
USE_JAVA= yes
USES= zip
LICENSE= APACHE20
NO_BUILD= yes
JAR_FILE= ${PORTNAME}-${PORTVERSION}.jar
DEST_JAR_FILE= ${PORTNAME}.jar
USER_GUIDE= MyBatis-${PORTVERSION}-User-Guide.pdf
PLIST_FILES+= %%JAVAJARDIR%%/${DEST_JAR_FILE}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
DOCS_DISTFILES= ${USER_GUIDE}
.include <bsd.port.options.mk>
do-install:
@${INSTALL_DATA} ${WRKSRC}/${JAR_FILE} ${STAGEDIR}${JAVAJARDIR}/${DEST_JAR_FILE}
.if ${PORT_OPTIONS:MDOCS}
@-${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in LICENSE NOTICE
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
@${INSTALL_DATA} ${DISTDIR}/${USER_GUIDE} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>