aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
commit6be33926020dcfa43ec8a1bf94700238962f3b92 (patch)
treeb915338a31558eaf368cfd16cdf2b7ec1e6e80db
parent79507948280cacb290417077cbdc3e8420c3f9c1 (diff)
downloadports-6be33926020dcfa43ec8a1bf94700238962f3b92.tar.gz
ports-6be33926020dcfa43ec8a1bf94700238962f3b92.zip
Notes
-rw-r--r--converters/ruby-iconv/Makefile29
-rw-r--r--converters/ruby-iconv/pkg-plist8
-rw-r--r--databases/ruby-mysql/Makefile27
-rw-r--r--databases/ruby-mysql/pkg-plist10
-rw-r--r--devel/ruby-filelock/Makefile28
-rw-r--r--devel/ruby-filelock/pkg-descr2
-rw-r--r--devel/ruby-filelock/pkg-plist20
-rw-r--r--devel/ruby-intl/Makefile36
-rw-r--r--devel/ruby-intl/pkg-plist18
-rw-r--r--devel/ruby-locale/Makefile33
-rw-r--r--devel/ruby-locale/pkg-plist10
-rw-r--r--devel/ruby-property/Makefile23
-rw-r--r--devel/ruby-property/pkg-plist20
-rw-r--r--devel/ruby-slang/Makefile34
-rw-r--r--devel/ruby-slang/pkg-plist26
-rw-r--r--japanese/ruby-kakasi/Makefile27
-rw-r--r--japanese/ruby-kakasi/pkg-plist20
-rw-r--r--japanese/ruby-uconv/Makefile29
-rw-r--r--japanese/ruby-uconv/pkg-plist26
-rw-r--r--japanese/ruby-usersguide/pkg-plist58
-rw-r--r--lang/ruby-perl/Makefile31
-rw-r--r--lang/ruby-perl/pkg-plist22
-rw-r--r--lang/ruby-usersguide/Makefile8
-rw-r--r--lang/ruby-usersguide/pkg-plist74
-rw-r--r--math/ruby-bigfloat/Makefile29
-rw-r--r--math/ruby-bigfloat/pkg-plist12
-rw-r--r--net-mgmt/ruby-snmp/Makefile25
-rw-r--r--net-mgmt/ruby-snmp/pkg-plist16
-rw-r--r--net/ruby-snmp/Makefile25
-rw-r--r--net/ruby-snmp/pkg-plist16
-rw-r--r--net/ruby-uri/Makefile23
-rw-r--r--net/ruby-uri/pkg-plist14
-rw-r--r--print/ruby-clibpdf/Makefile34
-rw-r--r--print/ruby-clibpdf/pkg-plist54
-rw-r--r--sysutils/ruby-syslog/Makefile27
-rw-r--r--sysutils/ruby-syslog/pkg-plist10
-rw-r--r--textproc/ruby-html-parser/Makefile21
-rw-r--r--textproc/ruby-html-parser/pkg-plist10
-rw-r--r--textproc/ruby-xmlparser/Makefile45
-rw-r--r--textproc/ruby-xmlparser/pkg-plist120
-rw-r--r--x11-toolkits/ruby-fltk/Makefile35
-rw-r--r--x11-toolkits/ruby-fltk/pkg-plist14
42 files changed, 510 insertions, 639 deletions
diff --git a/converters/ruby-iconv/Makefile b/converters/ruby-iconv/Makefile
index a9c89cf4f286..c9704a2fc6d7 100644
--- a/converters/ruby-iconv/Makefile
+++ b/converters/ruby-iconv/Makefile
@@ -9,45 +9,36 @@ PORTNAME= iconv
PORTVERSION= 0.4.2.p3
CATEGORIES= converters ruby
MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-pre/}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= giconv.2:${PORTSDIR}/converters/libiconv
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
.if !defined(NOPORTDOCS)
-BUILD_DEPENDS+= rd2:${PORTSDIR}/textproc/ruby-rdtool
+USE_RUBY_RD= yes
.endif
INSTALL_TARGET= site-install
-CONFIGURE_ARGS= --with-opt-dir="${LOCALBASE}"
-
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
.if !defined(NOPORTDOCS)
post-build:
@cd ${WRKSRC}; \
- rd2 iconv.c > iconv.html
+ ${RUBY_RD} iconv.c > iconv.html
.endif
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/iconv
+ ${MKDIR} ${RUBY_DOCDIR}/iconv
.for f in iconv.html rd.css
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/iconv/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/iconv/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/converters/ruby-iconv/pkg-plist b/converters/ruby-iconv/pkg-plist
index 3fd7415f8310..7d1a2df9df44 100644
--- a/converters/ruby-iconv/pkg-plist
+++ b/converters/ruby-iconv/pkg-plist
@@ -1,4 +1,4 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/iconv.so
-share/doc/ruby/iconv/iconv.html
-share/doc/ruby/iconv/rd.css
-@dirrm share/doc/ruby/iconv
+%%RUBY_SITEARCHLIBDIR%%/iconv.so
+%%RUBY_DOCDIR%%/iconv/iconv.html
+%%RUBY_DOCDIR%%/iconv/rd.css
+@dirrm %%RUBY_DOCDIR%%/iconv
diff --git a/databases/ruby-mysql/Makefile b/databases/ruby-mysql/Makefile
index 71256a328f5d..ee1a88f85a0b 100644
--- a/databases/ruby-mysql/Makefile
+++ b/databases/ruby-mysql/Makefile
@@ -9,33 +9,26 @@ PORTNAME= mysql
PORTVERSION= 2.3.0
CATEGORIES= databases ruby
MASTER_SITES= http://www.tmtm.org/mysql/ruby/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-INSTALL_TARGET= site-install
-
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
+INSTALL_TARGET= site-install
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/mysql/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/mysql/
- ${INSTALL_DATA} ${WRKSRC}/README.jp ${PREFIX}/share/doc/ruby/mysql/ja
+ ${MKDIR} ${RUBY_DOCDIR}/mysql/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/mysql/
+ ${INSTALL_DATA} ${WRKSRC}/README.jp ${RUBY_DOCDIR}/mysql/ja
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/databases/ruby-mysql/pkg-plist b/databases/ruby-mysql/pkg-plist
index b62f12b041a3..f343c8a6e3b4 100644
--- a/databases/ruby-mysql/pkg-plist
+++ b/databases/ruby-mysql/pkg-plist
@@ -1,5 +1,5 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/mysql.so
-share/doc/ruby/mysql/ja/README.jp
-share/doc/ruby/mysql/README
-@dirrm share/doc/ruby/mysql/ja
-@dirrm share/doc/ruby/mysql
+%%RUBY_SITEARCHLIBDIR%%/mysql.so
+%%RUBY_DOCDIR%%/mysql/ja/README.jp
+%%RUBY_DOCDIR%%/mysql/README
+@dirrm %%RUBY_DOCDIR%%/mysql/ja
+@dirrm %%RUBY_DOCDIR%%/mysql
diff --git a/devel/ruby-filelock/Makefile b/devel/ruby-filelock/Makefile
index ffd5c7b5e3f0..5d1a1d0c2287 100644
--- a/devel/ruby-filelock/Makefile
+++ b/devel/ruby-filelock/Makefile
@@ -9,39 +9,31 @@ PORTNAME= filelock
PORTVERSION= 0.2
CATEGORIES= devel ruby
MASTER_SITES= ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
INSTALL_TARGET= site-install
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
DOCS= README
EXAMPLES= test.rb tst1.rb tst2.rb tst3.rb tst4.rb
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/filelock
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/filelock
.for f in ${EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${PREFIX}/share/examples/ruby/filelock/
+ ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_EXAMPLESDIR}/filelock/
.endfor
- ${MKDIR} ${PREFIX}/share/doc/ruby/filelock
+ ${MKDIR} ${RUBY_DOCDIR}/filelock
.for f in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/filelock/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/filelock/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/devel/ruby-filelock/pkg-descr b/devel/ruby-filelock/pkg-descr
index 47d3df5877b5..b690784e8da6 100644
--- a/devel/ruby-filelock/pkg-descr
+++ b/devel/ruby-filelock/pkg-descr
@@ -9,4 +9,4 @@ To be portable, a small C extension is used to minimize the time
between existence check of a lockfile and its creation.
Author: Clemens Hintze <c.hintze@gmx.net>
-WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=filelock \ No newline at end of file
+WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=filelock
diff --git a/devel/ruby-filelock/pkg-plist b/devel/ruby-filelock/pkg-plist
index f49eb045ce60..b234a95c6dbf 100644
--- a/devel/ruby-filelock/pkg-plist
+++ b/devel/ruby-filelock/pkg-plist
@@ -1,10 +1,10 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/_filelock.so
-lib/ruby/site_ruby/%%RUBY_VER%%/filelock.rb
-share/examples/ruby/filelock/test.rb
-share/examples/ruby/filelock/tst1.rb
-share/examples/ruby/filelock/tst2.rb
-share/examples/ruby/filelock/tst3.rb
-share/examples/ruby/filelock/tst4.rb
-@dirrm share/examples/ruby/filelock
-share/doc/ruby/filelock/README
-@dirrm share/doc/ruby/filelock
+%%RUBY_SITEARCHLIBDIR%%/_filelock.so
+%%RUBY_SITELIBDIR%%/filelock.rb
+%%RUBY_EXAMPLESDIR%%/filelock/test.rb
+%%RUBY_EXAMPLESDIR%%/filelock/tst1.rb
+%%RUBY_EXAMPLESDIR%%/filelock/tst2.rb
+%%RUBY_EXAMPLESDIR%%/filelock/tst3.rb
+%%RUBY_EXAMPLESDIR%%/filelock/tst4.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/filelock
+%%RUBY_DOCDIR%%/filelock/README
+@dirrm %%RUBY_DOCDIR%%/filelock
diff --git a/devel/ruby-intl/Makefile b/devel/ruby-intl/Makefile
index 61fc77133f9c..b63088f1ffa7 100644
--- a/devel/ruby-intl/Makefile
+++ b/devel/ruby-intl/Makefile
@@ -9,38 +9,30 @@ PORTNAME= intl
PORTVERSION= 0.11
CATEGORIES= devel ruby
MASTER_SITES= http://www.page.sannet.ne.jp/hirata-naoto/
-PKGNAMEPREFIX= ruby-
-DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-INSTALL_TARGET= site-install
-CONFIGURE_ARGS= --with-opt-dir="${LOCALBASE}"
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
+INSTALL_TARGET= site-install
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/intl/po/
- ${INSTALL_DATA} ${WRKSRC}/hello.rb ${PREFIX}/share/examples/ruby/intl/
- ${INSTALL_DATA} ${WRKSRC}/ja.po ${PREFIX}/share/examples/ruby/intl/po/
- ${MKDIR} ${PREFIX}/share/doc/ruby/intl/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/intl/
- ${INSTALL_DATA} ${WRKSRC}/README.jp ${PREFIX}/share/doc/ruby/intl/ja/
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/intl/po/
+ ${INSTALL_DATA} ${WRKSRC}/hello.rb ${RUBY_EXAMPLESDIR}/intl/
+ ${INSTALL_DATA} ${WRKSRC}/ja.po ${RUBY_EXAMPLESDIR}/intl/po/
+ ${MKDIR} ${RUBY_DOCDIR}/intl/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/intl/
+ ${INSTALL_DATA} ${WRKSRC}/README.jp ${RUBY_DOCDIR}/intl/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/devel/ruby-intl/pkg-plist b/devel/ruby-intl/pkg-plist
index f082543350dc..0cf5de5731e2 100644
--- a/devel/ruby-intl/pkg-plist
+++ b/devel/ruby-intl/pkg-plist
@@ -1,9 +1,9 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/intl.so
-share/examples/ruby/intl/hello.rb
-share/examples/ruby/intl/po/ja.po
-@dirrm share/examples/ruby/intl/po
-@dirrm share/examples/ruby/intl
-share/doc/ruby/intl/README
-share/doc/ruby/intl/ja/README.jp
-@dirrm share/doc/ruby/intl/ja
-@dirrm share/doc/ruby/intl
+%%RUBY_SITEARCHLIBDIR%%/intl.so
+%%RUBY_EXAMPLESDIR%%/intl/hello.rb
+%%RUBY_EXAMPLESDIR%%/intl/po/ja.po
+@dirrm %%RUBY_EXAMPLESDIR%%/intl/po
+@dirrm %%RUBY_EXAMPLESDIR%%/intl
+%%RUBY_DOCDIR%%/intl/README
+%%RUBY_DOCDIR%%/intl/ja/README.jp
+@dirrm %%RUBY_DOCDIR%%/intl/ja
+@dirrm %%RUBY_DOCDIR%%/intl
diff --git a/devel/ruby-locale/Makefile b/devel/ruby-locale/Makefile
index fcb6769999ef..4690175d9795 100644
--- a/devel/ruby-locale/Makefile
+++ b/devel/ruby-locale/Makefile
@@ -9,36 +9,27 @@ PORTNAME= locale
PORTVERSION= 0.2
CATEGORIES= devel ruby
MASTER_SITES= http://kafka.salem.mass.edu/~yashi/ruby/
-PKGNAMEPREFIX= ruby-
-DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-
#USE_BZIP2= yes # only saves 500 bytes..
-
-INSTALL_TARGET= site-install
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
+INSTALL_TARGET= site-install
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/locale
- ${INSTALL_DATA} ${WRKSRC}/test.rb ${PREFIX}/share/examples/ruby/locale/
- ${MKDIR} ${PREFIX}/share/doc/ruby/locale
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/locale/
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/locale
+ ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_EXAMPLESDIR}/locale/
+ ${MKDIR} ${RUBY_DOCDIR}/locale
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/locale/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/devel/ruby-locale/pkg-plist b/devel/ruby-locale/pkg-plist
index c401c7b0d5f6..42159b51724a 100644
--- a/devel/ruby-locale/pkg-plist
+++ b/devel/ruby-locale/pkg-plist
@@ -1,5 +1,5 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/locale.so
-share/examples/ruby/locale/test.rb
-@dirrm share/examples/ruby/locale
-share/doc/ruby/locale/README
-@dirrm share/doc/ruby/locale
+%%RUBY_SITEARCHLIBDIR%%/locale.so
+%%RUBY_EXAMPLESDIR%%/locale/test.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/locale
+%%RUBY_DOCDIR%%/locale/README
+@dirrm %%RUBY_DOCDIR%%/locale
diff --git a/devel/ruby-property/Makefile b/devel/ruby-property/Makefile
index df59c6b52edc..3b8428f2c246 100644
--- a/devel/ruby-property/Makefile
+++ b/devel/ruby-property/Makefile
@@ -9,36 +9,33 @@ PORTNAME= property
PORTVERSION= 19990308
CATEGORIES= devel ruby
MASTER_SITES= http://www.ueda.info.waseda.ac.jp/~igarashi/ruby/
-PKGNAMEPREFIX= ruby-
-DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+USE_RUBY= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
post-patch:
${PERL} -i -pe 's|rubyapi.css|../rubyapi.css|g' ${WRKSRC}/Properties-ja.html
do-install:
- ${INSTALL_DATA} ${WRKSRC}/property.rb ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/
+ ${INSTALL_DATA} ${WRKSRC}/property.rb ${RUBY_SITELIBDIR}
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/property/ja
+ ${MKDIR} ${RUBY_DOCDIR}/property/ja
.for f in property-example.rb test.default property.README Properties.html rubyapi.css
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/property
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/property
.endfor
.for f in property.README.ja Properties-ja.html
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/property/ja
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/property/ja
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/devel/ruby-property/pkg-plist b/devel/ruby-property/pkg-plist
index 24df63d345b1..ee8d2e8b8313 100644
--- a/devel/ruby-property/pkg-plist
+++ b/devel/ruby-property/pkg-plist
@@ -1,10 +1,10 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/property.rb
-share/doc/ruby/property/property-example.rb
-share/doc/ruby/property/test.default
-share/doc/ruby/property/property.README
-share/doc/ruby/property/Properties.html
-share/doc/ruby/property/rubyapi.css
-share/doc/ruby/property/ja/property.README.ja
-share/doc/ruby/property/ja/Properties-ja.html
-@dirrm share/doc/ruby/property/ja
-@dirrm share/doc/ruby/property
+%%RUBY_SITELIBDIR%%/property.rb
+%%RUBY_DOCDIR%%/property/property-example.rb
+%%RUBY_DOCDIR%%/property/test.default
+%%RUBY_DOCDIR%%/property/property.README
+%%RUBY_DOCDIR%%/property/Properties.html
+%%RUBY_DOCDIR%%/property/rubyapi.css
+%%RUBY_DOCDIR%%/property/ja/property.README.ja
+%%RUBY_DOCDIR%%/property/ja/Properties-ja.html
+@dirrm %%RUBY_DOCDIR%%/property/ja
+@dirrm %%RUBY_DOCDIR%%/property
diff --git a/devel/ruby-slang/Makefile b/devel/ruby-slang/Makefile
index 729dfdcdd20a..19ebcc9d60cb 100644
--- a/devel/ruby-slang/Makefile
+++ b/devel/ruby-slang/Makefile
@@ -14,23 +14,18 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
.if defined(WITH_JAPANESE)
LIB_DEPENDS= slang.2:${PORTSDIR}/japanese/libslang
.else
LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
.endif
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-INSTALL_TARGET= site-install
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
CONFIGURE_ARGS= --with-slang-include="${LOCALBASE}/include/slang" \
--with-slang-lib="${LOCALBASE}/lib"
-
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
+INSTALL_TARGET= site-install
EXAMPLES_EN= fm.rb smgtest.rb urlview.rb
EXAMPLES_JA= pager.rb
@@ -38,32 +33,29 @@ DOCS_EN= README changes.txt
DOCS_JA= README.euc
.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
.if defined(PKGNAMEPREFIX)
-PKGNAMEPREFIX:= ${PKGNAMEPREFIX}ruby-
+PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
.else
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
.endif
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/slang/ja
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/slang/ja
.for f in ${EXAMPLES_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/ruby/slang/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/slang/
.endfor
.for f in ${EXAMPLES_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/ruby/slang/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/slang/ja/
.endfor
- ${MKDIR} ${PREFIX}/share/doc/ruby/slang/ja
+ ${MKDIR} ${RUBY_DOCDIR}/slang/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/slang/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/slang/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/slang/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/slang/ja/
.endfor
.endif
diff --git a/devel/ruby-slang/pkg-plist b/devel/ruby-slang/pkg-plist
index 717afc307ef8..ab4eee33dc45 100644
--- a/devel/ruby-slang/pkg-plist
+++ b/devel/ruby-slang/pkg-plist
@@ -1,13 +1,13 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/slanglib.so
-lib/ruby/site_ruby/%%RUBY_VER%%/slang.rb
-share/examples/ruby/slang/fm.rb
-share/examples/ruby/slang/smgtest.rb
-share/examples/ruby/slang/urlview.rb
-share/examples/ruby/slang/ja/pager.rb
-@dirrm share/examples/ruby/slang/ja
-@dirrm share/examples/ruby/slang
-share/doc/ruby/slang/README
-share/doc/ruby/slang/changes.txt
-share/doc/ruby/slang/ja/README.euc
-@dirrm share/doc/ruby/slang/ja
-@dirrm share/doc/ruby/slang
+%%RUBY_SITEARCHLIBDIR%%/slanglib.so
+%%RUBY_SITELIBDIR%%/slang.rb
+%%RUBY_EXAMPLESDIR%%/slang/fm.rb
+%%RUBY_EXAMPLESDIR%%/slang/smgtest.rb
+%%RUBY_EXAMPLESDIR%%/slang/urlview.rb
+%%RUBY_EXAMPLESDIR%%/slang/ja/pager.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/slang/ja
+@dirrm %%RUBY_EXAMPLESDIR%%/slang
+%%RUBY_DOCDIR%%/slang/README
+%%RUBY_DOCDIR%%/slang/changes.txt
+%%RUBY_DOCDIR%%/slang/ja/README.euc
+@dirrm %%RUBY_DOCDIR%%/slang/ja
+@dirrm %%RUBY_DOCDIR%%/slang
diff --git a/japanese/ruby-kakasi/Makefile b/japanese/ruby-kakasi/Makefile
index 85b324f33d53..90ad0f620193 100644
--- a/japanese/ruby-kakasi/Makefile
+++ b/japanese/ruby-kakasi/Makefile
@@ -13,45 +13,38 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= kakasi.2:${PORTSDIR}/japanese/kakasi
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
INSTALL_TARGET= site-install
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
DOCS_EN= ChangeLog README wdcnt.html
DOCS_JA= README.jp
.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
-PKGNAMEPREFIX:= ${PKGNAMEPREFIX}ruby-
+PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
post-patch:
${PERL} -i -pe 's,/usr/local,${PREFIX},g' ${WRKSRC}/extconf.rb
${PERL} -i -pe 's,\./(kakasi),$$1,g' ${WRKSRC}/test.rb
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
-
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/wdcnt ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/kakasi/ja/
- ${INSTALL_DATA} ${WRKSRC}/test.rb ${PREFIX}/share/examples/ruby/kakasi/ja/
- ${MKDIR} ${PREFIX}/share/doc/ruby/kakasi/ja
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/kakasi/ja/
+ ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_EXAMPLESDIR}/kakasi/ja/
+ ${MKDIR} ${RUBY_DOCDIR}/kakasi/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/kakasi/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/kakasi/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/kakasi/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/kakasi/ja/
.endfor
.endif
diff --git a/japanese/ruby-kakasi/pkg-plist b/japanese/ruby-kakasi/pkg-plist
index 3dfaf6ef31fb..4dfc878aa4fb 100644
--- a/japanese/ruby-kakasi/pkg-plist
+++ b/japanese/ruby-kakasi/pkg-plist
@@ -1,11 +1,11 @@
bin/wdcnt
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/kakasi.so
-share/examples/ruby/kakasi/ja/test.rb
-@dirrm share/examples/ruby/kakasi/ja
-@dirrm share/examples/ruby/kakasi
-share/doc/ruby/kakasi/ChangeLog
-share/doc/ruby/kakasi/README
-share/doc/ruby/kakasi/wdcnt.html
-share/doc/ruby/kakasi/ja/README.jp
-@dirrm share/doc/ruby/kakasi/ja
-@dirrm share/doc/ruby/kakasi
+%%RUBY_SITEARCHLIBDIR%%/kakasi.so
+%%RUBY_EXAMPLESDIR%%/kakasi/ja/test.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/kakasi/ja
+@dirrm %%RUBY_EXAMPLESDIR%%/kakasi
+%%RUBY_DOCDIR%%/kakasi/ChangeLog
+%%RUBY_DOCDIR%%/kakasi/README
+%%RUBY_DOCDIR%%/kakasi/wdcnt.html
+%%RUBY_DOCDIR%%/kakasi/ja/README.jp
+@dirrm %%RUBY_DOCDIR%%/kakasi/ja
+@dirrm %%RUBY_DOCDIR%%/kakasi
diff --git a/japanese/ruby-uconv/Makefile b/japanese/ruby-uconv/Makefile
index c9a9cf73b538..52806533f885 100644
--- a/japanese/ruby-uconv/Makefile
+++ b/japanese/ruby-uconv/Makefile
@@ -15,38 +15,29 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-
-INSTALL_TARGET= site-install
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY= ${LOCALBASE}/bin/ruby
-RUBY_VER= 1.4
-RUBY_ARCH= ${ARCH}-freebsd${OSREL}
+INSTALL_TARGET= site-install
EXAMPLES= euc2unicode.rb test_euc.txt test_euc.xml \
trilang.xml unicode2euc.rb xmlconv.rb
.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
-PKGNAMEPREFIX:= ${PKGNAMEPREFIX}ruby-
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
+PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
post-install:
- ${MKDIR} ${PREFIX}/share/examples/ruby/uconv/ja
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/uconv/ja
.for f in ${EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${PREFIX}/share/examples/ruby/uconv/ja
+ ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_EXAMPLESDIR}/uconv/ja
.endfor
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/uconv/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/uconv/
- ${INSTALL_DATA} ${WRKSRC}/README.ja ${PREFIX}/share/doc/ruby/uconv/ja/
+ ${MKDIR} ${RUBY_DOCDIR}/uconv/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/uconv/
+ ${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_DOCDIR}/uconv/ja/
.endif
.include <bsd.port.post.mk>
diff --git a/japanese/ruby-uconv/pkg-plist b/japanese/ruby-uconv/pkg-plist
index 6589840701d2..16b32fda6aa4 100644
--- a/japanese/ruby-uconv/pkg-plist
+++ b/japanese/ruby-uconv/pkg-plist
@@ -1,13 +1,13 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/uconv.so
-share/examples/ruby/uconv/ja/euc2unicode.rb
-share/examples/ruby/uconv/ja/test_euc.txt
-share/examples/ruby/uconv/ja/test_euc.xml
-share/examples/ruby/uconv/ja/trilang.xml
-share/examples/ruby/uconv/ja/unicode2euc.rb
-share/examples/ruby/uconv/ja/xmlconv.rb
-@dirrm share/examples/ruby/uconv/ja
-@dirrm share/examples/ruby/uconv
-share/doc/ruby/uconv/README
-share/doc/ruby/uconv/ja/README.ja
-@dirrm share/doc/ruby/uconv/ja
-@dirrm share/doc/ruby/uconv
+%%RUBY_SITEARCHLIBDIR%%/uconv.so
+%%RUBY_EXAMPLESDIR%%/uconv/ja/euc2unicode.rb
+%%RUBY_EXAMPLESDIR%%/uconv/ja/test_euc.txt
+%%RUBY_EXAMPLESDIR%%/uconv/ja/test_euc.xml
+%%RUBY_EXAMPLESDIR%%/uconv/ja/trilang.xml
+%%RUBY_EXAMPLESDIR%%/uconv/ja/unicode2euc.rb
+%%RUBY_EXAMPLESDIR%%/uconv/ja/xmlconv.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/uconv/ja
+@dirrm %%RUBY_EXAMPLESDIR%%/uconv
+%%RUBY_DOCDIR%%/uconv/README
+%%RUBY_DOCDIR%%/uconv/ja/README.ja
+@dirrm %%RUBY_DOCDIR%%/uconv/ja
+@dirrm %%RUBY_DOCDIR%%/uconv
diff --git a/japanese/ruby-usersguide/pkg-plist b/japanese/ruby-usersguide/pkg-plist
index d5d8c62b7f6d..a651efd7cc4f 100644
--- a/japanese/ruby-usersguide/pkg-plist
+++ b/japanese/ruby-usersguide/pkg-plist
@@ -1,29 +1,29 @@
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/index.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide00.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide01.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide02.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide03.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide04.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide05.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide06.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide07.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide08.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide09.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide10.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide11.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide12.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide13.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide14.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide15.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide16.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide17.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide18.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide19.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide20.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide21.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide22.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide23.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide24.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide25.html
-@dirrm share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%
-@unexec rmdir %D/share/doc/ruby 2>/dev/null || true
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/index.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide00.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide01.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide02.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide03.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide04.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide05.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide06.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide07.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide08.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide09.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide10.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide11.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide12.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide13.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide14.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide15.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide16.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide17.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide18.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide19.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide20.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide21.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide22.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide23.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide24.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide25.html
+@dirrm %%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%
+@unexec rmdir %D/%%RUBY_DOCDIR%% 2>/dev/null || true
diff --git a/lang/ruby-perl/Makefile b/lang/ruby-perl/Makefile
index 93daea1a9bb7..fd843f5e8e72 100644
--- a/lang/ruby-perl/Makefile
+++ b/lang/ruby-perl/Makefile
@@ -9,31 +9,22 @@ PORTNAME= perl
PORTVERSION= 0.2.5
CATEGORIES= lang ruby perl5
MASTER_SITES= http://www.bekkoame.ne.jp/~yoshidam/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-
-INSTALL_TARGET= site-install
-
-WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
USE_PERL5= yes
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
+WRKSRC= ${WRKDIR}/${PORTNAME}
+INSTALL_TARGET= site-install
EXAMPLES= htmlparse.rb http.rb perllib.rb ping.rb \
test.rb xmlparser.rb
do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
@cd ${WRKSRC}/Ruby; \
${PERL} Makefile.PL
@@ -45,12 +36,14 @@ post-install:
@cd ${WRKSRC}/Ruby; \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/perl
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/perl
.for f in ${EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${PREFIX}/share/examples/ruby/perl/
+ ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_EXAMPLESDIR}/perl/
.endfor
- ${MKDIR} ${PREFIX}/share/doc/ruby/perl/ja
- ${INSTALL_DATA} ${WRKSRC}/README.ja ${PREFIX}/share/doc/ruby/perl/ja/
+ ${MKDIR} ${RUBY_DOCDIR}/perl/ja
+ ${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_DOCDIR}/perl/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/lang/ruby-perl/pkg-plist b/lang/ruby-perl/pkg-plist
index 159092d0ea78..7e71fcb77b31 100644
--- a/lang/ruby-perl/pkg-plist
+++ b/lang/ruby-perl/pkg-plist
@@ -1,14 +1,14 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/perl.so
-share/examples/ruby/perl/htmlparse.rb
-share/examples/ruby/perl/http.rb
-share/examples/ruby/perl/perllib.rb
-share/examples/ruby/perl/ping.rb
-share/examples/ruby/perl/test.rb
-share/examples/ruby/perl/xmlparser.rb
-@dirrm share/examples/ruby/perl
-share/doc/ruby/perl/ja/README.ja
-@dirrm share/doc/ruby/perl/ja
-@dirrm share/doc/ruby/perl
+%%RUBY_SITEARCHLIBDIR%%/perl.so
+%%RUBY_EXAMPLESDIR%%/perl/htmlparse.rb
+%%RUBY_EXAMPLESDIR%%/perl/http.rb
+%%RUBY_EXAMPLESDIR%%/perl/perllib.rb
+%%RUBY_EXAMPLESDIR%%/perl/ping.rb
+%%RUBY_EXAMPLESDIR%%/perl/test.rb
+%%RUBY_EXAMPLESDIR%%/perl/xmlparser.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/perl
+%%RUBY_DOCDIR%%/perl/ja/README.ja
+@dirrm %%RUBY_DOCDIR%%/perl/ja
+@dirrm %%RUBY_DOCDIR%%/perl
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Ruby.pm
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Ruby/.packlist
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Ruby/Ruby.bs
diff --git a/lang/ruby-usersguide/Makefile b/lang/ruby-usersguide/Makefile
index 582bb23d554a..afa38ec16521 100644
--- a/lang/ruby-usersguide/Makefile
+++ b/lang/ruby-usersguide/Makefile
@@ -17,13 +17,13 @@ MAINTAINER= knu@FreeBSD.org
SHORTNAME= ${PORTNAME:S/usersguide/uguide/}
VERSION?= 20000904
-PLIST_SUB= RUBY_VER="${RUBY_VER}" LANGSUFFIX="${LANGSUFFIX}"
+PLIST_SUB= LANGSUFFIX="${LANGSUFFIX}"
WRKSRC= ${WRKDIR}/${SHORTNAME}
NO_BUILD= yes
-DOCDIR= ${PREFIX}/share/doc/ruby/${PORTNAME}${LANGSUFFIX}
+DOCDIR= ${RUBY_DOCDIR}/${PORTNAME}${LANGSUFFIX}
post-extract:
if [ -f ${WRKSRC}/ansi.com ]; then ${RM} ${WRKSRC}/ansi.com; fi
@@ -33,4 +33,6 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/* ${DOCDIR}
${LN} -fs uguide00.html ${DOCDIR}/index.html
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/lang/ruby-usersguide/pkg-plist b/lang/ruby-usersguide/pkg-plist
index d1a5f1f569e1..9f38f0a0477e 100644
--- a/lang/ruby-usersguide/pkg-plist
+++ b/lang/ruby-usersguide/pkg-plist
@@ -1,37 +1,37 @@
-share/doc/ruby/ruby-usersguide/README.txt
-share/doc/ruby/ruby-usersguide/a2l.gif
-share/doc/ruby/ruby-usersguide/a2r.gif
-share/doc/ruby/ruby-usersguide/a2u.gif
-share/doc/ruby/ruby-usersguide/eval.rb
-share/doc/ruby/ruby-usersguide/index.html
-share/doc/ruby/ruby-usersguide/install.html
-share/doc/ruby/ruby-usersguide/uguide.css
-share/doc/ruby/ruby-usersguide/uguide00.html
-share/doc/ruby/ruby-usersguide/uguide01.html
-share/doc/ruby/ruby-usersguide/uguide02.html
-share/doc/ruby/ruby-usersguide/uguide03.html
-share/doc/ruby/ruby-usersguide/uguide04.html
-share/doc/ruby/ruby-usersguide/uguide05.html
-share/doc/ruby/ruby-usersguide/uguide06.html
-share/doc/ruby/ruby-usersguide/uguide07.html
-share/doc/ruby/ruby-usersguide/uguide08.html
-share/doc/ruby/ruby-usersguide/uguide09.html
-share/doc/ruby/ruby-usersguide/uguide10.html
-share/doc/ruby/ruby-usersguide/uguide11.html
-share/doc/ruby/ruby-usersguide/uguide12.html
-share/doc/ruby/ruby-usersguide/uguide13.html
-share/doc/ruby/ruby-usersguide/uguide14.html
-share/doc/ruby/ruby-usersguide/uguide15.html
-share/doc/ruby/ruby-usersguide/uguide16.html
-share/doc/ruby/ruby-usersguide/uguide17.html
-share/doc/ruby/ruby-usersguide/uguide18.html
-share/doc/ruby/ruby-usersguide/uguide19.html
-share/doc/ruby/ruby-usersguide/uguide20.html
-share/doc/ruby/ruby-usersguide/uguide21.html
-share/doc/ruby/ruby-usersguide/uguide22.html
-share/doc/ruby/ruby-usersguide/uguide23.html
-share/doc/ruby/ruby-usersguide/uguide24.html
-share/doc/ruby/ruby-usersguide/uguide25.html
-share/doc/ruby/ruby-usersguide/uguide26.html
-@dirrm share/doc/ruby/ruby-usersguide
-@unexec rmdir %D/share/doc/ruby 2>/dev/null || true
+%%RUBY_DOCDIR%%/ruby-usersguide/README.txt
+%%RUBY_DOCDIR%%/ruby-usersguide/a2l.gif
+%%RUBY_DOCDIR%%/ruby-usersguide/a2r.gif
+%%RUBY_DOCDIR%%/ruby-usersguide/a2u.gif
+%%RUBY_DOCDIR%%/ruby-usersguide/eval.rb
+%%RUBY_DOCDIR%%/ruby-usersguide/index.html
+%%RUBY_DOCDIR%%/ruby-usersguide/install.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide.css
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide00.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide01.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide02.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide03.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide04.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide05.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide06.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide07.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide08.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide09.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide10.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide11.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide12.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide13.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide14.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide15.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide16.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide17.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide18.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide19.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide20.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide21.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide22.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide23.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide24.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide25.html
+%%RUBY_DOCDIR%%/ruby-usersguide/uguide26.html
+@dirrm %%RUBY_DOCDIR%%/ruby-usersguide
+@unexec rmdir %D/%%RUBY_DOCDIR%% 2>/dev/null || true
diff --git a/math/ruby-bigfloat/Makefile b/math/ruby-bigfloat/Makefile
index 91501e08ca7b..bfa3ca740d2b 100644
--- a/math/ruby-bigfloat/Makefile
+++ b/math/ruby-bigfloat/Makefile
@@ -6,36 +6,29 @@
#
PORTNAME= bigfloat
-PORTVERSION= 1.1.3
+PORTVERSION= 1.1.3
CATEGORIES= math ruby
MASTER_SITES= http://www.tinyforest.gr.jp/ruby/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-
-INSTALL_TARGET= site-install
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
NO_WRKSUBDIR= yes
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
+INSTALL_TARGET= site-install
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/bigfloat/ja
+ ${MKDIR} ${RUBY_DOCDIR}/bigfloat/ja
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/bigfloat_en.html \
- ${PREFIX}/share/doc/ruby/bigfloat
+ ${RUBY_DOCDIR}/bigfloat
${INSTALL_DATA} ${WRKSRC}/bigfloat.html \
- ${PREFIX}/share/doc/ruby/bigfloat/ja
+ ${RUBY_DOCDIR}/bigfloat/ja
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/math/ruby-bigfloat/pkg-plist b/math/ruby-bigfloat/pkg-plist
index 95ea4b50eb9e..ed11dacc362b 100644
--- a/math/ruby-bigfloat/pkg-plist
+++ b/math/ruby-bigfloat/pkg-plist
@@ -1,6 +1,6 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/BigFloat.so
-share/doc/ruby/bigfloat/ja/bigfloat.html
-share/doc/ruby/bigfloat/README
-share/doc/ruby/bigfloat/bigfloat_en.html
-@dirrm share/doc/ruby/bigfloat/ja
-@dirrm share/doc/ruby/bigfloat
+%%RUBY_SITEARCHLIBDIR%%/BigFloat.so
+%%RUBY_DOCDIR%%/bigfloat/ja/bigfloat.html
+%%RUBY_DOCDIR%%/bigfloat/README
+%%RUBY_DOCDIR%%/bigfloat/bigfloat_en.html
+@dirrm %%RUBY_DOCDIR%%/bigfloat/ja
+@dirrm %%RUBY_DOCDIR%%/bigfloat
diff --git a/net-mgmt/ruby-snmp/Makefile b/net-mgmt/ruby-snmp/Makefile
index 851dbf33e82f..e85279e0191b 100644
--- a/net-mgmt/ruby-snmp/Makefile
+++ b/net-mgmt/ruby-snmp/Makefile
@@ -9,27 +9,22 @@ PORTNAME= snmp
PORTVERSION= 0.2.1
CATEGORIES= net ruby
MASTER_SITES= http://w3cic.riken.go.jp/~tsuruoka/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX= .tgz
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= snmp.4:${PORTSDIR}/net/ucd-snmp
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/SNMP
INSTALL_TARGET= site-install
CONFIGURE_ARGS= --with-snmp-dir="${LOCALBASE}"
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
DOCS_EN= mib_view.html \
rubysnmp.html \
sampleout.html \
@@ -37,16 +32,14 @@ DOCS_EN= mib_view.html \
snmp_session.html \
snmp_var.html
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/snmp
+ ${MKDIR} ${RUBY_DOCDIR}/snmp
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/snmp/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/snmp/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/net-mgmt/ruby-snmp/pkg-plist b/net-mgmt/ruby-snmp/pkg-plist
index 661480ab4dd7..3cebc9cb7bb8 100644
--- a/net-mgmt/ruby-snmp/pkg-plist
+++ b/net-mgmt/ruby-snmp/pkg-plist
@@ -1,8 +1,8 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/snmp.so
-share/doc/ruby/snmp/mib_view.html
-share/doc/ruby/snmp/rubysnmp.html
-share/doc/ruby/snmp/sampleout.html
-share/doc/ruby/snmp/snmp_module.html
-share/doc/ruby/snmp/snmp_session.html
-share/doc/ruby/snmp/snmp_var.html
-@dirrm share/doc/ruby/snmp
+%%RUBY_SITEARCHLIBDIR%%/snmp.so
+%%RUBY_DOCDIR%%/snmp/mib_view.html
+%%RUBY_DOCDIR%%/snmp/rubysnmp.html
+%%RUBY_DOCDIR%%/snmp/sampleout.html
+%%RUBY_DOCDIR%%/snmp/snmp_module.html
+%%RUBY_DOCDIR%%/snmp/snmp_session.html
+%%RUBY_DOCDIR%%/snmp/snmp_var.html
+@dirrm %%RUBY_DOCDIR%%/snmp
diff --git a/net/ruby-snmp/Makefile b/net/ruby-snmp/Makefile
index 851dbf33e82f..e85279e0191b 100644
--- a/net/ruby-snmp/Makefile
+++ b/net/ruby-snmp/Makefile
@@ -9,27 +9,22 @@ PORTNAME= snmp
PORTVERSION= 0.2.1
CATEGORIES= net ruby
MASTER_SITES= http://w3cic.riken.go.jp/~tsuruoka/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX= .tgz
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= snmp.4:${PORTSDIR}/net/ucd-snmp
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/SNMP
INSTALL_TARGET= site-install
CONFIGURE_ARGS= --with-snmp-dir="${LOCALBASE}"
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
DOCS_EN= mib_view.html \
rubysnmp.html \
sampleout.html \
@@ -37,16 +32,14 @@ DOCS_EN= mib_view.html \
snmp_session.html \
snmp_var.html
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/snmp
+ ${MKDIR} ${RUBY_DOCDIR}/snmp
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/snmp/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/snmp/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/net/ruby-snmp/pkg-plist b/net/ruby-snmp/pkg-plist
index 661480ab4dd7..3cebc9cb7bb8 100644
--- a/net/ruby-snmp/pkg-plist
+++ b/net/ruby-snmp/pkg-plist
@@ -1,8 +1,8 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/snmp.so
-share/doc/ruby/snmp/mib_view.html
-share/doc/ruby/snmp/rubysnmp.html
-share/doc/ruby/snmp/sampleout.html
-share/doc/ruby/snmp/snmp_module.html
-share/doc/ruby/snmp/snmp_session.html
-share/doc/ruby/snmp/snmp_var.html
-@dirrm share/doc/ruby/snmp
+%%RUBY_SITEARCHLIBDIR%%/snmp.so
+%%RUBY_DOCDIR%%/snmp/mib_view.html
+%%RUBY_DOCDIR%%/snmp/rubysnmp.html
+%%RUBY_DOCDIR%%/snmp/sampleout.html
+%%RUBY_DOCDIR%%/snmp/snmp_module.html
+%%RUBY_DOCDIR%%/snmp/snmp_session.html
+%%RUBY_DOCDIR%%/snmp/snmp_var.html
+@dirrm %%RUBY_DOCDIR%%/snmp
diff --git a/net/ruby-uri/Makefile b/net/ruby-uri/Makefile
index f5cd2b5130e7..46311c3f1872 100644
--- a/net/ruby-uri/Makefile
+++ b/net/ruby-uri/Makefile
@@ -9,21 +9,16 @@ PORTNAME= uri
PORTVERSION= 4.22
CATEGORIES= net ruby
MASTER_SITES= http://www02.so-net.ne.jp/%7Egreentea/ruby/uri/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+USE_RUBY= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
MODULES= uri.rb urireg.rb
@@ -32,17 +27,19 @@ EXAMPLES= in-uri.txt test-uri.rb
do-install:
.for f in ${MODULES}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}
.endfor
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/uri
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/uri
.for f in ${EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/ruby/uri/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/uri/
.endfor
- ${MKDIR} ${PREFIX}/share/doc/ruby/uri
+ ${MKDIR} ${RUBY_DOCDIR}/uri
.for f in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/uri/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/uri/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/net/ruby-uri/pkg-plist b/net/ruby-uri/pkg-plist
index 099f5a50fdb5..6612fe1251a4 100644
--- a/net/ruby-uri/pkg-plist
+++ b/net/ruby-uri/pkg-plist
@@ -1,7 +1,7 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/uri.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/urireg.rb
-share/examples/ruby/uri/test-uri.rb
-share/examples/ruby/uri/in-uri.txt
-@dirrm share/examples/ruby/uri
-share/doc/ruby/uri/index.html
-@dirrm share/doc/ruby/uri
+%%RUBY_SITELIBDIR%%/uri.rb
+%%RUBY_SITELIBDIR%%/urireg.rb
+%%RUBY_EXAMPLESDIR%%/uri/test-uri.rb
+%%RUBY_EXAMPLESDIR%%/uri/in-uri.txt
+@dirrm %%RUBY_EXAMPLESDIR%%/uri
+%%RUBY_DOCDIR%%/uri/index.html
+@dirrm %%RUBY_DOCDIR%%/uri
diff --git a/print/ruby-clibpdf/Makefile b/print/ruby-clibpdf/Makefile
index 2dcb2abaa041..b3ee58ca408d 100644
--- a/print/ruby-clibpdf/Makefile
+++ b/print/ruby-clibpdf/Makefile
@@ -9,25 +9,19 @@ PORTNAME= clibpdf
PORTVERSION= 19991016
CATEGORIES= print ruby
MASTER_SITES= http://www2s.biglobe.ne.jp/~Nori/ruby/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ClibPDF-ALPHA-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= cpdf.0:${PORTSDIR}/print/clibpdf
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-INSTALL_TARGET= site-install
-CONFIGURE_ARGS= --with-opt-dir="${LOCALBASE}"
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/ClibPDF-${PORTVERSION}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
+INSTALL_TARGET= site-install
EXAMPLES_EN= Arcs.rb DomainDemo.rb MarkerTest.rb Minimal.rb \
beziertest.rb charwidth.rb cover.rb dashtest.rb \
@@ -42,26 +36,24 @@ DOCS_JA= ChangeLog.ja README.ja TODO.ja
post-extract:
${RM} ${WRKSRC}/examples/*.pdf
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/clibpdf/ja
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/clibpdf/ja
.for f in ${EXAMPLES_EN}
- ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${PREFIX}/share/examples/ruby/clibpdf/
+ ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${RUBY_EXAMPLESDIR}/clibpdf/
.endfor
.for f in ${EXAMPLES_JA}
- ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${PREFIX}/share/examples/ruby/clibpdf/ja/
+ ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${RUBY_EXAMPLESDIR}/clibpdf/ja/
.endfor
- ${MKDIR} ${PREFIX}/share/doc/ruby/clibpdf/ja
+ ${MKDIR} ${RUBY_DOCDIR}/clibpdf/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/clibpdf/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/clibpdf/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/clibpdf/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/clibpdf/ja/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/print/ruby-clibpdf/pkg-plist b/print/ruby-clibpdf/pkg-plist
index de2f92d06aef..4822ac9dc10e 100644
--- a/print/ruby-clibpdf/pkg-plist
+++ b/print/ruby-clibpdf/pkg-plist
@@ -1,27 +1,27 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/ClibPDF.so
-share/doc/ruby/clibpdf/README
-share/doc/ruby/clibpdf/ja/ChangeLog.ja
-share/doc/ruby/clibpdf/ja/README.ja
-share/doc/ruby/clibpdf/ja/TODO.ja
-@dirrm share/doc/ruby/clibpdf/ja
-@dirrm share/doc/ruby/clibpdf
-share/examples/ruby/clibpdf/Arcs.rb
-share/examples/ruby/clibpdf/DomainDemo.rb
-share/examples/ruby/clibpdf/MarkerTest.rb
-share/examples/ruby/clibpdf/Minimal.rb
-share/examples/ruby/clibpdf/beziertest.rb
-share/examples/ruby/clibpdf/charwidth.rb
-share/examples/ruby/clibpdf/cover.rb
-share/examples/ruby/clibpdf/dashtest.rb
-share/examples/ruby/clibpdf/filltest.rb
-share/examples/ruby/clibpdf/fontlist.rb
-share/examples/ruby/clibpdf/helloworld.rb
-share/examples/ruby/clibpdf/linkpdfpage.rb
-share/examples/ruby/clibpdf/outline.rb
-share/examples/ruby/clibpdf/textalign.rb
-share/examples/ruby/clibpdf/textboxfit.rb
-share/examples/ruby/clibpdf/timeaxis.rb
-share/examples/ruby/clibpdf/weather.rb
-share/examples/ruby/clibpdf/ja/jpntest.rb
-@dirrm share/examples/ruby/clibpdf/ja
-@dirrm share/examples/ruby/clibpdf
+%%RUBY_SITEARCHLIBDIR%%/ClibPDF.so
+%%RUBY_DOCDIR%%/clibpdf/README
+%%RUBY_DOCDIR%%/clibpdf/ja/ChangeLog.ja
+%%RUBY_DOCDIR%%/clibpdf/ja/README.ja
+%%RUBY_DOCDIR%%/clibpdf/ja/TODO.ja
+@dirrm %%RUBY_DOCDIR%%/clibpdf/ja
+@dirrm %%RUBY_DOCDIR%%/clibpdf
+%%RUBY_EXAMPLESDIR%%/clibpdf/Arcs.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/DomainDemo.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/MarkerTest.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/Minimal.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/beziertest.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/charwidth.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/cover.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/dashtest.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/filltest.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/fontlist.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/helloworld.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/linkpdfpage.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/outline.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/textalign.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/textboxfit.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/timeaxis.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/weather.rb
+%%RUBY_EXAMPLESDIR%%/clibpdf/ja/jpntest.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/clibpdf/ja
+@dirrm %%RUBY_EXAMPLESDIR%%/clibpdf
diff --git a/sysutils/ruby-syslog/Makefile b/sysutils/ruby-syslog/Makefile
index 859301ed59dd..979f37efdc86 100644
--- a/sysutils/ruby-syslog/Makefile
+++ b/sysutils/ruby-syslog/Makefile
@@ -11,32 +11,25 @@ CATEGORIES= sysutils ruby
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.bekkoame.ne.jp/~yoshidam/
MASTER_SITE_SUBDIR= knu
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALL_TARGET= site-install
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/syslog
- ${INSTALL_DATA} ${WRKSRC}/test.rb ${PREFIX}/share/examples/ruby/syslog/
- ${MKDIR} ${PREFIX}/share/doc/ruby/syslog/
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/syslog/
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/syslog
+ ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_EXAMPLESDIR}/syslog/
+ ${MKDIR} ${RUBY_DOCDIR}/syslog/
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/syslog/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/sysutils/ruby-syslog/pkg-plist b/sysutils/ruby-syslog/pkg-plist
index 220268990cae..b18d67d7d22d 100644
--- a/sysutils/ruby-syslog/pkg-plist
+++ b/sysutils/ruby-syslog/pkg-plist
@@ -1,5 +1,5 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/syslog.so
-share/examples/ruby/syslog/test.rb
-@dirrm share/examples/ruby/syslog
-share/doc/ruby/syslog/README
-@dirrm share/doc/ruby/syslog
+%%RUBY_SITEARCHLIBDIR%%/syslog.so
+%%RUBY_EXAMPLESDIR%%/syslog/test.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/syslog
+%%RUBY_DOCDIR%%/syslog/README
+@dirrm %%RUBY_DOCDIR%%/syslog
diff --git a/textproc/ruby-html-parser/Makefile b/textproc/ruby-html-parser/Makefile
index 84824836762b..5851fb3d1782 100644
--- a/textproc/ruby-html-parser/Makefile
+++ b/textproc/ruby-html-parser/Makefile
@@ -9,32 +9,27 @@ PORTNAME= html-parser
PORTVERSION= 19990912.p1
CATEGORIES= textproc ruby
MASTER_SITES= http://www.jin.gr.jp/~nahi/Ruby/html-parser/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+USE_RUBY= yes
NO_BUILD= yes
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
MODULES= formatter.rb html-parser.rb sgml-parser.rb
do-install:
.for f in ${MODULES}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}
.endfor
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/html-parser
- ${INSTALL_DATA} ${WRKSRC}/README.html ${PREFIX}/share/doc/ruby/html-parser/
+ ${MKDIR} ${RUBY_DOCDIR}/html-parser
+ ${INSTALL_DATA} ${WRKSRC}/README.html ${RUBY_DOCDIR}/html-parser/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/textproc/ruby-html-parser/pkg-plist b/textproc/ruby-html-parser/pkg-plist
index 8f7bb694a3a3..e7b29450ca02 100644
--- a/textproc/ruby-html-parser/pkg-plist
+++ b/textproc/ruby-html-parser/pkg-plist
@@ -1,5 +1,5 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/formatter.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/html-parser.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/sgml-parser.rb
-share/doc/ruby/html-parser/README.html
-@dirrm share/doc/ruby/html-parser
+%%RUBY_SITELIBDIR%%/formatter.rb
+%%RUBY_SITELIBDIR%%/html-parser.rb
+%%RUBY_SITELIBDIR%%/sgml-parser.rb
+%%RUBY_DOCDIR%%/html-parser/README.html
+@dirrm %%RUBY_DOCDIR%%/html-parser
diff --git a/textproc/ruby-xmlparser/Makefile b/textproc/ruby-xmlparser/Makefile
index ecdf84375f81..284b4837a5da 100644
--- a/textproc/ruby-xmlparser/Makefile
+++ b/textproc/ruby-xmlparser/Makefile
@@ -11,31 +11,26 @@ CATEGORIES= textproc ruby
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.bekkoame.ne.jp/~yoshidam/
MASTER_SITE_SUBDIR= knu
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- ${PERL_ARCHLIB}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-Parser
+BUILD_DEPENDS= ${PERL_ARCHLIB}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-Parser
LIB_DEPENDS= expat.1:${PORTSDIR}/textproc/expat
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- ${PERL_ARCHLIB}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-Parser
+RUN_DEPENDS= ${PERL_ARCHLIB}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-Parser
# to utilize encoding maps included in p5-XML-Parser
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
.if !defined(NOPORTDOCS)
-BUILD_DEPENDS+= rd2:${PORTSDIR}/textproc/ruby-rdtool
+USE_RUBY_RD= yes
.endif
PERL_ARCHLIB= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/mach
WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALL_TARGET= site-install
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
EXAMPLES_EN= dtd/ext1.dtd dtd/ext2.dtd dtd/extdtd.rb dtd/extdtd.xml \
namespaces/namespace1.rb namespaces/namespace1.xml \
@@ -54,34 +49,32 @@ post-patch:
${PERL} -i -pe 's,%%PERL_ARCHLIB%%,${PERL_ARCHLIB},g' ${WRKSRC}/extconf.rb
${PERL} -i -pe 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/lib/wget.rb
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/xmlparser/dtd
- ${MKDIR} ${PREFIX}/share/examples/ruby/xmlparser/namespaces
- ${MKDIR} ${PREFIX}/share/examples/ruby/xmlparser/ja
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/xmlparser/dtd
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/xmlparser/namespaces
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/xmlparser/ja
.for f in ${EXAMPLES_EN}
${INSTALL_DATA} ${WRKSRC}/samples/${f} \
- ${PREFIX}/share/examples/ruby/xmlparser/${f}
+ ${RUBY_EXAMPLESDIR}/xmlparser/${f}
.endfor
.for f in ${EXAMPLES_JA}
${INSTALL_DATA} ${WRKSRC}/samples/${f} \
- ${PREFIX}/share/examples/ruby/xmlparser/ja/${f}
+ ${RUBY_EXAMPLESDIR}/xmlparser/ja/${f}
.endfor
.for f in ${RD_DOCS}
@cd ${WRKSRC}/lib; \
- rd2 ${f} > ${f:S/.rb$/.html/}
+ ${RUBY_RD} ${f} > ${f:S/.rb$/.html/}
.endfor
- ${MKDIR} ${PREFIX}/share/doc/ruby/xmlparser/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/xmlparser/
- ${INSTALL_DATA} ${WRKSRC}/README.ja ${PREFIX}/share/doc/ruby/xmlparser/ja/
+ ${MKDIR} ${RUBY_DOCDIR}/xmlparser/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/xmlparser/
+ ${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_DOCDIR}/xmlparser/ja/
.for f in ${RD_DOCS:S/.rb$/.html/}
- ${INSTALL_DATA} ${WRKSRC}/lib/${f} ${PREFIX}/share/doc/ruby/xmlparser/
+ ${INSTALL_DATA} ${WRKSRC}/lib/${f} ${RUBY_DOCDIR}/xmlparser/
.endfor
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/textproc/ruby-xmlparser/pkg-plist b/textproc/ruby-xmlparser/pkg-plist
index da766587cfc3..9749b30f1ada 100644
--- a/textproc/ruby-xmlparser/pkg-plist
+++ b/textproc/ruby-xmlparser/pkg-plist
@@ -1,60 +1,60 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/sax.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/saxdriver.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/wget.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/xmldigest.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/xmlencoding-ja.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/xmlparser.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/xmltree.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/xmltreebuilder-ja.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/xmltreebuilder.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/xmltreevisitor.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/xmlparser.so
-share/examples/ruby/xmlparser/dtd/ext1.dtd
-share/examples/ruby/xmlparser/dtd/ext2.dtd
-share/examples/ruby/xmlparser/dtd/extdtd.rb
-share/examples/ruby/xmlparser/dtd/extdtd.xml
-share/examples/ruby/xmlparser/namespaces/namespace1.rb
-share/examples/ruby/xmlparser/namespaces/namespace1.xml
-share/examples/ruby/xmlparser/namespaces/namespace2.rb
-share/examples/ruby/xmlparser/namespaces/namespace2.xml
-share/examples/ruby/xmlparser/ja/buildertest.rb
-share/examples/ruby/xmlparser/ja/buildertest2.rb
-share/examples/ruby/xmlparser/ja/digesttest2.rb
-share/examples/ruby/xmlparser/ja/document.dtd
-share/examples/ruby/xmlparser/ja/gtktree.rb
-share/examples/ruby/xmlparser/ja/index_euc.xml
-share/examples/ruby/xmlparser/ja/index_jis.xml
-share/examples/ruby/xmlparser/ja/index_noenc.xml
-share/examples/ruby/xmlparser/ja/index_sjis.xml
-share/examples/ruby/xmlparser/ja/index_u16.xml
-share/examples/ruby/xmlparser/ja/index_u8.xml
-share/examples/ruby/xmlparser/ja/treetest.rb
-share/examples/ruby/xmlparser/ja/videolist.dtd
-share/examples/ruby/xmlparser/ja/videolist.rb
-share/examples/ruby/xmlparser/ja/videolist.xml
-share/examples/ruby/xmlparser/ja/visitor.rb
-share/examples/ruby/xmlparser/ja/xmlcheck.rb
-share/examples/ruby/xmlparser/ja/xmlevent.rb
-share/examples/ruby/xmlparser/ja/xmlgrep.rb
-share/examples/ruby/xmlparser/ja/xmliter.rb
-share/examples/ruby/xmlparser/ja/xpointer.rb
-share/examples/ruby/xmlparser/ja/xpointertest.rb
-share/examples/ruby/xmlparser/digesttest.rb
-share/examples/ruby/xmlparser/idattrtest.rb
-share/examples/ruby/xmlparser/my-html.rb
-share/examples/ruby/xmlparser/saxtest.rb
-share/examples/ruby/xmlparser/visitortest.rb
-share/examples/ruby/xmlparser/writer.rb
-share/examples/ruby/xmlparser/xmlcomments.rb
-share/examples/ruby/xmlparser/xmlstats.rb
-@dirrm share/examples/ruby/xmlparser/ja
-@dirrm share/examples/ruby/xmlparser/namespaces
-@dirrm share/examples/ruby/xmlparser/dtd
-@dirrm share/examples/ruby/xmlparser
-share/doc/ruby/xmlparser/ja/README.ja
-share/doc/ruby/xmlparser/README
-share/doc/ruby/xmlparser/xmltree.html
-share/doc/ruby/xmlparser/xmltreebuilder.html
-share/doc/ruby/xmlparser/xmltreevisitor.html
-@dirrm share/doc/ruby/xmlparser/ja
-@dirrm share/doc/ruby/xmlparser
+%%RUBY_SITELIBDIR%%/sax.rb
+%%RUBY_SITELIBDIR%%/saxdriver.rb
+%%RUBY_SITELIBDIR%%/wget.rb
+%%RUBY_SITELIBDIR%%/xmldigest.rb
+%%RUBY_SITELIBDIR%%/xmlencoding-ja.rb
+%%RUBY_SITELIBDIR%%/xmlparser.rb
+%%RUBY_SITELIBDIR%%/xmltree.rb
+%%RUBY_SITELIBDIR%%/xmltreebuilder-ja.rb
+%%RUBY_SITELIBDIR%%/xmltreebuilder.rb
+%%RUBY_SITELIBDIR%%/xmltreevisitor.rb
+%%RUBY_SITEARCHLIBDIR%%/xmlparser.so
+%%RUBY_EXAMPLESDIR%%/xmlparser/dtd/ext1.dtd
+%%RUBY_EXAMPLESDIR%%/xmlparser/dtd/ext2.dtd
+%%RUBY_EXAMPLESDIR%%/xmlparser/dtd/extdtd.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/dtd/extdtd.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/namespaces/namespace1.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/namespaces/namespace1.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/namespaces/namespace2.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/namespaces/namespace2.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/buildertest.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/buildertest2.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/digesttest2.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/document.dtd
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/gtktree.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/index_euc.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/index_jis.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/index_noenc.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/index_sjis.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/index_u16.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/index_u8.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/treetest.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/videolist.dtd
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/videolist.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/videolist.xml
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/visitor.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/xmlcheck.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/xmlevent.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/xmlgrep.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/xmliter.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/xpointer.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/ja/xpointertest.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/digesttest.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/idattrtest.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/my-html.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/saxtest.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/visitortest.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/writer.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/xmlcomments.rb
+%%RUBY_EXAMPLESDIR%%/xmlparser/xmlstats.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/xmlparser/ja
+@dirrm %%RUBY_EXAMPLESDIR%%/xmlparser/namespaces
+@dirrm %%RUBY_EXAMPLESDIR%%/xmlparser/dtd
+@dirrm %%RUBY_EXAMPLESDIR%%/xmlparser
+%%RUBY_DOCDIR%%/xmlparser/ja/README.ja
+%%RUBY_DOCDIR%%/xmlparser/README
+%%RUBY_DOCDIR%%/xmlparser/xmltree.html
+%%RUBY_DOCDIR%%/xmlparser/xmltreebuilder.html
+%%RUBY_DOCDIR%%/xmlparser/xmltreevisitor.html
+@dirrm %%RUBY_DOCDIR%%/xmlparser/ja
+@dirrm %%RUBY_DOCDIR%%/xmlparser
diff --git a/x11-toolkits/ruby-fltk/Makefile b/x11-toolkits/ruby-fltk/Makefile
index 11d4a2dc8db0..25907fdb7023 100644
--- a/x11-toolkits/ruby-fltk/Makefile
+++ b/x11-toolkits/ruby-fltk/Makefile
@@ -9,40 +9,35 @@ PORTNAME= fltk
PORTVERSION= 20000618
CATEGORIES= x11-toolkits ruby
MASTER_SITES= http://kt-www.jaist.ac.jp:8000/~ttate/ftp/
-PKGNAMEPREFIX= ruby-
-DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
USE_MESA= yes
+USE_GMAKE= yes
+
WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALL_TARGET= site-install
CONFIGURE_ARGS= --with-fltk-dir="${X11BASE}" --with-gl-dir="${X11BASE}"
MAKE_ARGS= LOCAL_LIBS="-lgcc"
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/fltk
- ${INSTALL_DATA} ${WRKSRC}/test/adjuster.rb ${PREFIX}/share/examples/ruby/fltk/
- ${MKDIR} ${PREFIX}/share/doc/ruby/fltk/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/fltk/
- ${INSTALL_DATA} ${WRKSRC}/README.jp ${PREFIX}/share/doc/ruby/fltk/ja/
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/fltk
+ ${INSTALL_DATA} ${WRKSRC}/test/adjuster.rb ${RUBY_EXAMPLESDIR}/fltk/
+ ${MKDIR} ${RUBY_DOCDIR}/fltk/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/fltk/
+ ${INSTALL_DATA} ${WRKSRC}/README.jp ${RUBY_DOCDIR}/fltk/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/ruby-fltk/pkg-plist b/x11-toolkits/ruby-fltk/pkg-plist
index b9cd5735acb5..bad32ab26325 100644
--- a/x11-toolkits/ruby-fltk/pkg-plist
+++ b/x11-toolkits/ruby-fltk/pkg-plist
@@ -1,7 +1,7 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/fltk.so
-share/examples/ruby/fltk/adjuster.rb
-@dirrm share/examples/ruby/fltk
-share/doc/ruby/fltk/README
-share/doc/ruby/fltk/ja/README.jp
-@dirrm share/doc/ruby/fltk/ja
-@dirrm share/doc/ruby/fltk
+%%RUBY_SITEARCHLIBDIR%%/fltk.so
+%%RUBY_EXAMPLESDIR%%/fltk/adjuster.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/fltk
+%%RUBY_DOCDIR%%/fltk/README
+%%RUBY_DOCDIR%%/fltk/ja/README.jp
+@dirrm %%RUBY_DOCDIR%%/fltk/ja
+@dirrm %%RUBY_DOCDIR%%/fltk