aboutsummaryrefslogtreecommitdiff
path: root/devel/ruby-sdl
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-04-01 21:15:50 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-04-01 21:15:50 +0000
commite97bce7ae0a91d03c79a98e062ea5a80ff52e3c6 (patch)
treed990b4613cab18b20b08bad74041d62dbad70bf8 /devel/ruby-sdl
parent853c2c778dbef50d76f37cfa0112cef2e229af28 (diff)
downloadports-e97bce7ae0a91d03c79a98e062ea5a80ff52e3c6.tar.gz
ports-e97bce7ae0a91d03c79a98e062ea5a80ff52e3c6.zip
Notes
Diffstat (limited to 'devel/ruby-sdl')
-rw-r--r--devel/ruby-sdl/Makefile24
-rw-r--r--devel/ruby-sdl/distinfo2
-rw-r--r--devel/ruby-sdl/files/patch-extconf.rb14
-rw-r--r--devel/ruby-sdl/pkg-plist3
4 files changed, 26 insertions, 17 deletions
diff --git a/devel/ruby-sdl/Makefile b/devel/ruby-sdl/Makefile
index 35b5eddf8888..8566e890c73e 100644
--- a/devel/ruby-sdl/Makefile
+++ b/devel/ruby-sdl/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sdl
PORTVERSION= 0.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel graphics audio ruby
MASTER_SITES= http://www.kmc.kyoto-u.ac.jp/~ohai/rubysdl/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
@@ -23,16 +23,36 @@ LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl-devel \
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
+.if !defined(NOPORTDOCS)
+USE_RUBY_RD= yes
+.endif
CONFIGURE_ARGS= --with-sdl-config="sdl11-config"
INSTALL_TARGET= site-install
+RD_DOCS_JA= rubysdl_doc.rd
+
+DOCS_EN= rubysdl_const_list.txt
+DOCS_JA= README ${RD_DOCS_JA} ${RD_DOCS_JA:S/.rd$/.html/}
+
+post-build:
+.if !defined(NOPORTDOCS)
+.for f in ${RD_DOCS_JA}
+ @cd ${WRKSRC} && ${RUBY_RD} ${f} > ${f:S/.rd$/.html/}
+.endfor
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.endfor
.endif
.include <bsd.port.mk>
diff --git a/devel/ruby-sdl/distinfo b/devel/ruby-sdl/distinfo
index 01b22b5d6d57..09fe8176e30c 100644
--- a/devel/ruby-sdl/distinfo
+++ b/devel/ruby-sdl/distinfo
@@ -1 +1 @@
-MD5 (ruby/rubysdl-0.3.tar.gz) = eda1b2a059436d09fd308df20dedbaad
+MD5 (ruby/rubysdl-0.3.tar.gz) = e9d9c9f848440fd9c5b67949cd3bfdc6
diff --git a/devel/ruby-sdl/files/patch-extconf.rb b/devel/ruby-sdl/files/patch-extconf.rb
deleted file mode 100644
index e92ab83a6e3e..000000000000
--- a/devel/ruby-sdl/files/patch-extconf.rb
+++ /dev/null
@@ -1,14 +0,0 @@
---- extconf.rb.orig Sun Mar 25 17:10:56 2001
-+++ extconf.rb Tue Mar 27 02:56:07 2001
-@@ -1,7 +1,9 @@
- require 'mkmf'
-
--$CFLAGS += `sdl-config --cflags`.chomp
--$LDFLAGS += `sdl-config --libs`.chomp
-+sdl_config = with_config('sdl-config', 'sdl-config')
-+
-+$CFLAGS += ' ' + `#{sdl_config} --cflags`.chomp
-+$LDFLAGS += ' ' + `#{sdl_config} --libs`.chomp
-
- if have_library("SDL_mixer","Mix_OpenAudio") then
- $CFLAGS+= " -D HAVE_SDL_MIXER "
diff --git a/devel/ruby-sdl/pkg-plist b/devel/ruby-sdl/pkg-plist
index d8a3fa2b920d..3627aa79a308 100644
--- a/devel/ruby-sdl/pkg-plist
+++ b/devel/ruby-sdl/pkg-plist
@@ -10,6 +10,9 @@
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/sgetest.rb
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/testsprite.rb
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/sdl
+%%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/rubysdl_const_list.txt
%%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/ja/README
+%%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/ja/rubysdl_doc.html
+%%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/ja/rubysdl_doc.rd
%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/sdl/ja
%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/sdl