| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-base.eclass,v 1.16 2011/04/20 20:48:47 voyageur Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-base.eclass,v 1.17 2011/06/06 19:17:38 voyageur Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: gnustep-base.eclass |
5 | # @ECLASS: gnustep-base.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # GNUstep Herd <gnustep@gentoo.org> |
7 | # GNUstep Herd <gnustep@gentoo.org> |
| 8 | # @BLURB: Internal handling of GNUstep pacakges |
8 | # @BLURB: Internal handling of GNUstep pacakges |
| … | |
… | |
| 118 | if [[ -f ${GS_MAKEFILES}/GNUstep.sh ]] ; then |
118 | if [[ -f ${GS_MAKEFILES}/GNUstep.sh ]] ; then |
| 119 | # Reset GNUstep variables |
119 | # Reset GNUstep variables |
| 120 | source "${GS_MAKEFILES}"/GNUstep-reset.sh |
120 | source "${GS_MAKEFILES}"/GNUstep-reset.sh |
| 121 | source "${GS_MAKEFILES}"/GNUstep.sh |
121 | source "${GS_MAKEFILES}"/GNUstep.sh |
| 122 | |
122 | |
| 123 | # Needed to run installed GNUstep apps in sandbox |
123 | # Create compilation GNUstep.conf if it does not exist yet |
| 124 | addpredict "/root/GNUstep" |
124 | if [[ ! -f ${T}/GNUstep.conf ]]; then |
|
|
125 | cp "${EPREFIX}"/etc/GNUstep/GNUstep.conf "${T}" \ |
|
|
126 | || die "GNUstep.conf copy failed" |
|
|
127 | sed -e "s#\(GNUSTEP_USER_DIR=\).*#\1${T}#" \ |
|
|
128 | -e "s#\(GNUSTEP_USER_DEFAULTS_DIR=\).*#\1${T}/Defaults#" \ |
|
|
129 | -i "${T}"/GNUstep.conf || die "GNUstep.conf sed failed" |
|
|
130 | fi |
|
|
131 | |
| 125 | |
132 | |
| 126 | if [[ ! -d ${EPREFIX}/usr/share/GNUstep/Makefiles ]]; then |
133 | if [[ ! -d ${EPREFIX}/usr/share/GNUstep/Makefiles ]]; then |
| 127 | # Set rpath in ldflags when available |
134 | # Set rpath in ldflags when available |
| 128 | case ${CHOST} in |
135 | case ${CHOST} in |
| 129 | *-linux-gnu|*-solaris*) |
136 | *-linux-gnu|*-solaris*) |
| … | |
… | |
| 137 | # Set up env vars for make operations |
144 | # Set up env vars for make operations |
| 138 | GS_ENV=( AUXILIARY_LDFLAGS="${LDFLAGS}" \ |
145 | GS_ENV=( AUXILIARY_LDFLAGS="${LDFLAGS}" \ |
| 139 | ADDITIONAL_NATIVE_LIB_DIRS="${GNUSTEP_SYSTEM_LIBRARIES}" \ |
146 | ADDITIONAL_NATIVE_LIB_DIRS="${GNUSTEP_SYSTEM_LIBRARIES}" \ |
| 140 | DESTDIR="${D}" \ |
147 | DESTDIR="${D}" \ |
| 141 | HOME="${T}" \ |
148 | HOME="${T}" \ |
|
|
149 | GNUSTEP_CONFIG_FILE="${T}"/GNUstep.conf \ |
| 142 | GNUSTEP_USER_DIR="${T}" \ |
150 | GNUSTEP_USER_DIR="${T}" \ |
| 143 | GNUSTEP_USER_DEFAULTS_DIR="${T}"/Defaults \ |
151 | GNUSTEP_USER_DEFAULTS_DIR="${T}"/Defaults \ |
| 144 | GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ |
152 | GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ |
| 145 | TAR_OPTIONS="${TAR_OPTIONS} --no-same-owner" \ |
153 | TAR_OPTIONS="${TAR_OPTIONS} --no-same-owner" \ |
| 146 | messages=yes \ |
154 | messages=yes \ |