Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2015 16:23:51 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r395994 - head/devel/ruby-cache
Message-ID:  <201509031623.t83GNp02034569@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Thu Sep  3 16:23:50 2015
New Revision: 395994
URL: https://svnweb.freebsd.org/changeset/ports/395994

Log:
  - Add LICENSE
  - Respect PORTEXAMPLES
  - Add EXAMPLES option
  - Convert to new options target helper
  - Add NO_ARCH
  - Use BROKEN_RUBY22

Modified:
  head/devel/ruby-cache/Makefile
  head/devel/ruby-cache/pkg-plist

Modified: head/devel/ruby-cache/Makefile
==============================================================================
--- head/devel/ruby-cache/Makefile	Thu Sep  3 16:23:45 2015	(r395993)
+++ head/devel/ruby-cache/Makefile	Thu Sep  3 16:23:50 2015	(r395994)
@@ -15,26 +15,26 @@ DIST_SUBDIR=	ruby
 MAINTAINER=	ruby@FreeBSD.org
 COMMENT=	Ruby library for caching objects based on the LRU algorithm
 
+LICENSE=	BSD2CLAUSE RUBY
+LICENSE_COMB=	dual
+
+BROKEN_RUBY22=	yes
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+NO_ARCH=	yes
 USE_RUBY=	yes
 USE_RUBY_SETUP=	yes
 RUBY_SETUP=	install.rb
 
 DOCS=		MANUAL.rd README.rd
 
-OPTIONS_DEFINE=	DOCS
-
-post-install:
-	@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
-.for f in ${DOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}
-.endfor
-	@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
-
-.include <bsd.port.pre.mk>
-
-.if ${RUBY_VER} >= 2.2
-BROKEN=         Does not build
-.endif
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/
+	cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${RUBY_MODDOCDIR}/
+
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
+	${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/devel/ruby-cache/pkg-plist
==============================================================================
--- head/devel/ruby-cache/pkg-plist	Thu Sep  3 16:23:45 2015	(r395993)
+++ head/devel/ruby-cache/pkg-plist	Thu Sep  3 16:23:50 2015	(r395994)
@@ -3,4 +3,4 @@
 %%PORTDOCS%%%%RUBY_MODDOCDIR%%/MANUAL.rd
 %%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/README.html
 %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.rd
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/filecache.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/filecache.rb



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