* [gentoo-commits] gentoo-x86 commit in eclass: gpe.eclass
@ 2009-02-28 14:07 Angelo Arrifano (miknix)
0 siblings, 0 replies; 2+ messages in thread
From: Angelo Arrifano (miknix) @ 2009-02-28 14:07 UTC (permalink / raw
To: gentoo-commits
miknix 09/02/28 14:07:58
Added: gpe.eclass
Log:
Initial commit of gpe eclass.
Credits to solar for his collaborative work with me on GPE.
Revision Changes Path
1.1 eclass/gpe.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gpe.eclass?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gpe.eclass?rev=1.1&content-type=text/plain
Index: gpe.eclass
===================================================================
# Copyright 2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/gpe.eclass,v 1.1 2009/02/28 14:07:58 miknix Exp $
#
# @ECLASS: gpe.eclass
# @MAINTAINER: <gpe@gentoo.org>
#
# Original Authors:
# Rene Wagner <rw@handhelds.org>
# Ned Ludd <solar@gentoo.org>
# Angelo Arrifano <miknix@gentoo.org>
#
# @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
# Betelgeuse for multiple suggestions.
#
# 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
# @ECLASS-VARIABLE: ELTCONF
# @DESCRIPTION:
# Extra options passed to elibtoolize on gnome2 eclass.
ELTCONF=""
# @ECLASS-VARIABLE: GPE_DOCS
# @DESCRIPTION:
# Documentation files to be installed with dodoc.
GPE_DOCS=""
[[ -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 "$@"
emake PREFIX=/usr || die "emake failed"
}
# @FUNCTION: gpe_src_install
# @DESCRIPTION: Installs a GPE package in the correct way.
gpe_src_install() {
local use_nls=yes
use nls || use_nls=no
if [ -f configure ]; then
einstall "$@" || die "einstall failed"
else
emake STRIP=true DESTDIR=${D} PREFIX=/usr \
ENABLE_NLS=${use_nls} "$@" install || die "emake install failed"
fi
use nls || rm -rf ${D}/usr/share/locale
# manual document installation
if [[ "${GPE_DOCS}" ]]; then
dodoc ${GPE_DOCS} || die "dodoc failed"
fi
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: gpe.eclass
@ 2009-06-05 22:53 Angelo Arrifano (miknix)
0 siblings, 0 replies; 2+ messages in thread
From: Angelo Arrifano (miknix) @ 2009-06-05 22:53 UTC (permalink / raw
To: gentoo-commits
miknix 09/06/05 22:53:46
Modified: gpe.eclass
Log:
Fix sed messing with Makefile timestamps, see bug #272161 .
Revision Changes Path
1.2 eclass/gpe.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gpe.eclass?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gpe.eclass?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gpe.eclass?r1=1.1&r2=1.2
Index: gpe.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/gpe.eclass,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gpe.eclass 28 Feb 2009 14:07:58 -0000 1.1
+++ gpe.eclass 5 Jun 2009 22:53:46 -0000 1.2
@@ -1,6 +1,6 @@
# Copyright 2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gpe.eclass,v 1.1 2009/02/28 14:07:58 miknix Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gpe.eclass,v 1.2 2009/06/05 22:53:46 miknix Exp $
#
# @ECLASS: gpe.eclass
# @MAINTAINER: <gpe@gentoo.org>
@@ -66,7 +66,8 @@
# Do not call, use gpe_src_unpack() instead.
gpe_src_prepare() {
# let portage handle stripping.
- for file in $(find . -name 'Makefile*') ; do
+ # sort is needed, see #272161 .
+ for file in $(find . -name 'Makefile*' | sort) ; do
sed -i -e s/'install -s'/'install'/g \
-e s/'install -Ds'/'install -D'/g \
-e 's/$(INSTALL) -s/$(INSTALL) /g' \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-05 22:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-28 14:07 [gentoo-commits] gentoo-x86 commit in eclass: gpe.eclass Angelo Arrifano (miknix)
-- strict thread matches above, loose matches on Subject: below --
2009-06-05 22:53 Angelo Arrifano (miknix)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox