Gentoo Archives: gentoo-commits

From: "Ali Polatel (hawking)" <hawking@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/snns: snns-4.2-r7.ebuild ChangeLog
Date: Thu, 29 May 2008 14:37:56
Message-Id: E1K1jFV-0003m8-Cs@stork.gentoo.org
1 hawking 08/05/29 14:37:01
2
3 Modified: snns-4.2-r7.ebuild ChangeLog
4 Log:
5 python_mod_compile is ROOT aware. Use ${python} instead of python. Quoting.
6 (Portage version: 2.1.5.2)
7
8 Revision Changes Path
9 1.9 sci-mathematics/snns/snns-4.2-r7.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/snns/snns-4.2-r7.ebuild?rev=1.9&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/snns/snns-4.2-r7.ebuild?rev=1.9&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/snns/snns-4.2-r7.ebuild?r1=1.8&r2=1.9
14
15 Index: snns-4.2-r7.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/snns/snns-4.2-r7.ebuild,v
18 retrieving revision 1.8
19 retrieving revision 1.9
20 diff -u -r1.8 -r1.9
21 --- snns-4.2-r7.ebuild 22 Jul 2007 06:58:17 -0000 1.8
22 +++ snns-4.2-r7.ebuild 29 May 2008 14:37:00 -0000 1.9
23 @@ -1,8 +1,8 @@
24 -# Copyright 1999-2007 Gentoo Foundation
25 +# Copyright 1999-2008 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/snns-4.2-r7.ebuild,v 1.8 2007/07/22 06:58:17 dberkholz Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/snns-4.2-r7.ebuild,v 1.9 2008/05/29 14:37:00 hawking Exp $
29
30 -inherit eutils python
31 +inherit eutils python multilib
32
33 MY_P="SNNSv${PV}"
34 MYPATCH="${P}-20040227"
35 @@ -36,14 +36,14 @@
36 if use python; then
37 unpack ${MYPYTHONEXT}.tar.gz
38
39 - cd ${S}
40 - epatch ${FILESDIR}/${PV}-fPIC-python.patch
41 - cd ${WORKDIR}
42 + cd "${S}"
43 + epatch "${FILESDIR}"/${PV}-fPIC-python.patch
44 + cd "${WORKDIR}"
45 unpack ${MYPYTHONPATCH}.gz
46 - cd ${S}
47 - epatch ${WORKDIR}/${MYPYTHONPATCH}
48 + cd "${S}"
49 + epatch "${WORKDIR}"/${MYPYTHONPATCH}
50 fi
51 - cd ${S}/xgui/sources
52 + cd "${S}"/xgui/sources
53 for file in *.c; do
54 sed -e "s:X11/Xaw/:X11/Xaw3d/:g" -i "${file}"
55 done
56 @@ -65,8 +65,9 @@
57 make ${compileopts} || die "make failed"
58
59 if use python; then
60 + python_version
61 cd python
62 - python setup.py build || die "could not build python extension"
63 + ${python} setup.py build || die "could not build python extension"
64 fi
65 }
66
67 @@ -79,23 +80,24 @@
68 newbin xgui/sources/xgui snns
69
70 dodir /etc/env.d
71 - echo XGUILOADPATH=/usr/share/doc/${PF}/ > ${D}/etc/env.d/99snns
72 + echo XGUILOADPATH=/usr/share/doc/${PF}/ > "${D}"/etc/env.d/99snns
73
74 insinto /usr/share/doc/${PF}
75 doins default.cfg help.hdoc
76 fi
77
78 if use python; then
79 + python_version
80 cd python
81 - python setup.py install --prefix=${D}/usr || die "could not install python module"
82 - cp -pPR examples ${D}/usr/share/doc/${PF}/python-examples
83 - chmod +x ${D}/usr/share/doc/${PF}/python-examples/*.py
84 + ${python} setup.py install --prefix="${D}"/usr || die "could not install python module"
85 + cp -pPR examples "${D}"/usr/share/doc/${PF}/python-examples
86 + chmod +x "${D}"/usr/share/doc/${PF}/python-examples/*.py
87 newdoc README README.python
88 - cd ${S}
89 + cd "${S}"
90 fi
91
92 insinto /usr/share/doc/${PF}
93 - use doc && doins ${DISTDIR}/${MY_P}.Manual.pdf
94 + use doc && doins "${DISTDIR}"/${MY_P}.Manual.pdf
95
96 insinto /usr/share/doc/${PF}/examples
97 doins examples/*
98 @@ -109,7 +111,7 @@
99 python_version
100 for file in __init__.py util.py; do
101 python_mod_compile \
102 - ${ROOT}/usr/lib/python${PYVER}/site-packages/snns/${file}
103 + /usr/$(get_libdir)/python${PYVER}/site-packages/snns/${file}
104 done
105 fi
106 }
107
108
109
110 1.13 sci-mathematics/snns/ChangeLog
111
112 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/snns/ChangeLog?rev=1.13&view=markup
113 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/snns/ChangeLog?rev=1.13&content-type=text/plain
114 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/snns/ChangeLog?r1=1.12&r2=1.13
115
116 Index: ChangeLog
117 ===================================================================
118 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/snns/ChangeLog,v
119 retrieving revision 1.12
120 retrieving revision 1.13
121 diff -u -r1.12 -r1.13
122 --- ChangeLog 22 Jul 2007 06:58:17 -0000 1.12
123 +++ ChangeLog 29 May 2008 14:37:00 -0000 1.13
124 @@ -1,6 +1,10 @@
125 # ChangeLog for sci-mathematics/snns
126 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
127 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/ChangeLog,v 1.12 2007/07/22 06:58:17 dberkholz Exp $
128 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
129 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/snns/ChangeLog,v 1.13 2008/05/29 14:37:00 hawking Exp $
130 +
131 + 29 May 2008; Ali Polatel <hawking@g.o> snns-4.2-r7.ebuild:
132 + python_mod_compile is ROOT aware. Use ${python} instead of python.
133 + Quoting.
134
135 22 Jul 2007; Donnie Berkholz <dberkholz@g.o>; snns-4.2-r7.ebuild:
136 Drop virtual/x11 references.
137
138
139
140 --
141 gentoo-commits@l.g.o mailing list