Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ebuild] wormux-0.8_beta4
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2909
Location: Parma (Italy)

PostPosted: Fri Dec 28, 2007 12:08 pm    Post subject: [ebuild] wormux-0.8_beta4 Reply with quote

Non è proprio il massimo dell'eleganza, ma pare funzionare.
Code:

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils games versionator

DESCRIPTION="A free Worms clone"
HOMEPAGE="http://www.wormux.org/"

MY_PV=$(replace_version_separator 2 '')
SRC_URI="http://download.gna.org/${PN}/${PN}-${MY_PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug nls"

RDEPEND="media-libs/libsdl
   media-libs/sdl-image
   media-libs/sdl-mixer
   media-libs/sdl-ttf
   media-libs/sdl-net
   media-libs/sdl-gfx
   net-misc/curl
   >=dev-cpp/libxmlpp-2.6
   nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
   dev-util/pkgconfig
   nls? ( sys-devel/gettext )"

S="${WORKDIR}/${PN}-${MY_PV}"

pkg_setup() {
   if ! built_with_use media-libs/sdl-mixer vorbis; then
                eerror "sdl-mixer is missing vorbis support. Please add"
                eerror "'vorbis' to your USE flags, and re-emerge media-libs/sdl-mixer."
                die "sdl-mixer needs vorbis support"
   fi
   if ! built_with_use  media-libs/sdl-image jpeg; then
                eerror "sdl-image is missing jpeg support. Please add"
                eerror "'jpeg' to your USE flags, and re-emerge media-libs/sdl-image."
                die "sdl-image needs jpeg support"
   fi
   if ! built_with_use  media-libs/sdl-image png; then
                eerror "sdl-image is missing png support. Please add"
                eerror "'png' to your USE flags, and re-emerge media-libs/sdl-image."
                die "sdl-image needs png support"
   fi
   if use nls && ! built_with_use sys-devel/gettext nls; then
                eerror "gettext is missing nls support. Please add"
                eerror "'nls' to your USE flags, and re-emerge sys-devel/gettext."
                die "gettext needs nls support"
   fi
}

src_unpack() {
   unpack ${A}
   cd "${S}"
   # avoid the strip on install
   sed -i \
      -e "s/@INSTALL_STRIP_PROGRAM@/@INSTALL_PROGRAM@/" \
      src/Makefile.in \
      || die "sed failed"
}

src_compile() {
   egamesconf \
      --with-datadir-name="${GAMES_DATADIR}/${PN}" \
      --with-localedir-name="/usr/share/locale" \
      $(use_enable debug) \
      $(use_enable nls) \
      || die
   emake || die "emake failed"
}

src_install() {
   emake DESTDIR="${D}" install || die "emake install failed"
   dodoc AUTHORS ChangeLog README
   newicon data/wormux_32x32.xpm wormux.xpm
   make_desktop_entry wormux Wormux wormux.xpm
   prepgamesdirs
}


Byez

p.s. se avete suggerimenti e\o migliorie postate pure.
p.p.s. se qualcuno volesse 'rivenderselo' ad esempio su sunrise per me non c'è problema, io tanto non ho tempo di farlo...
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3652

PostPosted: Fri Dec 28, 2007 12:39 pm    Post subject: Reply with quote

scusa ma postarlo su bugs.gento.org non sarebbe meglio ?
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2909
Location: Parma (Italy)

PostPosted: Fri Dec 28, 2007 3:25 pm    Post subject: Reply with quote

no, perchè non lo accetterebbero: c'è già la richiesta. Aspettano che esca la 0.8 'stabile', non una beta.
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum