pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/ruby32-base
Module Name: pkgsrc
Committed By: taca
Date: Tue Jan 16 15:17:41 UTC 2024
Modified Files:
pkgsrc/lang/ruby32-base: Makefile hacks.mk options.mk
Log Message:
lang/ruby32-base: enable ruby-yjit on supprted platforms.
* Accidently, ruby-yjit was not enabled on supprted platforms.
* RUBY_SUFFIX is always defined.
* Avoid use "!empty()".
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/ruby32-base/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/ruby32-base/hacks.mk
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/ruby32-base/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/ruby32-base/Makefile
diff -u pkgsrc/lang/ruby32-base/Makefile:1.5 pkgsrc/lang/ruby32-base/Makefile:1.6
--- pkgsrc/lang/ruby32-base/Makefile:1.5 Tue Oct 24 22:09:40 2023
+++ pkgsrc/lang/ruby32-base/Makefile Tue Jan 16 15:17:41 2024
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2023/10/24 22:09:40 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2024/01/16 15:17:41 taca Exp $
DISTNAME= ${RUBY_DISTNAME}
PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= lang ruby
MASTER_SITES= ${MASTER_SITE_RUBY}
@@ -29,12 +29,10 @@ USE_CC_FEATURES+= c11
.include "options.mk"
.include "../../lang/ruby/platform.mk"
-.if !empty(RUBY_SUFFIX)
CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX}
CONFIGURE_ARGS+= --with-soname=${RUBY_NAME}
CONFIGURE_ARGS+= --with-ruby-version=${RUBY_VER_DIR}
CONFIGURE_ARGS+= --with-ruby-pc="ruby-${RUBY_VERSION}.pc"
-.endif
CONFIGURE_ENV+= ac_cv_path_MJIT_CC=${CC:Q}
CONFIGURE_ENV.Darwin+= ac_cv_prog_dsymutil=
Index: pkgsrc/lang/ruby32-base/hacks.mk
diff -u pkgsrc/lang/ruby32-base/hacks.mk:1.1 pkgsrc/lang/ruby32-base/hacks.mk:1.2
--- pkgsrc/lang/ruby32-base/hacks.mk:1.1 Sat Jan 21 13:51:23 2023
+++ pkgsrc/lang/ruby32-base/hacks.mk Tue Jan 16 15:17:41 2024
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2023/01/21 13:51:23 taca Exp $
+# $NetBSD: hacks.mk,v 1.2 2024/01/16 15:17:41 taca Exp $
.if !defined(RUBY31_BASE_HACKS_MK)
RUBY31_BASE_HACKS_MK= defined
@@ -11,15 +11,15 @@ RUBY31_BASE_HACKS_MK= defined
### Also note that `-O' level optimisation produces a miniruby
### binary that loops while running the installation scripts.
###
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
-. if !empty(CC_VERSION:Mgcc-3.3.*)
+.if ${MACHINE_PLATFORM:MNetBSD-*-sparc64}
+. if ${CC_VERSION:Mgcc-3.3.*}
PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
. endif
### ruby193 binary built on NetBSD/sparc64 with gcc 4.5.1 and the default -O2
### dumps core during generating RDocs.
### Using -O1 works around.
-. if !empty(CC_VERSION:Mgcc-4.5.*)
+. if ${CC_VERSION:Mgcc-4.5.*}
PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= opt:-O2:-O1
. endif
@@ -29,14 +29,14 @@ BUILDLINK_TRANSFORM+= opt:-O2:-O1
# {standard input}: Assembler messages: {standard input}:1458: \
# Error: pcrel too far
# and -O1 works around.
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-sh3*) && !empty(CC_VERSION:Mgcc-4.5.*)
+.if ${MACHINE_PLATFORM:MNetBSD-*-sh3*} && ${CC_VERSION:Mgcc-4.5.*}
PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= opt:-Os:-O1 rm:-freorder-blocks
.endif
# On NetBSD/aarch64, GCC before GCC 10 optimisation produces segmentation
# faulting miniruby binary.
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64*) && !empty(CC_VERSION:Mgcc-[2-9]*)
+.if ${MACHINE_PLATFORM:MNetBSD-*-aarch64*} && ${CC_VERSION:Mgcc-[2-9]*}
PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= rm:-fomit-frame-pointer
.endif
Index: pkgsrc/lang/ruby32-base/options.mk
diff -u pkgsrc/lang/ruby32-base/options.mk:1.2 pkgsrc/lang/ruby32-base/options.mk:1.3
--- pkgsrc/lang/ruby32-base/options.mk:1.2 Tue Apr 4 12:20:29 2023
+++ pkgsrc/lang/ruby32-base/options.mk Tue Jan 16 15:17:41 2024
@@ -1,11 +1,11 @@
-# $NetBSD: options.mk,v 1.2 2023/04/04 12:20:29 he Exp $
+# $NetBSD: options.mk,v 1.3 2024/01/16 15:17:41 taca Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ruby
PKG_SUPPORTED_OPTIONS= ruby-build-ri-db ruby-yjit
PKG_SUGGESTED_OPTIONS= ruby-build-ri-db
-.for a in "x86_64" "aarch64" "aarch64eb"
-. if $a == ${MACHINE_ARCH}
+.for a in x86_64 aarch64 aarch64eb
+. if ${a} == ${MACHINE_ARCH}
PKG_SUGGESTED_OPTIONS+= ruby-yjit
. endif
.endfor
Home |
Main Index |
Thread Index |
Old Index