/[gentoo-x86]/eclass/x-modular.eclass
Gentoo

Diff of /eclass/x-modular.eclass

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

Revision 1.5 Revision 1.6
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/x-modular.eclass,v 1.5 2005/08/15 00:33:31 spyderous Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.6 2005/08/21 04:56:53 spyderous Exp $
4# 4#
5# Author: Donnie Berkholz <spyderous@gentoo.org> 5# Author: Donnie Berkholz <spyderous@gentoo.org>
6# 6#
7# This eclass is designed to reduce code duplication in the modularized X11 7# This eclass is designed to reduce code duplication in the modularized X11
8# ebuilds. 8# ebuilds.
100 x-modular_unpack_source 100 x-modular_unpack_source
101 x-modular_patch_source 101 x-modular_patch_source
102 x-modular_reconf_source 102 x-modular_reconf_source
103} 103}
104 104
105x-modular_src_compile() { 105x-modular_src_configure() {
106 # If prefix isn't set here, .pc files cause problems 106 # If prefix isn't set here, .pc files cause problems
107 if [ -x ./configure ]; then 107 if [ -x ./configure ]; then
108 econf --prefix=${XDIR} \ 108 econf --prefix=${XDIR} \
109 --datadir=${XDIR}/share \ 109 --datadir=${XDIR}/share \
110 ${CONFIGURE_OPTIONS} 110 ${CONFIGURE_OPTIONS}
111 fi 111 fi
112}
113
114x-modular_src_make() {
112 emake || die "emake failed" 115 emake || die "emake failed"
116}
117
118x-modular_src_compile() {
119 x-modular_src_configure
120 x-modular_src_make
113} 121}
114 122
115x-modular_src_install() { 123x-modular_src_install() {
116 # Install everything to ${XDIR} 124 # Install everything to ${XDIR}
117 make \ 125 make \

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20