pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/java-rxtx Install java-rxtx in a consistent loca...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71aab1fee9d6
branches:  trunk
changeset: 458342:71aab1fee9d6
user:      dsainty <dsainty%pkgsrc.org@localhost>
date:      Mon Sep 13 11:44:45 2021 +0000

description:
Install java-rxtx in a consistent location regardless of whether the JRE
is built-in or via Pkgsrc.

This removes the JAVA_INSTALL_BASE hack that used to work, but no longer
does.  It's also more consistent with other packages to install in a
private location.

Bump PKGREVISION for the installation location change.

diffstat:

 comms/java-rxtx/Makefile |  27 +++++----------------------
 comms/java-rxtx/PLIST    |   6 +++---
 2 files changed, 8 insertions(+), 25 deletions(-)

diffs (63 lines):

diff -r b332d144ccad -r 71aab1fee9d6 comms/java-rxtx/Makefile
--- a/comms/java-rxtx/Makefile  Mon Sep 13 11:37:34 2021 +0000
+++ b/comms/java-rxtx/Makefile  Mon Sep 13 11:44:45 2021 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.13 2021/09/13 11:37:34 dsainty Exp $
+# $NetBSD: Makefile,v 1.14 2021/09/13 11:44:45 dsainty Exp $
 #
 
 DISTNAME=      rxtx-2.1-7r2
 PKGNAME=       java-rxtx-2.1.7r2
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    comms java
 MASTER_SITES=  http://rxtx.qbang.org/pub/rxtx/
 EXTRACT_SUFX=  .zip
@@ -33,34 +33,17 @@
 JNILIB=        la
 .endif
 
-.if ${MACHINE_ARCH} == "x86_64"
-JAVA_MACHINE_ARCH=     amd64
-.elif !empty(MACHINE_CPU:Marm*)
-JAVA_MACHINE_ARCH=     arm
-.else
-JAVA_MACHINE_ARCH=     ${MACHINE_ARCH}
-.endif
-
 .include "../../mk/java-vm.mk"
 
-# Inconveniently, for built-in JRE's, PKG_JAVA_HOME will be set to the native
-# directory - which we should not be messing with.  But prior to builtin.mk
-# processing, PKG_JAVA_HOME will match the Pkgsrc JRE home, which is a
-# suitable installation location for Native JRE, as well as being the
-# correct installation location for Pkgsrc JRE.
-JAVA_INSTALL_BASE:=    ${PKG_JAVA_HOME}
-
-RXTX_PATH=     ${JAVA_INSTALL_BASE}/jre/lib/${JAVA_MACHINE_ARCH}
-JHOME_PATH=    ${JAVA_INSTALL_BASE}/jre/lib/ext
+RXTX_PATH=     ${PREFIX}/lib/java/rxtx
+JHOME_PATH=    ${PREFIX}/lib/java/rxtx
 
 MAKE_ENV+=     JAVA_HOME=${PKG_JAVA_HOME:Q}
 MAKE_FLAGS+=   RXTX_PATH=${RXTX_PATH:Q}
 MAKE_FLAGS+=   JHOME=${JHOME_PATH:Q}
 
-INSTALLATION_DIRS+=    ${RXTX_PATH:Q} ${JHOME_PATH:Q}
+INSTALLATION_DIRS+=    lib/java/rxtx
 
-PLIST_SUBST+=  JAVA_MACHINE_ARCH=${JAVA_MACHINE_ARCH:Q}
-PLIST_SUBST+=  JAVA_HOME="${JAVA_INSTALL_BASE:C/^${PREFIX}\///}"
 PLIST_SUBST+=  JNILIB=${JNILIB}
 
 pre-configure:
diff -r b332d144ccad -r 71aab1fee9d6 comms/java-rxtx/PLIST
--- a/comms/java-rxtx/PLIST     Mon Sep 13 11:37:34 2021 +0000
+++ b/comms/java-rxtx/PLIST     Mon Sep 13 11:44:45 2021 +0000
@@ -1,3 +1,3 @@
-@comment $NetBSD: PLIST,v 1.5 2021/09/13 11:37:34 dsainty Exp $
-${JAVA_HOME}/jre/lib/ext/RXTXcomm.jar
-${JAVA_HOME}/jre/lib/${JAVA_MACHINE_ARCH}/librxtxSerial.${JNILIB}
+@comment $NetBSD: PLIST,v 1.6 2021/09/13 11:44:45 dsainty Exp $
+lib/java/rxtx/RXTXcomm.jar
+lib/java/rxtx/librxtxSerial.${JNILIB}



Home | Main Index | Thread Index | Old Index