Permalink
Browse files

NetBSD latest pkgsrc

  • Loading branch information...
1 parent c016e0d commit 1972424b8aef23dc05a8e1f324d87a43808f1f33 itojun committed Jan 20, 2000
@@ -1,37 +1,39 @@
-# New ports collection makefile for: ruby
-# Version required: 1.2.5
-# Date created: 04 September 1997
-# Whom: Eiji-usagi-MATSUmoto <usagi@ruby.club.or.jp>
-#
-# $Id: Makefile,v 1.1.1.1 1999/08/10 09:14:31 itojun Exp $
+# $NetBSD: Makefile,v 1.8 2000/01/15 18:46:29 jlam Exp $
#
-DISTNAME= ruby-1.2.5
+DISTNAME= ruby-1.4.3
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.netlab.co.jp/pub/lang/ruby/${BRANCH_NAME}/ \
- ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/${BRANCH_NAME}/ \
- ftp://ftp.iij.ad.jp/pub/lang/ruby/${BRANCH_NAME}/ \
- ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/${BRANCH_NAME}/ \
- ftp://ftp.krnet.ne.jp/pub/ruby/${BRANCH_NAME}/ \
- ftp://mirror.nucba.ac.jp/mirror/ruby/${BRANCH_NAME}/
-
-PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/ \
- ftp://ftp.v6.kame.net/pub/kame/misc/
-PATCHFILES= ruby-125-v6-19990509.diff.gz
-PATCH_DIST_STRIP= -p1
-
-MAINTAINER= itojun@kame.net
+MASTER_SITES= ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/ \
+ ftp://ftp.iij.ad.jp/pub/lang/ruby/ \
+ ftp://ftp.netlab.co.jp/pub/lang/ruby/ \
+ ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/ \
+ ftp://ftp.krnet.ne.jp/pub/ruby/ \
+ ftp://ftp.mirror.nucba.ac.jp/mirror/ruby/ \
+ http://mirror.nucba.ac.jp/mirror/ruby/
+
+MAINTAINER= sakamoto@netbsd.org
+HOMEPAGE= http://www.ruby-lang.org/
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/bison:../../devel/bison
+DEPENDS+= gdbm-1.7.3:../../databases/gdbm
+DEPENDS+= ncurses>=4.2:../../devel/ncurses
+DEPENDS+= readline-4.0:../../devel/readline
GNU_CONFIGURE= yes
-#USE_AUTOCONF= yes
-MAN1= ruby.1
+CONFIGURE_ARGS+= --enable-shared
+MAKE_ENV+= DLDFLAGS="-L${LOCALBASE}/lib -R${LOCALBASE}/lib -L${X11BASE}/lib -R${X11BASE}/lib"
-BRANCH_NAME= 1.2
+PLIST_SUBST= RUBY_VERSION=1.4
+
+post-patch:
+ ${RM} -f ${WRKSRC}/ext/tcltklib/MANIFEST
+ ${RM} -f ${WRKSRC}/ext/tk/MANIFEST
post-install:
strip ${PREFIX}/bin/ruby
-
-test:
- @(cd ${WRKSRC}; make test)
+ ${MKDIR} ${PREFIX}/share/examples/ruby
+ ${INSTALL_DATA} ${WRKSRC}/sample/* ${PREFIX}/share/examples/ruby
+ ${MKDIR} ${PREFIX}/share/examples/ruby/misc
+ ${INSTALL_DATA} ${WRKSRC}/misc/* ${PREFIX}/share/examples/ruby/misc
.include "../../mk/bsd.pkg.mk"
@@ -1,4 +1,3 @@
-$NetBSD$
+$NetBSD: md5,v 1.5 1999/12/14 07:16:05 sakamoto Exp $
-MD5 (ruby-1.2.5.tar.gz) = 3ec298b7697843733ea0230f23b626b6
-MD5 (ruby-125-v6-19990509.diff.gz) = 5e636425ca5680a52e7fa9f687303f42
+MD5 (ruby-1.4.3.tar.gz) = ff2df3fa6855e087998bf5d1fb6dfbd9
@@ -0,0 +1,5 @@
+$NetBSD: patch-sum,v 1.2 1999/12/14 07:16:05 sakamoto Exp $
+
+MD5 (patch-aa) = 63413152889269cdc5c2cb9f64e537e2
+MD5 (patch-ab) = e132c46af84d0969cf0e00f6ffb95bac
+MD5 (patch-ac) = b7598f85460293ac502d0d9c81260e2b
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.2 1999/12/14 07:16:05 sakamoto Exp $
+
+--- dln.c.orig Wed Nov 10 17:54:41 1999
++++ dln.c Tue Dec 14 13:12:16 1999
+@@ -80,7 +80,7 @@
+ #endif
+
+ #ifndef FUNCNAME_PATTERN
+-# if defined(__hp9000s300) || (defined(__NetBSD__) && (!defined(__alpha__) && !defined(__mips__))) || defined(__BORLANDC__) || (defined(__FreeBSD__) && __FreeBSD__ < 3) || defined(__OpenBSD__) || defined(NeXT) || defined(__WATCOMC__) || defined(__APPLE__)
++# if defined(__hp9000s300) || (defined(__NetBSD__) && !defined(__ELF__)) || defined(__BORLANDC__) || (defined(__FreeBSD__) && __FreeBSD__ < 3) || defined(__OpenBSD__) || defined(NeXT) || defined(__WATCOMC__) || defined(__APPLE__)
+ # define FUNCNAME_PATTERN "_Init_%.200s"
+ # else
+ # define FUNCNAME_PATTERN "Init_%.200s"
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1 1999/09/22 12:33:30 sakamoto Exp $
+
+--- ./configure.in.orig Mon Aug 30 16:00:47 1999
++++ ./configure.in Wed Sep 22 19:51:42 1999
+@@ -680,9 +680,11 @@
+ netbsd*)
+ LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)'
+- case "$host_cpu" in
+- alpha|mipsel|mipseb|powerpc|sparc64) # ELF platforms
+- LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so' ;;
+- *) LIBRUBY_ALIASES= ;; # a.out platforms
+- esac
++ rb_cv_netbsd_elf=`echo|cc -E -v - 2>&1 |grep __ELF__`
++ if test "x$rb_cv_netbsd_elf" != "x" ; then
++ LIBRUBYARG='$(LIBRUBY_SO)'
++ LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so'
++ else
++ LIBRUBY_ALIASES=''
++ fi
+ ;;
+ solaris*)
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 1999/09/22 12:33:30 sakamoto Exp $
+
+--- ./configure.orig Mon Aug 30 23:14:28 1999
++++ ./configure Wed Sep 22 19:53:16 1999
+@@ -4581,9 +4581,11 @@
+ netbsd*)
+ LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)'
+- case "$host_cpu" in
+- alpha|mipsel|mipseb|powerpc|sparc64) # ELF platforms
+- LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so' ;;
+- *) LIBRUBY_ALIASES= ;; # a.out platforms
+- esac
++ rb_cv_netbsd_elf=`echo|cc -E -v - 2>&1 |grep __ELF__`
++ if test "x$rb_cv_netbsd_elf" != "x" ; then
++ LIBRUBYARG='$(LIBRUBY_SO)'
++ LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so'
++ else
++ LIBRUBY_ALIASES=''
++ fi
+ ;;
+ solaris*)
@@ -1 +1 @@
-An object-oriented interpreted scripting language
+the Object-Oriented Script Language
@@ -1,9 +1,13 @@
+From the distribution README:
+
+* What's Ruby
+
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.
+Perl). It is simple, straight-forward, and extensible.
-Features of ruby is shown below.
+* Features of Ruby
+ Simple Syntax
+ *Normal* Object-Oriented features(ex. class, method calls)
@@ -14,5 +18,3 @@ Features of ruby is shown below.
+ Garbage Collection
+ Dynamic Loading of Object files(on some architecture)
+ Highly Portable(works on many UNIX machines)
-
-The ruby home page is at http://www.netlab.co.jp/ruby/.
Oops, something went wrong.

0 comments on commit 1972424

Please sign in to comment.