RPM Package Manager, CVS Repository
/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson
Root: /v/rpm/cvs Email: jbj@rpm5.org
Module: rpm Date: 27-Sep-2010 23:31:18
Branch: HEAD Handle: 2010092721311800
Added files:
rpm/scripts ruby-config
Modified files:
rpm/scripts Makefile.am
Log:
- carry a ruby-config for ruby-1.9.x hinting.
Summary:
Revision Changes Path
1.68 +2 -2 rpm/scripts/Makefile.am
1.2 +57 -0 rpm/scripts/ruby-config
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/scripts/Makefile.am
============================================================================
$ cvs diff -u -r1.67 -r1.68 Makefile.am
--- rpm/scripts/Makefile.am 13 Sep 2010 22:36:39 -0000 1.67
+++ rpm/scripts/Makefile.am 27 Sep 2010 21:31:18 -0000 1.68
@@ -27,10 +27,10 @@
php.prov php.req rpm2cpio \
rpmdb_loadcvt rpmdiff rpmdiff.cgi \
rpm.daily rpm.log rpm.xinetd \
- rpmsort rt-reloc-wrapper.sh symset-table \
+ rpmsort rt-reloc-wrapper.sh ruby-config symset-table \
sql.prov sql.req symclash.py symclash.sh tcl.req tgpg trpm u_pkg.sh \
vcheck vpkg-provides.sh vpkg-provides2.sh \
- wdj_srpm \
+ wdj_srpm wdj_srpm_mongo \
wnh_filelists_yaml wnh_other_yaml wnh_primary_yaml \
xiu_stdenv \
yum_filelists_sqlite yum_other_sqlite yum_primary_sqlite \
@@ .
patch -p0 <<'@@ .'
Index: rpm/scripts/ruby-config
============================================================================
$ cvs diff -u -r0 -r1.2 ruby-config
--- /dev/null 2010-09-27 23:31:18.000000000 +0200
+++ ruby-config 2010-09-27 23:31:18.712871502 +0200
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+prefix=/usr/lib/rpm
+exec_prefix=/usr/lib/rpm
+exec_prefix_set=no
+includedir="${prefix}/include"
+libdir="${prefix}/lib"
+version=1.9.1
+platform=i686-linux
+
+usage="\
+Usage: ruby-config [--prefix] [--exec-prefix] [--version] [--cppflags] [--libs]"
+
+if test $# -eq 0; then
+ echo "${usage}" 1>&2
+ exit 1
+fi
+
+while test $# -gt 0; do
+ case "$1" in
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg= ;;
+ esac
+
+ case $1 in
+ --prefix=*)
+ prefix=$optarg
+ if test $exec_prefix_set = no ; then
+ exec_prefix=$optarg
+ fi
+ ;;
+ --prefix)
+ echo $prefix
+ ;;
+ --exec-prefix=*)
+ exec_prefix=$optarg
+ exec_prefix_set=yes
+ ;;
+ --exec-prefix)
+ echo $exec_prefix
+ ;;
+ --version)
+ echo "${version}"
+ ;;
+ --cppflags)
+ echo "-I${includedir}/ruby-${version}/ -I${includedir}/ruby-${version}/${platform}/"
+ ;;
+ --libs)
+ echo "-L${libdir}/ -lruby-static -lcrypt"
+ ;;
+ *)
+ echo "${usage}" 1>&2
+ exit 1
+ ;;
+ esac
+ shift
+done
@@ .
Received on Mon Sep 27 23:31:19 2010