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.4 by eulisse, Thu Jun 23 14:31:45 2011 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 >  <lib name="@BOOST_DATE_TIME_LIB@"/>
17 >  <client>
18 >    <environment name="BOOST_BASE" default="@TOOL_ROOT@"/>
19 >    <environment name="LIBDIR" default="$BOOST_BASE/lib"/>
20 >    <environment name="INCLUDE" default="$BOOST_BASE/include"/>
21 >  </client>
22 >  <runtime name="CMSSW_FWLITE_INCLUDE_PATH" value="$BOOST_BASE/include" type="path"/>
23 >  <use name="sockets"/>
24 > </tool>
25 > EOF_TOOLFILE
26 >
27 > # boost_filesystem toolfile
28 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_filesystem.xml
29 > <tool name="boost_filesystem" version="@TOOL_VERSION@">
30 >  <info url="http://www.boost.org"/>
31 >  <lib name="@BOOST_FILESYSTEM_LIB@"/>
32 >  <use name="boost_system"/>
33 >  <use name="boost"/>
34 > </tool>
35 > EOF_TOOLFILE
36 >
37 > # boost_system toolfile
38 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_system.xml
39 > <tool name="boost_system" version="@TOOL_VERSION@">
40 >  <info url="http://www.boost.org"/>
41 >  <lib name="@BOOST_SYSTEM_LIB@"/>
42 >  <use name="boost"/>
43 > </tool>
44 > EOF_TOOLFILE
45 >
46 > # boost_program_options toolfile
47 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_program_options.xml
48 > <tool name="boost_program_options" version="@TOOL_VERSION@">
49 >  <info url="http://www.boost.org"/>
50 >  <lib name="@BOOST_PROGRAM_OPTIONS_LIB@"/>
51 >  <use name="boost"/>
52 > </tool>
53 > EOF_TOOLFILE
54 >
55 > # boost_python toolfile
56 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_python.xml
57 > <tool name="boost_python" version="@TOOL_VERSION@">
58 >  <info url="http://www.boost.org"/>
59 >  <lib name="@BOOST_PYTHON_LIB@"/>
60 >  <client>
61 >    <environment name="BOOST_PYTHON_BASE" default="@TOOL_ROOT@"/>
62 >    <environment name="PYSTE_EXEC" default="$BOOST_PYTHON_BASE/lib/python@PYTHONV@/site-packages/Pyste/pyste.py"/>
63 >    <environment name="LIBDIR" default="$BOOST_PYTHON_BASE/lib"/>
64 >    <environment name="INCLUDE" default="$BOOST_PYTHON_BASE/include"/>
65 >  </client>
66 >  <use name="elementtree"/>
67 >  <use name="gccxml"/>
68 >  <use name="python"/>
69 > </tool>
70 > EOF_TOOLFILE
71 >
72 > # boost_regex toolfile
73 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_regex.xml
74 > <tool name="boost_regex" version="@TOOL_VERSION@">
75 >  <info url="http://www.boost.org"/>
76 >  <lib name="@BOOST_REGEX_LIB@"/>
77 >  <use name="boost"/>
78 > </tool>
79 > EOF_TOOLFILE
80 >
81 > # boost_signals toolfile
82 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_signals.xml
83 > <tool name="boost_signals" version="@TOOL_VERSION@">
84 >  <info url="http://www.boost.org"/>
85 >  <lib name="@BOOST_SIGNALS_LIB@"/>
86 >  <use name="boost"/>
87 > </tool>
88 > EOF_TOOLFILE
89 >
90 > # boost_header toolfile
91 > cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_header.xml
92 > <tool name="boost_header" version="@TOOL_VERSION@">
93 >  <info url="http://www.boost.org"/>
94 >  <client>
95 >    <environment name="BOOSTHEADER_BASE" default="@TOOL_ROOT@"/>
96 >    <environment name="INCLUDE" default="$BOOSTHEADER_BASE/include"/>
97 >  </client>
98 > </tool>
99 > EOF_TOOLFILE
100 >
101 > case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
102 > getLibName()
103 > {
104 >  libname=`find $BOOST_ROOT/lib -name "libboost_$1.$so" -exec basename {} \;`
105 >  echo $libname | sed -e 's|[.][^-]*$||;s|^lib||'
106 > }
107 >
108 > export BOOST_THREAD_LIB=`getLibName thread`
109 > export BOOST_SIGNALS_LIB=`getLibName signals`
110 > export BOOST_FILESYSTEM_LIB=`getLibName filesystem`
111 > export BOOST_DATE_TIME_LIB=`getLibName date_time`
112 > export BOOST_SYSTEM_LIB=`getLibName system`
113 > export BOOST_PROGRAM_OPTIONS_LIB=`getLibName program_options`
114 > export BOOST_PYTHON_LIB=`getLibName python`
115 > export BOOST_REGEX_LIB=`getLibName regex`
116 > export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
117 >
118 > ## IMPORT scram-tools-post

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines