/[gentoo-x86]/eclass/go-mono.eclass
Gentoo

Diff of /eclass/go-mono.eclass

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

Revision 1.11 Revision 1.12
1# Copyright 1999-2008 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/go-mono.eclass,v 1.11 2011/08/18 09:05:54 ali_bush Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/go-mono.eclass,v 1.12 2011/08/22 04:46:32 vapier Exp $
4 4
5# @ECLASS: go-mono.eclass 5# @ECLASS: go-mono.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# dotnet@gentoo.org 7# dotnet@gentoo.org
8# @BLURB: Common functionality for go-mono.org apps 8# @BLURB: Common functionality for go-mono.org apps
67DEPEND="${DEPEND} 67DEPEND="${DEPEND}
68 >=dev-util/pkgconfig-0.23 68 >=dev-util/pkgconfig-0.23
69 userland_GNU? ( >=sys-apps/findutils-4.4.0 )" 69 userland_GNU? ( >=sys-apps/findutils-4.4.0 )"
70 70
71# @FUNCTION: go-mono_src_unpack 71# @FUNCTION: go-mono_src_unpack
72# @DESCRIPTION: Runs default() 72# @DESCRIPTION:
73# Runs default()
73go-mono_src_unpack() { 74go-mono_src_unpack() {
74 if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]] 75 if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]]
75 then 76 then
76 default 77 default
77 git_src_unpack 78 git_src_unpack
79 default 80 default
80 fi 81 fi
81} 82}
82 83
83# @FUNCTION: go-mono_src_prepare 84# @FUNCTION: go-mono_src_prepare
85# @DESCRIPTION:
84# @DESCRIPTION: Runs autopatch from base.eclass, if PATCHES is set. 86# Runs autopatch from base.eclass, if PATCHES is set.
85go-mono_src_prepare() { 87go-mono_src_prepare() {
86 if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]] 88 if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]]
87 then 89 then
88 base_src_prepare 90 base_src_prepare
89 [[ "$EAUTOBOOTSTRAP" != "no" ]] && eautoreconf 91 [[ "$EAUTOBOOTSTRAP" != "no" ]] && eautoreconf
91 base_src_prepare 93 base_src_prepare
92 fi 94 fi
93} 95}
94 96
95# @FUNCTION: go-mono_src_configure 97# @FUNCTION: go-mono_src_configure
98# @DESCRIPTION:
96# @DESCRIPTION: Runs econf, disabling static libraries and dependency-tracking. 99# Runs econf, disabling static libraries and dependency-tracking.
97go-mono_src_configure() { 100go-mono_src_configure() {
98 econf --disable-dependency-tracking \ 101 econf --disable-dependency-tracking \
99 --disable-static \ 102 --disable-static \
100 "$@" 103 "$@"
101} 104}
102 105
103# @FUNCTION: go-mono_src_configure 106# @FUNCTION: go-mono_src_configure
104# @DESCRIPTION: Runs default() 107# @DESCRIPTION:
108# Runs default()
105go-mono_src_compile() { 109go-mono_src_compile() {
106 emake "$@" || die "emake failed" 110 emake "$@" || die "emake failed"
107} 111}
108 112
109# @ECLASS-VARIABLE: DOCS 113# @ECLASS-VARIABLE: DOCS
114# @DESCRIPTION:
110# @DESCRIPTION: Insert path of docs you want installed. If more than one, 115# Insert path of docs you want installed. If more than one,
111# consider using an array. 116# consider using an array.
112 117
113# @FUNCTION: go-mono_src_install 118# @FUNCTION: go-mono_src_install
119# @DESCRIPTION:
114# @DESCRIPTION: Rune emake, installs common doc files, if DOCS is 120# Rune emake, installs common doc files, if DOCS is
115# set, installs those. Gets rid of .la files. 121# set, installs those. Gets rid of .la files.
116go-mono_src_install () { 122go-mono_src_install () {
117 emake -j1 DESTDIR="${D}" "$@" install || die "install failed" 123 emake -j1 DESTDIR="${D}" "$@" install || die "install failed"
118 mono_multilib_comply 124 mono_multilib_comply
119 local commondoc=( AUTHORS ChangeLog README TODO ) 125 local commondoc=( AUTHORS ChangeLog README TODO )

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

  ViewVC Help
Powered by ViewVC 1.1.20