Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 293333 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]
revised ebuild patch
xac.patch (text/plain), 1.52 KB, created by
Ian Delaney (RETIRED)
on 2011-11-21 15:59:53 UTC
(
hide
)
Description:
revised ebuild patch
Filename:
MIME Type:
Creator:
Ian Delaney (RETIRED)
Created:
2011-11-21 15:59:53 UTC
Size:
1.52 KB
patch
obsolete
>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-21 23:54:42.105899225 +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="2" >+PYTHON_DEPEND="2" >+inherit toolchain-funcs eutils python > > DESCRIPTION="Xorgautoconfig (xac) generates configuration files for X.org" > HOMEPAGE="http://dev.gentoo.org/~josejx/xac.html" >@@ -16,11 +18,14 @@ > x11-base/xorg-server" > SRC_URI="mirror://gentoo/${P}.tar.bz2" > >-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 >@@ -30,21 +35,10 @@ > 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() { > 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 +48,5 @@ > newinitd "${S}"/xac.init xac > newconfd "${S}"/xac.conf xac > fi >-} >+ python_convert_shebangs -r 2 . >+}
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