Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/arp-warp-bin/files: 7.1-setup-2.patch
Date: Sat, 01 Jun 2013 15:48:00
Message-Id: 20130601154754.335822171E@flycatcher.gentoo.org
1 jlec 13/06/01 15:47:54
2
3 Added: 7.1-setup-2.patch
4 Log:
5 sci-chemistry/arp-warp-bin: Bump to new python r1 eclasses
6
7 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
8
9 Revision Changes Path
10 1.1 sci-chemistry/arp-warp-bin/files/7.1-setup-2.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/files/7.1-setup-2.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/files/7.1-setup-2.patch?rev=1.1&content-type=text/plain
14
15 Index: 7.1-setup-2.patch
16 ===================================================================
17 diff --git a/share/arpwarp_setup_base.bash b/share/arpwarp_setup_base.bash
18 index 29e769c..0b8a51e 100644
19 --- a/share/arpwarp_setup_base.bash
20 +++ b/share/arpwarp_setup_base.bash
21 @@ -13,10 +13,10 @@ else
22 identifier=${nameprocessor}'-'${namesystem}
23 fi
24 #
25 -arpwarphome="$1X"
26 +arpwarphome="@GENTOO_PORTAGE_EPREFIX@/opt/arp-warp-bin"
27 #
28 export warpbin=${arpwarphome}/bin/bin-${identifier}
29 -export warpdoc=${arpwarphome}/manual
30 +export warpdoc=@GENTOO_PORTAGE_EPREFIX@/usr/share/doc/arp-warp-bin-7.1/html/
31 export PATH=${warpbin}:${PATH}
32 #
33 # Checks for existence of $warpbin directory
34 @@ -59,7 +59,7 @@ if [ "$testccp" = '0' ]; then
35 fi
36
37 ## 2. Complement by other potential places for python :
38 - search_list="${search_list} /usr/local/bin/python /usr/bin/python"
39 + search_list="${search_list} @GENTOO_PORTAGE_EPREFIX@/usr/bin/EPYTHON"
40 flex_wARP_python="/dev/null"
41
42 ## 3. Pick up the first one of the list which seems reasonable :
43 @@ -83,34 +83,6 @@ if [ "$testccp" = '0' ]; then
44 export flex_wARP_bin=${HOME}/.flex-wARP/python-${pythonvrs1}.${pythonvrs2}
45 break
46 fi
47 -# 3.c Otherwise, we should be able to create the byte-code using the python.
48 - /bin/mkdir -p ${arpwarphome}/byte-code/python-${pythonvrs1}.${pythonvrs2} 1> /dev/null 2>&1
49 - if [ 0 != $? ] ; then
50 - /bin/mkdir -p ${HOME}/.flex-wARP/python-${pythonvrs1}.${pythonvrs2} 1> /dev/null 2>&1
51 - export flex_wARP_bin=${HOME}/.flex-wARP/python-${pythonvrs1}.${pythonvrs2}
52 - else
53 - export flex_wARP_bin=${arpwarphome}/byte-code/python-${pythonvrs1}.${pythonvrs2}
54 - fi
55 -# pushd ${flex_wARP_bin} 1> /dev/null 2>&1
56 - here_now=$(pwd)
57 - cd ${flex_wARP_bin}
58 - if [ 0 != $? ] ; then
59 - export flex_wARP_bin=${HOME}/.flex-wARP/python-${pythonvrs1}.${pythonvrs2}
60 - /bin/mkdir -p ${flex_wARP_bin} 1> /dev/null 2>&1
61 -# pushd ${flex_wARP_bin} 1> /dev/null 2>&1
62 - cd ${flex_wARP_bin}
63 - fi
64 - /bin/cp -p ${arpwarphome}/flex-wARP-src/*.py .
65 - ${python_to_test} ./compile.py
66 - /bin/rm -f *.py
67 -# popd 1> /dev/null 2>&1
68 - cd ${here_now}
69 - if [ -e ${flex_wARP_bin}/CPyWARP.pyc ] ; then
70 - export flex_wARP_python=${python_to_test}
71 - echo "Created a new set of flex-wARP byte code in the directory :"
72 - echo " '${flex_wARP_bin}'"
73 - break
74 - fi
75 done
76 ## 4. If nothing is available, print out a message.
77 if [ "/dev/null" != ${flex_wARP_python} ] ; then
78 @@ -130,14 +102,6 @@ if [ "$testccp" = '0' ]; then
79 fi
80
81 #
82 -# Setting up library path for SGI
83 -if [[ "${namesystem}" = 'IRIX64' || "${namesystem}" = 'IRIX' ]]; then
84 - if test "$LD_LIBRARY_PATH"; then
85 - export LD_LIBRARY_PATH=${warpbin}:${LD_LIBRARY_PATH}
86 - else
87 - export LD_LIBRARY_PATH=${warpbin}
88 - fi
89 -fi
90 # echo
91 # echo 'ARP/wARP Version 7.1 has been setup'
92 #
93 diff --git a/share/arpwarp_setup_base.csh b/share/arpwarp_setup_base.csh
94 index 41b11e9..a4edcff 100644
95 --- a/share/arpwarp_setup_base.csh
96 +++ b/share/arpwarp_setup_base.csh
97 @@ -13,7 +13,7 @@ else
98 set identifier = ${nameprocessor}'-'${namesystem}
99 endif
100 #
101 -set arpwarphome = '$1X'
102 +set arpwarphome = '@GENTOO_PORTAGE_EPREFIX@/opt/arp-warp-bin'
103 #
104 setenv warpbin ${arpwarphome}/bin/bin-${identifier}
105 #
106 @@ -27,7 +27,7 @@ if ( ! -e $warpbin ) then
107 goto errorsetup
108 endif
109 #
110 -setenv warpdoc ${arpwarphome}/manual
111 +setenv warpdoc @GENTOO_PORTAGE_EPREFIX@/usr/share/doc/arp-warp-bin-7.1/html/
112 set path = ( $warpbin $path )
113 #
114 # Settings for python
115 @@ -58,7 +58,7 @@ if ( $status == 0 ) then
116 endif
117
118 ## 2. Complement by other potential places for python :
119 -set search_list = "${search_list} /usr/local/bin/python /usr/bin/python"
120 +set search_list = "${search_list} @GENTOO_PORTAGE_EPREFIX@/usr/bin/EPYTHON"
121 setenv flex_wARP_python "/dev/null"
122
123 ## 3. Pick up the first one of the list which seems reasonable :
124 @@ -82,34 +82,6 @@ foreach python_to_test ( ${search_list} )
125 setenv flex_wARP_bin ${HOME}/.flex-wARP/python-${pythonvrs1}.${pythonvrs2}
126 break
127 endif
128 -# 3.c Otherwise, we should be able to create the byte-code using the python.
129 - /bin/mkdir -p ${arpwarphome}/byte-code/python-${pythonvrs1}.${pythonvrs2} >& /dev/null
130 - if ( 0 != $status ) then
131 - /bin/mkdir -p ${HOME}/.flex-wARP/python-${pythonvrs1}.${pythonvrs2} >& /dev/null
132 - setenv flex_wARP_bin ${HOME}/.flex-wARP/python-${pythonvrs1}.${pythonvrs2}
133 - else
134 - setenv flex_wARP_bin ${arpwarphome}/byte-code/python-${pythonvrs1}.${pythonvrs2}
135 - endif
136 -# pushd ${flex_wARP_bin} >& /dev/null
137 - set here_now = `pwd`
138 - cd ${flex_wARP_bin}
139 - if ( 0 != $status ) then
140 - setenv flex_wARP_bin ${HOME}/.flex-wARP/python-${pythonvrs1}.${pythonvrs2}
141 - /bin/mkdir -p ${flex_wARP_bin} >& /dev/null
142 -# pushd ${flex_wARP_bin} >& /dev/null
143 - cd ${flex_wARP_bin}
144 - endif
145 - /bin/cp -p ${arpwarphome}/flex-wARP-src/*.py .
146 - ${python_to_test} ./compile.py
147 - /bin/rm -f *.py
148 -# popd >& /dev/null
149 - cd ${here_now}
150 - if ( -e ${flex_wARP_bin}/CPyWARP.pyc ) then
151 - setenv flex_wARP_python ${python_to_test}
152 - echo "Created a new set of flex-wARP byte code in the directory :"
153 - echo " '${flex_wARP_bin}'"
154 - break
155 - endif
156 end
157 ## 4. If nothing is available, print out a message.
158 if ( "/dev/null" != ${flex_wARP_python} ) then
159 @@ -127,16 +100,6 @@ else
160 setenv flex_wARP_bin "Unavailable"
161 endif
162
163 -#
164 -# Setting up library path for SGI
165 -if ( ${namesystem} == 'IRIX64' || ${namesystem} == 'IRIX' ) then
166 - if ( ${?LD_LIBRARY_PATH} ) then
167 - setenv LD_LIBRARY_PATH ${warpbin}:${LD_LIBRARY_PATH}
168 - else
169 - setenv LD_LIBRARY_PATH ${warpbin}
170 - endif
171 -endif
172 -#
173 goto endsetup
174 #
175 errorsetup: