Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Supermeatboy ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
gentoo_newguy
Guru
Guru


Joined: 10 Oct 2006
Posts: 539

PostPosted: Wed Feb 06, 2013 7:45 pm    Post subject: Supermeatboy ebuild Reply with quote

Ok first ever ebuild install and i cant get it to work.

I have created the directory

/usr/local/portage/games-action/supermeatboy/

containing

supermeatboy-12132011.ebuild

I have added to my /etc/portage/make.conf

PORTDIR_OVERLAY="/usr/local/portage/"

Now when i run this command i get mainfest not found
Code:

WhiteHat-WS1 bob # ebuild /usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild mainfest
 * Manifest not found for '/usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild'
WhiteHat-WS1 bob #


Am i doing something wrong when trying to install this ?
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Wed Feb 06, 2013 9:34 pm    Post subject: Reply with quote

Hi,

It should be:
Code:
ebuild /usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild manifest

After you've created the ebuild manifest, you can install the program as usual with emerge.
If you need to debug your ebuild by running up to certain steps of the installation like the "src_configure()" or "src_compile()" phase, you can use the "ebuild" utility for that as well.

For more info see:
Code:
man ebuild
Back to top
View user's profile Send private message
gentoo_newguy
Guru
Guru


Joined: 10 Oct 2006
Posts: 539

PostPosted: Thu Feb 07, 2013 8:39 am    Post subject: Reply with quote

DanneStrat

Thats exactly how i have it setup as mentioned above.

ebuild /usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild manifest

Code:

 bob # emerge supermeatboy                 

 * IMPORTANT: 8 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests
!!! A file is not listed in the Manifest: '/usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild'
WhiteHat-WS1 bob #


Code:


WhiteHat-WS1 bob # cat /usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit eutils games

MY_PN="SuperMeatBoy"
DESCRIPTION="A platformer where you play as an animated cube of meat"
HOMEPAGE="http://www.supermeatboy.com/"

HIBPAGE="http://www.humblebundle.com"
SRC_URI="${PN}-linux-${PV}b-bin"

RESTRICT="fetch"
LICENSE="as-is"

SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="-bundled-libs"

DEPEND="app-arch/unzip"
RDEPEND="!bundled-libs? (
       =media-libs/libsdl-1.2*
       =media-libs/openal-1* )"

S="${WORKDIR}/data"
GAMEDIR="${GAMES_PREFIX_OPT}/${PN}"

pkg_nofetch() {
   einfo ""
   einfo "Please buy and download \"${SRC_URI}\" from:"
   einfo "   ${HIBPAGE}"
   einfo "and move/link it to \"${DISTDIR}\""
   einfo ""
}

src_unpack() {
   local archive="${DISTDIR}/${A}"
   echo ">>> Unpacking ${A} to ${PWD}"
   unzip -q "${archive}" 2> /dev/null
   [[ "${?}" -gt "1" ]] && die "unpacking \"${archive}\" failed"
}

src_install() {
   # Data:
   insinto "${GAMEDIR}" || die "insinto \"${GAMEDIR}\" failed"
   doins -r "resources" || die "doins \"resources\" failed"
   find . -maxdepth 1 -mindepth 1 -type f ! -executable \( -iname "*.cfg" -o \
                        -iname "*.dat" -o \
                        -iname "*.txt" \) \
                        ! -iname "*readme*" -exec doins -r '{}' \+ || die "doins data failed"

   # Executable and libraries:
   exeinto "${GAMEDIR}" || die "exeinto \"${GAMEDIR}\" failed"
   newexe "${ARCH}/${MY_PN}-${ARCH}" "${PN}" || die "newexe \"${PN}\" failed"
   use bundled-libs && (
     exeinto "${GAMEDIR}/lib" || die "exeinto \"${GAMEDIR}/lib\" failed"
     doexe "${ARCH}/"lib*so* || die "doexe bundled libs failed" )

   # Make game wrapper:
   games_make_wrapper "${PN}" "./${PN}" "${GAMEDIR}" "$(usex "bundled-libs" "${GAMEDIR}/lib" "")" || die "games_make_wrapper \"./${PN}\" failed"

   # Icon and desktop files:
   local icon="${PN}.png"
   newicon "${icon}" "${icon}" || die "newicon \"${icon}\" failed"
   make_desktop_entry "${PN}" "${MY_PN}" "/usr/share/pixmaps/${icon}" || die "make_desktop_entry failed"

   # Documents:
   find . -maxdepth 1 -mindepth 1 -type f ! -executable -iname "readme*.txt" -exec dodoc '{}' \+ || die "dodoc failed"

   # Setting general permissions:
   prepgamesdirs
}

