/[gentoo-x86]/eclass/gnustep-base.eclass
Gentoo

Diff of /eclass/gnustep-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.17 Revision 1.22
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2012 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.22 2012/02/08 14:05:26 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 ) 152
153 use doc \
154 && GS_ENV=( "${GS_ENV[@]}" VARTEXFONTS="${T}"/fonts )
156 155
157 use debug \ 156 use debug \
158 && GS_ENV=( "${GS_ENV[@]}" "debug=yes" ) \ 157 && GS_ENV=( "${GS_ENV[@]}" "debug=yes" ) \
159 || GS_ENV=( "${GS_ENV[@]}" "debug=no" ) 158 || GS_ENV=( "${GS_ENV[@]}" "debug=no" )
159
160 if has_version gnustep-base/gnustep-make[libobjc2];
161 then
162 # Set clang for packages that do not respect gnustep-make
163 # settings (gnustep-base's configure for example)
164 export CC=clang CXX=clang CPP="clang -E" LD="clang"
165 fi
160 166
161 return 0 167 return 0
162 fi 168 fi
163 die "gnustep-make not installed!" 169 die "gnustep-make not installed!"
164} 170}

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20