Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 9263 Details for
Bug 3706
bsd-games-2.13.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
bsd-games-non-free-2.13.ebuild
bsd-games-non-free-2.13.ebuild (text/plain), 3.40 KB, created by
Aric LeDell
on 2003-03-11 14:50:38 UTC
(
hide
)
Description:
bsd-games-non-free-2.13.ebuild
Filename:
MIME Type:
Creator:
Aric LeDell
Created:
2003-03-11 14:50:38 UTC
Size:
3.40 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 > ># Aric LeDell 2003-01-11 16:20 >inherit games > >S=${WORKDIR}/${P} >DESCRIPTION="This is a collection of games from NetBSD" >HOMEPAGE="http://www.advogato.org/proj/bsd-games/" > >SRC_URI="ftp://metalab.unc.edu/pub/Linux/games/${P}.tar.gz" > >SLOT="0" > ># See /usr/share/doc/${P}/COPYRIGHT.hack and CHANGES.rogue >LICENSE="non-free" >KEYWORDS="~x86" > >DEPEND="sys-libs/ncurses > sys-apps/miscfiles > sys-apps/less > sys-devel/bison > sys-devel/flex" > >echo ${GAMES_TO_BUILD:="hack rogue"} > /dev/null >export GAMES_TO_BUILD > >export DOCSDIR=${D}usr/share/doc/${PF} > >src_unpack() { > unpack ${P}.tar.gz >} > >src_compile() { > cd ${S} > einfo "Getting bsd-games's custom configure ready for gentoo" > cp -a ${FILESDIR}/config.params-gentoo ./config.params > > # Set GAMES_TO_BUILD variable to whatever you want > echo bsd_games_cfg_build_dirs=\"${GAMES_TO_BUILD}\" >> ./config.params > > ./configure || die > make || die >} > >src_install() { > cd ${S} > dodir ${GAMES_BINDIR} > dodir /usr/share/man/man1 > dodir /usr/share/man/man6 > make DESTDIR=${D} install-strip || die > > dodoc AUTHORS BUGS COPYING ChangeLog ChangeLog.0 INSTALL NEWS \ > PACKAGING README README.non-free SECURITY THANKS TODO YEAR2000 \ > bsd-games-non-free.lsm > > # Do the special stuff for each game > if build_game hack ; then > BEING_INSTALLED=hack > einfo "Doing special installation tasks for hack" > do_binary hack > do_statedir hack > do_extra_doc hack COPYRIGHT OWNER Original_READ_ME READ_ME help > fi > if build_game rogue ; then > BEING_INSTALLED=rogue > einfo "Doing special installation tasks for rogue" > do_binary_setgid rogue > do_statefile rogue.scores > > cp -a ${S}/rogue/USD.doc/rogue.me ${DOCSDIR} > chmod g-w ${DOCSDIR}/rogue.me > do_extra_doc rogue CHANGES > fi >} > ># Modeled after /usr/lib/portage/bin/ebuild.sh 's use() function >build_game() { > local x > for x in ${GAMES_TO_BUILD} > do > if [ "${x}" = "${1}" ] > then > return 0 > fi > done > return 1 >} > ># Do binary owner and permission >do_binary() { > local x > for x in $@ > do > gamesowners ${D}/${GAMES_BINDIR}/${x} > gamesperms ${D}/${GAMES_BINDIR}/${x} > done > return 0 >} > ># Do setgid binary owner and permission >do_binary_setgid() { > local x > for x in $@ > do > do_binary ${x} > chmod g+s ${D}/${GAMES_BINDIR}/${x} > done > return 0 >} > ># Do statefile owner and permission (for scorefiles) >do_statefile() { > local x > for x in $@ > do > touch ${D}/${GAMES_STATEDIR}/${x} > chown ${GAMES_USER}.${GAMES_GROUP} ${D}/${GAMES_STATEDIR}/${x} > chmod 664 ${D}/${GAMES_STATEDIR}/${x} > done > return 0 >} > ># Do statedir (when games have a whole directory...) >do_statedir() { > local x > for x in $@ > do > mkdir -p ${D}/${GAMES_STATEDIR}/${x} > chown -R ${GAMES_USER}.${GAMES_GROUP} ${D}/${GAMES_STATEDIR}/${x} > chmod g+rws ${D}/${GAMES_STATEDIR}/${x} > local y > for y in $(ls ${D}/${GAMES_STATEDIR}/${x}) > do > chmod 664 ${D}/${GAMES_STATEDIR}/${x}/${y} > done > done > return 0 >} > >do_constfile() { > local x > for x in $@ > do > chown ${GAMES_USER}.${GAMES_GROUP} ${D}/${GAMES_DATADIR}/${x} > done > return 0 >} > >do_constdir() { > local x > for x in $@ > do > mkdir -p ${D}/${GAMES_DATADIR}/${x} > chown -R ${GAMES_USER}.${GAMES_GROUP} ${D}/${GAMES_DATADIR}/${x} > done > return 0 >} > ># For extra documentation in the game's build subdirectory >do_extra_doc() { > local dir="$1"; shift > local x > for x in $@ > do > gzip -c ${S}/${dir}/${x} > ${DOCSDIR}/${x}.${dir}.gz > done > return 0 >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3706
:
9028
|
9029
|
9030
|
9031
|
9032
|
9262
| 9263