Gentoo Archives: gentoo-dev

From: Ryan Hill <dirtyepic@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/pygobject: ChangeLog pygobject-2.14.0.ebuild
Date: Thu, 27 Sep 2007 02:28:47
Message-Id: fdf3qj$fbh$1@sea.gmane.org
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/pygobject: ChangeLog pygobject-2.14.0.ebuild by Donnie Berkholz
1 Donnie Berkholz wrote:
2 > On 13:15 Wed 26 Sep , Mart Raudsepp (leio) wrote:
3 >> 1.1 dev-python/pygobject/pygobject-2.14.0.ebuild
4 >>
5 >> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygobject/pygobject-2.14.0.ebuild?rev=1.1&view=markup
6 >> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygobject/pygobject-2.14.0.ebuild?rev=1.1&content-type=text/plain
7 >
8 >> mv "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py \
9 >> "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py-2.0
10 >> mv "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth \
11 >> "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth-2.0
12 >> }
13 >>
14 >> pkg_postinst() {
15 >> python_version
16 >> python_mod_optimize /usr/lib/python${PYVER}/site-packages/gtk-2.0
17 >> alternatives_auto_makesym /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py pygtk.py-[0-9].[0-9]
18 >> alternatives_auto_makesym /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth pygtk.pth-[0-9].[0-9]
19 >> python_mod_compile ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py
20 >
21 > This is pretty weird, because it uses get_libdir() almost everywhere but
22 > skips it once. Wonder if we could add a repoman check that looks for
23 > whether an ebuild calls get_libdir(), then checks for any instances of
24 > '[^[:alnum:]]lib[^[:alnum:]]'.
25
26 that would match foo-lib.txt foo-lib-defooifier /usr/share/lib-foo/ etc. and miss /usr/lib64/...
27 (though i don't see anyone doing that).
28
29 what about /\/lib[/|32|64]/ ?
30
31 --
32 fonts / wxWindows / gcc-porting / treecleaners
33 9B81 6C9F E791 83BB 3AB3 5B2D E625 A073 8379 37E8 (0x837937E8)
34
35 --
36 gentoo-dev@g.o mailing list