Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2026 12:00:55 +0000
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e9a55e881e1b - main - devel/rubygem-io-like: Update to 0.4.0
Message-ID:  <6968d6f7.3ab0d.2df10dec@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e9a55e881e1ba833adf426159bafd3942ecee5a3

commit e9a55e881e1ba833adf426159bafd3942ecee5a3
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-01-15 11:45:40 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-01-15 11:54:15 +0000

    devel/rubygem-io-like: Update to 0.4.0
    
    - Clean up Makefile
    
    Changes:        https://github.com/javanthropus/io-like/blob/master/NEWS.md
    PR:             291777
    Approved by:    portmgr (blanket)
    With hat:       ruby
---
 devel/rubygem-io-like/Makefile | 81 +++---------------------------------------
 devel/rubygem-io-like/distinfo |  5 +--
 2 files changed, 7 insertions(+), 79 deletions(-)

diff --git a/devel/rubygem-io-like/Makefile b/devel/rubygem-io-like/Makefile
index 0052be00d283..77de7d5a60d6 100644
--- a/devel/rubygem-io-like/Makefile
+++ b/devel/rubygem-io-like/Makefile
@@ -1,90 +1,17 @@
 PORTNAME=	io-like
-PORTVERSION=	0.3.0.20130301
+PORTVERSION=	0.4.0
 CATEGORIES=	devel rubygems
-MASTER_SITES=	LOCAL/tota/${PORTNAME}
-PKGNAMEPREFIX=	rubygem-
+MASTER_SITES=	RG
 
 MAINTAINER=	tota@FreeBSD.org
 COMMENT=	Interface of IO objects to classes providing a few simple methods
-WWW=		https://rubygems.org/gems/io-like
+WWW=		https://github.com/javanthropus/io-like
 
 LICENSE=	RUBY
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${RUBYGEMBIN}:devel/ruby-gems \
-		${LOCALBASE}/bin/rake:devel/rubygem-rake
-RUN_DEPENDS=	${RUBYGEMBIN}:devel/ruby-gems
-
-USES=	ruby
+USES=		gem
 
 NO_ARCH=	yes
 
-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=	${DISTNAME:R}
-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
-RAKE_BIN=	${LOCALBASE}/bin/rake
-
-GEMFILES=	${GEM_NAME}.gem
-
-RUBYGEM_ARGS=	-l --no-update-sources --install-dir ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER} --ignore-dependencies --bindir=${STAGEDIR}${PREFIX}/bin
-
-WRKSRC=	${WRKDIR}/${PORTNAME}-ruby-1.9-temp
-
-OPTIONS_DEFINE=	DOCS
-
-DOCS_BUILD_DEPENDS=	rubygem-allison>=0:devel/rubygem-allison
-DOCS_VARS=		RUBYGEM_ARGS+="--document rdoc,ri"
-DOCS_VARS_OFF=		RUBYGEM_ARGS+=--no-document
-
-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} -- ${CONFIGURE_ARGS})
-	@${RM} -r ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}/build_info
-	@${RMDIR} ${STAGEDIR}/${PREFIX}/${GEMS_BASE_DIR}/extensions
-
-post-install:
-	@${ECHO} ${GEM_CACHE} >> ${TMPPLIST}
-	@${ECHO} ${GEM_SPEC} >> ${TMPPLIST}
-	@${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR} -type f -print | ${SED} -E -e \
-		's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
-	@${ECHO} "@dir ${DOC_DIR}" >> ${TMPPLIST}
-
-post-install-DOCS-on:
-	@${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_DOC_DIR} -type f -print | ${SED} -E -e \
-		's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
-
 .include <bsd.port.mk>
diff --git a/devel/rubygem-io-like/distinfo b/devel/rubygem-io-like/distinfo
index 9210008494f7..ec2fa947eaba 100644
--- a/devel/rubygem-io-like/distinfo
+++ b/devel/rubygem-io-like/distinfo
@@ -1,2 +1,3 @@
-SHA256 (io-like-0.3.0.20130301.tar.gz) = aa83c964b18be21fa51d4ae04d1284e4751babb9827022f2fa486830fa5fd5ce
-SIZE (io-like-0.3.0.20130301.tar.gz) = 81450
+TIMESTAMP = 1767157787
+SHA256 (rubygem/io-like-0.4.0.gem) = 808994312907b3d59c548e75215183ccd950e63101ad08800c4df4188a2a0211
+SIZE (rubygem/io-like-0.4.0.gem) = 37376


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6968d6f7.3ab0d.2df10dec>