1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Move some variable definitions outside the .if defined(RUBY) block so

they will not be referenced without being defined.

Submitted by:	gad
This commit is contained in:
Akinori MUSHA 2002-03-10 20:42:48 +00:00
parent 6839b317d9
commit edf66fa8c3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55820

View File

@ -112,6 +112,15 @@ RUBY_DISTVERSION?= ${RUBY_VERSION}
#RUBY_PATCHFILES?= ruby-${RUBY_DISTVERSION}-yyyy.mm.dd.diff.bz2
RUBY_PORTVERSION?= ${RUBY_VERSION}
.endif
# defined(RUBY_VER) && ${RUBY_VER} == 1.7
RUBY_ARCH?= ${ARCH}-freebsd${OSREL:C/\..*//}${RUBY_R}
RUBY_NAME?= ruby${RUBY_SUFFIX}
_RUBY_SYSLIBDIR?= ${LOCALBASE}/lib
_RUBY_SITEDIR?= ${_RUBY_SYSLIBDIR}/ruby/site_ruby
.endif
# defined(RUBY)
RUBY_DEFAULT_VER?= 1.6
RUBY_DEFAULT_SUFFIX?= ${RUBY_DEFAULT_VER:S/.//}
@ -122,13 +131,6 @@ RUBY_DISTNAME?= ruby-${RUBY_DISTVERSION}
RUBY_WRKSRC?= ${WRKDIR}/${RUBY_DISTNAME}
RUBY_ARCH?= ${ARCH}-freebsd${OSREL:C/\..*//}${RUBY_R}
RUBY_NAME?= ruby${RUBY_SUFFIX}
_RUBY_SYSLIBDIR?= ${LOCALBASE}/lib
_RUBY_SITEDIR?= ${_RUBY_SYSLIBDIR}/ruby/site_ruby
.endif
RUBY_VERSION_CODE?= ${RUBY_VERSION:S/.//g}
RUBY_VER= ${RUBY_VERSION:R}
_RUBY_SUFFIX= ${RUBY_VER:S/.//}${RUBY_R}