svn commit: r359671 - head/devel/rubygem-io-like

TAKATSU Tomonari tota at FreeBSD.org
Sat Jun 28 08:08:32 UTC 2014


Author: tota
Date: Sat Jun 28 08:08:31 2014
New Revision: 359671
URL: http://svnweb.freebsd.org/changeset/ports/359671
QAT: https://qat.redports.org/buildarchive/r359671/

Log:
  - Support STAGEDIR
  - Add LICENSE section

Modified:
  head/devel/rubygem-io-like/Makefile

Modified: head/devel/rubygem-io-like/Makefile
==============================================================================
--- head/devel/rubygem-io-like/Makefile	Sat Jun 28 08:05:59 2014	(r359670)
+++ head/devel/rubygem-io-like/Makefile	Sat Jun 28 08:08:31 2014	(r359671)
@@ -11,11 +11,13 @@ PKGNAMEPREFIX=	rubygem-
 MAINTAINER=	tota at FreeBSD.org
 COMMENT=	The interface of IO objects to classes providing a few simple methods
 
+LICENSE=	RUBY
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
 BUILD_DEPENDS=	${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems \
 		rdoc:${PORTSDIR}/devel/rubygem-rdoc
 RUN_DEPENDS=	${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems
 
-NROKEN=		not staged
 USE_RUBY=	yes
 USE_RAKE=	yes
 
@@ -49,13 +51,12 @@ RUBYGEMBIN=	${LOCALBASE}/bin/gem${RUBY_V
 
 GEMFILES=	${GEM_NAME}.gem
 
-RUBYGEM_ARGS=-l --no-update-sources --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${RUBY_VER}
+RUBYGEM_ARGS=-l --no-update-sources --no-ri --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
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MDOCS}
@@ -82,15 +83,15 @@ 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}/?, at dirrm ,' >> ${TMPPLIST}
+	@${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_DOC_DIR} -type f -print | ${SED} -E -e \
+		's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
+	@${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_DOC_DIR} -type d -print | ${SED} -E -e \
+		's,^${STAGEDIR}${PREFIX}/?, at 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}/?, at dirrm ,' >> ${TMPPLIST}
+	@${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR} -type f -print | ${SED} -E -e \
+		's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
+	@${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR} -type d -print | ${SED} -E -e \
+		's,^${STAGEDIR}${PREFIX}/?, at 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}


More information about the svn-ports-head mailing list