aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2007-01-03 00:23:42 +0800
committerstas <stas@FreeBSD.org>2007-01-03 00:23:42 +0800
commite9d1847c896f7b4b8cee3a8c99a51ddf064a248d (patch)
tree1af3313cb0922cffe526700a84c9dded1129f88b /Mk
parentf12f147b42411c4c711798a3bcfada0ea6cf770a (diff)
downloadfreebsd-ports-gnome-e9d1847c896f7b4b8cee3a8c99a51ddf064a248d.tar.gz
freebsd-ports-gnome-e9d1847c896f7b4b8cee3a8c99a51ddf064a248d.tar.zst
freebsd-ports-gnome-e9d1847c896f7b4b8cee3a8c99a51ddf064a248d.zip
- Update lang/ruby18 to 1.8.5p12 (bugfix release)
- Make RI generation disabled by default (it causes problems on slow hardware) - PREFIX-cleaness fixes (in bsd.ruby.mk) [1] - Take maintainership of bsd.ruby.mk [1] The patch was tested in the tinderbox with all ruby-dependend ports. Approved by: portmgr (linimon)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.ruby.mk35
1 files changed, 19 insertions, 16 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index 0bc03d437efa..81d05a483af6 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -9,7 +9,7 @@
.if !defined(Ruby_Include)
Ruby_Include= bsd.ruby.mk
-Ruby_Include_MAINTAINER= knu@FreeBSD.org
+Ruby_Include_MAINTAINER= stas@FreeBSD.org
#
# [variables that a user may define]
@@ -136,15 +136,18 @@ _RUBY_SITEDIR!= ${_RUBY_CONFIG} 'puts C["sitedir"]'
RUBY?= ${LOCALBASE}/bin/${RUBY_NAME}
.if defined(RUBY_VER) && ${RUBY_VER} == 1.8
-RUBY_VERSION?= 1.8.5
-#RUBY_DISTVERSION?= ${RUBY_VERSION}
+RUBY_RELVERSION= 1.8.5
+RUBY_PATCHLEVEL= 12
+RUBY_VERSION?= ${RUBY_RELVERSION}.${RUBY_PATCHLEVEL}
+RUBY_DISTVERSION?= ${RUBY_RELVERSION}-p${RUBY_PATCHLEVEL}
+RUBY_PORTREVISION= 0
#RUBY_PATCHFILES?= ruby-${RUBY_DISTVERSION}-yyyy.mm.dd.diff.bz2
# Security patch
RUBY_PATCHFILES?= ${RUBY_VERSION}-patch1.gz
#RUBY_PORTVERSION?= ${RUBY_VERSION}
-RUBY_WRKSRC= ${WRKDIR}/ruby-${RUBY_VERSION}
+RUBY_WRKSRC= ${WRKDIR}/ruby-${RUBY_DISTVERSION}
#MASTER_SITE_SUBDIR_RUBY= snapshots
.elif defined(RUBY_VER) && ${RUBY_VER} == 1.7
IGNORE= Ruby 1.7 is obsolete; set RUBY_VER to 1.8 instead.
@@ -167,7 +170,7 @@ CONFIGURE_TARGET?= ${ARCH}-portbld-freebsd${OSREL:C/\..*//}
RUBY_ARCH?= ${ARCH}-freebsd${OSREL:C/\..*//}
RUBY_NAME?= ruby${RUBY_SUFFIX}
-_RUBY_SYSLIBDIR?= ${LOCALBASE}/lib
+_RUBY_SYSLIBDIR?= ${PREFIX}/lib
_RUBY_SITEDIR?= ${_RUBY_SYSLIBDIR}/ruby/site_ruby
.endif
# defined(RUBY)
@@ -182,7 +185,7 @@ RUBY_DISTNAME?= ruby-${RUBY_DISTVERSION}
RUBY_WRKSRC?= ${WRKDIR}/${RUBY_DISTNAME}
RUBY_VERSION_CODE?= ${RUBY_VERSION:S/.//g}
-RUBY_VER= ${RUBY_VERSION:R}
+RUBY_VER= ${RUBY_VERSION:C/([[:digit:]]+\.[[:digit:]]+).*/\1/}
RUBY_SUFFIX= ${RUBY_VER:S/.//}
RUBY_WITHOUT_SUFFIX?= ${LOCALBASE}/bin/ruby
@@ -229,35 +232,35 @@ RUBY_LIBDIR?= ${_RUBY_SYSLIBDIR}/ruby/${RUBY_VER}
RUBY_ARCHLIBDIR?= ${RUBY_LIBDIR}/${RUBY_ARCH}
RUBY_SITELIBDIR?= ${_RUBY_SITEDIR}/${RUBY_VER}
RUBY_SITEARCHLIBDIR?= ${RUBY_SITELIBDIR}/${RUBY_ARCH}
-RUBY_DOCDIR?= ${LOCALBASE}/share/doc/${RUBY_NAME}
-RUBY_EXAMPLESDIR?= ${LOCALBASE}/share/examples/${RUBY_NAME}
-RUBY_RIDIR?= ${LOCALBASE}/share/ri/${RUBY_VER}/system
-RUBY_SITERIDIR?= ${LOCALBASE}/share/ri/${RUBY_VER}/site
+RUBY_DOCDIR?= ${PREFIX}/share/doc/${RUBY_NAME}
+RUBY_EXAMPLESDIR?= ${PREFIX}/share/examples/${RUBY_NAME}
+RUBY_RIDIR?= ${PREFIX}/share/ri/${RUBY_VER}/system
+RUBY_SITERIDIR?= ${PREFIX}/share/ri/${RUBY_VER}/site
RUBY_MODDOCDIR?= ${RUBY_DOCDIR}/${RUBY_MODNAME}
RUBY_MODEXAMPLESDIR?= ${RUBY_EXAMPLESDIR}/${RUBY_MODNAME}
-RUBY_ELISPDIR?= ${_RUBY_SYSLIBDIR}/ruby/elisp
+RUBY_ELISPDIR?= ${PREFIX}/lib/ruby/elisp
# PLIST
PLIST_RUBY_DIRS= RUBY_LIBDIR="${RUBY_LIBDIR}" \
RUBY_ARCHLIBDIR="${RUBY_ARCHLIBDIR}" \
RUBY_SITELIBDIR="${RUBY_SITELIBDIR}" \
RUBY_SITEARCHLIBDIR="${RUBY_SITEARCHLIBDIR}" \
+ RUBY_MODDOCDIR="${RUBY_MODDOCDIR}" \
+ RUBY_MODEXAMPLESDIR="${RUBY_MODEXAMPLESDIR}" \
RUBY_DOCDIR="${RUBY_DOCDIR}" \
RUBY_EXAMPLESDIR="${RUBY_EXAMPLESDIR}" \
RUBY_RIDIR="${RUBY_RIDIR}" \
RUBY_SITERIDIR="${RUBY_SITERIDIR}" \
- RUBY_MODDOCDIR="${RUBY_MODDOCDIR}" \
- RUBY_MODEXAMPLESDIR="${RUBY_MODEXAMPLESDIR}" \
RUBY_ELISPDIR="${RUBY_ELISPDIR}"
-PLIST_SUB+= RUBY_VERSION="${RUBY_VERSION}" \
+PLIST_SUB+= ${PLIST_RUBY_DIRS:C,DIR="(${LOCALBASE}|${PREFIX})/,DIR=",} \
+ RUBY_VERSION="${RUBY_VERSION}" \
RUBY_VER="${RUBY_VER}" \
RUBY_SHLIBVER="${RUBY_SHLIBVER}" \
RUBY_ARCH="${RUBY_ARCH}" \
RUBY_SUFFIX="${RUBY_SUFFIX}" \
RUBY_NAME="${RUBY_NAME}" \
- RUBY_DEFAULT_SUFFIX="${RUBY_DEFAULT_SUFFIX}" \
- ${PLIST_RUBY_DIRS:S,DIR="${LOCALBASE}/,DIR=",}
+ RUBY_DEFAULT_SUFFIX="${RUBY_DEFAULT_SUFFIX}"
.if ${RUBY_VER} >= 1.7
RUBY18_ONLY= ""