ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/boost-toolfile.spec
(Generate patch)

Comparing COMP/CMSDIST/boost-toolfile.spec (file contents):
Revision 1.1 by eulisse, Tue Jun 27 13:14:22 2006 UTC vs.
Revision 1.3 by muzaffar, Tue Aug 10 14:20:14 2010 UTC

# Line 1 | Line 1
1 < ### RPM configuration boost-toolfile 1.33.1
2 < ## IMPORT scramtoolbox-common
3 <
4 < Source: none
1 > ### RPM external boost-toolfile 1.0
2   Requires: boost
3 + %prep
4  
5   %build
6 +
7   %install
9 %define toolfilePath %toolBoxDir/General
10 mkdir -p %toolConfDir %toolfilePath
8  
9 < cat << \EOF_boost_TOOLCONF_FRAGMENT > %toolConfDir/boost.conf
10 < TOOL:boost
11 <   +BOOST_BASE:${BOOST_ROOT}
12 <   +PATH:${BOOST_ROOT}/bin
13 <   +LIBDIR:${BOOST_ROOT}/lib
14 <   +INCLUDE:${BOOST_ROOT}/include
15 < EOF_boost_TOOLCONF_FRAGMENT
16 <
17 < cat << \EOF_boost_TOOLFILE > %toolfilePath/boost
18 < <doc type=BuildSystem::ToolDoc version=1.0>
19 < <tool name=%toolname version=%v>
20 < <info url="http://www.boost.org"></info>
21 < <client>
22 < <environment name=BOOST_BASE>
23 < The top of the Boost distribution.
24 < </environment>
25 < <environment name=LIBDIR default="$BOOST_BASE/lib" type=lib></environment>
26 < <environment name=INCLUDE default="$BOOST_BASE/include/boost-1_33_1"></environment>
27 < </client>
28 < <external ref=sockets version=1.0 >
29 < <environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment>
30 < <environment name=PYTHONPATH value="$BOOST_BASE/lib/python2.4/site-packages" type=Runtime_path></environment>
31 < <architecture name=win32>
32 < <environment name=PATH value="$LIBDIR" type=Runtime_path></environment>
33 < </architecture>
34 < </tool>
35 < EOF_boost_TOOLFILE
36 < %files
37 < %toolfilePath/boost
38 < %toolConfDir/boost.conf
9 > mkdir -p %i/etc/scram.d
10 > # boost toolfile
11 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost.xml
12 > <tool name="boost" version="@TOOL_VERSION@">
13 >  <info url="http://www.boost.org"/>
14 >  <lib name="@BOOST_THREAD_LIB@"/>
15 >  <lib name="@BOOST_SIGNALS_LIB@"/>
16 >  <client>
17 >    <environment name="BOOST_BASE" default="@TOOL_ROOT@"/>
18 >    <environment name="LIBDIR" default="$BOOST_BASE/lib"/>
19 >    <environment name="INCLUDE" default="$BOOST_BASE/include"/>
20 >  </client>
21 >  <runtime name="CMSSW_FWLITE_INCLUDE_PATH" value="$BOOST_BASE/include" type="path"/>
22 >  <use name="sockets"/>
23 > </tool>
24 > EOF_TOOLFILE
25 >
26 > # boost_filesystem toolfile
27 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_filesystem.xml
28 > <tool name="boost_filesystem" version="@TOOL_VERSION@">
29 >  <info url="http://www.boost.org"/>
30 >  <lib name="@BOOST_FILESYSTEM_LIB@"/>
31 >  <use name="boost_system"/>
32 >  <use name="boost"/>
33 > </tool>
34 > EOF_TOOLFILE
35 >
36 > # boost_system toolfile
37 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_system.xml
38 > <tool name="boost_system" version="@TOOL_VERSION@">
39 >  <info url="http://www.boost.org"/>
40 >  <lib name="@BOOST_SYSTEM_LIB@"/>
41 >  <use name="boost"/>
42 > </tool>
43 > EOF_TOOLFILE
44 >
45 > # boost_program_options toolfile
46 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_program_options.xml
47 > <tool name="boost_program_options" version="@TOOL_VERSION@">
48 >  <info url="http://www.boost.org"/>
49 >  <lib name="@BOOST_PROGRAM_OPTIONS_LIB@"/>
50 >  <use name="boost"/>
51 > </tool>
52 > EOF_TOOLFILE
53 >
54 > # boost_python toolfile
55 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_python.xml
56 > <tool name="boost_python" version="@TOOL_VERSION@">
57 >  <info url="http://www.boost.org"/>
58 >  <lib name="@BOOST_PYTHON_LIB@"/>
59 >  <client>
60 >    <environment name="BOOST_PYTHON_BASE" default="@TOOL_ROOT@"/>
61 >    <environment name="PYSTE_EXEC" default="$BOOST_PYTHON_BASE/lib/python@PYTHONV@/site-packages/Pyste/pyste.py"/>
62 >    <environment name="LIBDIR" default="$BOOST_PYTHON_BASE/lib"/>
63 >    <environment name="INCLUDE" default="$BOOST_PYTHON_BASE/include"/>
64 >  </client>
65 >  <use name="elementtree"/>
66 >  <use name="gccxml"/>
67 >  <use name="python"/>
68 > </tool>
69 > EOF_TOOLFILE
70 >
71 > # boost_regex toolfile
72 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_regex.xml
73 > <tool name="boost_regex" version="@TOOL_VERSION@">
74 >  <info url="http://www.boost.org"/>
75 >  <lib name="@BOOST_REGEX_LIB@"/>
76 >  <use name="boost"/>
77 > </tool>
78 > EOF_TOOLFILE
79 >
80 > # boost_signals toolfile
81 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_signals.xml
82 > <tool name="boost_signals" version="@TOOL_VERSION@">
83 >  <info url="http://www.boost.org"/>
84 >  <lib name="@BOOST_SIGNALS_LIB@"/>
85 >  <use name="boost"/>
86 > </tool>
87 > EOF_TOOLFILE
88 >
89 > # boost_header toolfile
90 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_header.xml
91 > <tool name="boost_header" version="@TOOL_VERSION@">
92 >  <info url="http://www.boost.org"/>
93 >  <client>
94 >    <environment name="BOOSTHEADER_BASE" default="@TOOL_ROOT@"/>
95 >    <environment name="INCLUDE" default="$BOOSTHEADER_BASE/include"/>
96 >  </client>
97 > </tool>
98 > EOF_TOOLFILE
99 >
100 > case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
101 > getLibName()
102 > {
103 >  libname=`find $BOOST_ROOT/lib -name "libboost_$1.$so" -exec basename {} \;`
104 >  echo $libname | sed -e 's|[.][^-]*$||;s|^lib||'
105 > }
106 >
107 > export BOOST_THREAD_LIB=`getLibName thread`
108 > export BOOST_SIGNALS_LIB=`getLibName signals`
109 > export BOOST_FILESYSTEM_LIB=`getLibName filesystem`
110 > export BOOST_SYSTEM_LIB=`getLibName system`
111 > export BOOST_PROGRAM_OPTIONS_LIB=`getLibName program_options`
112 > export BOOST_PYTHON_LIB=`getLibName python`
113 > export BOOST_REGEX_LIB=`getLibName regex`
114 > export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
115 >
116 > ## IMPORT scram-tools-post

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines