OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 09-Mar-2007 11:59:05
Branch: HEAD Handle: 2007030910590500
Added files:
openpkg-src/cint cint.patch cint.spec
Log:
new package: cint 5.16.15 (C/C++ Interpreter)
Summary:
Revision Changes Path
1.1 +123 -0 openpkg-src/cint/cint.patch
1.1 +124 -0 openpkg-src/cint/cint.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/cint/cint.patch
============================================================================
$ cvs diff -u -r0 -r1.1 cint.patch
--- /dev/null 2007-03-09 11:58:38 +0100
+++ cint.patch 2007-03-09 11:59:05 +0100
@@ -0,0 +1,123 @@
+Index: Makefile
+--- Makefile.orig 2006-08-21 16:21:26 +0200
++++ Makefile 2007-03-09 11:09:57 +0100
+@@ -85,7 +85,7 @@
+ ##############################################################
+ # Link cint executable
+ ##############################################################
+-cint$(G__CFG_EXEEXT) : $(CINTLIB) main/G__setup$(G__CFG_OBJEXT) $(MAINO)
$(G__CFG_READLINELIB)
++cint$(G__CFG_EXEEXT) : $(CINTLIBSTATIC) main/G__setup$(G__CFG_OBJEXT)
$(MAINO) $(G__CFG_READLINELIB)
+ $(G__CFG_LD) $(G__CFG_LDFLAGS) $(G__CFG_LDOUT)cint$(G__CFG_EXEEXT) \
+ $(shell $(G__CFG_MANGLEPATHS) $(MAINO)) \
+ $(G__CFG_LIBP). $(G__CFG_LIBP)src $(subst @imp@,cint,$(G__CFG_LIBL)) \
+Index: configure
+--- configure.orig 2006-08-21 16:21:26 +0200
++++ configure 2007-03-09 11:29:32 +0100
+@@ -9,18 +9,9 @@
+ # This is a bash script, which works with any reasonable sh.
+ # Solaris sh is not, so we have to start bash, and call ourselves again.
+
+-[ "x$1" != "x__have_the_proper_shell@" ] && ( \
+-uname -a | grep -i sunos > /dev/null \
+- && (bash $0 __have_the_proper_shell@ "$*") \
+- || (sh $0 __have_the_proper_shell@ "$*") \
+-)
+-
+-[ "x$1" != "x__have_the_proper_shell@" ] && exit
+-shift
+-
+ # configure settings to build CINT
+
+-ARCHS=(linux linuxicc macgcc djgpp cygwin mingw mwerks hpux aix msvc7 msvc8
solaris solarisgcc)
++ARCHS=(generic freebsd linux linuxicc macgcc djgpp cygwin mingw mwerks hpux
aix msvc7 msvc8 solaris solarisgcc)
+
+ #############################################################
+ ###
+@@ -65,7 +56,7 @@
+ CXXMACROS="$CXXMACROS $CMACROS"
+
+ LD=g++
+- DEFAULTLIBS="-lm -ldl"
++ DEFAULTLIBS="-lm"
+ LDOUT="-o "
+ SOOUT="$LDOUT"
+ LIBP=-L
+@@ -93,13 +84,22 @@
+ STREAMDIR=stream
+ fi
+
+- BUILDREADLINE=1
++ BUILDREADLINE=
+ INPUTMODE=cint
+ INPUTMODELOCK=off
+ }
+
++function config_generic {
++ config_GCC_defaults
++}
++
++function config_freebsd {
++ config_GCC_defaults
++}
++
+ function config_linux {
+ config_GCC_defaults
++ DEFAULTLIBS="-lm -ldl"
+ }
+
+ function config_linuxicc {
+@@ -361,9 +361,8 @@
+ CINTEXLIBDIR=$1
+ }
+
+-function processflag_readlinelib {
+- READLINELIB=$1
+- BUILDREADLINE=
++function processflag_readline {
++ READLINE=$1
+ }
+
+ # process options
+@@ -449,38 +448,11 @@
+ echo Setting cintex-incdir=$REFLEXLIBDIR
+ fi
+
+-if [ "$READLINELIB" = "" -a "$BUILDREADLINE" != "" ]; then
+- for d in /usr/local/lib /usr/lib /sw/lib; do
+- if [ -f ${d}/libreadline$LIBEXT ]; then
+- READLINELIB=$d/libreadline$LIBEXT
+- BUILDREADLINE=
+- break
+- fi
+- done
+-fi
+ # want readline?
+-if [ "$BUILDREADLINE" != "" ]; then
+- READLINELIB=readline/libreadline$LIBEXT
+-fi
+-if [ "$READLINELIB" != "" -o "$BUILDREADLINE" != "" ]; then
+- CXXFLAGS="$CXXFLAGS -DG__GNUREADLINE"
+- echo "Using $READLINELIB"
+-
+- # look for curses
+- if [ "$CURSESLIB" = "" ]; then
+- for d in /usr/local/lib /usr/lib /sw/lib; do
+- if [ -f ${d}/libncurses$LIBEXT ]; then
+- CURSESLIB=$d/libncurses$LIBEXT
+- break
+- elif [ -f ${d}/libcurses$LIBEXT ]; then
+- CURSESLIB=$d/libcurses$LIBEXT
+- break
+- fi
+- done
+- fi
+- if [ "$CURSESLIB" != "" ]; then
+- echo "Using $CURSESLIB"
+- fi
++if [ "$READLINE" != "" ]; then
++ CXXFLAGS="$CXXFLAGS -DG__GNUREADLINE -I$PREFIX/include/ncurses
-I$PREFIX/include"
++ READLINELIB="$PREFIX/lib/libreadline.a"
++ CURSESLIB="$PREFIX/lib/libncurses.a"
+ fi
+
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/cint/cint.spec
============================================================================
$ cvs diff -u -r0 -r1.1 cint.spec
--- /dev/null 2007-03-09 11:58:38 +0100
+++ cint.spec 2007-03-09 11:59:05 +0100
@@ -0,0 +1,124 @@
+##
+## cint.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package version
+%define V_maj 5.16
+%define V_min 15
+
+# package information
+Name: cint
+Summary: C/C++ Interpreter
+URL: http://root.cern.ch/root/Cint.html
+Vendor: Masaharu Goto, ROOT/CERN
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: Language
+License: BSD-style
+Version: %{V_maj}.%{V_min}
+Release: 20070309
+
+# package options
+%option with_readline no
+
+# list of sources
+Source0:
ftp://ftp.openpkg.org/sources/CPY/VERSIONED/cint/cint-%{version}.tar.gz
+Patch0: cint.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20020206, make, gcc, gcc::with_cxx = yes
+PreReq: OpenPKG, openpkg >= 20020206
+%if "%{with_readline}" == "yes"
+BuildPreReq: ncurses, readline
+PreReq: ncurses, readline
+%endif
+AutoReq: no
+AutoReqProv: no
+
+%description
+ CINT is a C/C++ interpreter aimed at processing C/C++ scripts. CINT
+ covers about 95% of ANSI C and 85% of C++. CINT, written in ANSI
+ C (about 80000 loc), is solid enough to interpret itself and let
+ the interpreted version execute a program. A CINT script can call
+ compiled classes/functions and compiled code can make callbacks to
+ CINT user defined functions. Utilities , like makecint and rootcint,
+ automate the process of embedding compiled C/C++ library code as
+ shared objects. Source files and shared objects can be dynamically
+ loaded/unloaded without stopping the CINT process. CINT offers a GDB
+ like debugging environment for interepreted programs.
+
+%track
+ prog cint = {
+ version = %{version}
+ url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/cint/
+ regex = cint-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q -c -n cint-%{V_maj}.%{V_min}
+ %patch -p0
+
+%build
+ arch=""
+ case "%{l_target}" in
+ *-freebsd*) arch="freebsd" ;;
+ *-linux*) arch="linux" ;;
+ *-solaris*) arch="solarisgcc" ;;
+ * ) arch="generic" ;;
+ esac
+ %{l_bash} ./configure \
+ --prefix=%{l_prefix} \
+%if "%{with_readline}" == "yes"
+ --readline=%{l_prefix} \
+%endif
+ --arch="$arch"
+ %{l_make} %{l_mflags}
+ find . -type d -name CVS -print | xargs rm -rf
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
+ $RPM_BUILD_ROOT%{l_prefix}/include/cint \
+ $RPM_BUILD_ROOT%{l_prefix}/lib/cint \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1
+ %{l_shtool} install -c -s -m 755 \
+ cint makecint \
+ $RPM_BUILD_ROOT%{l_prefix}/bin/
+ %{l_shtool} install -c -m 644 \
+ doc/man1/cint.1 doc/man1/makecint.1 \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1/
+ %{l_shtool} install -c -m 644 \
+ libcint.a $RPM_BUILD_ROOT%{l_prefix}/lib/
+ cp -rp include/* $RPM_BUILD_ROOT%{l_prefix}/include/cint/
+ cp -rp lib/* $RPM_BUILD_ROOT%{l_prefix}/lib/cint/
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]