freebsd-ports/databases/java-mybatis/Makefile
Greg Lewis d3a9136804 . Add a port of MyBatis for Java:
MyBatis is a first class persistence framework with support for custom
SQL, stored procedures and advanced mappings.  MyBatis eliminates almost
all of the JDBC code and manual setting of parameters and retrieval of
results.  MyBatis can use simple XML or Annotations for configuration and
map primitives, Map interfaces and Java POJOs (Plain Old Java Objects)
to database records.

WWW: http://www.mybatis.org/
2010-12-07 06:13:59 +00:00

46 lines
1,020 B
Makefile

# New ports collection makefile for: mybatis
# Date created: 5 December 2010
# Whom: glewis
#
# $FreeBSD$
#
PORTNAME= mybatis
PORTVERSION= 3.0.3
CATEGORIES= databases devel java
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX= java-
DISTFILES= ${PORTNAME}-${PORTVERSION}-bundle${EXTRACT_SUFX}
.if !defined(NOPORTDOCS)
DISTFILES+= ${USER_GUIDE}
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-bundle${EXTRACT_SUFX}
.endif
MAINTAINER= glewis@FreeBSD.org
COMMENT= SQL Mapping Framework
USE_JAVA= yes
USE_ZIP= yes
LICENSE= ASL
NO_BUILD= yes
JAR_FILE= ${PORTNAME}-${PORTVERSION}.jar
USER_GUIDE= MyBatis-${PORTVERSION}-User-Guide.pdf
PLIST_FILES+= %%JAVAJARDIR%%/${JAR_FILE}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
do-install:
@${INSTALL_DATA} ${WRKSRC}/${JAR_FILE} ${JAVAJARDIR}
.if !defined(NOPORTDOCS)
@-${MKDIR} ${DOCSDIR}
.for f in LICENSE NOTICE
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
@${INSTALL_DATA} ${DISTDIR}/${USER_GUIDE} ${DOCSDIR}
.endif
.include <bsd.port.mk>