diff options
author | John N. Laliberte <allanonjl@gentoo.org> | 2006-10-31 14:40:13 +0000 |
---|---|---|
committer | John N. Laliberte <allanonjl@gentoo.org> | 2006-10-31 14:40:13 +0000 |
commit | bb06843209573457fda014b96e5a666d4ce6ed83 (patch) | |
tree | 19e251465a943847532c53ae78e449a164651215 /gnome-extra | |
parent | Fix other packaging issues (diff) | |
download | gentoo-2-bb06843209573457fda014b96e5a666d4ce6ed83.tar.gz gentoo-2-bb06843209573457fda014b96e5a666d4ce6ed83.tar.bz2 gentoo-2-bb06843209573457fda014b96e5a666d4ce6ed83.zip |
use games eclass pkg_setup to add games user/group. fixes #153485
(Portage version: 2.1.2_pre3-r8)
Diffstat (limited to 'gnome-extra')
-rw-r--r-- | gnome-extra/gnome-games/ChangeLog | 9 | ||||
-rw-r--r-- | gnome-extra/gnome-games/files/digest-gnome-games-2.16.1-r1 | 3 | ||||
-rw-r--r-- | gnome-extra/gnome-games/gnome-games-2.16.1-r1.ebuild | 81 |
3 files changed, 92 insertions, 1 deletions
diff --git a/gnome-extra/gnome-games/ChangeLog b/gnome-extra/gnome-games/ChangeLog index a9f084b1e7c2..1b7904d22d71 100644 --- a/gnome-extra/gnome-games/ChangeLog +++ b/gnome-extra/gnome-games/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for gnome-extra/gnome-games # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/ChangeLog,v 1.173 2006/10/29 03:46:42 allanonjl Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/ChangeLog,v 1.174 2006/10/31 14:40:13 allanonjl Exp $ + +*gnome-games-2.16.1-r1 (31 Oct 2006) + + 31 Oct 2006; John N. Laliberte <allanonjl@gentoo.org> + -gnome-games-2.16.0.ebuild, -gnome-games-2.16.1.ebuild, + +gnome-games-2.16.1-r1.ebuild: + use games eclass pkg_setup to add games user/group. fixes #153485 29 Oct 2006; John N. Laliberte <allanonjl@gentoo.org> gnome-games-2.16.1.ebuild: diff --git a/gnome-extra/gnome-games/files/digest-gnome-games-2.16.1-r1 b/gnome-extra/gnome-games/files/digest-gnome-games-2.16.1-r1 new file mode 100644 index 000000000000..95cf96b5872d --- /dev/null +++ b/gnome-extra/gnome-games/files/digest-gnome-games-2.16.1-r1 @@ -0,0 +1,3 @@ +MD5 4377f69dffe1bca3a153936354112ec9 gnome-games-2.16.1.tar.bz2 5199644 +RMD160 1c93b8724f81bd8dd48ba2176f199c54784ede00 gnome-games-2.16.1.tar.bz2 5199644 +SHA256 8255a2b715492fcafa653fa9b11a5e34c6626413bd427481983e5ce6ad054efc gnome-games-2.16.1.tar.bz2 5199644 diff --git a/gnome-extra/gnome-games/gnome-games-2.16.1-r1.ebuild b/gnome-extra/gnome-games/gnome-games-2.16.1-r1.ebuild new file mode 100644 index 000000000000..e8cb8c885687 --- /dev/null +++ b/gnome-extra/gnome-games/gnome-games-2.16.1-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-2.16.1-r1.ebuild,v 1.1 2006/10/31 14:40:13 allanonjl Exp $ + +# make sure games is inherited first so that the gnome2 +# functions will be called if they are not overridden +inherit games eutils gnome2 autotools + +DESCRIPTION="Collection of games for the GNOME desktop" +HOMEPAGE="http://www.gnome.org/" + +LICENSE="GPL-2 FDL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="artworkextra guile avahi" + +RDEPEND=">=gnome-base/gconf-2 + >=gnome-base/libgnomeui-2 + >=gnome-base/libgnome-2 + >=x11-libs/gtk+-2.8 + >=gnome-base/librsvg-2 + >=gnome-base/libglade-2 + >=dev-libs/glib-2.6.3 + >=gnome-base/gnome-vfs-2 + >=x11-libs/cairo-1 + guile? ( >=dev-util/guile-1.6.5 ) + avahi? ( net-dns/avahi ) + artworkextra? ( gnome-extra/gnome-games-extra-data ) + >=gnome-base/gnome-common-2.12.0" + +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.9 + >=dev-util/intltool-0.35 + >=sys-devel/gettext-0.10.40 + >=app-text/scrollkeeper-0.3.8" + +DOCS="AUTHORS ChangeLog HACKING MAINTAINERS NEWS README TODO" + + +pkg_setup() { + # create the games user / group + games_pkg_setup + + G2CONF="--with-scores-group=${GAMES_GROUP} \ + $(use_enable guile) \ + $(use_enable avahi)" +} + +src_unpack() { + gnome2_src_unpack + + # Resolve symbols at execution time in setgid binaries + epatch ${FILESDIR}/${PN}-2.14.0-no_lazy_bindings.patch + + # Implement --enable-guile switch + epatch ${FILESDIR}/${PN}-2.13.1-guile_switch.patch + + AT_M4DIR="./m4" eautoreconf +} + +src_install() { + gnome2_src_install + + # Documentation install for each of the games + for game in \ + $(find . -maxdepth 1 -type d ! -name po ! -name libgames-support); do + docinto ${game} + for doc in AUTHORS ChangeLog NEWS README TODO; do + [ -s ${game}/${doc} ] && dodoc ${game}/${doc} + done + done + + # Avoid overwriting previous .scores files + local basefile + for scorefile in ${D}/var/lib/games/*.scores; do + basefile=$(basename $scorefile) + if [ -s "${ROOT}/var/lib/games/${basefile}" ]; then + rm ${scorefile} + fi + done +} |