Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jun 2014 08:08:32 +0000 (UTC)
From:      TAKATSU Tomonari <tota@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r359671 - head/devel/rubygem-io-like
Message-ID:  <201406280808.s5S88WG0015866@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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}/?,@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}/?,@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}
+	@${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}/?,@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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406280808.s5S88WG0015866>