diff options
-rw-r--r-- | Mk/bsd.ruby.mk | 4 | ||||
-rw-r--r-- | devel/ruby-gems/Makefile | 4 | ||||
-rw-r--r-- | lang/ruby19/Makefile | 23 | ||||
-rw-r--r-- | lang/ruby19/pkg-plist | 5 |
4 files changed, 8 insertions, 28 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk index fdcf4d0e2fe4..fd183cd70d77 100644 --- a/Mk/bsd.ruby.mk +++ b/Mk/bsd.ruby.mk @@ -195,7 +195,7 @@ RUBY19= "@comment " # Ruby 1.9 # RUBY_RELVERSION= 1.9.2 -RUBY_PORTREVISION= 1 +RUBY_PORTREVISION= 2 RUBY_PORTEPOCH= 1 RUBY_PATCHLEVEL= 290 @@ -380,10 +380,8 @@ RUBY_FLAGS+= -d # .if defined(USE_RUBYGEMS) -. if ${RUBY_VER} == 1.8 BUILD_DEPENDS+= ${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems RUN_DEPENDS+= ${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems -. endif PKGNAMEPREFIX?= rubygem- EXTRACT_SUFX= .gem diff --git a/devel/ruby-gems/Makefile b/devel/ruby-gems/Makefile index b8133c841de9..20e0b876680a 100644 --- a/devel/ruby-gems/Makefile +++ b/devel/ruby-gems/Makefile @@ -44,10 +44,6 @@ RUBY_VER_SHORT= ${RUBY_VER:S/.//} .include <bsd.port.pre.mk> -.if ${RUBY_VER} == 1.9 -IGNORE= already included in this ruby distribution -.endif - do-install: @${MKDIR} ${PREFIX}/${GEMS_DOC_BASE_DIR}/ @${TOUCH} ${PREFIX}/${GEMS_DOC_BASE_DIR}/.keep_this diff --git a/lang/ruby19/Makefile b/lang/ruby19/Makefile index 6dde5e2cf66e..062bc821ebff 100644 --- a/lang/ruby19/Makefile +++ b/lang/ruby19/Makefile @@ -86,10 +86,7 @@ PLIST_SUB+= IF_DEFAULT="" PLIST_SUB+= IF_DEFAULT="@comment " .endif -GEMS_DIR= ${PREFIX}/lib/ruby/gems/${RUBY_VER} -PLIST_SUB+= GEMS_DIR="lib/ruby/gems/${RUBY_VER}" - -INSTALLED_SCRIPTS= irb erb rdoc ri ruby testrb gem +INSTALLED_SCRIPTS= irb erb rdoc ri ruby testrb EXTSAMPLES= bigdecimal/sample/*.rb \ curses/hello.rb \ @@ -128,6 +125,12 @@ post-patch: .for d in win32ole ${RM} -rf ${BUILD_WRKSRC}/ext/${d} .endfor +# We get rake from ports. +.for d in bin/rake doc/rake lib/rake test/rake man/rake.1 lib/rake.rb + ${RM} -rf ${BUILD_WRKSRC}/${d} +.endfor +# We get the gem executable from ports. + ${RM} ${BUILD_WRKSRC}/bin/gem # # Prepare modules we are wanting to build via external ports @@ -136,11 +139,6 @@ post-patch: ${MV} ${BUILD_WRKSRC}/ext/${d} ${WRKDIR}/ .endfor -# we get rake from ports -.for d in bin/rake doc/rake lib/rake test/rake man/rake.1 lib/rake.rb - ${RM} -rf ${BUILD_WRKSRC}/${d} -.endfor - post-build: # # Hack to allow modules to be installed into separate PREFIX and/or under user @@ -166,8 +164,6 @@ pre-su-install: ${TOUCH} ${RUBY_DOCDIR}/.keep_me ${TOUCH} ${RUBY_SITEARCHLIBDIR}/.keep_me ${TOUCH} ${RUBY_VENDORARCHLIBDIR}/.keep_me - ${MKDIR} ${GEMS_DIR}/gems - ${TOUCH} ${GEMS_DIR}/gems/.keep_me post-install: # @@ -288,11 +284,6 @@ plist:: # # Find all gem files/folders # - @${FIND} -ds ${GEMS_DIR}/ ! -type d | \ - ${SED} 's,^${GEMS_DIR},%%GEMS_DIR%%,' >> pkg-plist - @${FIND} -ds ${GEMS_DIR}/ -type d | ${SORT} -r | \ - ${SED} -E -e 's,^${GEMS_DIR}(.*),@dirrm %%GEMS_DIR%%\1,' >> pkg-plist - @${ECHO_CMD} "%%RUBY_SITEARCHLIBDIR%%/.keep_me" >> pkg-plist @${ECHO_CMD} "@dirrmtry %%RUBY_SITEARCHLIBDIR%%" >> pkg-plist @${ECHO_CMD} "@dirrmtry %%RUBY_SITELIBDIR%%" >> pkg-plist diff --git a/lang/ruby19/pkg-plist b/lang/ruby19/pkg-plist index a3d72f4b5826..073c7d040125 100644 --- a/lang/ruby19/pkg-plist +++ b/lang/ruby19/pkg-plist @@ -10,8 +10,6 @@ bin/ruby%%RUBY_SUFFIX%% %%IF_DEFAULT%%bin/ruby bin/testrb%%RUBY_SUFFIX%% %%IF_DEFAULT%%bin/testrb -bin/gem%%RUBY_SUFFIX%% -%%IF_DEFAULT%%bin/gem lib/lib%%RUBY_NAME%%-static.a lib/lib%%RUBY_NAME%%.so lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%% @@ -989,9 +987,6 @@ include/ruby-1.9/ruby.h @dirrm %%RUBY_LIBDIR%%/%%RUBY_ARCH%%/dl @dirrm %%RUBY_LIBDIR%%/%%RUBY_ARCH%%/digest @dirrm %%RUBY_LIBDIR%%/%%RUBY_ARCH%% -%%GEMS_DIR%%/gems/.keep_me -@dirrm %%GEMS_DIR%%/gems -@dirrm %%GEMS_DIR%% @dirrm %%RUBY_LIBDIR%%/ %%RUBY_SITEARCHLIBDIR%%/.keep_me @dirrm %%RUBY_SITEARCHLIBDIR%% |