freebsd-ports/databases/sqldeveloper/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

86 lines
2.9 KiB
Makefile

PORTNAME= sqldeveloper
DISTVERSION= 21.4.3.063.0100
DISTVERSIONSUFFIX= -no-jre
CATEGORIES= databases java
# https://www.oracle.com/tools/downloads/sqldev-downloads.html
MASTER_SITES=
DIST_SUBDIR= oracle
MAINTAINER= vvd@unislabs.com
COMMENT= Graphical tool for database development
WWW= https://www.oracle.com/database/technologies/appdev/sqldeveloper-landing.html
# https://www.oracle.com/downloads/licenses/sqldev-license.html
LICENSE_NAME= OTN
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror
RUN_DEPENDS= bash:shells/bash
USES= gnome zip
USE_JAVA= yes
JAVA_VERSION= 11+
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
NO_BUILD= yes
SUB_FILES= ${PORTNAME}.desktop ${PORTNAME}.sh
SUB_LIST= JAVA_HOME=${JAVA_HOME} \
PORTNAME=${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_DEFINE= OPENJFX14
OPTIONS_DEFAULT= OPENJFX14
OPENJFX14_DESC= Use JavaFX 14 (can work without it with some limitations)
OPENJFX14_RUN_DEPENDS= openjfx14>=0:java/openjfx14
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENJFX14}
OPENJFX14_JVM_OPTIONS= -J--module-path=${LOCALBASE}/openjfx14/lib \
-J--add-modules=javafx.swing,javafx.web
.endif
SUB_LIST+= OPENJFX14_JVM_OPTIONS="${OPENJFX14_JVM_OPTIONS}"
.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 \
https://www.oracle.com/tools/downloads/sqldev-downloads.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 equinox \
external ide javavm jdbc jdev jlib jviews modules \
netbeans orakafka 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 "*.exe" \
-not -name "*.dll" \
-not -name "*.so" \
-not -name "*.jnilib" \
-exec ${INSTALL_DATA} \{} ${STAGEDIR}/${DATADIR}/\{} \;
${ECHO_MSG} " [ DONE ]"
.endfor
@${ECHO_MSG} ">> Installing icon and desktop file ..."
@${MKDIR} ${STAGEDIR}/${PREFIX}/share/applications/ \
${STAGEDIR}/${PREFIX}/share/icons/hicolor/32x32/apps/
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}/${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/icon.png ${STAGEDIR}/${PREFIX}/share/icons/hicolor/32x32/apps/${PORTNAME}.png
${ECHO_MSG} " [ DONE ]"
.include <bsd.port.post.mk>