| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2011 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.17 2011/06/06 19:17:38 voyageur Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-base.eclass,v 1.20 2011/11/08 12:16:29 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 |
| … | |
… | |
| 53 | # Gentoo, but (may) cause major headaches on Prefixed Gentoo. If this |
53 | # Gentoo, but (may) cause major headaches on Prefixed Gentoo. If this |
| 54 | # only removes a part of a path it's good that it bails out, as we want |
54 | # only removes a part of a path it's good that it bails out, as we want |
| 55 | # to know when they use some direct include. |
55 | # to know when they use some direct include. |
| 56 | ebegin "Cleaning paths from GNUmakefile" |
56 | ebegin "Cleaning paths from GNUmakefile" |
| 57 | sed -i \ |
57 | sed -i \ |
| 58 | -e 's|-I/usr/X11R6/include||g' \ |
58 | -e 's|-I/usr/X11R6/include/\?||g' \ |
| 59 | -e 's|-I/usr/include||g' \ |
59 | -e 's|-I/usr/include/\?||g' \ |
| 60 | -e 's|-L/usr/X11R6/lib||g' \ |
60 | -e 's|-L/usr/X11R6/lib/\?||g' \ |
| 61 | -e 's|-L/usr/lib||g' \ |
61 | -e 's|-L/usr/lib/\?||g' \ |
| 62 | GNUmakefile |
62 | GNUmakefile |
| 63 | eend $? |
63 | eend $? |
| 64 | fi |
64 | fi |
| 65 | } |
65 | } |
| 66 | |
66 | |
| … | |
… | |
| 122 | |
122 | |
| 123 | # Create compilation GNUstep.conf if it does not exist yet |
123 | # Create compilation GNUstep.conf if it does not exist yet |
| 124 | if [[ ! -f ${T}/GNUstep.conf ]]; then |
124 | if [[ ! -f ${T}/GNUstep.conf ]]; then |
| 125 | cp "${EPREFIX}"/etc/GNUstep/GNUstep.conf "${T}" \ |
125 | cp "${EPREFIX}"/etc/GNUstep/GNUstep.conf "${T}" \ |
| 126 | || die "GNUstep.conf copy failed" |
126 | || die "GNUstep.conf copy failed" |
| 127 | sed -e "s#\(GNUSTEP_USER_DIR=\).*#\1${T}#" \ |
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" |
128 | -i "${T}"/GNUstep.conf || die "GNUstep.conf sed failed" |
| 130 | fi |
129 | fi |
| 131 | |
130 | |
| 132 | |
131 | |
| 133 | if [[ ! -d ${EPREFIX}/usr/share/GNUstep/Makefiles ]]; then |
132 | if [[ ! -d ${EPREFIX}/usr/share/GNUstep/Makefiles ]]; then |
| … | |
… | |
| 145 | GS_ENV=( AUXILIARY_LDFLAGS="${LDFLAGS}" \ |
144 | GS_ENV=( AUXILIARY_LDFLAGS="${LDFLAGS}" \ |
| 146 | ADDITIONAL_NATIVE_LIB_DIRS="${GNUSTEP_SYSTEM_LIBRARIES}" \ |
145 | ADDITIONAL_NATIVE_LIB_DIRS="${GNUSTEP_SYSTEM_LIBRARIES}" \ |
| 147 | DESTDIR="${D}" \ |
146 | DESTDIR="${D}" \ |
| 148 | HOME="${T}" \ |
147 | HOME="${T}" \ |
| 149 | GNUSTEP_CONFIG_FILE="${T}"/GNUstep.conf \ |
148 | GNUSTEP_CONFIG_FILE="${T}"/GNUstep.conf \ |
| 150 | GNUSTEP_USER_DIR="${T}" \ |
|
|
| 151 | GNUSTEP_USER_DEFAULTS_DIR="${T}"/Defaults \ |
|
|
| 152 | GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ |
149 | GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ |
| 153 | TAR_OPTIONS="${TAR_OPTIONS} --no-same-owner" \ |
150 | TAR_OPTIONS="${TAR_OPTIONS} --no-same-owner" \ |
| 154 | messages=yes \ |
151 | messages=yes ) |
| 155 | -j1 ) |
|
|
| 156 | |
152 | |
| 157 | use debug \ |
153 | use debug \ |
| 158 | && GS_ENV=( "${GS_ENV[@]}" "debug=yes" ) \ |
154 | && GS_ENV=( "${GS_ENV[@]}" "debug=yes" ) \ |
| 159 | || GS_ENV=( "${GS_ENV[@]}" "debug=no" ) |
155 | || GS_ENV=( "${GS_ENV[@]}" "debug=no" ) |
| 160 | |
156 | |