/[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.8 Revision 1.11
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.8 2008/10/03 14:59:42 voyageur Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-base.eclass,v 1.11 2009/07/06 19:55:55 grobian Exp $
4 4
5inherit eutils flag-o-matic 5inherit eutils flag-o-matic
6 6
7# Inner gnustep eclass, should only be inherited directly by gnustep-base 7# Inner gnustep eclass, should only be inherited directly by gnustep-base
8# packages 8# packages
14# "doc": build and install documentation, if available 14# "doc": build and install documentation, if available
15IUSE="debug doc" 15IUSE="debug doc"
16 16
17# packages needed to build any base gnustep package 17# packages needed to build any base gnustep package
18GNUSTEP_CORE_DEPEND="virtual/libc 18GNUSTEP_CORE_DEPEND="virtual/libc
19 doc? ( virtual/texi2dvi =dev-tex/latex2html-2002* >=app-text/texi2html-1.64 )" 19 doc? ( virtual/texi2dvi dev-tex/latex2html app-text/texi2html )"
20 20
21# Where to install GNUstep 21# Where to install GNUstep
22GNUSTEP_PREFIX="/usr/GNUstep" 22GNUSTEP_PREFIX="/usr/GNUstep"
23 23
24# GNUstep environment array 24# GNUstep environment array
119 HOME="${T}" \ 119 HOME="${T}" \
120 GNUSTEP_USER_DIR="${T}" \ 120 GNUSTEP_USER_DIR="${T}" \
121 GNUSTEP_USER_DEFAULTS_DIR="${T}"/Defaults \ 121 GNUSTEP_USER_DEFAULTS_DIR="${T}"/Defaults \
122 GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ 122 GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \
123 TAR_OPTIONS="${TAR_OPTIONS} --no-same-owner" \ 123 TAR_OPTIONS="${TAR_OPTIONS} --no-same-owner" \
124 messages=yes \ 124 messages=yes )
125 -j1 ) 125
126 # -j1 is needed as gnustep-make is not parallel-safe 126 # Parallel-make support was added in gnustep-make 2.2.0
127 has_version "<gnustep-base/gnustep-make-2.2.0" \
128 && GS_ENV=( "${GS_ENV[@]}" "-j1" )
127 129
128 use debug \ 130 use debug \
129 && GS_ENV=( "${GS_ENV[@]}" "debug=yes" ) \ 131 && GS_ENV=( "${GS_ENV[@]}" "debug=yes" ) \
130 || GS_ENV=( "${GS_ENV[@]}" "debug=no" ) 132 || GS_ENV=( "${GS_ENV[@]}" "debug=no" )
131 133
134 die "gnustep-make not installed!" 136 die "gnustep-make not installed!"
135} 137}
136 138
137# Make utilizing GNUstep Makefiles 139# Make utilizing GNUstep Makefiles
138egnustep_make() { 140egnustep_make() {
139 if [[ -f ./[mM]akefile || -f ./GNUmakefile ]] ; then 141 if [[ -f ./Makefile || -f ./makefile || -f ./GNUmakefile ]] ; then
140 emake ${*} "${GS_ENV[@]}" all || die "package make failed" 142 emake ${*} "${GS_ENV[@]}" all || die "package make failed"
141 return 0 143 return 0
142 fi 144 fi
143 die "no Makefile found" 145 die "no Makefile found"
144} 146}

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20