Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 293707 Details for
Bug 317029
x11-misc/xac: Verify and potentially improve Python-related code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ebuild patch
xac.patch (text/plain), 1.80 KB, created by
Ian Delaney (RETIRED)
on 2011-11-25 13:28:36 UTC
(
hide
)
Description:
ebuild patch
Filename:
MIME Type:
Creator:
Ian Delaney (RETIRED)
Created:
2011-11-25 13:28:36 UTC
Size:
1.80 KB
patch
obsolete
>Only in xac.orig/: ChangeLog >diff -ur xac.orig/xac-0.6_pre4.ebuild xac/xac-0.6_pre4.ebuild >--- xac.orig/xac-0.6_pre4.ebuild 2009-09-30 23:52:20.000000000 +0800 >+++ xac/xac-0.6_pre4.ebuild 2011-11-25 21:21:42.448823740 +0800 >@@ -2,7 +2,9 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/x11-misc/xac/xac-0.6_pre4.ebuild,v 1.6 2009/09/30 15:52:20 josejx Exp $ > >-inherit toolchain-funcs eutils >+EAPI="4" >+PYTHON_DEPEND="2" >+inherit toolchain-funcs eutils distutils > > DESCRIPTION="Xorgautoconfig (xac) generates configuration files for X.org" > HOMEPAGE="http://dev.gentoo.org/~josejx/xac.html" >@@ -15,36 +17,27 @@ > RDEPEND=">=dev-lang/python-2.3 > x11-base/xorg-server" > SRC_URI="mirror://gentoo/${P}.tar.bz2" >+DISTUTILS_SETUP_FILES=("src|setup.py") > >-src_unpack() { >- unpack ${A} >- cd "${S}" >+pkg_setup() { >+ python_pkg_setup >+ python_set_active_version 2 >+} > >+src_prepare() { > ### Replace /usr/lib/xac with libdir version > sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac > > ### Fix the x86 bios call with newer glibc > epatch "${FILESDIR}/x86-biosfix.patch" >- >- ### Make setup.py executable >- chmod +x "${S}/src/setup.py" >-} >- >-src_compile() { >- ### Compile the C bindings >- cd "${S}"/src >- ./setup.py build || die "Failed to build the C modules" > } > > src_install() { >+ distutils_src_install > local xac_base="/usr/$(get_libdir)/xac" > > dosbin "${S}"/xac > >- ### Install the C mods >- cd "${S}"/src >- ./setup.py install --root "${D}" || die "Failed to install the C modules" >- > dodir "${xac_base}" > insinto ${xac_base} > doins "${S}"/py/* >@@ -54,4 +47,14 @@ > newinitd "${S}"/xac.init xac > newconfd "${S}"/xac.conf xac > fi >+ > } >+ >+pkg_postinst() { >+ python_mod_optimize "${EROOT}"usr/lib64/xac >+} >+ >+pkg_postrm() { >+ python_mod_cleanup "${EROOT}"usr/lib64/xac >+} >+
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 317029
:
292689
|
292703
|
292913
|
292967
|
293077
|
293333
|
293707
|
293825