blob: 2bf0e0974ca7ff8a7c3d96e368361138c25416f5 (
plain)
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
|
# Created by: Matthias Andree <mandree@FreeBSD.org>
# $FreeBSD$
PORTNAME= docear
PORTVERSION= 1.2.0
_suffix= _stable
CATEGORIES= deskutils java
MASTER_SITES= http://docear.org/downloads/${PORTVERSION}${_suffix}/ \
SF/docear/1.x/${PORTVERSION}${_suffix} \
LOCAL/mandree/${DIST_SUBDIR}/
DISTNAME= docear_linux
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}${_suffix}
MAINTAINER= ports@FreeBSD.org
COMMENT= Academic literature suite
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/license.txt
USES= desktop-file-utils shared-mime-info
USE_JAVA= yes
JAVA_VENDOR= openjdk
JAVA_VERSION= 1.6+
NO_BUILD= yes
JDATADIR= ${JAVASHAREDIR}/${PORTNAME}
icon= ${DATADIR}/${PORTNAME}-icon48x48.png
WRKSRC= ${WRKDIR}/docear-1.2.0.0_stable_build291
SUB_FILES= docear.desktop
do-install:
@${RM} -f ${WRKSRC}/docear.bat ${WRKSRC}/docear.exe ${WRKSRC}/*.bak
# We can't install into $DOCSDIR or support disabling a DOCS option
# since the documentation is an integral part of the installation,
# such as online help via the program menus.
@${MKDIR} ${STAGEDIR}${JDATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${JDATADIR}
${PRINTF} '#!/bin/sh\nset -eu\nexport JAVA_HOME="%s"\ncd "%s"\nexec "%s" "$$@"\n' \
'${JAVA_HOME}' '${JDATADIR}' '${JDATADIR}/docear.sh' \
> ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${CHMOD} a=rx ${STAGEDIR}${JDATADIR}/docear.sh \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${FILESDIR}/docear48.png ${STAGEDIR}${icon}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.xml \
${STAGEDIR}${PREFIX}/share/mime/packages
.include <bsd.port.mk>
|