blob: fe648a27b31a6b35977d7cf152da83adad184c4f (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Created by: Wen heping <wenheping@gmail.com>
# $FreeBSD$
PORTNAME= Jmol
DISTVERSION= 14.30.1
CATEGORIES= science java
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}/Version%20${DISTVERSION:R}/${PORTNAME}%20${DISTVERSION}/:src \
http://${PORTNAME:tl}.svn.sourceforge.net/viewvc/${PORTNAME:tl}/trunk/${PORTNAME}/selfSignedCertificate/:cert
DISTFILES= ${PORTNAME}-${DISTVERSION}-full${EXTRACT_SUFX}:src \
selfSignedCertificate.cer:cert \
selfSignedCertificate.store:cert
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-full${EXTRACT_SUFX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Java 3D viewer for chemical structures
BROKEN= unfetchable
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USE_JAVA= yes
USE_ANT= yes
NO_ARCH= yes
WRKSRC= ${WRKDIR}/${PORTNAME:tl}-${DISTVERSION}
SIGN_DIR= ${WRKSRC}/selfSignedCertificate
SUB_FILES= ${EXES}
SUB_LIST= JAVA=${JAVA}
EXES= ${PORTNAME:tl} ${PORTNAME:tl}data
JARS= ${PORTNAME}.jar ${PORTNAME}Data.jar ${PORTNAME}Lib.jar
PLIST_FILES= ${EXES:S/^/bin\//} \
${JARS:S/^/${JAVAJARDIR}\//}
OPTIONS_DEFINE= DOCS
PORTDOCS= *
DESKTOP_ENTRIES="${PORTNAME}" "" "" "${PORTNAME:tl}" "" false
post-extract:
@${MKDIR} ${SIGN_DIR}
@${CP} ${DISTDIR}/selfSignedCertificate.cer ${SIGN_DIR}
@${CP} ${DISTDIR}/selfSignedCertificate.store ${SIGN_DIR}
post-patch:
@${REINPLACE_CMD} 's|<input message="private property file.*||' ${WRKSRC}/build.xml
do-install:
.for exe in ${EXES}
${INSTALL_SCRIPT} ${WRKDIR}/${exe} ${STAGEDIR}${PREFIX}/bin
.endfor
.for jar in ${JARS}
${INSTALL_DATA} ${WRKSRC}/build/${jar} ${STAGEDIR}${JAVAJARDIR}
.endfor
do-install-DOCS-on:
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|