* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2007-11-06 22:38 Chris Gianelloni (wolf31o2)
0 siblings, 0 replies; 25+ messages in thread
From: Chris Gianelloni (wolf31o2) @ 2007-11-06 22:38 UTC (permalink / raw
To: gentoo-commits
wolf31o2 07/11/06 22:38:13
Modified: games.eclass
Log:
Remove UT from the comments on games_ut_unpack due to bug #196142.
Revision Changes Path
1.123 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.123&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.123&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.122&r2=1.123
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -r1.122 -r1.123
--- games.eclass 10 Apr 2007 01:33:03 -0000 1.122
+++ games.eclass 6 Nov 2007 22:38:13 -0000 1.123
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.122 2007/04/10 01:33:03 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.123 2007/11/06 22:38:13 wolf31o2 Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -194,7 +194,7 @@
fi
}
-# Unpack .uz(2) files for UT/UT2003/UT2004
+# Unpack .uz2 files for UT2003/UT2004
# $1: directory or file to unpack
games_ut_unpack() {
local ut_unpack="$1"
@@ -208,7 +208,7 @@
|| die "uncompressing file ${ut_unpack}"
fi
if [[ -d ${ut_unpack} ]] ; then
- for f in $(find "${ut_unpack}" -name '*.uz*' -printf '%f ') ; do
+ for f in $(find "${ut_unpack}" -name '*.uz2' -printf '%f ') ; do
uz2unpack "${ut_unpack}/${f}" "${ut_unpack}/${f/.uz2}" &>/dev/null \
|| die "uncompressing file ${f}"
rm -f "${ut_unpack}/${f}" || die "deleting compressed file ${f}"
--
gentoo-commits@gentoo.org mailing list
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2008-02-15 0:15 Tristan Heaven (nyhm)
0 siblings, 0 replies; 25+ messages in thread
From: Tristan Heaven (nyhm) @ 2008-02-15 0:15 UTC (permalink / raw
To: gentoo-commits
nyhm 08/02/15 00:15:52
Modified: games.eclass
Log:
fix quoting in games_umod_unpack
Revision Changes Path
1.124 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.124&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.124&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.123&r2=1.124
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- games.eclass 6 Nov 2007 22:38:13 -0000 1.123
+++ games.eclass 15 Feb 2008 00:15:51 -0000 1.124
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.123 2007/11/06 22:38:13 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.124 2008/02/15 00:15:51 nyhm Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -218,13 +218,13 @@
# Unpacks .umod/.ut2mod/.ut4mod files for UT/UT2003/UT2004
# Usage: games_umod_unpack $1
+# oh, and don't forget to set 'dir' and 'Ddir'
games_umod_unpack() {
local umod=$1
- mkdir -p "${Ddir}/System"
- cp "${dir}"/System/{ucc-bin,{Manifest,Def{ault,User}}.ini,{Engine,Core,zlib,ogg,vorbis}.so,{Engine,Core}.int} ${Ddir}/System
- export UT_DATA_PATH="${Ddir}/System"
- cd "${UT_DATA_PATH}"
- ./ucc-bin umodunpack -x "${S}/${umod}" -nohomedir &> /dev/null \
+ mkdir -p "${Ddir}"/System
+ cp "${dir}"/System/{ucc-bin,{Manifest,Def{ault,User}}.ini,{Engine,Core,zlib,ogg,vorbis}.so,{Engine,Core}.int} "${Ddir}"/System
+ cd "${Ddir}"/System
+ UT_DATA_PATH=${Ddir}/System ./ucc-bin umodunpack -x "${S}/${umod}" -nohomedir &> /dev/null \
|| die "uncompressing file ${umod}"
rm -f "${Ddir}"/System/{ucc-bin,{Manifest,Def{ault,User},User,UT200{3,4}}.ini,{Engine,Core,zlib,ogg,vorbis}.so,{Engine,Core}.int,ucc.log} &>/dev/null \
|| die "Removing temporary files"
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2008-04-26 15:50 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; 25+ messages in thread
From: Michael Sterrett (mr_bones_) @ 2008-04-26 15:50 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 08/04/26 15:50:36
Modified: games.eclass
Log:
Make sure only files in GAMES_STATEDIR are writable.
Revision Changes Path
1.125 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.125&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.125&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.124&r2=1.125
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -r1.124 -r1.125
--- games.eclass 15 Feb 2008 00:15:51 -0000 1.124
+++ games.eclass 26 Apr 2008 15:50:35 -0000 1.125
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.124 2008/02/15 00:15:51 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.125 2008/04/26 15:50:35 mr_bones_ Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -82,7 +82,7 @@
gamesowners() { chown ${GAMES_USER}:${GAMES_GROUP} "$@"; }
gamesperms() { chmod u+rw,g+r-w,o-rwx "$@"; }
prepgamesdirs() {
- local dir f
+ local dir f mode
for dir in \
"${GAMES_PREFIX}" "${GAMES_PREFIX_OPT}" "${GAMES_DATADIR}" \
"${GAMES_SYSCONFDIR}" "${GAMES_STATEDIR}" "$(games_get_libdir)" \
@@ -92,7 +92,9 @@
(
gamesowners -R "${D}/${dir}"
find "${D}/${dir}" -type d -print0 | xargs -0 chmod 750
- find "${D}/${dir}" -type f -print0 | xargs -0 chmod o-rwx,g+r
+ mode=o-rwx,g+r,g-w
+ [[ ${dir} = ${GAMES_STATEDIR} ]] && mode=o-rwx,g+r
+ find "${D}/${dir}" -type f -print0 | xargs -0 chmod $mode
) &>/dev/null
f=$(find "${D}/${dir}" -perm +4000 -a -uid 0 2>/dev/null)
if [[ -n ${f} ]] ; then
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2008-09-05 17:02 Tristan Heaven (nyhm)
0 siblings, 0 replies; 25+ messages in thread
From: Tristan Heaven (nyhm) @ 2008-09-05 17:02 UTC (permalink / raw
To: gentoo-commits
nyhm 08/09/05 17:02:43
Modified: games.eclass
Log:
remove egamesinstall to break some overlays
Revision Changes Path
1.126 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.126&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.126&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.125&r2=1.126
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -r1.125 -r1.126
--- games.eclass 26 Apr 2008 15:50:35 -0000 1.125
+++ games.eclass 5 Sep 2008 17:02:43 -0000 1.126
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.125 2008/04/26 15:50:35 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.126 2008/09/05 17:02:43 nyhm Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -46,19 +46,6 @@
|| die "egamesconf failed"
}
-egamesinstall() {
- ewarn "Don't use egamesinstall, use emake DESTDIR=\"\${D}\" install instead"
- epause 30
- make \
- prefix="${D}${GAMES_PREFIX}" \
- mandir="${D}/usr/share/man" \
- infodir="${D}/usr/share/info" \
- datadir="${D}${GAMES_DATADIR}" \
- sysconfdir="${D}${GAMES_SYSCONFDIR}" \
- localstatedir="${D}${GAMES_STATEDIR}" \
- "$@" install || die "egamesinstall failed"
-}
-
gameswrapper() {
# dont want to pollute calling env
(
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2008-09-11 16:57 Tristan Heaven (nyhm)
0 siblings, 0 replies; 25+ messages in thread
From: Tristan Heaven (nyhm) @ 2008-09-11 16:57 UTC (permalink / raw
To: gentoo-commits
nyhm 08/09/11 16:57:15
Modified: games.eclass
Log:
fix LDPATH on multilib systems, bug #202032
Revision Changes Path
1.127 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.127&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.127&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.126&r2=1.127
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -r1.126 -r1.127
--- games.eclass 5 Sep 2008 17:02:43 -0000 1.126
+++ games.eclass 11 Sep 2008 16:57:14 -0000 1.127
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.126 2008/09/05 17:02:43 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.127 2008/09/11 16:57:14 nyhm Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -32,7 +32,7 @@
export GAMES_GROUP=${GAMES_GROUP:-games}
games_get_libdir() {
- echo ${GAMES_LIBDIR:-${GAMES_PREFIX}/$(get_libdir)}
+ echo ${GAMES_PREFIX}/$(get_libdir)
}
egamesconf() {
@@ -95,25 +95,16 @@
}
gamesenv() {
- # As much as I hate doing this, we need to be a bit more flexibility with
- # our library directories.
- local hasit=0 GAMES_LIBDIRS="" GAMES_LIBDIR=$(games_get_libdir)
- if has_multilib_profile ; then
- for libdir in $(get_all_libdirs) ; do
- if [[ ${GAMES_LIBDIR} != ${GAMES_PREFIX}/${libdir} ]] ; then
- GAMES_LIBDIRS="${GAMES_LIBDIRS}:${GAMES_PREFIX}/${libdir}"
- else
- hasit=1
- fi
- done
- fi
- [[ ${hasit} == "1" ]] \
- && GAMES_LIBDIRS=${GAMES_LIBDIRS:1} \
- || GAMES_LIBDIRS="${GAMES_LIBDIR}:${GAMES_LIBDIRS}"
+ local d libdirs
+
+ for d in $(get_all_libdirs) ; do
+ libdirs="${libdirs}:${GAMES_PREFIX}/${d}"
+ done
+
# Wish we could use doevnd here, but we dont want the env
# file to be tracked in the CONTENTS of every game
cat <<-EOF > "${ROOT}"/etc/env.d/${GAMES_ENVD}
- LDPATH="${GAMES_LIBDIRS}"
+ LDPATH="${libdirs:1}"
PATH="${GAMES_BINDIR}"
EOF
}
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2008-09-28 23:40 Tristan Heaven (nyhm)
0 siblings, 0 replies; 25+ messages in thread
From: Tristan Heaven (nyhm) @ 2008-09-28 23:40 UTC (permalink / raw
To: gentoo-commits
nyhm 08/09/28 23:40:24
Modified: games.eclass
Log:
EAPI 2 support
Revision Changes Path
1.128 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.128&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.128&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.127&r2=1.128
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -r1.127 -r1.128
--- games.eclass 11 Sep 2008 16:57:14 -0000 1.127
+++ games.eclass 28 Sep 2008 23:40:23 -0000 1.128
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.127 2008/09/11 16:57:14 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.128 2008/09/28 23:40:23 nyhm Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -10,7 +10,10 @@
inherit multilib eutils
-EXPORT_FUNCTIONS pkg_preinst pkg_postinst src_compile pkg_setup
+case ${EAPI:-0} in
+ 0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;;
+ 2) EXPORT_FUNCTIONS pkg_setup src_configure src_compile pkg_preinst pkg_postinst ;;
+esac
[[ -z ${GAME} ]] && GAME=${PN%%-*}
@@ -135,8 +138,14 @@
&& usermod -s /bin/bash "${GAMES_USER_DED}"
}
-games_src_compile() {
+games_src_configure() {
[[ -x ./configure ]] && { egamesconf || die "egamesconf failed"; }
+}
+
+games_src_compile() {
+ case ${EAPI:-0} in
+ 0|1) games_src_configure ;;
+ esac
[ -e [Mm]akefile ] && { emake || die "emake failed"; }
}
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2008-12-01 20:36 Tristan Heaven (nyhm)
0 siblings, 0 replies; 25+ messages in thread
From: Tristan Heaven (nyhm) @ 2008-12-01 20:36 UTC (permalink / raw
To: gentoo-commits
nyhm 08/12/01 20:36:43
Modified: games.eclass
Log:
patch from Davide Pesavento to fix word splitting issues, bug #241666
Revision Changes Path
1.129 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.129&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.129&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.128&r2=1.129
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -r1.128 -r1.129
--- games.eclass 28 Sep 2008 23:40:23 -0000 1.128
+++ games.eclass 1 Dec 2008 20:36:43 -0000 1.129
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.128 2008/09/28 23:40:23 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.129 2008/12/01 20:36:43 nyhm Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -152,7 +152,7 @@
games_pkg_preinst() {
local f
- for f in $(find "${D}/${GAMES_STATEDIR}" -type f -printf '%P ' 2>/dev/null) ; do
+ while read f ; do
if [[ -e ${ROOT}/${GAMES_STATEDIR}/${f} ]] ; then
cp -p \
"${ROOT}/${GAMES_STATEDIR}/${f}" \
@@ -161,7 +161,7 @@
# make the date match the rest of the install
touch "${D}/${GAMES_STATEDIR}/${f}"
fi
- done
+ done < <(find "${D}/${GAMES_STATEDIR}" -type f -printf '%P\n' 2>/dev/null)
}
# pkg_postinst function ... create env.d entry and warn about games group
@@ -197,11 +197,11 @@
|| die "uncompressing file ${ut_unpack}"
fi
if [[ -d ${ut_unpack} ]] ; then
- for f in $(find "${ut_unpack}" -name '*.uz2' -printf '%f ') ; do
- uz2unpack "${ut_unpack}/${f}" "${ut_unpack}/${f/.uz2}" &>/dev/null \
+ while read f ; do
+ uz2unpack "${ut_unpack}/${f}" "${ut_unpack}/${f%.uz2}" &>/dev/null \
|| die "uncompressing file ${f}"
rm -f "${ut_unpack}/${f}" || die "deleting compressed file ${f}"
- done
+ done < <(find "${ut_unpack}" -maxdepth 1 -name '*.uz2' -printf '%f\n' 2>/dev/null)
fi
}
@@ -224,11 +224,11 @@
games_link_mods() {
if [[ -e ${GAMES_DATADIR}/${GAME} ]] ; then
cd "${GAMES_DATADIR}/${GAME}"
- for mod in $(find . -type d -printf '%P ') ; do
+ while read mod ; do
if [[ ! -e ${Ddir}/${mod} ]] ; then
elog "Creating symlink for ${mod}"
dosym "${GAMES_DATADIR}"/${GAME}/${mod} "${dir}"/${mod} || die
fi
- done
+ done < <(find . -type d -printf '%P\n' 2>/dev/null)
fi
}
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-01-05 1:24 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; 25+ messages in thread
From: Michael Sterrett (mr_bones_) @ 2009-01-05 1:24 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 09/01/05 01:24:52
Modified: games.eclass
Log:
inherit base so PATCHES array works
Revision Changes Path
1.130 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.130&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.130&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.129&r2=1.130
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -r1.129 -r1.130
--- games.eclass 1 Dec 2008 20:36:43 -0000 1.129
+++ games.eclass 5 Jan 2009 01:24:52 -0000 1.130
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.129 2008/12/01 20:36:43 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.130 2009/01/05 01:24:52 mr_bones_ Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -8,7 +8,7 @@
# you better have a *good* reason why you're *not* using games.eclass
# in a games-* ebuild
-inherit multilib eutils
+inherit base multilib eutils
case ${EAPI:-0} in
0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;;
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-01-21 19:03 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; 25+ messages in thread
From: Michael Sterrett (mr_bones_) @ 2009-01-21 19:03 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 09/01/21 19:03:53
Modified: games.eclass
Log:
just always export CC and CXX from toolchain so we don't have to manually do it in a bunch of places.
Revision Changes Path
1.131 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.131&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.131&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.130&r2=1.131
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -r1.130 -r1.131
--- games.eclass 5 Jan 2009 01:24:52 -0000 1.130
+++ games.eclass 21 Jan 2009 19:03:53 -0000 1.131
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.130 2009/01/05 01:24:52 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.131 2009/01/21 19:03:53 mr_bones_ Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -8,7 +8,7 @@
# you better have a *good* reason why you're *not* using games.eclass
# in a games-* ebuild
-inherit base multilib eutils
+inherit base multilib toolchain-funcs eutils
case ${EAPI:-0} in
0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;;
@@ -113,6 +113,7 @@
}
games_pkg_setup() {
+ tc-export CC CXX
[[ ${GAMES_CHECK_LICENSE} == "yes" ]] && check_license ${LICENSE}
# Make sure SDL was built in a certain way
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-01-22 19:50 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; 25+ messages in thread
From: Michael Sterrett (mr_bones_) @ 2009-01-22 19:50 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 09/01/22 19:50:19
Modified: games.eclass
Log:
Avoid dying on newer libsdl which doesn't have the no* use flags anymore.
Revision Changes Path
1.132 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.132&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.132&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.131&r2=1.132
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -r1.131 -r1.132
--- games.eclass 21 Jan 2009 19:03:53 -0000 1.131
+++ games.eclass 22 Jan 2009 19:50:19 -0000 1.132
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.131 2009/01/21 19:03:53 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.132 2009/01/22 19:50:19 mr_bones_ Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -118,7 +118,7 @@
# Make sure SDL was built in a certain way
if [[ -n ${GAMES_USE_SDL} ]] ; then
- if built_with_use -o media-libs/libsdl ${GAMES_USE_SDL} ; then
+ if built_with_use --missing false -o media-libs/libsdl ${GAMES_USE_SDL} ; then
eerror "You built libsdl with wrong USE flags."
eerror "Make sure you rebuild it like this:"
eerror "USE='-${GAMES_USE_SDL// / -}'"
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-03-04 2:03 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; 25+ messages in thread
From: Michael Sterrett (mr_bones_) @ 2009-03-04 2:03 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 09/03/04 02:03:53
Modified: games.eclass
Log:
punt GAMES_USE_SDL; now handled by use-based deps
Revision Changes Path
1.133 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.133&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.133&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.132&r2=1.133
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -r1.132 -r1.133
--- games.eclass 22 Jan 2009 19:50:19 -0000 1.132
+++ games.eclass 4 Mar 2009 02:03:53 -0000 1.133
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.132 2009/01/22 19:50:19 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.133 2009/03/04 02:03:53 mr_bones_ Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -116,16 +116,6 @@
tc-export CC CXX
[[ ${GAMES_CHECK_LICENSE} == "yes" ]] && check_license ${LICENSE}
- # Make sure SDL was built in a certain way
- if [[ -n ${GAMES_USE_SDL} ]] ; then
- if built_with_use --missing false -o media-libs/libsdl ${GAMES_USE_SDL} ; then
- eerror "You built libsdl with wrong USE flags."
- eerror "Make sure you rebuild it like this:"
- eerror "USE='-${GAMES_USE_SDL// / -}'"
- die "your libsdl sucks"
- fi
- fi
-
enewgroup "${GAMES_GROUP}" 35
[[ ${GAMES_USER} != "root" ]] \
&& enewuser "${GAMES_USER}" 35 -1 "${GAMES_PREFIX}" "${GAMES_GROUP}"
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-03-05 2:07 Mike Frysinger (vapier)
0 siblings, 0 replies; 25+ messages in thread
From: Mike Frysinger (vapier) @ 2009-03-05 2:07 UTC (permalink / raw
To: gentoo-commits
vapier 09/03/05 02:07:11
Modified: games.eclass
Log:
do not dereference symlinks in prepgamesdirs() when changing owners #261196
Revision Changes Path
1.134 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.134&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.134&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.133&r2=1.134
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -r1.133 -r1.134
--- games.eclass 4 Mar 2009 02:03:53 -0000 1.133
+++ games.eclass 5 Mar 2009 02:07:11 -0000 1.134
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.133 2009/03/04 02:03:53 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.134 2009/03/05 02:07:11 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -80,7 +80,7 @@
do
[[ ! -d ${D}/${dir} ]] && continue
(
- gamesowners -R "${D}/${dir}"
+ gamesowners -h -R "${D}/${dir}"
find "${D}/${dir}" -type d -print0 | xargs -0 chmod 750
mode=o-rwx,g+r,g-w
[[ ${dir} = ${GAMES_STATEDIR} ]] && mode=o-rwx,g+r
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-03-08 13:24 Mike Frysinger (vapier)
0 siblings, 0 replies; 25+ messages in thread
From: Mike Frysinger (vapier) @ 2009-03-08 13:24 UTC (permalink / raw
To: gentoo-commits
vapier 09/03/08 13:24:49
Modified: games.eclass
Log:
revert previous change as it makes no difference and the real bug is in sandbox
Revision Changes Path
1.135 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.135&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.135&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.134&r2=1.135
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -r1.134 -r1.135
--- games.eclass 5 Mar 2009 02:07:11 -0000 1.134
+++ games.eclass 8 Mar 2009 13:24:49 -0000 1.135
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.134 2009/03/05 02:07:11 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.135 2009/03/08 13:24:49 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -80,7 +80,7 @@
do
[[ ! -d ${D}/${dir} ]] && continue
(
- gamesowners -h -R "${D}/${dir}"
+ gamesowners -R "${D}/${dir}"
find "${D}/${dir}" -type d -print0 | xargs -0 chmod 750
mode=o-rwx,g+r,g-w
[[ ${dir} = ${GAMES_STATEDIR} ]] && mode=o-rwx,g+r
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-04-05 3:38 Mike Frysinger (vapier)
0 siblings, 0 replies; 25+ messages in thread
From: Mike Frysinger (vapier) @ 2009-04-05 3:38 UTC (permalink / raw
To: gentoo-commits
vapier 09/04/05 03:38:15
Modified: games.eclass
Log:
make sure we dont set common dirs like /opt/bin and /opt/lib to games owner #264872 by Kris Scott
Revision Changes Path
1.136 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.136&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.136&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.135&r2=1.136
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -r1.135 -r1.136
--- games.eclass 8 Mar 2009 13:24:49 -0000 1.135
+++ games.eclass 5 Apr 2009 03:38:14 -0000 1.136
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.135 2009/03/08 13:24:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.136 2009/04/05 03:38:14 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -85,7 +85,18 @@
mode=o-rwx,g+r,g-w
[[ ${dir} = ${GAMES_STATEDIR} ]] && mode=o-rwx,g+r
find "${D}/${dir}" -type f -print0 | xargs -0 chmod $mode
+
+ # common trees should not be games owned #264872
+ if [[ ${dir} == "${GAMES_PREFIX_OPT}" ]] ; then
+ fowners root:root "${dir}"
+ fperms 755 "${dir}"
+ for d in $(get_libdir) bin ; do
+ fowners root:root "${dir}/${d}"
+ fperms 755 "${dir}/${d}"
+ done
+ fi
) &>/dev/null
+
f=$(find "${D}/${dir}" -perm +4000 -a -uid 0 2>/dev/null)
if [[ -n ${f} ]] ; then
eerror "A game was detected that is setuid root!"
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-07-26 10:57 Tristan Heaven (nyhm)
0 siblings, 0 replies; 25+ messages in thread
From: Tristan Heaven (nyhm) @ 2009-07-26 10:57 UTC (permalink / raw
To: gentoo-commits
nyhm 09/07/26 10:57:40
Modified: games.eclass
Log:
remove unused games_link_mods function
Revision Changes Path
1.137 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.137&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.137&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.136&r2=1.137
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -r1.136 -r1.137
--- games.eclass 5 Apr 2009 03:38:14 -0000 1.136
+++ games.eclass 26 Jul 2009 10:57:40 -0000 1.137
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.136 2009/04/05 03:38:14 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.137 2009/07/26 10:57:40 nyhm Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -220,17 +220,3 @@
rm -f "${Ddir}"/System/{ucc-bin,{Manifest,Def{ault,User},User,UT200{3,4}}.ini,{Engine,Core,zlib,ogg,vorbis}.so,{Engine,Core}.int,ucc.log} &>/dev/null \
|| die "Removing temporary files"
}
-
-# Link mods created by games-mods.eclass into the GAMES_PREFIX_OPT directories
-# so they can be found by binary versions of the games.
-games_link_mods() {
- if [[ -e ${GAMES_DATADIR}/${GAME} ]] ; then
- cd "${GAMES_DATADIR}/${GAME}"
- while read mod ; do
- if [[ ! -e ${Ddir}/${mod} ]] ; then
- elog "Creating symlink for ${mod}"
- dosym "${GAMES_DATADIR}"/${GAME}/${mod} "${dir}"/${mod} || die
- fi
- done < <(find . -type d -printf '%P\n' 2>/dev/null)
- fi
-}
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-07-26 11:05 Tristan Heaven (nyhm)
0 siblings, 0 replies; 25+ messages in thread
From: Tristan Heaven (nyhm) @ 2009-07-26 11:05 UTC (permalink / raw
To: gentoo-commits
nyhm 09/07/26 11:05:04
Modified: games.eclass
Log:
don't need to set GAME now
Revision Changes Path
1.138 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.138&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.138&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.137&r2=1.138
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -r1.137 -r1.138
--- games.eclass 26 Jul 2009 10:57:40 -0000 1.137
+++ games.eclass 26 Jul 2009 11:05:04 -0000 1.138
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.137 2009/07/26 10:57:40 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.138 2009/07/26 11:05:04 nyhm Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -15,8 +15,6 @@
2) EXPORT_FUNCTIONS pkg_setup src_configure src_compile pkg_preinst pkg_postinst ;;
esac
-[[ -z ${GAME} ]] && GAME=${PN%%-*}
-
DESCRIPTION="Based on the ${ECLASS} eclass"
export GAMES_PREFIX=${GAMES_PREFIX:-/usr/games}
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-12-09 0:27 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; 25+ messages in thread
From: Michael Sterrett (mr_bones_) @ 2009-12-09 0:27 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 09/12/09 00:27:24
Modified: games.eclass
Log:
econf already dies; use base_src_compile instead of rolling our own (less featureful) one.
Revision Changes Path
1.139 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.139&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.139&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.138&r2=1.139
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -r1.138 -r1.139
--- games.eclass 26 Jul 2009 11:05:04 -0000 1.138
+++ games.eclass 9 Dec 2009 00:27:24 -0000 1.139
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.138 2009/07/26 11:05:04 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.139 2009/12/09 00:27:24 mr_bones_ Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -43,8 +43,7 @@
--datadir="${GAMES_DATADIR}" \
--sysconfdir="${GAMES_SYSCONFDIR}" \
--localstatedir="${GAMES_STATEDIR}" \
- "$@" \
- || die "egamesconf failed"
+ "$@"
}
gameswrapper() {
@@ -139,14 +138,14 @@
}
games_src_configure() {
- [[ -x ./configure ]] && { egamesconf || die "egamesconf failed"; }
+ [[ -x ./configure ]] && { egamesconf; }
}
games_src_compile() {
case ${EAPI:-0} in
0|1) games_src_configure ;;
esac
- [ -e [Mm]akefile ] && { emake || die "emake failed"; }
+ base_src_compile make
}
games_pkg_preinst() {
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2009-12-16 23:55 Jonathan Callen (abcd)
0 siblings, 0 replies; 25+ messages in thread
From: Jonathan Callen (abcd) @ 2009-12-16 23:55 UTC (permalink / raw
To: gentoo-commits
abcd 09/12/16 23:55:44
Modified: games.eclass
Log:
Remove extra leftover braces from removed "|| die"
Revision Changes Path
1.140 eclass/games.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.140&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.140&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.139&r2=1.140
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -r1.139 -r1.140
--- games.eclass 9 Dec 2009 00:27:24 -0000 1.139
+++ games.eclass 16 Dec 2009 23:55:44 -0000 1.140
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.139 2009/12/09 00:27:24 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.140 2009/12/16 23:55:44 abcd Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -138,7 +138,7 @@
}
games_src_configure() {
- [[ -x ./configure ]] && { egamesconf; }
+ [[ -x ./configure ]] && egamesconf
}
games_src_compile() {
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2010-08-31 17:04 Tristan Heaven (nyhm)
0 siblings, 0 replies; 25+ messages in thread
From: Tristan Heaven (nyhm) @ 2010-08-31 17:04 UTC (permalink / raw
To: gentoo-commits
nyhm 10/08/31 17:04:48
Modified: games.eclass
Log:
games_ut_unpack: let's see uz2unpack output
Revision Changes Path
1.142 eclass/games.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.142&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.142&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?r1=1.141&r2=1.142
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -r1.141 -r1.142
--- games.eclass 3 Jan 2010 19:13:44 -0000 1.141
+++ games.eclass 31 Aug 2010 17:04:48 -0000 1.142
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.141 2010/01/03 19:13:44 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.142 2010/08/31 17:04:48 nyhm Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -192,12 +192,12 @@
die "You must provide an argument to games_ut_unpack"
fi
if [[ -f ${ut_unpack} ]] ; then
- uz2unpack "${ut_unpack}" "${ut_unpack/.uz2/}" &>/dev/null \
+ uz2unpack "${ut_unpack}" "${ut_unpack%.uz2}" \
|| die "uncompressing file ${ut_unpack}"
fi
if [[ -d ${ut_unpack} ]] ; then
while read f ; do
- uz2unpack "${ut_unpack}/${f}" "${ut_unpack}/${f%.uz2}" &>/dev/null \
+ uz2unpack "${ut_unpack}/${f}" "${ut_unpack}/${f%.uz2}" \
|| die "uncompressing file ${f}"
rm -f "${ut_unpack}/${f}" || die "deleting compressed file ${f}"
done < <(find "${ut_unpack}" -maxdepth 1 -name '*.uz2' -printf '%f\n' 2>/dev/null)
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2011-03-22 17:20 Mike Frysinger (vapier)
0 siblings, 0 replies; 25+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-22 17:20 UTC (permalink / raw
To: gentoo-commits
vapier 11/03/22 17:20:50
Modified: games.eclass
Log:
allow EAPI=3 as this eclass works (ignoring prefix, but that's #336626)
Revision Changes Path
1.143 eclass/games.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.143&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.143&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?r1=1.142&r2=1.143
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -r1.142 -r1.143
--- games.eclass 31 Aug 2010 17:04:48 -0000 1.142
+++ games.eclass 22 Mar 2011 17:20:50 -0000 1.143
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.142 2010/08/31 17:04:48 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.143 2011/03/22 17:20:50 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -12,7 +12,8 @@
case ${EAPI:-0} in
0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;;
- 2) EXPORT_FUNCTIONS pkg_setup src_configure src_compile pkg_preinst pkg_postinst ;;
+ 2|3) EXPORT_FUNCTIONS pkg_setup src_configure src_compile pkg_preinst pkg_postinst ;;
+ *) die "no support for EAPI=${EAPI} yet" ;;
esac
DESCRIPTION="Based on the ${ECLASS} eclass"
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2011-11-26 7:36 Mike Frysinger (vapier)
0 siblings, 0 replies; 25+ messages in thread
From: Mike Frysinger (vapier) @ 2011-11-26 7:36 UTC (permalink / raw
To: gentoo-commits
vapier 11/11/26 07:36:46
Modified: games.eclass
Log:
use egetshell helper from user eclass
Revision Changes Path
1.144 eclass/games.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.144&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.144&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?r1=1.143&r2=1.144
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -r1.143 -r1.144
--- games.eclass 22 Mar 2011 17:20:50 -0000 1.143
+++ games.eclass 26 Nov 2011 07:36:46 -0000 1.144
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.143 2011/03/22 17:20:50 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.144 2011/11/26 07:36:46 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -8,7 +8,7 @@
# you better have a *good* reason why you're *not* using games.eclass
# in a games-* ebuild
-inherit base multilib toolchain-funcs eutils
+inherit base multilib toolchain-funcs eutils user
case ${EAPI:-0} in
0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;;
@@ -134,7 +134,7 @@
# Dear portage team, we are so sorry. Lots of love, games team.
# See Bug #61680
[[ ${USERLAND} != "GNU" ]] && return 0
- [[ $(getent passwd "${GAMES_USER_DED}" | cut -f7 -d:) == "/bin/false" ]] \
+ [[ $(egetshell "${GAMES_USER_DED}") == "/bin/false" ]] \
&& usermod -s /bin/bash "${GAMES_USER_DED}"
}
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2011-12-14 16:33 Mike Frysinger (vapier)
0 siblings, 0 replies; 25+ messages in thread
From: Mike Frysinger (vapier) @ 2011-12-14 16:33 UTC (permalink / raw
To: gentoo-commits
vapier 11/12/14 16:33:13
Modified: games.eclass
Log:
avoid multiple inclusions when possible to speed caching up
Revision Changes Path
1.145 eclass/games.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.145&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.145&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?r1=1.144&r2=1.145
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -r1.144 -r1.145
--- games.eclass 26 Nov 2011 07:36:46 -0000 1.144
+++ games.eclass 14 Dec 2011 16:33:13 -0000 1.145
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.144 2011/11/26 07:36:46 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.145 2011/12/14 16:33:13 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -8,6 +8,9 @@
# you better have a *good* reason why you're *not* using games.eclass
# in a games-* ebuild
+if [[ ${___ECLASS_ONCE_GAMES} != "recur -_+^+_- spank" ]] ; then
+___ECLASS_ONCE_GAMES="recur -_+^+_- spank"
+
inherit base multilib toolchain-funcs eutils user
case ${EAPI:-0} in
@@ -218,3 +221,5 @@
rm -f "${Ddir}"/System/{ucc-bin,{Manifest,Def{ault,User},User,UT200{3,4}}.ini,{Engine,Core,zlib,ogg,vorbis}.so,{Engine,Core}.int,ucc.log} &>/dev/null \
|| die "Removing temporary files"
}
+
+fi
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2011-12-14 16:38 Mike Frysinger (vapier)
0 siblings, 0 replies; 25+ messages in thread
From: Mike Frysinger (vapier) @ 2011-12-14 16:38 UTC (permalink / raw
To: gentoo-commits
vapier 11/12/14 16:38:47
Modified: games.eclass
Log:
drop GAMES_CHECK_LICENSE now that portage supports ACCEPT_LICENSE in stable
Revision Changes Path
1.146 eclass/games.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.146&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.146&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?r1=1.145&r2=1.146
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -r1.145 -r1.146
--- games.eclass 14 Dec 2011 16:33:13 -0000 1.145
+++ games.eclass 14 Dec 2011 16:38:47 -0000 1.146
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.145 2011/12/14 16:33:13 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.146 2011/12/14 16:38:47 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -126,7 +126,6 @@
games_pkg_setup() {
tc-export CC CXX
- [[ ${GAMES_CHECK_LICENSE} == "yes" ]] && check_license ${LICENSE}
enewgroup "${GAMES_GROUP}" 35
[[ ${GAMES_USER} != "root" ]] \
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2012-07-29 20:38 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; 25+ messages in thread
From: Michael Sterrett (mr_bones_) @ 2012-07-29 20:38 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 12/07/29 20:38:16
Modified: games.eclass
Log:
tc-export LD AR RANLIB as well
Revision Changes Path
1.151 eclass/games.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.151&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.151&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?r1=1.150&r2=1.151
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -r1.150 -r1.151
--- games.eclass 28 Jul 2012 15:52:23 -0000 1.150
+++ games.eclass 29 Jul 2012 20:38:16 -0000 1.151
@@ -1,8 +1,8 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.150 2012/07/28 15:52:23 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.151 2012/07/29 20:38:16 mr_bones_ Exp $
-# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
+# devlist: games@gentoo.org
#
# This is the games eclass for standardizing the install of games ...
# you better have a *good* reason why you're *not* using games.eclass
@@ -128,7 +128,7 @@
}
games_pkg_setup() {
- tc-export CC CXX
+ tc-export CC CXX LD AR RANLIB
enewgroup "${GAMES_GROUP}" 35
[[ ${GAMES_USER} != "root" ]] \
^ permalink raw reply [flat|nested] 25+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: games.eclass
@ 2013-04-08 7:36 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; 25+ messages in thread
From: Michael Sterrett (mr_bones_) @ 2013-04-08 7:36 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 13/04/08 07:36:25
Modified: games.eclass
Log:
Add support for verbose build in <EAPI5
Revision Changes Path
1.154 eclass/games.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.154&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.154&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?r1=1.153&r2=1.154
Index: games.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v
retrieving revision 1.153
retrieving revision 1.154
diff -u -r1.153 -r1.154
--- games.eclass 27 Sep 2012 16:35:41 -0000 1.153
+++ games.eclass 8 Apr 2013 07:36:25 -0000 1.154
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.153 2012/09/27 16:35:41 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.154 2013/04/08 07:36:25 mr_bones_ Exp $
# devlist: games@gentoo.org
#
@@ -39,12 +39,21 @@
}
egamesconf() {
+ # handle verbose build log pre-EAPI5
+ local _gamesconf
+ if has "${EAPI:-0}" 0 1 2 3 4 ; then
+ if grep -q -s disable-silent-rules "${ECONF_SOURCE:-.}"/configure ; then
+ _gamesconf="--disable-silent-rules"
+ fi
+ fi
+
econf \
--prefix="${GAMES_PREFIX}" \
--libdir="$(games_get_libdir)" \
--datadir="${GAMES_DATADIR}" \
--sysconfdir="${GAMES_SYSCONFDIR}" \
--localstatedir="${GAMES_STATEDIR}" \
+ ${_gamesconf} \
"$@"
}
@@ -123,6 +132,8 @@
LDPATH="${libdirs:1}"
PATH="${GAMES_BINDIR}"
EOF
+ gamesowners "${ROOT}"/etc/env.d/${GAMES_ENVD}
+ gamesperms "${ROOT}"/etc/env.d/${GAMES_ENVD}
}
games_pkg_setup() {
^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2013-04-08 7:36 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-08 13:24 [gentoo-commits] gentoo-x86 commit in eclass: games.eclass Mike Frysinger (vapier)
-- strict thread matches above, loose matches on Subject: below --
2013-04-08 7:36 Michael Sterrett (mr_bones_)
2012-07-29 20:38 Michael Sterrett (mr_bones_)
2011-12-14 16:38 Mike Frysinger (vapier)
2011-12-14 16:33 Mike Frysinger (vapier)
2011-11-26 7:36 Mike Frysinger (vapier)
2011-03-22 17:20 Mike Frysinger (vapier)
2010-08-31 17:04 Tristan Heaven (nyhm)
2009-12-16 23:55 Jonathan Callen (abcd)
2009-12-09 0:27 Michael Sterrett (mr_bones_)
2009-07-26 11:05 Tristan Heaven (nyhm)
2009-07-26 10:57 Tristan Heaven (nyhm)
2009-04-05 3:38 Mike Frysinger (vapier)
2009-03-05 2:07 Mike Frysinger (vapier)
2009-03-04 2:03 Michael Sterrett (mr_bones_)
2009-01-22 19:50 Michael Sterrett (mr_bones_)
2009-01-21 19:03 Michael Sterrett (mr_bones_)
2009-01-05 1:24 Michael Sterrett (mr_bones_)
2008-12-01 20:36 Tristan Heaven (nyhm)
2008-09-28 23:40 Tristan Heaven (nyhm)
2008-09-11 16:57 Tristan Heaven (nyhm)
2008-09-05 17:02 Tristan Heaven (nyhm)
2008-04-26 15:50 Michael Sterrett (mr_bones_)
2008-02-15 0:15 Tristan Heaven (nyhm)
2007-11-06 22:38 Chris Gianelloni (wolf31o2)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox