Bug 178022 - [MAINTAINER] japanese/ruby-ming: Fix to work with Ruby 1.9
Summary: [MAINTAINER] japanese/ruby-ming: Fix to work with Ruby 1.9
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Carlo Strub
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-21 10:20 UTC by don
Modified: 2013-05-27 21:28 UTC (History)
0 users

See Also:


Attachments
ja-ruby20-ming-0.2a.0.1.6_2,1.patch (12.94 KB, patch)
2013-04-21 10:20 UTC, don
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description don 2013-04-21 10:20:00 UTC
Fix to work with Ruby 1.9

- Use better macro/function/class for Ruby 1.9 and later.
- Use OPTIONS instead of NOPORTDOCS.

Generated with FreeBSD Port Tools 0.99_7 (mode: change, diff: SVN)
Comment 1 Carlo Strub freebsd_committer freebsd_triage 2013-05-25 10:36:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cs

I'll take it
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-05-27 20:52:08 UTC
Author: cs
Date: Mon May 27 19:52:00 2013
New Revision: 319283
URL: http://svnweb.freebsd.org/changeset/ports/319283

Log:
  - Fix to work with Ruby 1.9
  - Use better macro/function/class for Ruby 1.9 and later.
  - Use OPTIONS instead of NOPORTDOCS.
  
  PR:		ports/178022
  Submitted by:	Hiroyuki Iwatsuki <don@na.rim.or.jp> (maintainer)

Modified:
  head/japanese/ruby-ming/Makefile
  head/japanese/ruby-ming/pkg-plist

Modified: head/japanese/ruby-ming/Makefile
==============================================================================
--- head/japanese/ruby-ming/Makefile	Mon May 27 19:46:50 2013	(r319282)
+++ head/japanese/ruby-ming/Makefile	Mon May 27 19:52:00 2013	(r319283)
@@ -8,17 +8,13 @@ PORTEPOCH=	1
 CATEGORIES=	japanese graphics ruby
 MASTER_SITES=	RF
 MASTER_SITE_SUBDIR=	mingruby
-PKGNAMEPREFIX=	ja-${RUBY_PKGNAMEPREFIX}
 DISTNAME=	${PORTNAME}-ruby-${RUBY_MING_VERSION}
 DIST_SUBDIR=	ruby
 
 MAINTAINER=	don@na.rim.or.jp
 COMMENT=	Yet another Ming module for Ruby built with Japanese support
 
-DEPRECATED=	Does not work with Ruby 1.9
-EXPIRATION_DATE=	2013-05-02
-
-LIB_DEPENDS=	ming.3:${PORTSDIR}/japanese/ming
+LIB_DEPENDS=	ming:${PORTSDIR}/japanese/ming
 
 RUBY_MING_VERSION=	0.1.6
 
@@ -29,10 +25,19 @@ CONFIGURE_ARGS=	-- --with-ming-include=$
 DOCS_EN=	ChangeLog README.en Usage_en.txt fonts.en
 DOCS_JA=	README.ja Usage_ja.txt fonts.ja progress.rd
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONSFILE=	${PORT_DBDIR}/ja-ruby-${PORTNAME}/options
+
+.include <bsd.port.pre.mk>
+
+PKGNAMEPREFIX:=	${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
+
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	${MKDIR} ${RUBY_MODEXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
+.endif
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${RUBY_MODDOCDIR}/ja
 .for f in ${DOCS_EN}
 	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
@@ -42,8 +47,4 @@ post-install:
 .endfor
 .endif
 
-.include <bsd.port.pre.mk>
-.if ${RUBY_VER} == 1.9
-BROKEN=	does not build with ruby 1.9
-.endif
 .include <bsd.port.post.mk>

Modified: head/japanese/ruby-ming/pkg-plist
==============================================================================
--- head/japanese/ruby-ming/pkg-plist	Mon May 27 19:46:50 2013	(r319282)
+++ head/japanese/ruby-ming/pkg-plist	Mon May 27 19:52:00 2013	(r319283)
@@ -1,18 +1,18 @@
 %%RUBY_SITEARCHLIBDIR%%/ming/ming.so
 @dirrm %%RUBY_SITEARCHLIBDIR%%/ming
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/README
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/action.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/button.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/drag.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/gradient.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/gradientxform.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/keypress.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/mousetrack.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/newbutton.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/shape.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sparks.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sprite.rb
-%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/README
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/action.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/button.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/drag.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/gradient.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/gradientxform.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/keypress.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/mousetrack.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/newbutton.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/shape.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/sparks.rb
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/sprite.rb
+%%PORTEXAMPLES%%@dirrm %%RUBY_MODEXAMPLESDIR%%
 %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
 %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.en
 %%PORTDOCS%%%%RUBY_MODDOCDIR%%/Usage_en.txt
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Carlo Strub freebsd_committer freebsd_triage 2013-05-27 21:28:17 UTC
State Changed
From-To: open->closed

Committed. Thank you very much.