/[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.10 Revision 1.13
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.10 2009/05/11 10:58:42 voyageur Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-base.eclass,v 1.13 2009/11/25 10:11:40 voyageur 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
13# "debug": enable code for debugging 13# "debug": enable code for debugging
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
19 doc? ( virtual/texi2dvi dev-tex/latex2html app-text/texi2html )" 18GNUSTEP_CORE_DEPEND="doc? ( virtual/texi2dvi dev-tex/latex2html app-text/texi2html )"
20 19
21# Where to install GNUstep 20# Where to install GNUstep
22GNUSTEP_PREFIX="/usr/GNUstep" 21GNUSTEP_PREFIX="/usr/GNUstep"
23 22
24# GNUstep environment array 23# GNUstep environment array
39 38
40gnustep-base_src_unpack() { 39gnustep-base_src_unpack() {
41 unpack ${A} 40 unpack ${A}
42 cd "${S}" 41 cd "${S}"
43 42
43 gnustep-base_src_prepare
44}
45
46gnustep-base_src_prepare() {
44 if [[ -f ./GNUmakefile ]] ; then 47 if [[ -f ./GNUmakefile ]] ; then
45 # Kill stupid includes that are simply overdone or useless on normal 48 # Kill stupid includes that are simply overdone or useless on normal
46 # Gentoo, but (may) cause major headaches on Prefixed Gentoo. If this 49 # Gentoo, but (may) cause major headaches on Prefixed Gentoo. If this
47 # only removes a part of a path it's good that it bails out, as we want 50 # only removes a part of a path it's good that it bails out, as we want
48 # to know when they use some direct include. 51 # to know when they use some direct include.
136 die "gnustep-make not installed!" 139 die "gnustep-make not installed!"
137} 140}
138 141
139# Make utilizing GNUstep Makefiles 142# Make utilizing GNUstep Makefiles
140egnustep_make() { 143egnustep_make() {
141 if [[ -f ./[mM]akefile || -f ./GNUmakefile ]] ; then 144 if [[ -f ./Makefile || -f ./makefile || -f ./GNUmakefile ]] ; then
142 emake ${*} "${GS_ENV[@]}" all || die "package make failed" 145 emake ${*} "${GS_ENV[@]}" all || die "package make failed"
143 return 0 146 return 0
144 fi 147 fi
145 die "no Makefile found" 148 die "no Makefile found"
146} 149}
222 doexe "${T}"/${cfile} 225 doexe "${T}"/${cfile}
223} 226}
224 227
225case ${EAPI:-0} in 228case ${EAPI:-0} in
226 0|1) EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst ;; 229 0|1) EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst ;;
227 2) EXPORT_FUNCTIONS pkg_setup src_unpack src_configure src_compile src_install pkg_postinst ;; 230 2) EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_compile src_install pkg_postinst ;;
228esac 231esac

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20