Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 235627 Details for
Bug 312187
dev-libs/libgamin: 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]
libgamin-0.1.10-r2.ebuild.patch
libgamin-0.1.10-r2.ebuild.patch (text/plain), 2.60 KB, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2010-06-16 18:16:47 UTC
(
hide
)
Description:
libgamin-0.1.10-r2.ebuild.patch
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2010-06-16 18:16:47 UTC
Size:
2.60 KB
patch
obsolete
>--- libgamin-0.1.10-r2.ebuild >+++ libgamin-0.1.10-r2.ebuild >@@ -1,8 +1,11 @@ >-# Copyright 1999-2009 Gentoo Foundation >+# Copyright 1999-2010 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10-r2.ebuild,v 1.11 2009/09/25 10:51:18 flameeyes Exp $ > > EAPI="2" >+PYTHON_DEPEND="python? 2" >+SUPPORT_PYTHON_ABIS="1" >+RESTRICT_PYTHON_ABIS="3.*" > > inherit autotools eutils flag-o-matic libtool python > >@@ -21,8 +24,7 @@ > > RESTRICT="test" # need gam-server > >-RDEPEND="python? ( virtual/python ) >- !app-admin/fam >+RDEPEND="!app-admin/fam > !<app-admin/gamin-0.1.10" > > DEPEND="${RDEPEND} >@@ -30,6 +32,12 @@ > > S="${WORKDIR}/${MY_P}" > >+pkg_setup() { >+ if use python; then >+ python_pkg_setup >+ fi >+} >+ > src_prepare() { > # Fix QA warnings, bug #257281, upstream #466791 > epatch "${FILESDIR}/${P}-compilewarnings.patch" >@@ -40,6 +48,12 @@ > # Fix collision problem due to intermediate library, upstream bug #530635 > epatch "${FILESDIR}/${P}-noinst-lib.patch" > >+ # Build only shared version of Python module. >+ epatch "${FILESDIR}/${P}-disable_python_static_library.patch" >+ >+ # Python bindings are built/installed manually. >+ sed -e "/SUBDIRS += python/d" -i Makefile.am >+ > # autoconf is required as the user-cflags patch modifies configure.in > # however, elibtoolize is also required, so when the above patch is > # removed, replace the following call with a call to elibtoolize >@@ -58,20 +72,50 @@ > $(use_with python) > } > >+src_compile() { >+ default >+ >+ if use python; then >+ python_copy_sources python >+ >+ building() { >+ emake \ >+ PYTHON_INCLUDES="$(python_get_includedir)" \ >+ PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \ >+ PYTHON_VERSION="$(python_get_version)" >+ } >+ python_execute_function -s --source-dir python building >+ fi >+} >+ > src_install() { > emake DESTDIR="${D}" install || die "installation failed" > >+ if use python; then >+ installation() { >+ emake \ >+ DESTDIR="${D}" \ >+ PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \ >+ PYTHON_VERSION="$(python_get_version)" \ >+ install >+ } >+ python_execute_function -s --source-dir python installation >+ >+ python_clean_installation_image >+ fi >+ > dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt || die "dodoc failed" > dohtml doc/* ||Â die "dohtml failed" > } > > pkg_postinst() { > if use python; then >- python_version >- python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages >+ python_mod_optimize gamin.py > fi > } > > pkg_postrm() { >- python_mod_cleanup /usr/$(get_libdir)/python*/site-packages >+ if use python; then >+ python_mod_cleanup gamin.py >+ fi > }
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 312187
:
235623
| 235627