Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 185176 Details for
Bug 262644
app-misc/gramps-3.0.4: prevent installation of pyo and pyc files in /usr/share
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Install .py[co] files under $(python_get_sitedir)/${PN}
gramps-3.0.4.ebuild.diff (text/plain), 1.41 KB, created by
Dustin Polke
on 2009-03-16 10:31:17 UTC
(
hide
)
Description:
Install .py[co] files under $(python_get_sitedir)/${PN}
Filename:
MIME Type:
Creator:
Dustin Polke
Created:
2009-03-16 10:31:17 UTC
Size:
1.41 KB
patch
obsolete
>--- /usr/portage/app-misc/gramps/gramps-3.0.4.ebuild 2009-01-30 04:05:34.000000000 +0100 >+++ /usr/portage/local/modified/app-misc/gramps/gramps-3.0.4.ebuild 2009-03-13 12:18:46.000000000 +0100 >@@ -43,6 +43,28 @@ > # file system > mv "${S}"/py-compile "${S}"/py-compile.orig > ln -s $(type -P true) "${S}"/py-compile >+ >+ python_version >+ >+ # Fix install path. >+ einfo "Fix installation path" >+ find . -iname 'Makefile.in' | xargs \ >+ sed "s;\(pkgdatadir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \ >+ || die "Fixing installation path failed" >+ >+ sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \ >+ -i src/Makefile.in || die "Fixing ${S}/src/Makefile.in failed" >+ >+ sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \ >+ -i src/docgen/Makefile.in || die "Fixing ${S}/src/docgen/Makefile.in failed" >+ >+ einfo "Fix wrapper script" >+ sed "s;@datadir@;$(python_get_sitedir);" \ >+ -i gramps.sh.in || die "Fixing ${S}/gramps.sh.in failed" >+ >+ einfo "Fix icon location" >+ sed "s;gramps/;pixmap/;g" -i data/gramps.keys.in || \ >+ die "Fixing ${S}/data/gramps.keys.in failed" > } > > src_install() { >@@ -52,10 +74,12 @@ > > pkg_postinst() { > gnome2_pkg_postinst >- python_mod_optimize /usr/share/${PN} >+ python_version >+ python_mod_optimize $(python_get_sitedir)/${PN} > } > > pkg_postrm() { > gnome2_pkg_postrm >- python_mod_cleanup /usr/share/${PN} >+ python_version >+ python_mod_cleanup $(python_get_sitedir)/${PN} > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 262644
: 185176