View previous topic :: View next topic |
Author |
Message |
gentoo_newguy Guru
Joined: 10 Oct 2006 Posts: 539
|
Posted: Wed Feb 06, 2013 7:45 pm Post subject: Supermeatboy ebuild |
|
|
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 |
|
|
DanneStrat n00b
Joined: 05 Jan 2012 Posts: 73
|
Posted: Wed Feb 06, 2013 9:34 pm Post subject: |
|
|
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:
|
|
Back to top |
|
|
gentoo_newguy Guru
Joined: 10 Oct 2006 Posts: 539
|
Posted: Thu Feb 07, 2013 8:39 am Post subject: |
|
|
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 |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1305 Location: sweden
|
Posted: Thu Feb 07, 2013 5:07 pm Post subject: Re: Supermeatboy ebuild |
|
|
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 |
|
|
gentoo_newguy Guru
Joined: 10 Oct 2006 Posts: 539
|
Posted: Thu Feb 07, 2013 7:17 pm Post subject: |
|
|
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 |
|
|
gentoo_newguy Guru
Joined: 10 Oct 2006 Posts: 539
|
Posted: Thu Feb 07, 2013 8:35 pm Post subject: |
|
|
Do i place the bin file in the ebuild directory ? |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Feb 07, 2013 8:51 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
DanneStrat n00b
Joined: 05 Jan 2012 Posts: 73
|
Posted: Thu Feb 07, 2013 8:55 pm Post subject: |
|
|
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 |
|
|
|