1 |
On 15:53 Thu 06 Dec , Jim Ramsay (lack) wrote: |
2 |
> 1.1 rox-base/rox-clib/rox-clib-2.1.10.ebuild |
3 |
> |
4 |
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox-clib/rox-clib-2.1.10.ebuild?rev=1.1&view=markup |
5 |
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox-clib/rox-clib-2.1.10.ebuild?rev=1.1&content-type=text/plain |
6 |
|
7 |
> src_install() { |
8 |
> local baselibdir="/usr/$(get_libdir)" |
9 |
> local NATIVE_FEED_DIR="/usr/share/0install.net/native_feeds" |
10 |
> local ICON_CACHE_DIR="/var/cache/0install.net/interface_icons" |
11 |
> |
12 |
> # clean up source instead of remove it! |
13 |
> ( cd src && make clean ) |
14 |
> |
15 |
> # remove silly .cvs files |
16 |
> find . -name '.cvs*' | xargs rm -f >/dev/null 2>&1 |
17 |
> dodoc ${baselibdir}/${APPNAME} |
18 |
> dodir ${baselibdir}/${APPNAME} |
19 |
> cp -r . "${D}${baselibdir}/${APPNAME}" |
20 |
> ( |
21 |
> cd Help |
22 |
> dodoc Authors Changes ToDo README Versions |
23 |
> ) |
24 |
|
25 |
Instead of these subshells to save the original directory, a more common |
26 |
technique is pushd/popd. Another possibility is 'cd foo; stuff; cd -', |
27 |
but that doesn't stack. |
28 |
|
29 |
> 0distutils ROX-CLib.xml > tmp.native_feed || die "0distutilss feed edit failed" |
30 |
> insinto "${baselibdir}/ROX-CLib/" |
31 |
> newins tmp.native_feed ROX-CLib.xml |
32 |
> |
33 |
> local feedname |
34 |
> feedname=$(0distutils -e tmp.native_feed) || "0distutils URI escape failed" |
35 |
> dosym "${baselibdir}/ROX-CLib/ROX-CLib.xml" "${NATIVE_FEED_DIR}/${feedname}" |
36 |
> |
37 |
> local cachedname |
38 |
> cachedname=$(0distutils -c tmp.native_feed) || "0distutils URI escape failed" |
39 |
> dosym "${baselibdir}/ROX-CLib/.DirIcon" "${ICON_CACHE_DIR}/${cachedname}" |
40 |
> |
41 |
> } |
42 |
|
43 |
Thanks, |
44 |
Donnie |
45 |
-- |
46 |
gentoo-dev@g.o mailing list |