pkg_postinst() {
   echo ""
   games_pkg_postinst

   einfo "Please report any bugs here:"
   einfo "   http://bugzilla.icculus.org/"
   echo ""
   einfo "${MY_PN} savegames and configurations are stored in:"
   einfo "   \${HOME}/.local/share/${MY_PN}"
   echo ""
   einfo "To play, run:"
   einfo "   ${PN}"
   echo ""
}



Code:
 ebuild /usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild manifest

!!! games-action/supermeatboy-12132011 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 *
 * Please buy and download "supermeatboy-linux-12132011b-bin" from:
 *    http://www.humblebundle.com
 * and move/link it to "/usr/portage/distfiles"
 *
!!! Fetch failed for supermeatboy-linux-12132011b-bin, can't update Manifest



Confused maybe something is wrong with this ebuild ?


Code:
make.conf
PORTDIR_OVERLAY="/usr/local/portage/"



Anything else i should be doing ?
Back to top
View user's profile Send private message
hedmo
l33t
l33t


Joined: 29 Aug 2009
Posts: 839
Location: halmstad

PostPosted: Thu Feb 07, 2013 5:07 pm    Post subject: Re: Supermeatboy ebuild Reply with quote

gentoo_newguy wrote:
Ok first ever ebuild install and i cant get it to work.

I have created the directory

/usr/local/portage/games-action/supermeatboy/

containing

supermeatboy-12132011.ebuild

I have added to my /etc/portage/make.conf

PORTDIR_OVERLAY="/usr/local/portage/"

Now when i run this command i get mainfest not found
Code:

WhiteHat-WS1 bob # ebuild /usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild mainfest
 * Manifest not found for '/usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild'
WhiteHat-WS1 bob #


Am i doing something wrong when trying to install this ?



How about

ebuild /usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild digest

And

emerge -av supermeatboy

But you have to download it first (read portage output!)...
Back to top
View user's profile Send private message
gentoo_newguy
Guru
Guru


Joined: 10 Oct 2006
Posts: 539

PostPosted: Thu Feb 07, 2013 7:17 pm    Post subject: Reply with quote

Thanks for ur reply


Code:
!!! games-action/supermeatboy-12132011 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 *
 * Please buy and download "supermeatboy-linux-12132011b-bin" from:
 *    http://www.humblebundle.com
 * and move/link it to "/usr/portage/distfiles"
 *
!!! Fetch failed for supermeatboy-linux-12132011b-bin, can't update Manifest
WhiteHat-WS1 bob #



Code:
eHat-WS1 bob # emerge supermeatboy

 * IMPORTANT: 8 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!
[ebuild  N     ] media-libs/openal-1.15.1  USE="alsa pulseaudio sse -alstream (-coreaudio) -debug (-neon) -oss -portaudio"
[ebuild  N f  ~] games-action/supermeatboy-12132011  USE="-bundled-libs"

The following keyword changes are necessary to proceed:
#required by supermeatboy (argument)
=games-action/supermeatboy-12132011 ~amd64

Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).
WhiteHat-WS1 bob # nano -w /etc/portage/make.conf
WhiteHat-WS1 bob # emerge supermeatboy

 * IMPORTANT: 8 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests
!!! A file is not listed in the Manifest: '/usr/local/portage/games-action/supermeatboy/supermeatboy-12132011.ebuild'
WhiteHat-WS1 bob #
Back to top
View user's profile Send private message
gentoo_newguy
Guru
Guru


Joined: 10 Oct 2006
Posts: 539

PostPosted: Thu Feb 07, 2013 8:35 pm    Post subject: Reply with quote

Do i place the bin file in the ebuild directory ?
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4883

PostPosted: Thu Feb 07, 2013 8:51 pm    Post subject: Reply with quote

gentoo_newguy wrote:
Do i place the bin file in the ebuild directory ?

you have not done your homework, read this: http://devmanual.gentoo.org/ebuild-writing/index.html
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Thu Feb 07, 2013 8:55 pm    Post subject: Reply with quote

Since the ebuild is fetch-restricted you need to put the bin file in the "/usr/portage/distfiles" directory manually, generate the ebuild manifest (the bin file and it's hashes will then be registered in the manifest), then you can install the program with emerge.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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