diff options
author | tota <tota@FreeBSD.org> | 2013-03-20 20:40:53 +0800 |
---|---|---|
committer | tota <tota@FreeBSD.org> | 2013-03-20 20:40:53 +0800 |
commit | 0e66725cc4269534199a2612571caeae65221a99 (patch) | |
tree | f053dcf715717ad953f955cf076edae653896722 /japanese/ruby-mecab | |
parent | d5811a3ab7e40b9f674fd0dc83350d564c4ec742 (diff) | |
download | freebsd-ports-gnome-0e66725cc4269534199a2612571caeae65221a99.tar.gz freebsd-ports-gnome-0e66725cc4269534199a2612571caeae65221a99.tar.zst freebsd-ports-gnome-0e66725cc4269534199a2612571caeae65221a99.zip |
- Update to 0.995
- Add a patch to fix build error with Ruby 1.8 [1]
- Add LICENSE section
- Adopt OptionsNG
- Trim Makefile header
- Remove Author: line from pkg-descr
- Replace tab with space WWW: line in pkg-descr
- Update WWW: line in pkg-descr
PR: ports/175257
Submitted by: Yasuhiro KIMURA <yasu_AT_utahime_DOT_org>
Obtained from: http://code.google.com/p/mecab/issues/detail?id=3 [1]
Diffstat (limited to 'japanese/ruby-mecab')
-rw-r--r-- | japanese/ruby-mecab/Makefile | 21 | ||||
-rw-r--r-- | japanese/ruby-mecab/distinfo | 4 | ||||
-rw-r--r-- | japanese/ruby-mecab/files/patch-MeCab__wrap.cpp | 12 | ||||
-rw-r--r-- | japanese/ruby-mecab/pkg-descr | 3 |
4 files changed, 28 insertions, 12 deletions
diff --git a/japanese/ruby-mecab/Makefile b/japanese/ruby-mecab/Makefile index 2423839bcdeb..d5dd29f57691 100644 --- a/japanese/ruby-mecab/Makefile +++ b/japanese/ruby-mecab/Makefile @@ -1,12 +1,8 @@ -# New ports collection makefile for: ruby-mecab -# Date created: 23 April 2003 -# Whom: Akinori MUSHA aka knu <knu@idaemons.org> -# +# Created by: Akinori MUSHA aka knu <knu@idaemons.org> # $FreeBSD$ -# PORTNAME= mecab -PORTVERSION= 0.994 +PORTVERSION= 0.995 CATEGORIES= japanese textproc ruby MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} DISTNAME= ${PORTNAME}-ruby-${PORTVERSION} @@ -14,6 +10,12 @@ DISTNAME= ${PORTNAME}-ruby-${PORTVERSION} MAINTAINER= ruby@FreeBSD.org COMMENT= MeCab library module for Ruby +LICENSE= BSD GPLv2 LGPL21 +LICENSE_COMB= dual +LICENSE_FILE_BSD= ${WRKSRC}/BSD +LICENSE_FILE_GPLv2= ${WRKSRC}/GPL +LICENSE_FILE_LGPL21= ${WRKSRC}/LGPL + LIB_DEPENDS= mecab:${PORTSDIR}/japanese/mecab USE_RUBY= yes @@ -21,16 +23,19 @@ USE_RUBY_EXTCONF= yes INSTALL_TARGET= site-install +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:MDOCS} @${MKDIR} ${RUBY_MODDOCDIR} ${INSTALL_DATA} ${WRKSRC}/bindings.html ${RUBY_MODDOCDIR}/ .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${RUBY_MODEXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_MODEXAMPLESDIR}/ .endif diff --git a/japanese/ruby-mecab/distinfo b/japanese/ruby-mecab/distinfo index 808808a6d933..7c7327baf6ab 100644 --- a/japanese/ruby-mecab/distinfo +++ b/japanese/ruby-mecab/distinfo @@ -1,2 +1,2 @@ -SHA256 (mecab-ruby-0.994.tar.gz) = 16f9c6de6a90fb11d07f191ea646217e9006a6aec3f90f386b476ce51e611269 -SIZE (mecab-ruby-0.994.tar.gz) = 44483 +SHA256 (mecab-ruby-0.995.tar.gz) = d55241f11ad676fe02421c67ad57f5805c1ef893d6b6b91d0209ac9cf0dfa7f0 +SIZE (mecab-ruby-0.995.tar.gz) = 48688 diff --git a/japanese/ruby-mecab/files/patch-MeCab__wrap.cpp b/japanese/ruby-mecab/files/patch-MeCab__wrap.cpp new file mode 100644 index 000000000000..ade6bc6d630e --- /dev/null +++ b/japanese/ruby-mecab/files/patch-MeCab__wrap.cpp @@ -0,0 +1,12 @@ +--- MeCab_wrap.cpp.orig 2013-01-25 14:07:27.000000000 +0900 ++++ MeCab_wrap.cpp 2013-03-20 15:01:31.000000000 +0900 +@@ -1856,8 +1856,7 @@ + + /* Workaround for ruby1.9.x */ + #if defined SWIGRUBY +-#include "ruby/version.h" +-#if RUBY_API_VERSION_CODE >= 10900 ++#if HAVE_RUBY_ENCODING_H + #include "ruby/encoding.h" + #define rb_str_new rb_external_str_new + #endif diff --git a/japanese/ruby-mecab/pkg-descr b/japanese/ruby-mecab/pkg-descr index 69b86371a1e7..ee38b899b53a 100644 --- a/japanese/ruby-mecab/pkg-descr +++ b/japanese/ruby-mecab/pkg-descr @@ -1,4 +1,3 @@ This is the MeCab library module for Ruby. -Author: Taku Kudo <taku@chasen.org> -WWW: http://mecab.sourceforge.net/ +WWW: https://code.google.com/p/mecab/ |