ottxor      14/04/23 19:55:10

  Added:                wx-config-1.4 wxrc-1.4
  Log:
  add prefix support (bug #508438)
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
C2000586)

Revision  Changes    Path
1.1                  app-admin/eselect-wxwidgets/files/wx-config-1.4

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-1.4?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-1.4?rev=1.1&content-type=text/plain

Index: wx-config-1.4
===================================================================
#!/bin/sh -
# $Header: 
/var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-1.4,v 1.1 
2014/04/23 19:55:10 ottxor Exp $
#
# /usr/bin/wx-config
#
#  a lame wx-config wrapper (bugs to wxwidg...@gentoo.org)

EPREFIX=''
LIBDIR="lib"

_wxerror() {
        cat >&2 <<- EOF
                An error occurred while calling wx-config:
                
                ${1}

                Please use \`eselect wxwidgets\` to select an available profile 
and try again.
        EOF
        exit 1
}

if [ -n "${WX_ECLASS_CONFIG}" ]; then
        ${WX_ECLASS_CONFIG} "$@"
        exit 0
else
        if [ -e "${EPREFIX}"/var/lib/wxwidgets/current ]; then
                . "${EPREFIX}"/var/lib/wxwidgets/current
        else
                _wxerror "Cannot find the wxWidgets profile configuration ( 
${EPREFIX}/var/lib/wxwidgets/current )"
        fi

        [ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile 
currently selected"

        if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then
           "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" "$@"
        else
                _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
        fi
        exit 0
fi




1.1                  app-admin/eselect-wxwidgets/files/wxrc-1.4

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-1.4?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-1.4?rev=1.1&content-type=text/plain

Index: wxrc-1.4
===================================================================
#!/bin/sh -
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-1.4,v 
1.1 2014/04/23 19:55:10 ottxor Exp $
#
# /usr/bin/wxrc
#
#  a lame wxrc wrapper (bugs to wxwidg...@gentoo.org)

EPREFIX=''
LIBDIR="lib"

_wxerror() {
        cat >&2 <<- EOF
                An error occurred while calling wxrc:

                ${1}

                Please use \`eselect wxwidgets\` to select an available profile 
and try again.
        EOF
        exit 1
}

if [ -n "${WX_ECLASS_CONFIG}" ]; then
        $(${WX_ECLASS_CONFIG} --utility=wxrc) "$@"
        exit 0
else
        if [ -e "${EPREFIX}"/var/lib/wxwidgets/current ]; then
                . "${EPREFIX}"/var/lib/wxwidgets/current
        else
                _wxerror "Cannot find the wxWidgets profile configuration ( 
${EPREFIX}/var/lib/wxwidgets/current )"
        fi

        [ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile 
currently selected"

        if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then
           $("${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" --utility=wxrc) 
"$@"
        else
                _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
        fi
        exit 0
fi





Reply via email to