Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 277419 Details for
Bug 344231
dev-python/gnome-python-extras-base: Checking for Python Library Path is horribly inefficient. (uses find /usr/ name libpython)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
improved pkg-config wrapper
pkg-config (text/plain), 1.26 KB, created by
Alexandre Rostovtsev (RETIRED)
on 2011-06-17 23:45:52 UTC
(
hide
)
Description:
improved pkg-config wrapper
Filename:
MIME Type:
Creator:
Alexandre Rostovtsev (RETIRED)
Created:
2011-06-17 23:45:52 UTC
Size:
1.26 KB
patch
obsolete
>#!/bin/bash > >pcwrapdir="${WORKDIR}/tmp" >pcname="${EPYTHON/python/python-}" > >command="pkg-config" >prev_arg= >for arg in $@ ; do > case "${prev_arg}" in > --variable | --define-variable ) ;; > --atleast-version | --exact-version | --max-version ) ;; > '>' | '>=' | '=' | '<=' | '<' ) ;; > * ) [[ ${arg} = "python" ]] && arg=${pcname} ;; > esac > command+=" ${arg}" > prev_arg=${arg} >done > ># remove wrapper dir from PATH to prevent wrapper from recursively calling itself >export PATH=${PATH//${pcwrapdir}/} >export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${pcwrapdir}" > >if ! pkg-config --exists ${pcname} &> /dev/null ; then > ${EPYTHON} - > "${pcwrapdir}/${pcname}.pc" << EOF >from distutils.sysconfig import * >import re > >print "prefix=%s" % PREFIX >print "exec_prefix=%s" % EXEC_PREFIX >print "libdir=%s" % re.sub(PREFIX, '\${prefix}', get_config_var('LIBDIR')) >print "includedir=%s" % re.sub(PREFIX, '\${prefix}', get_config_var('INCLUDEDIR')) >print "Name: Python" >print "Description: Python library" >print "Requires: " >print "Version: %s" % get_config_var('VERSION') >print "Libs.private: %s" % get_config_var('LIBS') >print "Libs: -L\${libdir} -lpython%s" % get_config_var('VERSION') >print "Cflags: -I%s" % re.sub(get_config_var('INCLUDEDIR'), '\${includedir}', get_python_inc()) >EOF >fi > >exec ${command}
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 Raw
Actions:
View
Attachments on
bug 344231
:
277417
| 277419 |
277639
|
277725
|
279157
|
279159