mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Unbreak
- Add LICENSE - Support STAGEDIR - Make DOCS and EXAMPLES unconditional to stage - Replace tab with a single space after WWW: in pkg-descr
This commit is contained in:
parent
59d2141101
commit
e68bf90ca6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352570
@ -12,7 +12,7 @@ DIST_SUBDIR= ${RUBY_PKGNAMEPREFIX:S|${RUBY_SUFFIX}-||}
|
||||
MAINTAINER= tota@FreeBSD.org
|
||||
COMMENT= RT into HTML and plain text converter
|
||||
|
||||
BROKEN= not staged
|
||||
LICENSE= RUBY
|
||||
|
||||
USE_RUBY= yes
|
||||
USE_RUBY_SETUP= yes
|
||||
@ -24,20 +24,17 @@ RUBY_MODNAME= rt
|
||||
DOCS_EN= rttool.en.html rttool.en.rd
|
||||
DOCS_JA= rttool.ja.html rttool.ja.rd
|
||||
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
||||
@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
|
||||
.for f in ${DOCS_EN}
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/
|
||||
.endfor
|
||||
.for f in ${DOCS_JA}
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/
|
||||
.endfor
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
||||
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${RUBY_MODEXAMPLESDIR}
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
|
||||
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
51
textproc/ruby-rttool/files/patch-setup.rb
Normal file
51
textproc/ruby-rttool/files/patch-setup.rb
Normal file
@ -0,0 +1,51 @@
|
||||
--- setup.rb.orig 2009-01-22 02:19:43.000000000 +0900
|
||||
+++ setup.rb 2014-04-29 06:10:59.000000000 +0900
|
||||
@@ -169,6 +169,11 @@
|
||||
args.each do |i|
|
||||
if i == '--no-harm' then
|
||||
@no_harm = true
|
||||
+ elsif /\A--prefix=(.*)\z/ =~ i then
|
||||
+ path = $1
|
||||
+ path = File.expand_path(path) unless path[0,1] == '/'
|
||||
+ @config['prefix'] = path
|
||||
+ @config.save
|
||||
else
|
||||
raise InstallError, "install: unknown option #{i}"
|
||||
end
|
||||
@@ -320,7 +325,7 @@
|
||||
|
||||
class ConfigTable
|
||||
|
||||
- c = ::Config::CONFIG
|
||||
+ c = ::RbConfig::CONFIG
|
||||
|
||||
rubypath = c['bindir'] + '/' + c['ruby_install_name']
|
||||
|
||||
@@ -581,15 +586,15 @@
|
||||
#
|
||||
|
||||
def install_bin
|
||||
- install_all isdir(@config['bin-dir']), 0555
|
||||
+ install_all isdir(@config['prefix'] + @config['bin-dir']), 0555
|
||||
end
|
||||
|
||||
def install_rb( dir )
|
||||
- install_all isdir(@config['rb-dir'] + '/' + dir), 0644
|
||||
+ install_all isdir(@config['prefix'] + @config['rb-dir'] + '/' + dir), 0644
|
||||
end
|
||||
|
||||
def install_dat( dir )
|
||||
- install_all isdir(@config['data-dir'] + '/' + dir), 0644
|
||||
+ install_all isdir(@config['prefix'] + @config['data-dir'] + '/' + dir), 0644
|
||||
end
|
||||
|
||||
def install_all( dest, mode )
|
||||
@@ -635,7 +640,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
- DLEXT = ::Config::CONFIG['DLEXT']
|
||||
+ DLEXT = ::RbConfig::CONFIG['DLEXT']
|
||||
|
||||
def find_so( dir )
|
||||
fnames = nil
|
@ -5,4 +5,4 @@ RT can be incorporated into RD.
|
||||
At this time, RTtool can convert RT into HTML and plain text.
|
||||
To convert into plain text, you need w3m.
|
||||
|
||||
WWW: http://www.rubyist.net/~rubikitch/computer/rttool/index.en.html
|
||||
WWW: http://www.rubyist.net/~rubikitch/computer/rttool/index.en.html
|
||||
|
Loading…
Reference in New Issue
Block a user