From owner-svn-ports-head@FreeBSD.ORG Mon May 6 02:27:14 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A12BB59A; Mon, 6 May 2013 02:27:14 +0000 (UTC) (envelope-from tota@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 848E3983; Mon, 6 May 2013 02:27:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r462RECi067307; Mon, 6 May 2013 02:27:14 GMT (envelope-from tota@svn.freebsd.org) Received: (from tota@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r462REk5067305; Mon, 6 May 2013 02:27:14 GMT (envelope-from tota@svn.freebsd.org) Message-Id: <201305060227.r462REk5067305@svn.freebsd.org> From: TAKATSU Tomonari Date: Mon, 6 May 2013 02:27:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r317456 - head/devel/rubygem-io-like X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 02:27:14 -0000 Author: tota Date: Mon May 6 02:27:13 2013 New Revision: 317456 URL: http://svnweb.freebsd.org/changeset/ports/317456 Log: - Unbreak by makeing use of latest code on Github - Adapt to new options framework Modified: head/devel/rubygem-io-like/Makefile head/devel/rubygem-io-like/distinfo Modified: head/devel/rubygem-io-like/Makefile ============================================================================== --- head/devel/rubygem-io-like/Makefile Mon May 6 02:00:40 2013 (r317455) +++ head/devel/rubygem-io-like/Makefile Mon May 6 02:27:13 2013 (r317456) @@ -2,24 +2,101 @@ # $FreeBSD$ PORTNAME= io-like -PORTVERSION= 0.3.0 +PORTVERSION= 0.3.0.20130301 CATEGORIES= devel rubygems -MASTER_SITES= RG +MASTER_SITES= LOCAL +MASTER_SITE_SUBDIR= tota/${PORTNAME} +PKGNAMEPREFIX= rubygem- MAINTAINER= tota@FreeBSD.org COMMENT= The interface of IO objects to classes providing a few simple methods -DEPRECATED= Does not work with Ruby 1.9 -EXPIRATION_DATE= 2013-05-02 +BUILD_DEPENDS= ${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems \ + rdoc:${PORTSDIR}/devel/rubygem-rdoc +RUN_DEPENDS= ${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems USE_RUBY= yes -USE_RUBYGEMS= yes -RUBYGEM_AUTOPLIST= yes +USE_RAKE= yes -.include +GEMS_BASE_DIR= lib/ruby/gems/${RUBY_VER} +GEMS_DIR= ${GEMS_BASE_DIR}/gems +DOC_DIR= ${GEMS_BASE_DIR}/doc +CACHE_DIR= ${GEMS_BASE_DIR}/cache +SPEC_DIR= ${GEMS_BASE_DIR}/specifications +GEM_NAME= ${PORTNAME}-${PORTVERSION:C/(\.[0-9]+)$//} +GEM_LIB_DIR= ${GEMS_DIR}/${GEM_NAME} +GEM_DOC_DIR= ${DOC_DIR}/${GEM_NAME} +GEM_SPEC= ${SPEC_DIR}/${GEM_NAME}.gemspec +GEM_CACHE= ${CACHE_DIR}/${GEM_NAME}.gem + +PLIST_SUB+= PORTVERSION="${PORTVERSION}" \ + REV="${RUBY_GEM}" \ + GEMS_BASE_DIR="lib/ruby/gems/${RUBY_VER}" \ + GEMS_DIR="${GEMS_DIR}" \ + DOC_DIR="${DOC_DIR}" \ + CACHE_DIR="${CACHE_DIR}" \ + SPEC_DIR="${SPEC_DIR}" \ + PORT="${PORTNAME}-${PORTVERSION}" \ + GEM_NAME="${GEM_NAME}" \ + GEM_LIB_DIR="${GEM_LIB_DIR}" \ + GEM_DOC_DIR="${GEM_DOC_DIR}" \ + GEM_SPEC="${GEM_SPEC}" \ + GEM_CACHE="${GEM_CACHE}" \ + EXTRACT_SUFX=".gem" + +RUBYGEMBIN= ${LOCALBASE}/bin/gem${RUBY_VER:S/.//} + +GEMFILES= ${GEM_NAME}.gem + +RUBYGEM_ARGS=-l --no-update-sources --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${RUBY_VER} + +WRKSRC= ${WRKDIR}/${PORTNAME}-ruby-1.9-temp + +OPTIONS_DEFINE= DOCS + +.include + +.if ${PORT_OPTIONS:MDOCS} +BUILD_DEPENDS+= rubygem-allison>=0:${PORTSDIR}/devel/rubygem-allison +.else +RUBYGEM_ARGS+= --no-rdoc +.endif -.if ${RUBY_VER} == 1.9 -BROKEN= does not work with ruby 1.9 +post-patch: +.for l in 1.8.6 1.8.7 1.9.2 1.9.3 + @${ECHO} lib/io/like-${l}.rb >> ${WRKSRC}/MANIFEST +.endfor +.for f in likestringio.rb rot13filter.rb + @${RUBY} -i -pe "sub %r|((\s*)require 'io/like')|, %Q|\\\2require 'rubygems'\n\\\1|" ${WRKSRC}/examples/${f} +.endfor + +do-build: + @cd ${BUILD_WRKSRC} && ${RAKE_BIN} + +do-install: + @(cd ${INSTALL_WRKSRC}; ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install ${RUBYGEM_ARGS} pkg/${GEMFILES} -- --build-args ${CONFIGURE_ARGS}) + +post-install: + @${ECHO} ${GEM_CACHE} >> ${TMPPLIST} + @${ECHO} ${GEM_SPEC} >> ${TMPPLIST} +.if ${PORT_OPTIONS:MDOCS} + @${FIND} -ds ${PREFIX}/${GEM_DOC_DIR} -type f -print | ${SED} -E -e \ + 's,^${PREFIX}/?,,' >> ${TMPPLIST} + @${FIND} -ds ${PREFIX}/${GEM_DOC_DIR} -type d -print | ${SED} -E -e \ + 's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST} +.endif + @${FIND} -ds ${PREFIX}/${GEM_LIB_DIR} -type f -print | ${SED} -E -e \ + 's,^${PREFIX}/?,,' >> ${TMPPLIST} + @${FIND} -ds ${PREFIX}/${GEM_LIB_DIR} -type d -print | ${SED} -E -e \ + 's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir %D/${GEMS_DIR} 2>/dev/null || true" >> ${TMPPLIST} +.if ${PORT_OPTIONS:MDOCS} + @${ECHO_CMD} "@unexec rmdir %D/${DOC_DIR} 2>/dev/null || true" >> ${TMPPLIST} .endif + @${ECHO_CMD} "@unexec rmdir %D/${CACHE_DIR} 2>/dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir %D/${SPEC_DIR} 2>/dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir %D/${GEMS_BASE_DIR} 2>/dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir %D/lib/ruby/gems 2>/dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir %D/lib/ruby 2>/dev/null || true" >> ${TMPPLIST} -.include +.include Modified: head/devel/rubygem-io-like/distinfo ============================================================================== --- head/devel/rubygem-io-like/distinfo Mon May 6 02:00:40 2013 (r317455) +++ head/devel/rubygem-io-like/distinfo Mon May 6 02:27:13 2013 (r317456) @@ -1,2 +1,2 @@ -SHA256 (rubygem/io-like-0.3.0.gem) = d3fc128940d11704ac0d9bc0d46a2b30be162aca030273e690b1bfca8506d612 -SIZE (rubygem/io-like-0.3.0.gem) = 31744 +SHA256 (io-like-0.3.0.20130301.tar.gz) = aa83c964b18be21fa51d4ae04d1284e4751babb9827022f2fa486830fa5fd5ce +SIZE (io-like-0.3.0.20130301.tar.gz) = 81450