aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2007-01-02 16:23:42 +0000
committerStanislav Sedov <stas@FreeBSD.org>2007-01-02 16:23:42 +0000
commitf2889b4db39b831f5e50d501b11d93e5cf0bdef0 (patch)
tree859fb4b82f06f9d65272a4d7e9b47cb2c4a34bb0 /Mk
parentbeb6a7c8a7282fddb642e4f0419947352fc9a76d (diff)
downloadports-f2889b4db39b831f5e50d501b11d93e5cf0bdef0.tar.gz
ports-f2889b4db39b831f5e50d501b11d93e5cf0bdef0.zip
Notes
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= ""