View | Details | Raw Unified | Return to bug 278764 | Differences between
and this patch

Collapse All | Expand All

(-)b/lang/ruby32/Makefile (-10 / +11 lines)
Lines 19-30 BUILD_DEPENDS= libffi>=0:devel/libffi Link Here
19
LIB_DEPENDS=	libyaml.so:textproc/libyaml
19
LIB_DEPENDS=	libyaml.so:textproc/libyaml
20
RUN_DEPENDS=	libffi>=0:devel/libffi
20
RUN_DEPENDS=	libffi>=0:devel/libffi
21
21
22
USES=		autoreconf cpe ruby:none ssl tar:xz
22
USES=		autoreconf cpe localbase ruby:none ssl tar:xz
23
CPE_VENDOR=	ruby-lang
23
CPE_VENDOR=	ruby-lang
24
CPE_VERSION=	${RUBY_RELVERSION}
24
CPE_VERSION=	${RUBY_RELVERSION}
25
CPE_UPDATE=	p${RUBY_PATCHLEVEL}
25
CPE_UPDATE=	p${RUBY_PATCHLEVEL}
26
USE_LDCONFIG=	yes
26
USE_LDCONFIG=	yes
27
27
28
# We get these from other ports
29
EXTRACT_AFTER_ARGS=	--exclude bin/gem \
30
			--exclude ext/win32* \
31
			--exclude lib/bundler* \
32
			--exclude libexec/bundler \
33
			--exclude man/erb.1 \
34
			--exclude man/irb.1 \
35
			--exclude man/ri.1
36
28
GNU_CONFIGURE=	yes
37
GNU_CONFIGURE=	yes
29
CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} \
38
CONFIGURE_ARGS=	${RUBY_CONFIGURE_ARGS} \
30
		--disable-rpath \
39
		--disable-rpath \
Lines 36-44 CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \ Link Here
36
		--with-vendordir="${PREFIX}/lib/ruby/vendor_ruby"
45
		--with-vendordir="${PREFIX}/lib/ruby/vendor_ruby"
37
CONFIGURE_ENV=	debugflags=
46
CONFIGURE_ENV=	debugflags=
38
47
39
CPPFLAGS+=	-I${LOCALBASE}/include
40
# Keep this, else ruby will fail to load libraries dependent of libpthread.
48
# Keep this, else ruby will fail to load libraries dependent of libpthread.
41
LIBS+=		-lpthread -L${LOCALBASE}/lib
49
LIBS+=		-lpthread
42
WRKSRC=		${RUBY_WRKSRC}
50
WRKSRC=		${RUBY_WRKSRC}
43
51
44
RUBY_VER=	3.2
52
RUBY_VER=	3.2
Lines 123-135 RB_SET_CONF_VAR= ${SH} -c \ Link Here
123
			'${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' \
131
			'${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' \
124
			--
132
			--
125
133
126
post-patch:
127
# We get these from other ports
128
.for d in bin/* ext/dbm ext/gdbm ext/win32* lib/bundler* libexec/bundler* \
129
	man/bundle* man/erb.1 man/gemfile* man/irb.1 man/ri.1
130
	@${RM} -r ${BUILD_WRKSRC}/${d}
131
.endfor
132
133
post-build:
134
post-build:
134
#
135
#
135
# Hack to allow modules to be installed into separate PREFIX and/or under user
136
# Hack to allow modules to be installed into separate PREFIX and/or under user

Return to bug 278764