diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2015-03-27 05:36:47 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2015-03-27 05:36:47 +0000 |
commit | 9dc3b7247dd0444777ef5e8d4f28ae0a2ddc834e (patch) | |
tree | c8a4a694ae000978a77b7368b3df0089ad149dd6 /eclass | |
parent | old (diff) | |
download | historical-9dc3b7247dd0444777ef5e8d4f28ae0a2ddc834e.tar.gz historical-9dc3b7247dd0444777ef5e8d4f28ae0a2ddc834e.tar.bz2 historical-9dc3b7247dd0444777ef5e8d4f28ae0a2ddc834e.zip |
clean unused eclass
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/games-ggz.eclass | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/eclass/games-ggz.eclass b/eclass/games-ggz.eclass deleted file mode 100644 index 290a68946dca..000000000000 --- a/eclass/games-ggz.eclass +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games-ggz.eclass,v 1.9 2012/09/27 16:35:41 axs Exp $ - -inherit base - -# For GGZ Gaming Zone packages - -GAMES_GGZ_EXPF="src_compile src_install pkg_postinst pkg_postrm" -case "${EAPI:-0}" in - 2|3|4|5) GAMES_GGZ_EXPF+=" src_configure" ;; - 0|1) : ;; - *) die "EAPI=${EAPI} is not supported" ;; -esac -EXPORT_FUNCTIONS ${GAMES_GGZ_EXPF} - -HOMEPAGE="http://www.ggzgamingzone.org/" -SRC_URI="mirror://ggz/${PV}/${P}.tar.gz" - -GGZ_MODDIR="/usr/share/ggz/modules" - -games-ggz_src_configure() { - local reg="--enable-noregistry=\"${GGZ_MODDIR}\"" - [[ ${PN} == ggz-client-libs ]] && reg='' - econf \ - --disable-dependency-tracking \ - $reg \ - $(has debug ${IUSE} && ! use debug && echo --disable-debug) \ - "$@" -} - -games-ggz_src_compile() { - has src_configure ${GAMES_GGZ_EXPF} || games-ggz_src_configure - emake || die "emake failed" -} - -games-ggz_src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - local f - for f in AUTHORS ChangeLog NEWS QuickStart.GGZ README* TODO ; do - [[ -f ${f} ]] && dodoc ${f} - done -} - -# Update ggz.modules with the .dsc files from ${GGZ_MODDIR}. -games-ggz_update_modules() { - [[ ${EBUILD_PHASE} == "postinst" || ${EBUILD_PHASE} == "postrm" ]] \ - || die "${FUNCNAME} can only be used in pkg_postinst or pkg_postrm" - - # ggz-config needs libggz, so it could be broken - ggz-config -h &> /dev/null || return 1 - - local confdir=${ROOT}/etc - local moddir=${ROOT}/${GGZ_MODDIR} - local dsc rval=0 - - mkdir -p "${confdir}" - echo -n > "${confdir}"/ggz.modules - if [[ -d ${moddir} ]] ; then - ebegin "Updating GGZ modules" - cd "${moddir}" - find . -type f -name '*.dsc' | while read dsc ; do - DESTDIR=${ROOT} ggz-config -Dim "${dsc}" || ((rval++)) - done - eend ${rval} - fi - return ${rval} -} - -# Register new modules -games-ggz_pkg_postinst() { - games-ggz_update_modules -} - -# Unregister old modules -games-ggz_pkg_postrm() { - games-ggz_update_modules -} |