blob: 0a3740c2f5b403b6aead8e1da63d0e33bd303b7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Created by: glewis
# $FreeBSD$
PORTNAME= mybatis
PORTVERSION= 3.0.3
PORTREVISION= 1
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
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}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
do-install:
@${INSTALL_DATA} ${WRKSRC}/${JAR_FILE} ${STAGEDIR}${JAVAJARDIR}/${DEST_JAR_FILE}
.if !defined(NOPORTDOCS)
@-${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>
|