blob: 612776dae3995968fa78fc831c1e7bd8620ae283 (
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
64
65
66
67
68
69
70
71
72
73
74
|
# Created by: jjuanino@gmail.com
# $FreeBSD$
PORTNAME= sqldeveloper
PORTVERSION= 4.0.1.14.48
DISTVERSIONSUFFIX=-no-jre
CATEGORIES= databases java
MASTER_SITES= #http://www.oracle.com/technology/software/products/sql/index.html
DIST_SUBDIR= oracle
MAINTAINER= ports@FreeBSD.org
COMMENT= Graphical tool for database development
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.7+
NO_BUILD= yes
RESTRICTED= Packaging prohibited by Oracle license
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= ${PORTNAME}.sh
SUB_LIST= JAVA_HOME=${JAVA_HOME} PORTNAME=${PORTNAME}
PORTDOCS= readme.html
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= Due to Oracle license restrictions, you must fetch the source \
distribution manually. Please access \
http://www.oracle.com/technology/software/products/sql/index.html \
with a web browser and follow the link for the ${DISTFILES}. You will be \
required to register and log in, but you can create an account on that \
page. After registration and accepting the Oracle License, download the \
distribution file, ${DISTFILES}, into ${DISTDIR}/${DIST_SUBDIR}/ and then \
restart this installation
.endif
do-install:
@${ECHO_MSG} -n ">> Installing scripts..."
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
@${ECHO_MSG} " [ DONE ]"
.for d in configuration dataminer dropins dvt equinox \
external ide javavm jdbc jdev jlib jviews modules \
netbeans rdbms sleepycat sqldeveloper sqlj svnkit
@${ECHO_MSG} -n ">> Installing data directory '${d}'..."
@cd ${WRKSRC} && ${FIND} ${d} -type d \
-exec ${MKDIR} ${STAGEDIR}/${DATADIR}/\{} \;
@cd ${WRKSRC} && ${FIND} ${d} -type f \
-not -name "*.orig" \
-not -name "*.exe" \
-not -name "*.bat" \
-not -name "*.bak" \
-not -name "*.dll" \
-exec ${INSTALL_DATA} \{} ${STAGEDIR}/${DATADIR}/\{} \;
@${ECHO_MSG} " [ DONE ]"
.endfor
@${INSTALL_DATA} ${WRKSRC}/view-source-paths.lis ${STAGEDIR}/${DATADIR}/view-source-paths.lis
@${ECHO_MSG} -n ">> Installing icon ..."
@${INSTALL_DATA} ${WRKSRC}/icon.png ${STAGEDIR}/${DATADIR}/icon.png
@${ECHO_MSG} " [ DONE ]"
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
@(cd ${WRKSRC} && ${INSTALL_DATA} readme.html ${STAGEDIR}/${DOCSDIR})
.include <bsd.port.post.mk>
|