diff options
author | knu <knu@FreeBSD.org> | 2001-05-06 07:20:12 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-05-06 07:20:12 +0800 |
commit | 97e192b2e3aeccd090948d26caf798e4e695c251 (patch) | |
tree | ebf8a99e9a6239fea83fc863ffa22a13dbf7b9ea | |
parent | 5d6920d3bc72f3b70271bb640e7c682f28468be1 (diff) | |
download | freebsd-ports-gnome-97e192b2e3aeccd090948d26caf798e4e695c251.tar.gz freebsd-ports-gnome-97e192b2e3aeccd090948d26caf798e4e695c251.tar.zst freebsd-ports-gnome-97e192b2e3aeccd090948d26caf798e4e695c251.zip |
Add lang/ruby-devel, the development version of Ruby. (1.7)
-rw-r--r-- | lang/Makefile | 1 | ||||
-rw-r--r-- | lang/ruby-devel/Makefile | 102 | ||||
-rw-r--r-- | lang/ruby-devel/distinfo | 2 | ||||
-rw-r--r-- | lang/ruby-devel/pkg-comment | 1 | ||||
-rw-r--r-- | lang/ruby-devel/pkg-descr | 20 | ||||
-rw-r--r-- | lang/ruby-devel/pkg-message | 21 | ||||
-rw-r--r-- | lang/ruby-devel/pkg-plist | 204 | ||||
-rw-r--r-- | lang/ruby18/Makefile | 102 | ||||
-rw-r--r-- | lang/ruby18/distinfo | 2 | ||||
-rw-r--r-- | lang/ruby18/pkg-comment | 1 | ||||
-rw-r--r-- | lang/ruby18/pkg-descr | 20 | ||||
-rw-r--r-- | lang/ruby18/pkg-message | 21 | ||||
-rw-r--r-- | lang/ruby18/pkg-plist | 204 |
13 files changed, 701 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile index 024ebf52da85..49109b04cade 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -116,6 +116,7 @@ SUBDIR += rexx-imc SUBDIR += rotfl SUBDIR += ruby + SUBDIR += ruby-devel SUBDIR += ruby-man SUBDIR += ruby-mode.el SUBDIR += ruby-perl diff --git a/lang/ruby-devel/Makefile b/lang/ruby-devel/Makefile new file mode 100644 index 000000000000..a3adc82061b9 --- /dev/null +++ b/lang/ruby-devel/Makefile @@ -0,0 +1,102 @@ +# New ports collection makefile for: ruby-devel +# Date created: 6 May 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= ruby +PORTVERSION= ${RUBY_PORTVERSION} +CATEGORIES= lang ruby ipv6 +MASTER_SITES= http://www.ruby-lang.org/~knu/ # ${MASTER_SITE_RUBY} +MASTER_SITE_SUBDIR= ${RUBY_VER} +DISTNAME= ${RUBY_DISTNAME} +DIST_SUBDIR= ruby + +PATCH_SITES= http://www.ruby-lang.org/~knu/ +PATCHFILES= ${RUBY_DISTNAME}-${RUBY_PATCHLEVEL}.patch.gz +PATCH_DIST_STRIP= -p1 + +MAINTAINER= knu@FreeBSD.org + +RUBY_VER= 1.7 + +USE_RUBY= yes +RUBY_NO_BUILD_DEPENDS= yes +RUBY_NO_RUN_DEPENDS= yes + +USE_AUTOCONF= yes +INSTALLS_SHLIB= yes +WRKSRC= ${RUBY_WRKSRC} +CONFIGURE_ARGS= --enable-shared +MAN1= ruby${_RUBY_SUFFIX}.1 +MLINKS= ruby${_RUBY_SUFFIX}.1 ruby.1 + +.include <bsd.port.pre.mk> + +.if !empty(RUBY_SUFFIX) +CONFIGURE_ARGS+= --program-suffix="${RUBY_SUFFIX}" +.endif + +.if ${OSVERSION} >= 400014 +CONFIGURE_ARGS+= --enable-ipv6 +.endif + +IRB= ${LOCALBASE}/bin/irb + +post-patch: + find ${WRKSRC} -name '*.orig' -delete +.for d in Win32API + ${RM} -rf ${WRKSRC}/ext/${d} +.endfor +.for d in gdbm tcltklib tk + ${MV} ${WRKSRC}/ext/${d} ${WRKDIR}/ +.endfor + +post-install: +.if ${STRIP} == -s + strip ${RUBY} +.endif +.if empty(RUBY_SUFFIX) + ${MV} -f ${RUBY} ${RUBY_WITH_SUFFIX} + ${LN} -fs ${RUBY_WITH_SUFFIX} ${RUBY} + ${MV} ${PREFIX}/man/man1/ruby.1 ${PREFIX}/man/man1/ruby${_RUBY_SUFFIX}.1 +.else + ${LN} -fs ${RUBY} ${PREFIX}/bin/ruby +.endif + ${RUBY} ${RUBY_FLAGS} -i -p \ + -e 'if $$. == 1; ' \ + -e ' if /^#!/; ' \ + -e ' sub /^#!\s*\S*(\benv\s+)?\bruby/, "#!${RUBY_WITH_SUFFIX}";' \ + -e ' else;' \ + -e ' $$_ = "#!${RUBY_WITH_SUFFIX}\n" + $$_;' \ + -e ' end;' \ + -e 'end' \ + ${IRB} + ${MV} -f ${IRB} ${IRB}${_RUBY_SUFFIX} + ${LN} -fs ${IRB}${_RUBY_SUFFIX} ${IRB} +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR} + ${MKDIR} ${RUBY_EXAMPLESDIR}/curses + ${INSTALL_DATA} ${WRKSRC}/ext/curses/hello.rb ${WRKSRC}/ext/curses/rain.rb ${WRKSRC}/ext/curses/view.rb ${RUBY_EXAMPLESDIR}/curses + ${MKDIR} ${RUBY_EXAMPLESDIR}/pty + ${INSTALL_DATA} ${WRKSRC}/ext/pty/expect_sample.rb ${WRKSRC}/ext/pty/script.rb ${WRKSRC}/ext/pty/shl.rb ${RUBY_EXAMPLESDIR}/pty + ${MKDIR} ${RUBY_DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/README* ${RUBY_DOCDIR} + ${MKDIR} ${RUBY_DOCDIR}/etc + ${INSTALL_DATA} ${WRKSRC}/ext/etc/etc.txt* ${RUBY_DOCDIR}/etc + ${MKDIR} ${RUBY_DOCDIR}/md5 + ${INSTALL_DATA} ${WRKSRC}/ext/md5/md5.txt* ${RUBY_DOCDIR}/md5 + ${MKDIR} ${RUBY_DOCDIR}/pty + ${INSTALL_DATA} ${WRKSRC}/ext/pty/README* ${RUBY_DOCDIR}/pty + ${MKDIR} ${RUBY_DOCDIR}/readline + ${INSTALL_DATA} ${WRKSRC}/ext/readline/README ${RUBY_DOCDIR}/readline + ${CP} -R ${WRKSRC}/doc/irb ${RUBY_DOCDIR}/ +.endif + @${CAT} ${PKGMESSAGE} + +test: + @(cd ${WRKSRC}; ${MAKE} test) + +.include <bsd.port.post.mk> diff --git a/lang/ruby-devel/distinfo b/lang/ruby-devel/distinfo new file mode 100644 index 000000000000..a5b174492360 --- /dev/null +++ b/lang/ruby-devel/distinfo @@ -0,0 +1,2 @@ +MD5 (ruby/ruby-1.7.0-alpha-2001.05.03.tar.gz) = 022b3564b62cb9c55aaff90920361dca +MD5 (ruby/ruby-1.7.0-alpha-2001.05.03-1.patch.gz) = 72bd5930b22046f247a4f51141363341 diff --git a/lang/ruby-devel/pkg-comment b/lang/ruby-devel/pkg-comment new file mode 100644 index 000000000000..0909290ae04a --- /dev/null +++ b/lang/ruby-devel/pkg-comment @@ -0,0 +1 @@ +An object-oriented interpreted scripting language diff --git a/lang/ruby-devel/pkg-descr b/lang/ruby-devel/pkg-descr new file mode 100644 index 000000000000..f60c69314e2d --- /dev/null +++ b/lang/ruby-devel/pkg-descr @@ -0,0 +1,20 @@ +Ruby is the interpreted scripting language for quick and +easy object-oriented programming. It has many features to +process text files and to do system management tasks (as in +Perl). It is simple, straight-forward, and extensible. + +Features of Ruby are shown below. + + + Simple Syntax + + *Normal* Object-Oriented features(ex. class, method calls) + + *Advanced* Object-Oriented features(ex. Mix-in, Singleton-method) + + Operator Overloading + + Exception Handling + + Iterators and Closures + + Garbage Collection + + Dynamic Loading of Object files(on some architecture) + + Highly Portable(works on many UNIX machines, and on DOS, + Windows, Mac, BeOS etc.) + +Author: Matsumoto "matz" Yukihiro <matz@zetabits.com> +WWW: http://www.ruby-lang.org/en/ diff --git a/lang/ruby-devel/pkg-message b/lang/ruby-devel/pkg-message new file mode 100644 index 000000000000..ba5b117d70bf --- /dev/null +++ b/lang/ruby-devel/pkg-message @@ -0,0 +1,21 @@ +==== +When you are to build a ruby related port for Ruby 1.7, please define +RUBY_VER=1.7 in the make command line, or put it in your +/etc/make.conf if you want to always use Ruby 1.7 instead of 1.6. + +Note that some stuff that comes with the standard Ruby distribution is +provided as separate ports: + + databases/ruby-gdbm: GDBM module + + lang/ruby-tcltklib: Tcl/Tk libraries + japanese/ruby-tcltklib: Tcl/Tk libraries for Japanized Tcl/Tk + + x11-toolkits/ruby-tk: Tk modules + japanese/ruby-tk: Tk modules for Japanized Tcl/Tk + + lang/ruby-mode.el: Emacs lisp modules + +Please install them as occasion demands. (Don't forget to define +RUBY_VER=1.7 when you build them) +==== diff --git a/lang/ruby-devel/pkg-plist b/lang/ruby-devel/pkg-plist new file mode 100644 index 000000000000..934ba79ec63f --- /dev/null +++ b/lang/ruby-devel/pkg-plist @@ -0,0 +1,204 @@ +bin/irb +bin/irb%%_RUBY_SUFFIX%% +bin/ruby +bin/ruby%%_RUBY_SUFFIX%% +lib/lib%%RUBY_NAME%%.so +lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%% +%%RUBY_ARCHLIBDIR%%/config.h +%%RUBY_ARCHLIBDIR%%/curses.so +%%RUBY_ARCHLIBDIR%%/dbm.so +%%RUBY_ARCHLIBDIR%%/defines.h +%%RUBY_ARCHLIBDIR%%/dln.h +%%RUBY_ARCHLIBDIR%%/env.h +%%RUBY_ARCHLIBDIR%%/etc.so +%%RUBY_ARCHLIBDIR%%/fcntl.so +%%RUBY_ARCHLIBDIR%%/intern.h +%%RUBY_ARCHLIBDIR%%/lib%%RUBY_NAME%%.a +%%RUBY_ARCHLIBDIR%%/md5.so +%%RUBY_ARCHLIBDIR%%/nkf.so +%%RUBY_ARCHLIBDIR%%/node.h +%%RUBY_ARCHLIBDIR%%/pty.so +%%RUBY_ARCHLIBDIR%%/rbconfig.rb +%%RUBY_ARCHLIBDIR%%/re.h +%%RUBY_ARCHLIBDIR%%/readline.so +%%RUBY_ARCHLIBDIR%%/regex.h +%%RUBY_ARCHLIBDIR%%/ruby.h +%%RUBY_ARCHLIBDIR%%/rubyio.h +%%RUBY_ARCHLIBDIR%%/rubysig.h +%%RUBY_ARCHLIBDIR%%/sdbm.so +%%RUBY_ARCHLIBDIR%%/socket.so +%%RUBY_ARCHLIBDIR%%/st.h +%%RUBY_ARCHLIBDIR%%/util.h +%%RUBY_ARCHLIBDIR%%/version.h +%%RUBY_LIBDIR%%/English.rb +%%RUBY_LIBDIR%%/Env.rb +%%RUBY_LIBDIR%%/base64.rb +%%RUBY_LIBDIR%%/cgi-lib.rb +%%RUBY_LIBDIR%%/cgi.rb +%%RUBY_LIBDIR%%/complex.rb +%%RUBY_LIBDIR%%/date.rb +%%RUBY_LIBDIR%%/date2.rb +%%RUBY_LIBDIR%%/debug.rb +%%RUBY_LIBDIR%%/delegate.rb +%%RUBY_LIBDIR%%/e2mmap.rb +%%RUBY_LIBDIR%%/eregex.rb +%%RUBY_LIBDIR%%/expect.rb +%%RUBY_LIBDIR%%/final.rb +%%RUBY_LIBDIR%%/finalize.rb +%%RUBY_LIBDIR%%/find.rb +%%RUBY_LIBDIR%%/ftools.rb +%%RUBY_LIBDIR%%/ftplib.rb +%%RUBY_LIBDIR%%/getoptlong.rb +%%RUBY_LIBDIR%%/getopts.rb +%%RUBY_LIBDIR%%/importenv.rb +%%RUBY_LIBDIR%%/irb.rb +%%RUBY_LIBDIR%%/jcode.rb +%%RUBY_LIBDIR%%/kconv.rb +%%RUBY_LIBDIR%%/mailread.rb +%%RUBY_LIBDIR%%/mathn.rb +%%RUBY_LIBDIR%%/matrix.rb +%%RUBY_LIBDIR%%/mkmf.rb +%%RUBY_LIBDIR%%/monitor.rb +%%RUBY_LIBDIR%%/mutex_m.rb +%%RUBY_LIBDIR%%/observer.rb +%%RUBY_LIBDIR%%/open3.rb +%%RUBY_LIBDIR%%/ostruct.rb +%%RUBY_LIBDIR%%/parsearg.rb +%%RUBY_LIBDIR%%/parsedate.rb +%%RUBY_LIBDIR%%/ping.rb +%%RUBY_LIBDIR%%/profile.rb +%%RUBY_LIBDIR%%/pstore.rb +%%RUBY_LIBDIR%%/rational.rb +%%RUBY_LIBDIR%%/readbytes.rb +%%RUBY_LIBDIR%%/shellwords.rb +%%RUBY_LIBDIR%%/singleton.rb +%%RUBY_LIBDIR%%/sync.rb +%%RUBY_LIBDIR%%/telnet.rb +%%RUBY_LIBDIR%%/tempfile.rb +%%RUBY_LIBDIR%%/thread.rb +%%RUBY_LIBDIR%%/thwait.rb +%%RUBY_LIBDIR%%/timeout.rb +%%RUBY_LIBDIR%%/tracer.rb +%%RUBY_LIBDIR%%/weakref.rb +%%RUBY_LIBDIR%%/cgi/session.rb +%%RUBY_LIBDIR%%/irb/xmp.rb +%%RUBY_LIBDIR%%/irb/ws-for-case-2.rb +%%RUBY_LIBDIR%%/irb/workspace.rb +%%RUBY_LIBDIR%%/irb/version.rb +%%RUBY_LIBDIR%%/irb/slex.rb +%%RUBY_LIBDIR%%/irb/ruby-token.rb +%%RUBY_LIBDIR%%/irb/ruby-lex.rb +%%RUBY_LIBDIR%%/irb/multi-irb.rb +%%RUBY_LIBDIR%%/irb/locale.rb +%%RUBY_LIBDIR%%/irb/loader.rb +%%RUBY_LIBDIR%%/irb/input-method.rb +%%RUBY_LIBDIR%%/irb/init.rb +%%RUBY_LIBDIR%%/irb/help.rb +%%RUBY_LIBDIR%%/irb/frame.rb +%%RUBY_LIBDIR%%/irb/extend-command.rb +%%RUBY_LIBDIR%%/irb/context.rb +%%RUBY_LIBDIR%%/irb/completion.rb +%%RUBY_LIBDIR%%/irb/lc/error.rb +%%RUBY_LIBDIR%%/irb/lc/help-message +%%RUBY_LIBDIR%%/irb/lc/ja/error.rb +%%RUBY_LIBDIR%%/irb/lc/ja/help-message +%%RUBY_LIBDIR%%/net/ftp.rb +%%RUBY_LIBDIR%%/net/http.rb +%%RUBY_LIBDIR%%/net/imap.rb +%%RUBY_LIBDIR%%/net/pop.rb +%%RUBY_LIBDIR%%/net/protocol.rb +%%RUBY_LIBDIR%%/net/smtp.rb +%%RUBY_LIBDIR%%/net/telnet.rb +@exec /bin/mkdir -p %D/%%RUBY_SITEARCHLIBDIR%% +@dirrm %%RUBY_SITEARCHLIBDIR%% +@dirrm %%RUBY_SITELIBDIR%% +@unexec rmdir %D/lib/ruby/site_ruby 2>/dev/null || true +@dirrm %%RUBY_ARCHLIBDIR%% +@dirrm %%RUBY_LIBDIR%%/cgi +@dirrm %%RUBY_LIBDIR%%/irb/lc/ja +@dirrm %%RUBY_LIBDIR%%/irb/lc +@dirrm %%RUBY_LIBDIR%%/irb +@dirrm %%RUBY_LIBDIR%%/net +@dirrm %%RUBY_LIBDIR%% +@unexec rmdir %D/lib/ruby 2>/dev/null || true +%%PORTDOCS%%%%RUBY_DOCDIR%%/README +%%PORTDOCS%%%%RUBY_DOCDIR%%/README.EXT +%%PORTDOCS%%%%RUBY_DOCDIR%%/README.EXT.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/README.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/etc/etc.txt +%%PORTDOCS%%%%RUBY_DOCDIR%%/etc/etc.txt.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/irb/irb-tools.rd.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/irb/irb.rd +%%PORTDOCS%%%%RUBY_DOCDIR%%/irb/irb.rd.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/md5/md5.txt +%%PORTDOCS%%%%RUBY_DOCDIR%%/md5/md5.txt.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/pty/README +%%PORTDOCS%%%%RUBY_DOCDIR%%/pty/README.expect +%%PORTDOCS%%%%RUBY_DOCDIR%%/pty/README.expect.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/pty/README.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/readline/README +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/etc +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/irb +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/md5 +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/pty +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/readline +%%PORTDOCS%%@unexec rmdir %D/%%RUBY_DOCDIR%% 2>/dev/null || true +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/README +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/biorhythm.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/cal.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/cbreak.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/clnt.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/dbmtest.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/dir.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/eval.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/export.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/exyacc.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fact.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.awk +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.pl +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.py +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.scm +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/freq.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/from.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fullpath.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/getopts.test +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/goodfriday.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/io.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/irb.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/less.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/list.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/list2.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/list3.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mine.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mkproto.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mpart.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mrshtest.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/observ.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/occur.pl +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/occur.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/occur2.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/philos.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/pi.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rbc.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rcs.awk +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rcs.dat +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rcs.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/regx.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rename.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sieve.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/svr.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/test.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/time.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/trojan.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/tsvr.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/uumerge.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/curses/hello.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/curses/rain.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/curses/view.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/pty/expect_sample.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/pty/script.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/pty/shl.rb +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/curses +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/pty +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%% diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile new file mode 100644 index 000000000000..a3adc82061b9 --- /dev/null +++ b/lang/ruby18/Makefile @@ -0,0 +1,102 @@ +# New ports collection makefile for: ruby-devel +# Date created: 6 May 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= ruby +PORTVERSION= ${RUBY_PORTVERSION} +CATEGORIES= lang ruby ipv6 +MASTER_SITES= http://www.ruby-lang.org/~knu/ # ${MASTER_SITE_RUBY} +MASTER_SITE_SUBDIR= ${RUBY_VER} +DISTNAME= ${RUBY_DISTNAME} +DIST_SUBDIR= ruby + +PATCH_SITES= http://www.ruby-lang.org/~knu/ +PATCHFILES= ${RUBY_DISTNAME}-${RUBY_PATCHLEVEL}.patch.gz +PATCH_DIST_STRIP= -p1 + +MAINTAINER= knu@FreeBSD.org + +RUBY_VER= 1.7 + +USE_RUBY= yes +RUBY_NO_BUILD_DEPENDS= yes +RUBY_NO_RUN_DEPENDS= yes + +USE_AUTOCONF= yes +INSTALLS_SHLIB= yes +WRKSRC= ${RUBY_WRKSRC} +CONFIGURE_ARGS= --enable-shared +MAN1= ruby${_RUBY_SUFFIX}.1 +MLINKS= ruby${_RUBY_SUFFIX}.1 ruby.1 + +.include <bsd.port.pre.mk> + +.if !empty(RUBY_SUFFIX) +CONFIGURE_ARGS+= --program-suffix="${RUBY_SUFFIX}" +.endif + +.if ${OSVERSION} >= 400014 +CONFIGURE_ARGS+= --enable-ipv6 +.endif + +IRB= ${LOCALBASE}/bin/irb + +post-patch: + find ${WRKSRC} -name '*.orig' -delete +.for d in Win32API + ${RM} -rf ${WRKSRC}/ext/${d} +.endfor +.for d in gdbm tcltklib tk + ${MV} ${WRKSRC}/ext/${d} ${WRKDIR}/ +.endfor + +post-install: +.if ${STRIP} == -s + strip ${RUBY} +.endif +.if empty(RUBY_SUFFIX) + ${MV} -f ${RUBY} ${RUBY_WITH_SUFFIX} + ${LN} -fs ${RUBY_WITH_SUFFIX} ${RUBY} + ${MV} ${PREFIX}/man/man1/ruby.1 ${PREFIX}/man/man1/ruby${_RUBY_SUFFIX}.1 +.else + ${LN} -fs ${RUBY} ${PREFIX}/bin/ruby +.endif + ${RUBY} ${RUBY_FLAGS} -i -p \ + -e 'if $$. == 1; ' \ + -e ' if /^#!/; ' \ + -e ' sub /^#!\s*\S*(\benv\s+)?\bruby/, "#!${RUBY_WITH_SUFFIX}";' \ + -e ' else;' \ + -e ' $$_ = "#!${RUBY_WITH_SUFFIX}\n" + $$_;' \ + -e ' end;' \ + -e 'end' \ + ${IRB} + ${MV} -f ${IRB} ${IRB}${_RUBY_SUFFIX} + ${LN} -fs ${IRB}${_RUBY_SUFFIX} ${IRB} +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR} + ${MKDIR} ${RUBY_EXAMPLESDIR}/curses + ${INSTALL_DATA} ${WRKSRC}/ext/curses/hello.rb ${WRKSRC}/ext/curses/rain.rb ${WRKSRC}/ext/curses/view.rb ${RUBY_EXAMPLESDIR}/curses + ${MKDIR} ${RUBY_EXAMPLESDIR}/pty + ${INSTALL_DATA} ${WRKSRC}/ext/pty/expect_sample.rb ${WRKSRC}/ext/pty/script.rb ${WRKSRC}/ext/pty/shl.rb ${RUBY_EXAMPLESDIR}/pty + ${MKDIR} ${RUBY_DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/README* ${RUBY_DOCDIR} + ${MKDIR} ${RUBY_DOCDIR}/etc + ${INSTALL_DATA} ${WRKSRC}/ext/etc/etc.txt* ${RUBY_DOCDIR}/etc + ${MKDIR} ${RUBY_DOCDIR}/md5 + ${INSTALL_DATA} ${WRKSRC}/ext/md5/md5.txt* ${RUBY_DOCDIR}/md5 + ${MKDIR} ${RUBY_DOCDIR}/pty + ${INSTALL_DATA} ${WRKSRC}/ext/pty/README* ${RUBY_DOCDIR}/pty + ${MKDIR} ${RUBY_DOCDIR}/readline + ${INSTALL_DATA} ${WRKSRC}/ext/readline/README ${RUBY_DOCDIR}/readline + ${CP} -R ${WRKSRC}/doc/irb ${RUBY_DOCDIR}/ +.endif + @${CAT} ${PKGMESSAGE} + +test: + @(cd ${WRKSRC}; ${MAKE} test) + +.include <bsd.port.post.mk> diff --git a/lang/ruby18/distinfo b/lang/ruby18/distinfo new file mode 100644 index 000000000000..a5b174492360 --- /dev/null +++ b/lang/ruby18/distinfo @@ -0,0 +1,2 @@ +MD5 (ruby/ruby-1.7.0-alpha-2001.05.03.tar.gz) = 022b3564b62cb9c55aaff90920361dca +MD5 (ruby/ruby-1.7.0-alpha-2001.05.03-1.patch.gz) = 72bd5930b22046f247a4f51141363341 diff --git a/lang/ruby18/pkg-comment b/lang/ruby18/pkg-comment new file mode 100644 index 000000000000..0909290ae04a --- /dev/null +++ b/lang/ruby18/pkg-comment @@ -0,0 +1 @@ +An object-oriented interpreted scripting language diff --git a/lang/ruby18/pkg-descr b/lang/ruby18/pkg-descr new file mode 100644 index 000000000000..f60c69314e2d --- /dev/null +++ b/lang/ruby18/pkg-descr @@ -0,0 +1,20 @@ +Ruby is the interpreted scripting language for quick and +easy object-oriented programming. It has many features to +process text files and to do system management tasks (as in +Perl). It is simple, straight-forward, and extensible. + +Features of Ruby are shown below. + + + Simple Syntax + + *Normal* Object-Oriented features(ex. class, method calls) + + *Advanced* Object-Oriented features(ex. Mix-in, Singleton-method) + + Operator Overloading + + Exception Handling + + Iterators and Closures + + Garbage Collection + + Dynamic Loading of Object files(on some architecture) + + Highly Portable(works on many UNIX machines, and on DOS, + Windows, Mac, BeOS etc.) + +Author: Matsumoto "matz" Yukihiro <matz@zetabits.com> +WWW: http://www.ruby-lang.org/en/ diff --git a/lang/ruby18/pkg-message b/lang/ruby18/pkg-message new file mode 100644 index 000000000000..ba5b117d70bf --- /dev/null +++ b/lang/ruby18/pkg-message @@ -0,0 +1,21 @@ +==== +When you are to build a ruby related port for Ruby 1.7, please define +RUBY_VER=1.7 in the make command line, or put it in your +/etc/make.conf if you want to always use Ruby 1.7 instead of 1.6. + +Note that some stuff that comes with the standard Ruby distribution is +provided as separate ports: + + databases/ruby-gdbm: GDBM module + + lang/ruby-tcltklib: Tcl/Tk libraries + japanese/ruby-tcltklib: Tcl/Tk libraries for Japanized Tcl/Tk + + x11-toolkits/ruby-tk: Tk modules + japanese/ruby-tk: Tk modules for Japanized Tcl/Tk + + lang/ruby-mode.el: Emacs lisp modules + +Please install them as occasion demands. (Don't forget to define +RUBY_VER=1.7 when you build them) +==== diff --git a/lang/ruby18/pkg-plist b/lang/ruby18/pkg-plist new file mode 100644 index 000000000000..934ba79ec63f --- /dev/null +++ b/lang/ruby18/pkg-plist @@ -0,0 +1,204 @@ +bin/irb +bin/irb%%_RUBY_SUFFIX%% +bin/ruby +bin/ruby%%_RUBY_SUFFIX%% +lib/lib%%RUBY_NAME%%.so +lib/lib%%RUBY_NAME%%.so.%%RUBY_SHLIBVER%% +%%RUBY_ARCHLIBDIR%%/config.h +%%RUBY_ARCHLIBDIR%%/curses.so +%%RUBY_ARCHLIBDIR%%/dbm.so +%%RUBY_ARCHLIBDIR%%/defines.h +%%RUBY_ARCHLIBDIR%%/dln.h +%%RUBY_ARCHLIBDIR%%/env.h +%%RUBY_ARCHLIBDIR%%/etc.so +%%RUBY_ARCHLIBDIR%%/fcntl.so +%%RUBY_ARCHLIBDIR%%/intern.h +%%RUBY_ARCHLIBDIR%%/lib%%RUBY_NAME%%.a +%%RUBY_ARCHLIBDIR%%/md5.so +%%RUBY_ARCHLIBDIR%%/nkf.so +%%RUBY_ARCHLIBDIR%%/node.h +%%RUBY_ARCHLIBDIR%%/pty.so +%%RUBY_ARCHLIBDIR%%/rbconfig.rb +%%RUBY_ARCHLIBDIR%%/re.h +%%RUBY_ARCHLIBDIR%%/readline.so +%%RUBY_ARCHLIBDIR%%/regex.h +%%RUBY_ARCHLIBDIR%%/ruby.h +%%RUBY_ARCHLIBDIR%%/rubyio.h +%%RUBY_ARCHLIBDIR%%/rubysig.h +%%RUBY_ARCHLIBDIR%%/sdbm.so +%%RUBY_ARCHLIBDIR%%/socket.so +%%RUBY_ARCHLIBDIR%%/st.h +%%RUBY_ARCHLIBDIR%%/util.h +%%RUBY_ARCHLIBDIR%%/version.h +%%RUBY_LIBDIR%%/English.rb +%%RUBY_LIBDIR%%/Env.rb +%%RUBY_LIBDIR%%/base64.rb +%%RUBY_LIBDIR%%/cgi-lib.rb +%%RUBY_LIBDIR%%/cgi.rb +%%RUBY_LIBDIR%%/complex.rb +%%RUBY_LIBDIR%%/date.rb +%%RUBY_LIBDIR%%/date2.rb +%%RUBY_LIBDIR%%/debug.rb +%%RUBY_LIBDIR%%/delegate.rb +%%RUBY_LIBDIR%%/e2mmap.rb +%%RUBY_LIBDIR%%/eregex.rb +%%RUBY_LIBDIR%%/expect.rb +%%RUBY_LIBDIR%%/final.rb +%%RUBY_LIBDIR%%/finalize.rb +%%RUBY_LIBDIR%%/find.rb +%%RUBY_LIBDIR%%/ftools.rb +%%RUBY_LIBDIR%%/ftplib.rb +%%RUBY_LIBDIR%%/getoptlong.rb +%%RUBY_LIBDIR%%/getopts.rb +%%RUBY_LIBDIR%%/importenv.rb +%%RUBY_LIBDIR%%/irb.rb +%%RUBY_LIBDIR%%/jcode.rb +%%RUBY_LIBDIR%%/kconv.rb +%%RUBY_LIBDIR%%/mailread.rb +%%RUBY_LIBDIR%%/mathn.rb +%%RUBY_LIBDIR%%/matrix.rb +%%RUBY_LIBDIR%%/mkmf.rb +%%RUBY_LIBDIR%%/monitor.rb +%%RUBY_LIBDIR%%/mutex_m.rb +%%RUBY_LIBDIR%%/observer.rb +%%RUBY_LIBDIR%%/open3.rb +%%RUBY_LIBDIR%%/ostruct.rb +%%RUBY_LIBDIR%%/parsearg.rb +%%RUBY_LIBDIR%%/parsedate.rb +%%RUBY_LIBDIR%%/ping.rb +%%RUBY_LIBDIR%%/profile.rb +%%RUBY_LIBDIR%%/pstore.rb +%%RUBY_LIBDIR%%/rational.rb +%%RUBY_LIBDIR%%/readbytes.rb +%%RUBY_LIBDIR%%/shellwords.rb +%%RUBY_LIBDIR%%/singleton.rb +%%RUBY_LIBDIR%%/sync.rb +%%RUBY_LIBDIR%%/telnet.rb +%%RUBY_LIBDIR%%/tempfile.rb +%%RUBY_LIBDIR%%/thread.rb +%%RUBY_LIBDIR%%/thwait.rb +%%RUBY_LIBDIR%%/timeout.rb +%%RUBY_LIBDIR%%/tracer.rb +%%RUBY_LIBDIR%%/weakref.rb +%%RUBY_LIBDIR%%/cgi/session.rb +%%RUBY_LIBDIR%%/irb/xmp.rb +%%RUBY_LIBDIR%%/irb/ws-for-case-2.rb +%%RUBY_LIBDIR%%/irb/workspace.rb +%%RUBY_LIBDIR%%/irb/version.rb +%%RUBY_LIBDIR%%/irb/slex.rb +%%RUBY_LIBDIR%%/irb/ruby-token.rb +%%RUBY_LIBDIR%%/irb/ruby-lex.rb +%%RUBY_LIBDIR%%/irb/multi-irb.rb +%%RUBY_LIBDIR%%/irb/locale.rb +%%RUBY_LIBDIR%%/irb/loader.rb +%%RUBY_LIBDIR%%/irb/input-method.rb +%%RUBY_LIBDIR%%/irb/init.rb +%%RUBY_LIBDIR%%/irb/help.rb +%%RUBY_LIBDIR%%/irb/frame.rb +%%RUBY_LIBDIR%%/irb/extend-command.rb +%%RUBY_LIBDIR%%/irb/context.rb +%%RUBY_LIBDIR%%/irb/completion.rb +%%RUBY_LIBDIR%%/irb/lc/error.rb +%%RUBY_LIBDIR%%/irb/lc/help-message +%%RUBY_LIBDIR%%/irb/lc/ja/error.rb +%%RUBY_LIBDIR%%/irb/lc/ja/help-message +%%RUBY_LIBDIR%%/net/ftp.rb +%%RUBY_LIBDIR%%/net/http.rb +%%RUBY_LIBDIR%%/net/imap.rb +%%RUBY_LIBDIR%%/net/pop.rb +%%RUBY_LIBDIR%%/net/protocol.rb +%%RUBY_LIBDIR%%/net/smtp.rb +%%RUBY_LIBDIR%%/net/telnet.rb +@exec /bin/mkdir -p %D/%%RUBY_SITEARCHLIBDIR%% +@dirrm %%RUBY_SITEARCHLIBDIR%% +@dirrm %%RUBY_SITELIBDIR%% +@unexec rmdir %D/lib/ruby/site_ruby 2>/dev/null || true +@dirrm %%RUBY_ARCHLIBDIR%% +@dirrm %%RUBY_LIBDIR%%/cgi +@dirrm %%RUBY_LIBDIR%%/irb/lc/ja +@dirrm %%RUBY_LIBDIR%%/irb/lc +@dirrm %%RUBY_LIBDIR%%/irb +@dirrm %%RUBY_LIBDIR%%/net +@dirrm %%RUBY_LIBDIR%% +@unexec rmdir %D/lib/ruby 2>/dev/null || true +%%PORTDOCS%%%%RUBY_DOCDIR%%/README +%%PORTDOCS%%%%RUBY_DOCDIR%%/README.EXT +%%PORTDOCS%%%%RUBY_DOCDIR%%/README.EXT.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/README.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/etc/etc.txt +%%PORTDOCS%%%%RUBY_DOCDIR%%/etc/etc.txt.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/irb/irb-tools.rd.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/irb/irb.rd +%%PORTDOCS%%%%RUBY_DOCDIR%%/irb/irb.rd.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/md5/md5.txt +%%PORTDOCS%%%%RUBY_DOCDIR%%/md5/md5.txt.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/pty/README +%%PORTDOCS%%%%RUBY_DOCDIR%%/pty/README.expect +%%PORTDOCS%%%%RUBY_DOCDIR%%/pty/README.expect.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/pty/README.jp +%%PORTDOCS%%%%RUBY_DOCDIR%%/readline/README +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/etc +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/irb +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/md5 +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/pty +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/readline +%%PORTDOCS%%@unexec rmdir %D/%%RUBY_DOCDIR%% 2>/dev/null || true +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/README +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/biorhythm.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/cal.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/cbreak.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/clnt.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/dbmtest.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/dir.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/eval.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/export.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/exyacc.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fact.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.awk +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.pl +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.py +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fib.scm +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/freq.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/from.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/fullpath.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/getopts.test +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/goodfriday.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/io.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/irb.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/less.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/list.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/list2.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/list3.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mine.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mkproto.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mpart.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/mrshtest.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/observ.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/occur.pl +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/occur.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/occur2.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/philos.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/pi.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rbc.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rcs.awk +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rcs.dat +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rcs.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/regx.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rename.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sieve.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/svr.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/test.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/time.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/trojan.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/tsvr.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/uumerge.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/curses/hello.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/curses/rain.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/curses/view.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/pty/expect_sample.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/pty/script.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/pty/shl.rb +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/curses +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/pty +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%% |