From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LVuM6-00051U-M3 for garchives@archives.gentoo.org; Sat, 07 Feb 2009 21:04:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C9FAE053C; Sat, 7 Feb 2009 21:04:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1CF08E053C for ; Sat, 7 Feb 2009 21:04:48 +0000 (UTC) Received: from [10.0.0.8] (bl3-207-173.dsl.telepac.pt [213.13.207.173]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 25759649E4 for ; Sat, 7 Feb 2009 21:04:44 +0000 (UTC) Subject: Re: [gentoo-dev] Announcement of The G Palmtop Environment ebuilds From: Angelo Arrifano To: gentoo-dev@lists.gentoo.org In-Reply-To: <498A3830.8060203@gentoo.org> References: <1233675279.6250.95.camel@localhost> <4989827F.3000907@gentoo.org> <1233756207.22368.29.camel@localhost> <4989C3FF.2040801@gentoo.org> <1233794277.22368.57.camel@localhost> <498A3830.8060203@gentoo.org> Content-Type: text/plain Organization: Gentoo Linux ARM/OMAP850 Developer Date: Sat, 07 Feb 2009 21:05:36 +0000 Message-Id: <1234040736.13462.3.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 157e0f5c-a630-4b0e-bfbf-04f32ff285a9 X-Archives-Hash: ea4e607af71e47bfc9c79f13562948d9 # Copyright 2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # # @ECLASS: gpe.eclass # @MAINTAINER: # # Original Authors: # Rene Wagner # Ned Ludd # Angelo Arrifano # # @BLURB: Provides common functionality for the G Palmtop Environment. # @DESCRIPTION: Provides common functionality for the G Palmtop Environment. # # Thanks to: # loki_val for EAPI->EAPI2 patch # # Based on: # gnome2.eclass and gpe.bbclass (the latter from OpenEmbedded) inherit libtool toolchain-funcs case "${EAPI:-0}" in 0|1) EXPORT_FUNCTIONS src_unpack src_compile src_install ;; *) EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install ;; esac ELTCONF="" # extra options passed to elibtoolize GPE_DOCS="" # documentation files to be installed with dodoc [ -z "${GPE_MIRROR}" ] && GPE_MIRROR="http://gpe.linuxtogo.org/download/source" [ -z "${GPE_TARBALL_SUFFIX}" ] && GPE_TARBALL_SUFFIX="gz" SRC_URI="${GPE_MIRROR}/${P}.tar.${GPE_TARBALL_SUFFIX}" HOMEPAGE="http://gpe.linuxtogo.org" IUSE="nls" GPECONF="${GPECONF} --enable-debug=no --disable-debug" RDEPEND="" DEPEND=" >=dev-util/intltool-0.29 >=dev-util/pkgconfig-0.12.0" # @FUNCTION: gpe_src_unpack # @DESCRIPTION: Unpacks and applies some required patches for GPE. gpe_src_unpack() { unpack ${A} cd "${S}" has "${EAPI:-0}" 0 1 && gpe_src_prepare "$@" } # Do not call, use gpe_src_unpack() instead. gpe_src_prepare() { # let portage handle stripping. for file in $(find . -name 'Makefile*') ; do sed -i -e s/'install -s'/'install'/g \ -e s/'install -Ds'/'install -D'/g \ -e 's/$(INSTALL) -s/$(INSTALL) /g' \ -e 's;strip ;#strip ;g' \ ${file} \ ||die "Sedding ${file} failed." done [[ -f configure ]] && elibtoolize } # @FUNCTION: gpe_src_configure # @DESCRIPTION: Configures a GPE package in a cross-compile aware environment. gpe_src_configure() { tc-export CC [[ -f configure ]] && econf "$@" ${GPECONF} } # @FUNCTION: gpe_src_compile # @DESCRIPTION: (Cross-)Compiles a GPE package. gpe_src_compile() { tc-export CC has "${EAPI:-0}" 0 1 && gpe_src_configure "$@" # miknix: Code belo must NOT die, some packages dont really build anything, # just install. emake PREFIX=/usr } # @FUNCTION: gpe_src_install # @DESCRIPTION: Installs a GPE package in the correct way. gpe_src_install() { local use_nls use_nls=yes use nls || use_nls=no if [ -f configure ]; then einstall "$@" || die "einstall failed" else emake DESTDIR=${D} ENABLE_NLS=${use_nls} \ "$@" install || die "emake install failed" fi if [[ "${GPE_DOCS}" ]]; then dodoc ${GPE_DOCS} || die "dodoc failed" fi } Thanks all for the suggestions/patches -- Angelo Arrifano Gentoo Linux ARM/OMAP850 Developer